public final class HostRecycleSettings
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
HostRecycleSettings()
Initializes a new instance of the
HostRecycleSettings class. |
HostRecycleSettings(HostRecycleSettings copy)
Copy constructor.
|
HostRecycleSettings(int fixedNumberOfTasks,
int idleTimeout,
int regularInterval,
java.lang.String specificTimes,
boolean taskEnvironmentNoLongerReferenced,
boolean jobCompletion,
long privateMemoryUsageMaximum)
Initializes a new instance of the
HostRecycleSettings class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getFixedNumberOfTasks()
Gets the fixed number of tasks.
|
int |
getIdleTimeout()
Gets the idle timeout in milliseconds.
|
boolean |
getJobCompletion()
Gets a value indicating whether to recycle the host upon job completion.
|
long |
getPrivateMemoryUsageMaximum()
Gets the private memory usage maximum in bytes.
|
int |
getRegularInterval()
Gets the regular interval in milliseconds.
|
java.lang.String |
getSpecificTimes()
Gets the specific times.
|
boolean |
getTaskEnvironmentNoLongerReferenced()
Gets a value indicating whether to recycle the host when its current task environment is no longer referenced.
|
void |
setFixedNumberOfTasks(int value)
Sets the fixed number of tasks.
|
void |
setIdleTimeout(int value)
Sets the idle timeout in milliseconds.
|
void |
setJobCompletion(boolean value)
Sets a value indicating whether to recycle the host upon job completion.
|
void |
setPrivateMemoryUsageMaximum(long value)
Sets the private memory usage maximum in bytes.
|
void |
setRegularInterval(int value)
Sets the regular interval in milliseconds.
|
void |
setSpecificTimes(java.lang.String value)
Sets the specific times.
|
void |
setTaskEnvironmentNoLongerReferenced(boolean value)
Sets a value indicating whether to recycle the host when its current task environment is no longer referenced.
|
java.lang.String |
toString() |
static HostRecycleSettings |
withFixedNumberOfTasks(int fixedNumberOfTasks)
Creates the settings with only fixed number of tasks.
|
public HostRecycleSettings(int fixedNumberOfTasks, int idleTimeout, int regularInterval, java.lang.String specificTimes, boolean taskEnvironmentNoLongerReferenced, boolean jobCompletion, long privateMemoryUsageMaximum)
HostRecycleSettings
class.fixedNumberOfTasks
- The fixed number of tasks.idleTimeout
- The idle timeout in milliseconds.regularInterval
- The regular interval in milliseconds.specificTimes
- The specific times.taskEnvironmentNoLongerReferenced
- If true, recycle environment when no longer referenced.jobCompletion
- If true, recycle environment once the job has completed.privateMemoryUsageMaximum
- The private memory usage maximum in bytes.public HostRecycleSettings(HostRecycleSettings copy)
copy
- Object to copy.public HostRecycleSettings()
HostRecycleSettings
class.public final int getFixedNumberOfTasks()
public final void setFixedNumberOfTasks(int value)
value
- The fixed number of tasks.public final boolean getTaskEnvironmentNoLongerReferenced()
public final void setTaskEnvironmentNoLongerReferenced(boolean value)
public final boolean getJobCompletion()
public final void setJobCompletion(boolean value)
public final int getIdleTimeout()
public final void setIdleTimeout(int value)
value
- The idle timeout.public final int getRegularInterval()
public final void setRegularInterval(int value)
value
- The regular interval.public final java.lang.String getSpecificTimes()
public final void setSpecificTimes(java.lang.String value)
value
- The specific times.public final long getPrivateMemoryUsageMaximum()
public final void setPrivateMemoryUsageMaximum(long value)
value
- The private memory usage maximum.public static HostRecycleSettings withFixedNumberOfTasks(int fixedNumberOfTasks)
fixedNumberOfTasks
- The fixed number of tasks.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object