public class Machine extends Invocation
Modifier and Type | Field and Description |
---|---|
static java.lang.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 and Description |
---|
Machine()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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(java.io.Writer stream)
Converts the active state into something meant for human consumption.
|
void |
toXML(java.io.Writer stream,
java.lang.String indent,
java.lang.String namespace)
Dump the state of the current element as XML output.
|
public static final java.lang.String ELEMENT_NAME
private long m_pagesize
private Stamp m_stamp
private Uname m_uname
private MachineSpecific m_specific
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 java.lang.String getElementName()
public void toString(java.io.Writer stream) throws java.io.IOException
toString
in class org.griphyn.vdl.Chimera
stream
- is a stream opened and ready for writing. This can also
be a string stream for efficient output.java.io.IOException
- if something fishy happens to the stream.public void toXML(java.io.Writer stream, java.lang.String indent, java.lang.String namespace) throws java.io.IOException
toXML
in class org.griphyn.vdl.Chimera
stream
- 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.java.io.IOException
- if something fishy happens to the stream.BufferedWriter