|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.node.MoabNode
public class MoabNode
This class represents a node in Moab. A node in Moab can run jobs as well as serve other various tasks like storage and network management.
Field Summary | |
---|---|
static java.util.List<java.lang.String> |
gMetricNames
The names of all generic metrics found for nodes. |
static java.util.List<java.lang.String> |
gResourcesNames
The names of all generic resources found for nodes. |
Constructor Summary | |
---|---|
MoabNode()
|
Method Summary | |
---|---|
void |
addApplicationStatistics(ApplicationStatistics stats)
Adds the application statistics to the applStats list. |
void |
addComment(java.lang.String comment)
Adds a comment and a newline to existing list of comments. |
void |
addVM(VM vm)
Adds a VM to the collection of VMs on the node. |
int |
compareTo(MoabNode o)
|
boolean |
equals(MoabNode other)
Tests if nodes are equal based on the node IDs. |
java.util.Set<ApplicationStatistics> |
getApplStats()
Get the node's application statistics. |
java.lang.String |
getArchitecture()
Get the node's processor architecture. |
java.util.Set<java.lang.String> |
getAvailableClasses()
Get the available classes for this node. |
java.util.Date |
getAvailableEndDate()
Get the time when the node will stop being available. |
java.lang.Integer |
getAvailableGenericResource(java.lang.String name)
Gets the available amount of the generic resource with the specified name. |
java.util.Map<java.lang.String,java.lang.Integer> |
getAvailableGenericResources()
Gets a map of the available generic resources. |
double |
getAvailableMemoryWeight()
Get the weight that the available memory is attributing to the node. |
double |
getAvailableProcessorWeight()
Get the weight that the available processors are attributing to the node. |
java.util.Date |
getAvailableStartDate()
Get the time when the node will become available. |
java.lang.String |
getBlockReason()
Getter for property BlockReason. |
double |
getChargeRate()
Sets the charge rate for the node. |
java.lang.String |
getComments()
Getter for property Comments. |
java.util.Set<java.lang.String> |
getConfiguredClasses()
Get the classes that are configured for this node. |
double |
getConfiguredDiskWeight()
Get the configured disk usage priority weight reported by the partition that the node is a part of. |
double |
getConfiguredMemoryWeight()
Get the configured memory usage priority weight reported by the partition that the node is a part of. |
double |
getConfiguredProcessorWeight()
Get the configured processor usage priority weight reported by the partition that the node is a part of. |
double |
getConfiguredSwapWeight()
Get the configured swap usage priority weight reported by the partition that the node is a part of. |
int |
getDiskAvailable()
Get the node's available disk space in MB. |
int |
getDiskTotal()
Get the node's total disk space in MB. |
double |
getExternalLoad()
Get The load on the node not attributed to any batch queues. |
java.util.Set<java.lang.String> |
getFeatures()
Get the collection of any opaque node features used to describe and categorize the node. |
java.lang.Integer |
getGenericResourceCount(java.lang.String name)
Gets the count of the generic resource of the specified name. |
java.util.Map<java.lang.String,java.lang.Integer> |
getGenericResources()
Get all generic resources attached to this node. |
java.lang.Double |
getGMetricValue(java.lang.String gMetricName)
Get the value of the generic metric passed in for this node. |
java.lang.String |
getHypervisorType()
Get the hypervisor type of this node. |
double |
getIOLoad()
Get the load reported by the node on its I/O. |
java.util.List<java.lang.String> |
getJobList()
Get The list of jobIDs currently on the node. |
double |
getLoad()
Get the current load of the node as a percentage. |
double |
getLoadWeight()
Get the load priority weight of the node. |
double |
getMaxIOIn()
Get the maximum input as a percentage allowed for the node's I/O. |
double |
getMaxIOLoad()
Get the maximum total load as a percentage allowed for the node's I/O. |
double |
getMaxIOOut()
Get the maximum output as a percentage allowed for the node's I/O. |
int |
getMaxJob()
Get the maximum number of jobs allowed to run on the node. |
int |
getMaxJobPerUser()
Get the maximum number of jobs for a single user allowed to run on the node. |
double |
getMaxLoad()
Get the maximum total load as a percentage allowed on the node. |
double |
getMaxPageIn()
Get the maximum total page in allowed on the node. |
double |
getMaxPageOut()
Get the maximum total page out allowed on the node. |
double |
getMaxPEPerJob()
Get the maximum processor equivalence per job allowed on the node. |
int |
getMaxProc()
Get the maximum number of processors available on the node. |
int |
getMaxProcPerClass()
Get the maximum number of processors per class available on the node. |
int |
getMemoryAvailable()
Get the node's available memory in MB. |
int |
getMemoryTotal()
Get the node's total memory in MB. |
java.lang.String |
getMessages()
Get the list of all messages including generic events. |
java.lang.String |
getNetwork()
Get the name of the node's network. |
double |
getNetworkLoad()
Get the load of the node's network as a percentage. |
java.lang.String |
getNextOS()
If populated, the next operating system that is currently being provisioned. |
NodeAccessPolicy |
getNodeAccessPolicy()
Get the node access policy for the node. |
java.lang.String |
getNodeID()
Get the node's unique identifier. |
java.util.Set<NodeOperation> |
getNodeOperations()
Get the list of operations that can be performed on this node. |
java.lang.String |
getNodeType()
Get the type of the node. |
java.lang.String |
getOs()
Get the operating system of the node. |
java.util.Set<java.lang.String> |
getOsList()
Returns a list of potential operating systems for the node. |
java.lang.String |
getPartition()
Get the partition this node belongs to. |
NodePower |
getPower()
Get the node's power state according to the resource managers reporting this node. |
PowerPolicy |
getPowerPolicy()
Returns the power policy for this node. |
NodePower |
getPowerSelected()
Returns the node's power state that Moab is currently scheduling. |
double |
getPriority()
Get the priority associated with the node. |
PriorityFunction |
getPriorityFunction()
Get the function used to calculate this node's priority. |
int |
getProcessorsAvailable()
Get the node's available processors. |
int |
getProcessorsTotal()
Get the node's total processors. |
int |
getProcSpeed()
Get the node's processor speed in MHz. |
java.util.Date |
getProvisionEndTime()
Returns the estimated end time of provisioning. |
java.util.Date |
getProvisionStartTime()
Returns the date the provisioning started. |
int |
getRack()
Get the node's rack location. |
int |
getReservationCount()
Get the number of reservations on the node. |
java.util.List<java.lang.String> |
getReservationList()
Returns a list of strings representing all reservations on the node. |
java.lang.String |
getReservationListString()
Returns a comma separated String of all reservations on the node. |
java.util.List<Reservation> |
getReservationsOnNode()
Getter for property ReservationsOnNode. |
java.lang.String |
getResources()
Get the list of resources associated with the node. |
java.lang.String |
getRmAccessList()
Get the list of resource managers this node has access to. |
java.lang.String |
getRmList()
Get the list of resource managers associated with this node. |
int |
getSize()
Get the number of slots or size units consumed by the node. |
int |
getSlot()
Get the node's slot location. |
double |
getSpeed()
Get the relative speed of the node. |
double |
getSpeedWeight()
Get the weight given to the node's speed attribute when calculating jobs' priority on the node. |
NodeState |
getState()
Get the node's current state. |
java.lang.String |
getSubstate()
Returns the substate that will give more information about the status of the VM. |
int |
getSwapAvailable()
Get the node's available swap space in MB. |
int |
getSwapTotal()
Get the node's total swap space in MB. |
int |
getTaskCount()
Get the number of tasks currently running on the node. |
long |
getTotalActiveTime()
Get the epoch time in seconds that the node was tracked as being busy with jobs. |
long |
getTotalAvailableTime()
Get the epoch time in seconds that the node is available. |
long |
getTotalStatsTime()
Get the epoch time in seconds that the node was tracked as being up. |
long |
getTotalUpTime()
Get the epoch time in seconds that the node was tracked as being up. |
double |
getUsageWeight()
Get the weight given to the node's speed attribute when calculating jobs' priority on the node. |
VMCollection |
getVms()
Returns the collection of VMs on the node. |
boolean |
isActive()
Returns whether or not a node is active. |
boolean |
isComputeNode()
Determines whether this node is a compute node, as opposed to an abstract or logical node. |
boolean |
isDynamic()
If true, the node is associated with a dynamic resource manager. |
boolean |
isProfilingEnabled()
Returns whether statistical profiling is enabled for this node |
boolean |
isProvisioning()
If the node has a next OS reported, provisioning is occurring. |
void |
removeVM(java.lang.String vmID)
Attempts to remove a VM from the collection. |
void |
setApplStats(java.util.Set<ApplicationStatistics> applStats)
Set the node's application statistics. |
void |
setArchitecture(java.lang.String architecture)
Set the node's processor architecture. |
void |
setAvailableClasses(java.util.Set<java.lang.String> availableClasses)
Set the classes available for this node. |
void |
setAvailableEndDate(java.util.Date avlEndDate)
Sets the end time for the availability for this node. |
void |
setAvailableGenericResource(java.lang.String name,
java.lang.Integer count)
Sets the available generic resource amount for a particular generic resource. |
void |
setAvailableMemoryWeight(double availableMemoryWeight)
Set the weight that the available memory is attributing to the node. |
void |
setAvailableProcessorWeight(double availableProcessorWeight)
Set the weight that the available processors are attributing to the node. |
void |
setAvailableStartDate(java.util.Date avlStartDate)
Set the time when the node will become available. |
void |
setBlockReason(java.lang.String BlockReason)
Setter for property BlockReason. |
void |
setChargeRate(double chargeRate)
Returns the charge rate for the node. |
void |
setComments(java.lang.String Comments)
Setter for property Comments. |
void |
setConfiguredClasses(java.util.Set<java.lang.String> configuredClasses)
Set the configured classes for this node. |
void |
setConfiguredDiskWeight(double configuredDiskWeight)
Set the configured disk usage priority weight reported by the partition that the node is a part of. |
void |
setConfiguredMemoryWeight(double configuredMemoryWeight)
Set the configured memory usage priority weight reported by the partition that the node is a part of. |
void |
setConfiguredProcessorWeight(double configuredProcessorWeight)
Set The configured processor usage priority weight reported by the partition that the node is a part of. |
void |
setConfiguredSwapWeight(double configuredSwapWeight)
Set the configured swap usage priority weight reported by the partition that the node is a part of. |
void |
setDiskAvailable(int diskAvailable)
Set the node's available disk space in MB. |
void |
setDiskTotal(int diskTotal)
Set the node's total disk space in MB. |
void |
setDynamic(boolean isDynamic)
Set if the node is associated with a dynamic resource manager. |
void |
setExternalLoad(double externalLoad)
Set the load on the node not attributed to any batch queues. |
void |
setFeatures(java.util.Set<java.lang.String> features)
Set the collection of any opaque node features used to describe and categorize the node. |
void |
setGenericResource(java.lang.String name,
java.lang.Integer count)
Adds a generic resource to this node with the associated amount. |
void |
setGMetricValue(java.lang.String gMetricName,
java.lang.Double value)
Set the generic metric value for the given generic metric on this node. |
void |
setHypervisorType(java.lang.String hypervisorType)
Set the hypervisor type of this node. |
void |
setIOLoad(double ioLoad)
Set the load reported by the node on its I/O. |
void |
setJobList(java.util.List<java.lang.String> jobList)
Set the list of jobIDs currently on the node. |
void |
setLoad(double load)
Set the current load of the node as a percentage. |
void |
setLoadWeight(double loadWeight)
Set the load priority weight of the node. |
void |
setMaxIOIn(double maxIOIn)
Set the maximum input as a percentage allowed for the node's I/O. |
void |
setMaxIOLoad(double maxIOLoad)
Set the maximum total load as a percentage allowed for the node's I/O. |
void |
setMaxIOOut(double maxIOOut)
Set the maximum output as a percentage allowed for the node's I/O. |
void |
setMaxJob(int maxJob)
Set the maximum number of jobs allowed to run on the node. |
void |
setMaxJobPerUser(int maxJobPerUser)
Set the maximum number of jobs for a single user allowed to run on the node. |
void |
setMaxLoad(double maxLoad)
Set the maximum total load as a percentage allowed on the node. |
void |
setMaxPageIn(double maxPageIn)
Set the maximum total page in allowed on the node. |
void |
setMaxPageOut(double maxPageOut)
Set the maximum total page out allowed on the node. |
void |
setMaxPEPerJob(double maxPEPerJob)
Set the maximum processor equivalence per job allowed on the node. |
void |
setMaxProc(int maxProc)
Set the maximum number of processors available on the node. |
void |
setMaxProcPerClass(int maxProcPerClass)
Set the maximum number of processors per class available on the node. |
void |
setMemoryAvailable(int memoryAvailable)
Set the node's available memory in MB. |
void |
setMemoryTotal(int memoryTotal)
Set the node's total memory in MB. |
void |
setMessages(java.lang.String value)
Sets the messages that belong to this node. |
void |
setNetwork(java.lang.String network)
Set the name of the node's network. |
void |
setNetworkLoad(double networkLoad)
Set the load of the node's network as a percentage. |
void |
setNextOS(java.lang.String nextOS)
If populated, the next operating system that is currently being provisioned. |
void |
setNodeAccessPolicy(NodeAccessPolicy nodeAccessPolicy)
Set the node access policy for the node. |
void |
setNodeID(java.lang.String nodeID)
Set the unique node ID for this MoabNode. |
void |
setNodeOperations(java.util.Set<NodeOperation> nodeOperations)
Set the list of operations that can be performed on this node. |
void |
setNodePower(NodePower power)
Set the node's power state according to the resource managers reporting this node. |
void |
setNodeType(java.lang.String nodeType)
Set the type of the node. |
void |
setOs(java.lang.String os)
Set the operating system for this node. |
void |
setOsList(java.util.Set<java.lang.String> osList)
Sets the list of potential operating systems for the node. |
void |
setPartition(java.lang.String partition)
Get the partition this node belongs to. |
void |
setPowerPolicy(PowerPolicy powerPolicy)
Sets the power policy for this node. |
void |
setPowerSelected(NodePower powerSelected)
Sets the node's power state that Moab is currently scheduling. |
void |
setPriority(double priority)
Set the priority associated with the node. |
void |
setPriorityFunction(PriorityFunction function)
Set the function used to calculate this node's priority. |
void |
setProcessorsAvailable(int processorsAvailable)
Set the node's available processors. |
void |
setProcessorsTotal(int processorsTotal)
Set the node's total processors. |
void |
setProcSpeed(int procSpeed)
Set the node's processor speed in MHz. |
void |
setProfilingEnabled(boolean enabled)
Sets whether statistical profiling is enabled for this node |
void |
setProvisionEndTime(java.util.Date provisionEndTime)
Sets the estimated end time of provisioning. |
void |
setProvisionStartTime(java.util.Date provisionStartTime)
Sets the date the provisioning started. |
void |
setRack(int rack)
Set the node's rack location. |
void |
setReservationCount(int reservationCount)
Set the number of reservations on the node. |
void |
setReservationList(java.util.List<java.lang.String> reservationList)
Sets the list of reservations' names on the node. |
void |
setReservations(java.util.List<Reservation> reservations)
Setter for property ReservationsOnNode. |
void |
setResources(java.lang.String value)
Set the list of resources associated with the node. |
void |
setRmAccessList(java.lang.String value)
Set the list of resource managers this node has access to. |
void |
setRmList(java.lang.String value)
Set the list of resource managers associated with this node. |
void |
setSize(int size)
Set the number of slots or size units consumed by the node. |
void |
setSlot(int slot)
Set the node's slot location. |
void |
setSpeed(double speed)
The relative speed of the node. |
void |
setSpeedWeight(double speedWeight)
Set the weight given to the node's speed attribute when calculating jobs' priority on the node. |
void |
setState(NodeState state)
Set the node's current state. |
void |
setSubstate(java.lang.String substate)
Sets the substate that will give more information about the status of the VM. |
void |
setSwapAvailable(int swapAvailable)
Set the node's available swap space in MB. |
void |
setSwapTotal(int swapTotal)
Set the node's total swap space in MB. |
void |
setTaskCount(int taskCount)
Set the number of tasks currently running on the node. |
void |
setTotalActiveTime(long totalActiveTime)
Set the epoch time in seconds that the node was tracked as being busy with jobs. |
void |
setTotalAvailableTime(long totalAvailableTime)
Set the epoch time in seconds that the node is available. |
void |
setTotalStatsTime(long totalStatsTime)
Set the epoch time in seconds that stats have been tracked for the node. |
void |
setTotalUpTime(long totalUpTime)
Set the epoch time in seconds that the node was tracked as being up. |
void |
setUsageWeight(double usageWeight)
Set the weight given to the node's speed attribute when calculating jobs' priority on the node. |
void |
setVms(VMCollection vms)
Sets the collection of VMs on the node. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.util.List<java.lang.String> gMetricNames
public static java.util.List<java.lang.String> gResourcesNames
Constructor Detail |
---|
public MoabNode()
Method Detail |
---|
public void addApplicationStatistics(ApplicationStatistics stats)
applStats
list. This
list contains all the applications and their individual statistics for
this node.
stats
- the Application Statistics to add to the node.public void addComment(java.lang.String comment)
comment
- The new comment to add.public void addVM(VM vm)
vm
- the VM to add to the collection.public int compareTo(MoabNode o)
compareTo
in interface java.lang.Comparable<MoabNode>
public boolean equals(MoabNode other)
public java.util.Set<ApplicationStatistics> getApplStats()
null
.
public java.lang.String getArchitecture()
null
.
public java.util.Set<java.lang.String> getAvailableClasses()
null
.
public java.util.Date getAvailableEndDate()
null
.
public java.lang.Integer getAvailableGenericResource(java.lang.String name)
name
- The name of the generic resource.
public java.util.Map<java.lang.String,java.lang.Integer> getAvailableGenericResources()
public double getAvailableMemoryWeight()
public double getAvailableProcessorWeight()
public java.util.Date getAvailableStartDate()
null
.
null
.public java.lang.String getBlockReason()
public java.lang.String getComments()
public java.util.Set<java.lang.String> getConfiguredClasses()
null
.
public double getConfiguredDiskWeight()
public double getConfiguredMemoryWeight()
public double getConfiguredProcessorWeight()
public double getConfiguredSwapWeight()
public int getDiskAvailable()
public int getDiskTotal()
public double getExternalLoad()
public java.util.Set<java.lang.String> getFeatures()
null
.
null
.public java.lang.Integer getGenericResourceCount(java.lang.String name)
name
- The name of the generic resource.
public java.util.Map<java.lang.String,java.lang.Integer> getGenericResources()
public java.lang.Double getGMetricValue(java.lang.String gMetricName)
gMetricName
- The name of the generic metric that we will get the value for.
For example "power", would be the name of the generic resource
that reports power usage.
public double getIOLoad()
public java.util.List<java.lang.String> getJobList()
public double getLoad()
public double getLoadWeight()
public double getMaxIOIn()
public double getMaxIOLoad()
public double getMaxIOOut()
public int getMaxJob()
public int getMaxJobPerUser()
public double getMaxLoad()
public double getMaxPageIn()
public double getMaxPageOut()
public double getMaxPEPerJob()
public int getMaxProc()
public int getMaxProcPerClass()
public int getMemoryAvailable()
public int getMemoryTotal()
public java.lang.String getMessages()
public java.lang.String getNetwork()
public double getNetworkLoad()
public java.lang.String getNextOS()
public NodeAccessPolicy getNodeAccessPolicy()
public java.lang.String getNodeID()
public java.lang.String getNodeType()
public java.lang.String getOs()
public java.util.Set<java.lang.String> getOsList()
Returns a list of potential operating systems for the node.
Can be null.
public java.lang.String getPartition()
public NodePower getPower()
public PowerPolicy getPowerPolicy()
public NodePower getPowerSelected()
public double getPriority()
public PriorityFunction getPriorityFunction()
public int getProcessorsAvailable()
public int getProcessorsTotal()
public int getProcSpeed()
public java.util.Date getProvisionEndTime()
public java.util.Date getProvisionStartTime()
public int getRack()
public int getReservationCount()
public java.util.List<java.lang.String> getReservationList()
Returns a list of strings representing all reservations on the node.
If no reservations are found on the node, null is returned.
public java.lang.String getReservationListString()
Returns a comma separated String of all reservations on the node.
If no reservations are found on the node, null is returned.
public java.util.List<Reservation> getReservationsOnNode()
public java.lang.String getResources()
public java.lang.String getRmAccessList()
public java.lang.String getRmList()
public int getSize()
public int getSlot()
public double getSpeed()
public double getSpeedWeight()
public NodeState getState()
public java.lang.String getSubstate()
Returns the substate that will give more information about the status of the VM.
Can be null.
public int getSwapAvailable()
public int getSwapTotal()
public int getTaskCount()
public long getTotalActiveTime()
public long getTotalAvailableTime()
public long getTotalStatsTime()
public long getTotalUpTime()
public double getUsageWeight()
public VMCollection getVms()
Returns the collection of VMs on the node.
Can be null.
public boolean isActive()
public boolean isComputeNode()
Determines whether this node is a compute node, as opposed to an abstract or logical node. Moab uses logical nodes to organize concepts like generic resources.
Other types of nodes include storage nodes and network nodes.
public boolean isDynamic()
public boolean isProfilingEnabled()
public boolean isProvisioning()
public void removeVM(java.lang.String vmID)
vmID
- the ID of the VM to be removed.public void setApplStats(java.util.Set<ApplicationStatistics> applStats)
null
.
applStats
- The node's application statistics.public void setArchitecture(java.lang.String architecture)
null
.
architecture
- the node's processor architecture.public void setAvailableClasses(java.util.Set<java.lang.String> availableClasses)
null
.
availableClasses
- the classes available for this nodepublic void setAvailableEndDate(java.util.Date avlEndDate)
null
.
avlEndDate
- the end time for the availability for this node.public void setAvailableGenericResource(java.lang.String name, java.lang.Integer count)
name
- A String representing the generic resource name.count
- The number of resources this node has available. Can be set to
null.public void setAvailableMemoryWeight(double availableMemoryWeight)
availableMemoryWeight
- the weight that the available memory is attributing to the
node.public void setAvailableProcessorWeight(double availableProcessorWeight)
availableProcessorWeight
- The weight that the available processors are attributing to
the node.public void setAvailableStartDate(java.util.Date avlStartDate)
null
.
avlStartTime
- The time when the node will become available. Can be
null
.public void setBlockReason(java.lang.String BlockReason)
BlockReason
- New value of property BlockReason.public void setComments(java.lang.String Comments)
Comments
- New value of property Comments.public void setConfiguredClasses(java.util.Set<java.lang.String> configuredClasses)
configuredClasses
- the configured classes for this node.public void setConfiguredDiskWeight(double configuredDiskWeight)
configuredDiskWeight
- The configured disk usage priority weight reported by the
partition that the node is a part of.public void setConfiguredMemoryWeight(double configuredMemoryWeight)
configuredMemoryWeight
- The configured memory usage priority weight reported by the
partition that the node is a part of.public void setConfiguredProcessorWeight(double configuredProcessorWeight)
configuredProcessorWeight
- The configured processor usage priority weight reported by the
partition that the node is a part of.public void setConfiguredSwapWeight(double configuredSwapWeight)
configuredSwapWeight
- The configured swap usage priority weight reported by the
partition that the node is a part of.public void setDiskAvailable(int diskAvailable)
diskAvailable
- The node's available disk space in MB.public void setDiskTotal(int diskTotal)
diskTotal
- The node's total disk space in MB.public void setDynamic(boolean isDynamic)
isDynamic
- If true, the node is associated with a dynamic resource
manager.public void setExternalLoad(double externalLoad)
externalLoad
- The load on the node not attributed to any batch queues.public void setFeatures(java.util.Set<java.lang.String> features)
null
.
features
- The collection of any opaque node features used to describe
and categorize the node. Can be null
.public void setGenericResource(java.lang.String name, java.lang.Integer count)
name
- A String representing the generic resource name.count
- (Optional) The number of resources this node contains. Can be
set to null.public void setGMetricValue(java.lang.String gMetricName, java.lang.Double value)
gMetricName
- The name of the generic metric to set. For example "power" or
"temp"value
- The value for this generic metric, Can be null
.public void setIOLoad(double ioLoad)
ioLoad
- The load reported by the node on its I/O.public void setJobList(java.util.List<java.lang.String> jobList)
jobList
- The list of jobIDs currently on the node.public void setLoad(double load)
load
- The current load of the node as a percentage.public void setLoadWeight(double loadWeight)
loadWeight
- The load priority weight of the node.public void setMaxIOIn(double maxIOIn)
maxIOIn
- The maximum input as a percentage allowed for the node's I/O.public void setMaxIOLoad(double maxIOLoad)
maxIOLoad
- The maximum total load as a percentage allowed for the node's
I/O.public void setMaxIOOut(double maxIOOut)
maxIOOut
- The maximum output as a percentage allowed for the node's I/O.public void setMaxJob(int maxJob)
maxJob
- The maximum number of jobs allowed to run on the node.public void setMaxJobPerUser(int maxJobPerUser)
maxJobPerUser
- The maximum number of jobs for a single user allowed to run on
the node.public void setMaxLoad(double maxLoad)
maxLoad
- The maximum total load as a percentage allowed on the node.public void setMaxPageIn(double maxPageIn)
maxPageIn
- The maximum total page in allowed on the node.public void setMaxPageOut(double maxPageOut)
maxPageOut
- The maximum total page out allowed on the node.public void setMaxPEPerJob(double maxPEPerJob)
maxPEPerJob
- The maximum processor equivalence per job allowed on the node.public void setMaxProc(int maxProc)
maxProc
- The maximum number of processors available on the node.public void setMaxProcPerClass(int maxProcPerClass)
maxProcPerClass
- The maximum number of processors per class available on the
node.public void setMemoryAvailable(int memoryAvailable)
memoryAvailable
- The node's available memory in MB.public void setMemoryTotal(int memoryTotal)
memoryTotal
- The node's total memory in MB.public void setMessages(java.lang.String value)
value
- the messages that belong to this node.public void setNetwork(java.lang.String network)
network
- The name of the node's network.public void setNetworkLoad(double networkLoad)
networkLoad
- The load of the node's network as a percentage.public void setNextOS(java.lang.String nextOS)
nextOS
- the next OS being provisioned to. If null, no OS is being
provisioned.public void setNodeAccessPolicy(NodeAccessPolicy nodeAccessPolicy)
nodeAccessPolicy
- The node access policy for the node. The default value is
null.public void setNodeID(java.lang.String nodeID)
nodeID
- the unique node ID.public void setNodePower(NodePower power)
power
- The node's power state according to the resource managers
reporting this node.public void setNodeType(java.lang.String nodeType)
nodeType
- The type of the node. This is used for allocation management
purposes.public void setOs(java.lang.String os)
os
- the operating system for this node.public void setOsList(java.util.Set<java.lang.String> osList)
Sets the list of potential operating systems for the node.
Can be null.
osList
- the list of potential operating systems for the node.public void setPartition(java.lang.String partition)
partition
- The partition this node belongs to.public void setPowerPolicy(PowerPolicy powerPolicy)
Sets the power policy for this node.
Cannot be null.
powerPolicy
- the power policy for this node.public void setPowerSelected(NodePower powerSelected)
powerSelected
- the node's power state that Moab is currently scheduling.public void setPriority(double priority)
priority
- The priority associated with the node.public void setPriorityFunction(PriorityFunction function)
function
- The function used to calculate this node's priority.public void setProcessorsAvailable(int processorsAvailable)
processorsAvailable
- The node's available processors.public void setProcessorsTotal(int processorsTotal)
processorsTotal
- The node's total processors.public void setProcSpeed(int procSpeed)
procSpeed
- The node's processor speed in MHz.public void setProfilingEnabled(boolean enabled)
public void setProvisionEndTime(java.util.Date provisionEndTime)
provisionEndTime
- the estimated end time of provisioning.public void setProvisionStartTime(java.util.Date provisionStartTime)
provisionStartTime
- the date the provisioning started.public void setRack(int rack)
rack
- The node's rack location.public void setReservationCount(int reservationCount)
reservationCount
- The number of reservations on the node.public void setReservationList(java.util.List<java.lang.String> reservationList)
reservationList
- the list of reservations' names on the node.public void setReservations(java.util.List<Reservation> reservations)
reservations
- New value of property ReservationsOnNode.public void setResources(java.lang.String value)
value
- The list of resources associated with the node.public void setRmAccessList(java.lang.String value)
value
- The list of resource managers this node has access to.public void setRmList(java.lang.String value)
value
- The list of resource managers associated with this node.public void setSize(int size)
size
- The number of slots or size units consumed by the node.public void setSlot(int slot)
slot
- The node's slot location.public void setSpeed(double speed)
speed
- The relative speed of the node. The speed must be between .1
and 100.0.public void setSpeedWeight(double speedWeight)
speedWeight
- The weight given to the node's speed attribute when
calculating jobs' priority on the node.public void setState(NodeState state)
state
- The node's current state.public void setSubstate(java.lang.String substate)
Sets the substate that will give more information about the status of the VM.
Can be null.
substate
- the substate that will give more information about the status
of the VM.public void setSwapAvailable(int swapAvailable)
swapAvailable
- The node's available swap space in MB.public void setSwapTotal(int swapTotal)
swapTotal
- The node's total swap space in MB.public void setTaskCount(int taskCount)
taskCount
- The number of tasks currently running on the node.public void setTotalActiveTime(long totalActiveTime)
totalActiveTime
- The epoch time in seconds that the node was tracked as being
busy with jobs.public void setTotalAvailableTime(long totalAvailableTime)
totalAvailableTime
- The epoch time in seconds that the node is available.public void setTotalStatsTime(long totalStatsTime)
totalStatsTime
- The epoch time in seconds that stats have been tracked for the
node.public void setTotalUpTime(long totalUpTime)
totalUpTime
- The epoch time in seconds that the node was tracked as being
up.public void setUsageWeight(double usageWeight)
usageWeight
- The weight given to the node's speed attribute when
calculating jobs' priority on the node.public void setVms(VMCollection vms)
Sets the collection of VMs on the node.
Can be null.
vms
- the collection of VMs on the node.public void setHypervisorType(java.lang.String hypervisorType)
hypervisorType
- the hypervisor type of this nodepublic java.lang.String getHypervisorType()
public void setNodeOperations(java.util.Set<NodeOperation> nodeOperations)
nodeOperations
- The list of operations that can be performed on this node.public java.util.Set<NodeOperation> getNodeOperations()
public java.lang.String toString()
toString
in class java.lang.Object
public double getChargeRate()
Sets the charge rate for the node.
Using allocation management and charging policies, this rate will be accounted for when the node is used by a charged job.
public void setChargeRate(double chargeRate)
Returns the charge rate for the node.
Using allocation management and charging policies, this rate will be accounted for when the node is used by a charged job.
chargeRate
- the charge rate of the node.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |