public class GridGateway extends AbstractSiteData
Modifier and Type | Class and Description |
---|---|
static class |
GridGateway.JOB_TYPE
An enumeration of types of jobs handled by an instance of a grid gateway.
|
static class |
GridGateway.SCHEDULER_TYPE
An enumeration of valid schedulers on the grid gateway.
|
static class |
GridGateway.TYPE
An enumeration of valid types of grid gateway.
|
Modifier and Type | Field and Description |
---|---|
private SysInfo.Architecture |
mArch
An optional architecture type for the grid gateway.
|
private java.lang.String |
mContact
The contact string for the grid gateway.
|
private java.lang.String |
mGlibc
Optional information about the glibc.
|
private int |
mIdleNodes
The number of idle nodes.
|
private GridGateway.JOB_TYPE |
mJobType
The type of jobs that this grid gateway can accept.
|
private SysInfo.OS |
mOS
An optional os type for the grid gateway.
|
private java.lang.String |
mOSRelease
Optional information about the os release.
|
private java.lang.String |
mOSVersion
Optional information about the version.
|
private GridGateway.SCHEDULER_TYPE |
mScheduler
The scheduler type with which it interfaces.
|
private int |
mTotalNodes
The number of total nodes
|
private GridGateway.TYPE |
mType
The grid type associated with this instance.
|
Constructor and Description |
---|
GridGateway()
The default constructor.
|
GridGateway(GridGateway.TYPE type,
java.lang.String contact,
GridGateway.SCHEDULER_TYPE scheduler)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(SiteDataVisitor visitor)
Accepts a Site Data Visitor
|
java.lang.Object |
clone()
Returns the clone of the object.
|
SysInfo.Architecture |
getArchitecture()
Returns the architecture of the nodes that this grid gateway talks to.
|
java.lang.String |
getContact()
Returns the contact string for the Grid gateway
|
java.lang.String |
getGlibc()
Returns the glibc version of the site.
|
int |
getIdleNodes()
Returns the total number of nodes that this grid gateway talks to.
|
GridGateway.JOB_TYPE |
getJobType()
Returns the type of jobs that run via this grid gateway.
|
SysInfo.OS |
getOS()
Returns the OS of the nodes that this grid gateway talks to.
|
java.lang.String |
getOSRelease()
Returns the OS release of the site.
|
java.lang.String |
getOSVersion()
Returns the OS version of the site.
|
GridGateway.SCHEDULER_TYPE |
getScheduler()
Returns the the underlying scheduler that gateway talks to.
|
int |
getTotalNodes()
Returns the total number of nodes that this grid gateway talks to.
|
GridGateway.TYPE |
getType()
Returns the type of this grid gateway.
|
void |
setArchitecture(SysInfo.Architecture arch)
Sets the architecture of the nodes that this grid gateway talks to.
|
void |
setContact(java.lang.String contact)
Sets the contact string for the Grid gateway
|
void |
setGlibc(java.lang.String version)
Sets the glibc version on the site.
|
void |
setIdleNodes(int num)
Sets the number of idle nodes that this grid gateway talks to.
|
void |
setIdleNodes(java.lang.String num)
Sets the number of idle nodes that this grid gateway talks to.
|
void |
setJobType(GridGateway.JOB_TYPE type)
Sets the type of jobs that run via this grid gateway.
|
void |
setOS(SysInfo.OS os)
Sets the OS of the nodes that this grid gateway talks to.
|
void |
setOSRelease(java.lang.String release)
Sets the OS release of the site.
|
void |
setOSVersion(java.lang.String version)
Sets the OS version of the site.
|
void |
setScheduler(GridGateway.SCHEDULER_TYPE scheduler)
Sets the the underlying scheduler that gateway talks to.
|
void |
setScheduler(java.lang.String value)
Sets the the underlying scheduler that gateway talks to.
|
void |
setTotalNodes(int num)
Sets the total number of nodes that this grid gateway talks to.
|
void |
setTotalNodes(java.lang.String num)
Sets the number of total nodes that this grid gateway talks to.
|
void |
setType(GridGateway.TYPE type)
Sets the type of grid gateway.
|
void |
toXML(java.io.Writer writer,
java.lang.String indent)
Writes out the xml description of the object.
|
toString, toXML, writeAttribute
private GridGateway.TYPE mType
private java.lang.String mContact
private GridGateway.SCHEDULER_TYPE mScheduler
private GridGateway.JOB_TYPE mJobType
private SysInfo.OS mOS
private SysInfo.Architecture mArch
private java.lang.String mOSRelease
private java.lang.String mOSVersion
private java.lang.String mGlibc
private int mIdleNodes
private int mTotalNodes
public GridGateway()
public GridGateway(GridGateway.TYPE type, java.lang.String contact, GridGateway.SCHEDULER_TYPE scheduler)
type
- the type of grid gateway.contact
- the contact string for it.scheduler
- the underlying scheduler that it talks to.public void setJobType(GridGateway.JOB_TYPE type)
type
- the job type.public GridGateway.JOB_TYPE getJobType()
public void setType(GridGateway.TYPE type)
type
- the gateway type.public GridGateway.TYPE getType()
public void setContact(java.lang.String contact)
contact
- the contact stringpublic java.lang.String getContact()
public void setTotalNodes(java.lang.String num)
num
- the number of nodes.public void setTotalNodes(int num)
num
- the number of nodes.public int getTotalNodes()
public void setIdleNodes(java.lang.String num)
num
- the number of nodes.public void setIdleNodes(int num)
num
- the number of nodes.public int getIdleNodes()
public void setScheduler(java.lang.String value)
value
- the string valueGridGateway.SCHEDULER_TYPE
public void setScheduler(GridGateway.SCHEDULER_TYPE scheduler)
scheduler
- the scheduler.public GridGateway.SCHEDULER_TYPE getScheduler()
public void setOS(SysInfo.OS os)
os
- the ospublic SysInfo.OS getOS()
public void setOSRelease(java.lang.String release)
release
- the os releaseof the site.public java.lang.String getOSRelease()
public void setOSVersion(java.lang.String version)
version
- the os versionof the site.public java.lang.String getOSVersion()
public void setGlibc(java.lang.String version)
version
- the glibc version of the site.public java.lang.String getGlibc()
public void setArchitecture(SysInfo.Architecture arch)
arch
- the architecture of the nodespublic SysInfo.Architecture getArchitecture()
public void toXML(java.io.Writer writer, java.lang.String indent) throws java.io.IOException
toXML
in class AbstractSiteData
writer
- is a Writer opened and ready for writing. This can also
be a StringWriter for efficient output.indent
- the indent to be used.java.io.IOException
- if something fishy happens to the stream.public java.lang.Object clone()
clone
in class AbstractSiteData
public void accept(SiteDataVisitor visitor) throws java.io.IOException
accept
in class AbstractSiteData
visitor
- java.io.IOException
- if something fishy happens to the stream.