public class HealthCenterPreferences
extends java.lang.Object
Constructor and Description |
---|
HealthCenterPreferences()
Initializes the default set of preferences.
|
Modifier and Type | Method and Description |
---|---|
long |
getMemoryRestriction()
Gets the value of the memory restriction
|
boolean |
getSlidingWindowTruncation()
Gets whether the sliding window truncation facility is on or off.
|
int |
getTruncationRunInterval()
Gets the frequency of the truncation job.
|
int |
getTruncationTimeWindow()
Gets the amount of data that is kept when the truncation job runs.
|
boolean |
isMemoryRestictionEnabled()
Gets the current value of whether memory restriction is set.
|
void |
setBackingStoreCount(int count)
Sets the number of backing files to be used.
|
void |
setDefaults()
Initializes the HealthCenter preferences to their default values.
|
void |
setMemoryRestictionEnabled(boolean memoryRestrictionEnabled)
Sets whether to set memory restriction on or off.
|
long |
setMemoryRestriction(long maxMemoryToUse)
Sets the maximum amount of memory to be used by the Health Center
process.
|
void |
setSlidingWindowTruncation(boolean value)
Turns the sliding window truncation facility on or off.
|
void |
setTruncationRunInterval(int seconds)
Sets the frequency for the truncation job.
|
void |
setTruncationTimeWindow(int minutes)
Sets the amount of data to keep when the truncation job runs.
|
public HealthCenterPreferences()
public void setSlidingWindowTruncation(boolean value)
value
- whether the truncation facility is on or off.public void setTruncationTimeWindow(int minutes)
minutes
- the amount of data to keep, in minutes.public void setBackingStoreCount(int count)
count
- the number of files to use.public void setTruncationRunInterval(int seconds)
seconds
- the required frequency for the truncation job, in seconds.public boolean getSlidingWindowTruncation()
true
or false
.public int getTruncationTimeWindow()
public int getTruncationRunInterval()
public void setDefaults()
public void setMemoryRestictionEnabled(boolean memoryRestrictionEnabled)
memoryRestrictionEnabled
- true
or false
public boolean isMemoryRestictionEnabled()
public long setMemoryRestriction(long maxMemoryToUse)
maxMemoryToUse
- the value of the memory to use, in bytes.public long getMemoryRestriction()