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 String |
mContact
The contact string for the grid gateway.
|
private 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 String |
mOSRelease
Optional information about the os release.
|
private 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,
String contact,
GridGateway.SCHEDULER_TYPE scheduler)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns the clone of the object.
|
SysInfo.Architecture |
getArchitecture()
Returns the architecture of the nodes that this grid gateway talks to.
|
String |
getContact()
Returns the contact string for the Grid gateway
|
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.
|
String |
getOSRelease()
Returns the OS release of the site.
|
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 jobs that run via this grid gateway.
|
void |
setArchitecture(SysInfo.Architecture arch)
Sets the architecture of the nodes that this grid gateway talks to.
|
void |
setContact(String contact)
Sets the contact string for the Grid gateway
|
void |
setGlibc(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(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(String release)
Sets the OS release of the site.
|
void |
setOSVersion(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(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(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(Writer writer,
String indent)
Writes out the xml description of the object.
|
toString, toXML, writeAttribute
private GridGateway.TYPE mType
private String mContact
private GridGateway.SCHEDULER_TYPE mScheduler
private GridGateway.JOB_TYPE mJobType
private SysInfo.OS mOS
private SysInfo.Architecture mArch
private String mOSRelease
private String mOSVersion
private String mGlibc
private int mIdleNodes
private int mTotalNodes
public GridGateway()
public GridGateway(GridGateway.TYPE type, 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(String contact)
contact
- the contact stringpublic String getContact()
public void setTotalNodes(String num)
num
- the number of nodes.public void setTotalNodes(int num)
num
- the number of nodes.public int getTotalNodes()
public void setIdleNodes(String num)
num
- the number of nodes.public void setIdleNodes(int num)
num
- the number of nodes.public int getIdleNodes()
public void setScheduler(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(String release)
release
- the os releaseof the site.public String getOSRelease()
public void setOSVersion(String version)
version
- the os versionof the site.public String getOSVersion()
public void setGlibc(String version)
version
- the glibc version of the site.public String getGlibc()
public void setArchitecture(SysInfo.Architecture arch)
arch
- the architecture of the nodespublic SysInfo.Architecture getArchitecture()
public void toXML(Writer writer, String indent) throws 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.IOException
- if something fishy happens to the stream.public Object clone()
clone
in class AbstractSiteData
Copyright © 2011 The University of Southern California. All Rights Reserved.