Class Architecture
- java.lang.Object
-
- org.griphyn.vdl.Chimera
-
- edu.isi.pegasus.planner.invocation.Invocation
-
- edu.isi.pegasus.planner.invocation.Architecture
-
- All Implemented Interfaces:
HasText,java.io.Serializable
public class Architecture extends Invocation implements HasText
This class is transient for XML parsing. The data value will be incorporated into the job classes.- Version:
- $Revision$
- Author:
- Jens-S. Vöckler, Yong Zhao
- See Also:
StatCall, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringm_archmodeDescribes the architecture runtime mode.private java.lang.Stringm_domainnameContains the optional domain name on the network.private java.lang.Stringm_machineContains the machine's hardware description.private java.lang.Stringm_nodenameDescribes the machine's network node hostname.private java.lang.Stringm_releaseContains the operating system's version string.private java.lang.Stringm_sysnameDescribes the operating system name.private java.lang.StringBufferm_valueThis is the data contained between the tags.
-
Constructor Summary
Constructors Constructor Description Architecture()Default c'tor: Construct a hollow shell and allow further information to be added later.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendValue(java.lang.String fragment)Appends a piece of text to the existing text.java.lang.StringgetArchMode()Accessorjava.lang.StringgetDomainName()Accessorjava.lang.StringgetMachine()Accessorjava.lang.StringgetNodeName()Accessorjava.lang.StringgetRelease()Accessorjava.lang.StringgetSystemName()Accessorjava.lang.StringgetValue()Accessorprivate java.lang.Stringmyquote(java.lang.String s)Quotes an input string for XML attributes while converting nulls.voidnormalize()Normalizes a misconfigured nodename that contains a domainname.voidsetArchMode(java.lang.String archmode)Accessor.voidsetDomainName(java.lang.String domainname)Accessor.voidsetMachine(java.lang.String machine)Accessor.voidsetNodeName(java.lang.String nodename)Accessor.voidsetRelease(java.lang.String release)Accessor.voidsetSystemName(java.lang.String sysname)Accessor.voidsetValue(java.lang.String value)Accessor.voidtoString(java.io.Writer stream)Converts the active state into something meant for human consumption.voidtoXML(java.io.Writer stream, java.lang.String indent, java.lang.String namespace)Dump the state of the current element as XML output.
-
-
-
Field Detail
-
m_value
private java.lang.StringBuffer m_value
This is the data contained between the tags. Anullvalue is not valid.
-
m_archmode
private java.lang.String m_archmode
Describes the architecture runtime mode. For instance, on a SPARC can run in ILP32 or LP64 mode, an IA64 may have a backward-compatible 32bit mode (IA32), etc.
-
m_sysname
private java.lang.String m_sysname
Describes the operating system name. For instance: linux, sunos, ...
-
m_nodename
private java.lang.String m_nodename
Describes the machine's network node hostname. Note that incorrect host setup may include the domainname into this.
-
m_release
private java.lang.String m_release
Contains the operating system's version string.
-
m_machine
private java.lang.String m_machine
Contains the machine's hardware description. For instance: i686, sun4u, ...
-
m_domainname
private java.lang.String m_domainname
Contains the optional domain name on the network. Note that incorrect setup of the host name may contain the domain portion there.
-
-
Method Detail
-
appendValue
public void appendValue(java.lang.String fragment)
Appends a piece of text to the existing text.- Specified by:
appendValuein interfaceHasText- Parameters:
fragment- is a piece of text to append to existing text. Appendingnullis a noop.
-
getArchMode
public java.lang.String getArchMode()
Accessor- See Also:
setArchMode(String)
-
setArchMode
public void setArchMode(java.lang.String archmode)
Accessor.- Parameters:
archmode-- See Also:
getArchMode()
-
getValue
public java.lang.String getValue()
Accessor- Specified by:
getValuein interfaceHasText- See Also:
setValue(String)
-
setValue
public void setValue(java.lang.String value)
Accessor.- Specified by:
setValuein interfaceHasText- Parameters:
value- is the new value to set.- See Also:
getValue()
-
getSystemName
public java.lang.String getSystemName()
Accessor- See Also:
setSystemName(String)
-
setSystemName
public void setSystemName(java.lang.String sysname)
Accessor.- Parameters:
sysname-- See Also:
getSystemName()
-
getNodeName
public java.lang.String getNodeName()
Accessor- See Also:
setNodeName(String)
-
setNodeName
public void setNodeName(java.lang.String nodename)
Accessor.- Parameters:
nodename-- See Also:
getNodeName()
-
getRelease
public java.lang.String getRelease()
Accessor- See Also:
setRelease(String)
-
setRelease
public void setRelease(java.lang.String release)
Accessor.- Parameters:
release-- See Also:
getRelease()
-
getDomainName
public java.lang.String getDomainName()
Accessor- See Also:
setDomainName(String)
-
setDomainName
public void setDomainName(java.lang.String domainname)
Accessor.- Parameters:
domainname-- See Also:
getDomainName()
-
getMachine
public java.lang.String getMachine()
Accessor- See Also:
setMachine(String)
-
setMachine
public void setMachine(java.lang.String machine)
Accessor.- Parameters:
machine-- See Also:
getMachine()
-
normalize
public void normalize()
Normalizes a misconfigured nodename that contains a domainname.
-
toString
public void toString(java.io.Writer stream) throws java.io.IOExceptionConverts the active state into something meant for human consumption. The method will be called when recursively traversing the instance tree.- Specified by:
toStringin classorg.griphyn.vdl.Chimera- Parameters:
stream- is a stream opened and ready for writing. This can also be a string stream for efficient output.- Throws:
java.io.IOException- if something fishy happens to the stream.
-
myquote
private java.lang.String myquote(java.lang.String s)
Quotes an input string for XML attributes while converting nulls.- Parameters:
s- is the attribute string, may be null- Returns:
- the XML-quoted string, or an empty-but-not-null string.
-
toXML
public void toXML(java.io.Writer stream, java.lang.String indent, java.lang.String namespace) throws java.io.IOExceptionDump the state of the current element as XML output. This function traverses all sibling classes as necessary, and converts the data into pretty-printed XML output. The stream interface should be able to handle large output efficiently.- Specified by:
toXMLin classorg.griphyn.vdl.Chimera- Parameters:
stream- is a stream opened and ready for writing. This can also be a string stream for efficient output.indent- is aStringof 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 anullvalue 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.- Throws:
java.io.IOException- if something fishy happens to the stream.- See Also:
BufferedWriter
-
-