public abstract class TaskEnvironment
extends java.lang.Object
implements java.io.Serializable
Task
is run.Constructor and Description |
---|
TaskEnvironment()
Initializes a new instance of the
TaskEnvironment class. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAdditionalId()
Gets the optional additional id of the environment.
|
CpuArchitecture |
getHostArchitecture()
Gets the desired CPU Architecture of the host that executes the task.
|
java.util.UUID |
getId()
Gets the id of the environment.
|
java.lang.String |
getName()
Gets the display name of the task environment.
|
java.util.Hashtable |
getProperties()
Gets task environment properties.
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns property value by name.
|
HostRecycleSettings |
getRecycleSettings()
Gets the recycling settings that determine when to shutdown the host process on which tasks run.
|
LicenseParameters |
getRequiredLicense()
Gets the required license associated with this environment.
|
int |
getTasksPerHost()
Deprecated.
TasksPerHost is obsolete; use RecycleSettings.FixedNumberOfTasks instead
|
int |
getTeardownTimeout()
Gets the amount of time teardown can run for before it is timed-out in milliseconds.
|
java.lang.String |
getWorkingDirectory()
Gets the custom working directory of the task environment.
|
void |
setAdditionalId(java.lang.String value)
Sets the optional additional id of the environment.
|
void |
setHostArchitecture(CpuArchitecture value)
Sets the desired CPU Architecture of the host that executes the task.
|
void |
setId(java.util.UUID value)
Sets the id of the environment.
|
void |
setName(java.lang.String value)
Sets the display name of the task environment.
|
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Sets property value.
|
void |
setRecycleSettings(HostRecycleSettings value)
Sets the recycling settings used for the policy which determines when to shutdown the host process the task runs on.
|
void |
setRequiredLicense(LicenseParameters value)
Sets the required license associated with this environment.
|
void |
setTasksPerHost(int value)
Deprecated.
TasksPerHost is obsolete; use RecycleSettings.FixedNumberOfTasks instead
|
void |
setTeardownTimeout(int value)
Sets the amount of time teardown can run for before it is timed-out in milliseconds.
|
abstract void |
setup()
Called by Host before Task is executed.
|
void |
setWorkingDirectory(java.lang.String value)
Sets the custom working directory of the task environment.
|
abstract void |
teardown()
Called by Host after Task is executed.
|
public TaskEnvironment()
TaskEnvironment
class.public final CpuArchitecture getHostArchitecture()
Task
can be assured
it is executed in a Host that supports this type of CPU architecture.public final void setHostArchitecture(CpuArchitecture value)
Task
can be assured
it is executed in a Host that supports this type of CPU architecture.public final java.util.UUID getId()
public final void setId(java.util.UUID value)
public final java.lang.String getAdditionalId()
public final void setAdditionalId(java.lang.String value)
@Deprecated public final int getTasksPerHost()
@Deprecated public final void setTasksPerHost(int value)
public final HostRecycleSettings getRecycleSettings()
public final void setRecycleSettings(HostRecycleSettings value)
public final int getTeardownTimeout()
public final void setTeardownTimeout(int value)
public final LicenseParameters getRequiredLicense()
public final void setRequiredLicense(LicenseParameters value)
public final java.lang.String getWorkingDirectory()
public final void setWorkingDirectory(java.lang.String value)
public final java.util.Hashtable getProperties()
public final java.lang.String getName()
public final void setName(java.lang.String value)
public abstract void setup()
public abstract void teardown()
public final void setProperty(java.lang.String propertyName, java.lang.Object value)
propertyName
- Property Name.value
- Property Value.public final java.lang.Object getProperty(java.lang.String propertyName)
propertyName
- Name of Property.