|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.vdl.Chimera
edu.isi.pegasus.planner.invocation.Invocation
edu.isi.pegasus.planner.invocation.Machine
public class Machine
The Machine element groups a time stamp, the page size, the generic utsname information, and a machine-specific content collecting element.
| Field Summary | |
|---|---|
static String |
ELEMENT_NAME
element name |
private long |
m_pagesize
The only attribute to the machine element is required. |
private MachineSpecific |
m_specific
This is a grouping element for the remaining machine-specific items. |
private Stamp |
m_stamp
The time when the snapshot was taken. |
private Uname |
m_uname
The uname child element is mandatory. |
| Constructor Summary | |
|---|---|
Machine()
Default constructor. |
|
| Method Summary | |
|---|---|
String |
getElementName()
Returns the name of the xml element corresponding to the object. |
MachineSpecific |
getMachineSpecific()
Obtains the machine-specific grouping element. |
long |
getPageSize()
Obtains the page size information. |
Stamp |
getStamp()
Obtains the time stamp information when the remote machine element was recorded. |
Uname |
getUname()
Obtains the utsname generic system information record. |
void |
setMachineSpecific(MachineSpecific m)
Sets the machine-specific grouping element. |
void |
setPageSize(long size)
Sets the page size. |
void |
setStamp(Stamp stamp)
Sets the time stamp when the machine info was obtained. |
void |
setUname(Uname uname)
Sets the utsname generic system information record. |
void |
toString(Writer stream)
Converts the active state into something meant for human consumption. |
void |
toXML(Writer stream,
String indent,
String namespace)
Dump the state of the current element as XML output. |
| Methods inherited from class org.griphyn.vdl.Chimera |
|---|
escape, quote, toString, toXML, toXML, writeAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ELEMENT_NAME
private long m_pagesize
private Stamp m_stamp
private Uname m_uname
private MachineSpecific m_specific
| Constructor Detail |
|---|
public Machine()
| Method Detail |
|---|
public void setPageSize(long size)
size - is the remote page size in byte.public long getPageSize()
public void setStamp(Stamp stamp)
stamp - is the time stamppublic Stamp getStamp()
public void setUname(Uname uname)
uname - is the utsname recordpublic Uname getUname()
public void setMachineSpecific(MachineSpecific m)
m - is the machine specific grouping elementpublic MachineSpecific getMachineSpecific()
public String getElementName()
public void toString(Writer stream)
throws IOException
toString in class org.griphyn.vdl.Chimerastream - is a stream opened and ready for writing. This can also
be a string stream for efficient output.
IOException - if something fishy happens to the stream.
public void toXML(Writer stream,
String indent,
String namespace)
throws IOException
toXML in class org.griphyn.vdl.Chimerastream - is a stream opened and ready for writing. This can also
be a string stream for efficient output.indent - is a String of spaces used for pretty
printing. The initial amount of spaces should be an empty string.
The parameter is used internally for the recursive traversal.
If a null value is specified, no indentation nor
linefeeds will be generated.namespace - is the XML schema namespace prefix. If neither
empty nor null, each element will be prefixed with this prefix,
and the root element will map the XML namespace.
IOException - if something fishy happens to the stream.BufferedWriter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||