edu.isi.pegasus.planner.invocation
public class StatCall extends Invocation
Modifier and Type | Field and Description |
---|---|
private Data |
m_data
Optional data gleaned from stdout or stderr.
|
private int |
m_errno
value of errno after calling any stat function, or -1 for failure.
|
private File |
m_file
the object (fn,fd) that the stat call was taken on.
|
private String |
m_handle
optional handle for stat calls of the invocation record
|
private String |
m_lfn
optional logical filename associated with this stat call
|
private StatInfo |
m_statinfo
the stat information itself, only present for unfailed calls.
|
Constructor and Description |
---|
StatCall()
Default c'tor: Construct a hollow shell and allow further
information to be added later.
|
StatCall(String handle)
Construct a specific but empty stat call object.
|
Modifier and Type | Method and Description |
---|---|
Data |
getData()
Accessor
|
int |
getError()
Accessor
|
File |
getFile()
Accessor
|
String |
getHandle()
Accessor
|
String |
getLFN()
Accessor
|
StatInfo |
getStatInfo()
Accessor
|
void |
setData(Data data)
Conversion accessor.
|
void |
setData(String data)
Accessor.
|
void |
setError(int errno)
Accessor.
|
void |
setFile(File file)
Accessor.
|
void |
setHandle(String handle)
Accessor.
|
void |
setLFN(String lfn)
Accessor.
|
void |
setStatInfo(StatInfo statinfo)
Accessor.
|
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.
|
private String m_handle
private String m_lfn
private int m_errno
private File m_file
private StatInfo m_statinfo
private Data m_data
public StatCall()
public StatCall(String handle)
handle
- is the identifier to give this specific stat call.public String getHandle()
setHandle(String)
public void setHandle(String handle)
handle
- getHandle()
public String getLFN()
setLFN(String)
public int getError()
setError(int)
public void setError(int errno)
errno
- getError()
public File getFile()
setFile(File)
public StatInfo getStatInfo()
setStatInfo(StatInfo)
public void setStatInfo(StatInfo statinfo)
statinfo
- getStatInfo()
public Data getData()
setData(String)
public void setData(Data data)
data
- getData()
,
setData( String )
public void toString(Writer stream) throws 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.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.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.IOException
- if something fishy happens to the stream.BufferedWriter