public class WorkDir extends Object
The various attributes that can be associated with the work directory displayed in the following table.
Attribute Name | Attribute Description |
---|---|
path | the absolute path on the remote site to the work directory. |
total size | the total scratch space available under the work directory. |
free size | the free space available under the work directory. |
Modifier and Type | Field and Description |
---|---|
static int |
FREE_SIZE
The constant to be passed to the accessor functions to get or set the
free space available.
|
private String |
mFreeSize
The free space available at the file system under this directory.
|
private String |
mTotalSize
The total space available at the file system under this directory.
|
private String |
mWorkDir
The path to the work directory.
|
static int |
TOTAL_SIZE
The constant to be passed to the accessor functions to get or set the
total space available.
|
static int |
WORKDIR
The constant to be passed to the accessor functions to get or set the
path to the work directory.
|
static String[] |
WORKDIRINFO
Array storing the names of the attributes that are stored with the
work directory.
|
Constructor and Description |
---|
WorkDir()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getInfo(int key)
Returns the attribute value of a particular attribute of the work
directory.
|
void |
setInfo(int key,
String value)
Sets an attribute associated with the work directory.
|
String |
toMultiLine()
Returns the textual description of the contents of
WorkDir
object in the multiline format. |
String |
toString()
Returns the textual description of the contents of
WorkDir
object. |
String |
toXML()
Returns the XML description of the contents of
WorkDir
object. |
public static final String[] WORKDIRINFO
public static final int WORKDIR
public static final int TOTAL_SIZE
public static final int FREE_SIZE
private String mWorkDir
private String mTotalSize
private String mFreeSize
public WorkDir()
public String getInfo(int key)
key
- the key/attribute name.RuntimeException
- if illegal key defined.public void setInfo(int key, String value) throws RuntimeException
key
- the attribute key, which is one of the predefined keys.value
- value of the attribute.Exception
- if illegal key defined.RuntimeException
public String toMultiLine()
WorkDir
object in the multiline format.public String toString()
WorkDir
object.public String toXML()
WorkDir
object.Copyright © 2011 The University of Southern California. All Rights Reserved.