public class AgentSnapshot
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
AgentSnapshot()
Initializes a new instance of the
AgentSnapshot class. |
AgentSnapshot(java.util.UUID id,
boolean registered)
Initializes a new instance of the
AgentSnapshot class. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActivity()
Gets the current activity performed on the agent.
|
int |
getCapacity()
Gets the capacity, which is the number of hosts that can be run simultaneously.
|
int |
getCpuSpeed()
Gets the cpu speed for the machine where the agent is running.
|
int |
getCurrentCpuUsage()
Gets the current cpu usage.
|
java.util.GregorianCalendar |
getDateStarted()
Gets the time that agent connected to coordinator.
|
java.lang.String |
getDescription()
Gets the description associated with this agent.
|
int |
getEstimatedMemoryBudget()
Gets the estimated memory budget, which is the amount of estimated memory budgeted to the agent.
|
HardDiskStatus |
getHardDisk()
Gets the amount of disk space on the drive the agent is running on.
|
java.util.List<HostSnapshot> |
getHostPool()
Gets the hostpool snapshot.
|
java.util.UUID |
getId()
Gets the agent identifier.
|
boolean |
getIsEnabled()
Gets a value indicating whether this agent is enabled or disabled.
|
boolean |
getIsRegistered()
Gets a value indicating whether this agent is registered.
|
LoggingLevel |
getLoggingLevel()
Gets the logging level of the agent.
|
java.lang.String |
getMachineName()
Gets the name of the machine where the agent is running.
|
boolean |
getMeetsThreshold()
Gets a value indicating whether the agent meets the threshold for agent selection that is set by the coordinator.
|
MemoryStatus |
getMemory()
Gets the memory status (i.e.
|
NetworkStatus |
getNetwork()
Gets the network activity that agent using for remote connections.
|
OSPlatform |
getOSPlatform()
Gets a value indicating what OS platform the agent is running on.
|
int |
getPriority()
Gets the current priority of the resource.
|
java.util.Map<java.lang.String,java.lang.String> |
getResources()
Gets the resources of the agent.
|
java.util.Map<java.lang.String,java.lang.String> |
getRuntimeProperties()
Gets the runtime properties of the agent.
|
java.lang.String |
getThresholdFailureReason()
Gets the reason for the threshold failure.
|
java.util.GregorianCalendar |
getTimeStamp()
Gets the time of snapshot creation.
|
java.lang.String |
getUserName()
Gets the name of the user of this agent.
|
void |
setActivity(java.lang.String value)
Sets the current activity performed on the agent.
|
void |
setCapacity(int value)
Sets the capacity, which is the number of hosts that can be run simultaneously.
|
void |
setCpuSpeed(int value)
Sets the cpu speed for the machine where the agent is running.
|
void |
setCurrentCpuUsage(int value)
Sets the current cpu usage.
|
void |
setDateStarted(java.util.GregorianCalendar value)
Sets the time that agent connected to coordinator.
|
void |
setDescription(java.lang.String value)
Sets the description associated with this agent.
|
void |
setEstimatedMemoryBudget(int value)
Sets the estimated memory budget, which is the amount of estimated memory budgeted to the agent.
|
void |
setHardDisk(HardDiskStatus value)
Sets the amount of disk space on the drive the agent is running on.
|
void |
setHostPool(java.util.List<HostSnapshot> value)
Sets the hostpool snapshot.
|
void |
setId(java.util.UUID value)
Sets the agent identifier.
|
void |
setIsEnabled(boolean value)
Sets a value indicating whether this agent is enabled or disabled.
|
void |
setIsRegistered(boolean value)
Sets a value indicating whether this agent is registered.
|
void |
setLoggingLevel(LoggingLevel value)
Sets the logging level of the agent.
|
void |
setMachineName(java.lang.String value)
Sets the name of the machine where the agent is running.
|
void |
setMeetsThreshold(boolean value)
Sets a value indicating whether the agent meets the threshold for agent selection that is set by the coordinator.
|
void |
setMemory(MemoryStatus value)
Sets the memory status (i.e.
|
void |
setNetwork(NetworkStatus value)
Sets the network activity that agent using for remote connections.
|
void |
setOSPlatform(OSPlatform value)
Sets a value indicating what OS platform the agent is running on.
|
void |
setPriority(int value)
Sets the current priority of the resource.
|
void |
setResources(java.util.Map<java.lang.String,java.lang.String> value)
Sets the resources of the agent.
|
void |
setRuntimeProperties(java.util.Map<java.lang.String,java.lang.String> value)
Sets the runtime properties of the agent.
|
void |
setThresholdFailureReason(java.lang.String value)
Sets the reason for the threshold failure.
|
void |
setTimeStamp(java.util.GregorianCalendar value)
Sets the time of snapshot creation.
|
void |
setUserName(java.lang.String value)
Sets the name of the user of this agent.
|
java.lang.String |
toString() |
public AgentSnapshot()
AgentSnapshot
class.public AgentSnapshot(java.util.UUID id, boolean registered)
AgentSnapshot
class.id
- The agent identifier.registered
- if set to true
[registered].public final java.lang.String getMachineName()
public final void setMachineName(java.lang.String value)
value
- The name of the machine.public final LoggingLevel getLoggingLevel()
public final void setLoggingLevel(LoggingLevel value)
public final int getCpuSpeed()
public final void setCpuSpeed(int value)
public final int getCapacity()
public final void setCapacity(int value)
public final int getEstimatedMemoryBudget()
public final void setEstimatedMemoryBudget(int value)
public final boolean getMeetsThreshold()
true
if meets threshold; otherwise, false
.public final void setMeetsThreshold(boolean value)
true
if meets threshold; otherwise, false
.public final java.lang.String getThresholdFailureReason()
false
, this property should
explain the reason for the threshold failure.
The threshold failure reason.public final void setThresholdFailureReason(java.lang.String value)
false
, this property should
explain the reason for the threshold failure.
The threshold failure reason.public final java.lang.String getActivity()
public final void setActivity(java.lang.String value)
public final java.lang.String getDescription()
public final void setDescription(java.lang.String value)
public final java.util.UUID getId()
public final void setId(java.util.UUID value)
public final boolean getIsRegistered()
true
if this agent is registered; otherwise, false
.public final void setIsRegistered(boolean value)
true
if this agent is registered; otherwise, false
.public final boolean getIsEnabled()
true
if this instance is enabled; otherwise, false
.public final void setIsEnabled(boolean value)
true
if this instance is enabled; otherwise, false
.public final int getCurrentCpuUsage()
public final void setCurrentCpuUsage(int value)
public final MemoryStatus getMemory()
public final void setMemory(MemoryStatus value)
public final HardDiskStatus getHardDisk()
public final void setHardDisk(HardDiskStatus value)
public final NetworkStatus getNetwork()
public final void setNetwork(NetworkStatus value)
public final java.lang.String getUserName()
public final void setUserName(java.lang.String value)
public final int getPriority()
public final void setPriority(int value)
public final java.util.GregorianCalendar getDateStarted()
public final void setDateStarted(java.util.GregorianCalendar value)
public final java.util.GregorianCalendar getTimeStamp()
public final void setTimeStamp(java.util.GregorianCalendar value)
public final java.util.Map<java.lang.String,java.lang.String> getResources()
public final void setResources(java.util.Map<java.lang.String,java.lang.String> value)
public final java.util.Map<java.lang.String,java.lang.String> getRuntimeProperties()
public final void setRuntimeProperties(java.util.Map<java.lang.String,java.lang.String> value)
public final java.util.List<HostSnapshot> getHostPool()
public final void setHostPool(java.util.List<HostSnapshot> value)
public final OSPlatform getOSPlatform()
public final void setOSPlatform(OSPlatform value)
public java.lang.String toString()
toString
in class java.lang.Object