Groovy Documentation

com.ace.mws.plugins
[Java] Class ReportResource

java.lang.Object
  com.ace.mws.plugins.ReportResource

public class ReportResource
extends Object

Signifies a single resource definition in Moab Workload Manager, including both the getTotal() and getAvailable() resources.

Authors:
bsaville


Field Summary
private Integer available

private Integer total

 
Constructor Summary
ReportResource()

 
Method Summary
Integer getAvailable()

Retrieves the available amount of this resource.

Integer getTotal()

Retrieves the total amount of this resource.

void setAvailable(Integer available)

Sets the available amount of this resource.

void setTotal(Integer total)

Sets the total amount of this resource.

String toString()

Returns the available and total amounts as a string, such as "[available:1, total:3]".

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

available

private Integer available


total

private Integer total


 
Constructor Detail

ReportResource

ReportResource()


 
Method Detail

getAvailable

public Integer getAvailable()
Retrieves the available amount of this resource.
Returns:
The current value


getTotal

public Integer getTotal()
Retrieves the total amount of this resource.
Returns:
The current value


setAvailable

public void setAvailable(Integer available)
Sets the available amount of this resource.
Parameters:
available - The value to set


setTotal

public void setTotal(Integer total)
Sets the total amount of this resource.
Parameters:
total - The value to set


toString

de
	public
public String toString()
Returns the available and total amounts as a string, such as "[available:1, total:3]".
Returns:
The total and available amounts in a human-readable string


 

Groovy Documentation