| org.griphyn.vdl.invocation.Invocation org.griphyn.vdl.invocation.Usage
Usage | public class Usage extends Invocation (Code) | | This class is contains some excerpt from the getrusage call. Due to
Linux not populating a lot of records, the amount of information is
restricted. Adjustments to LP64 architecture may be necessary.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ |
Constructor Summary | |
public | Usage() Default c'tor: Construct a hollow shell and allow further
information to be added later. | public | Usage(double utime, double stime, int minflt, int majflt, int nswap, int nsignals, int nvcsw, int nivcsw, int maxrss, int ixrss, int idrss, int isrss, int inblock, int outblock, int msgsnd, int msgrcv) Full c'tor: All values are provided.
Parameters: utime - is the time spent in user mode Parameters: stime - is the time spent in system mode Parameters: minflt - are minor page faults and page reclaims Parameters: majflt - are major page faults and s.t. |
Method Summary | |
public int | getInputBlocks() Accessor. | public int | getInvoluntarySwitches() Accessor: Obtains the involuntary context switches. | public int | getMajorFaults() Accessor: Obtains the major page faults. | public int | getMaximumRSS() Accessor. | public int | getMinorFaults() Accessor: Obtains the minfor page faults. | public int | getOutputBlocks() Accessor. | public int | getReceived() Accessor. | public int | getSent() Accessor. | public int | getSharedRSS() Accessor. | public int | getSignals() Accessor: Obtains the system signals sent.
the number of signals sent to the process. | public int | getStackRSS() Accessor. | public int | getSwaps() Accessor: Obtains number of swap operations. | public double | getSystemTime() Accessor: Obtains the system time from the object. | public int | getUnsharedRSS() Accessor. | public double | getUserTime() Accessor: Obtains the user time from the object. | public int | getVoluntarySwitches() Accessor: Obtains the voluntary context switches. | public void | setInputBlocks(int inblock) Accessor. | public void | setInvoluntarySwitches(int nivcsw) Accessor: Sets the number of involuntary context switches.
Parameters: nivcsw - is the new number involuntary context switches. | public void | setMajorFaults(int majflt) Accessor: Sets the number of major page faults. | public void | setMaximumRSS(int maxrss) Accessor. | public void | setMinorFaults(int minflt) Accessor: Sets the number of minor faults. | public void | setOutputBlocks(int outblock) Accessor. | public void | setReceived(int msgrcv) Accessor. | public void | setSent(int msgsnd) Accessor. | public void | setSharedRSS(int ixrss) Accessor. | public void | setSignals(int nsignals) Accessor: Sets the number of signalss sent. | public void | setStackRSS(int isrss) Accessor. | public void | setSwaps(int nswap) Accessor: Sets the number of swap ops. | public void | setSystemTime(double stime) Accessor: Sets the system time. | public void | setUnsharedRSS(int idrss) Accessor. | public void | setUserTime(double utime) Accessor: Sets the user time. | public void | setVoluntarySwitches(int nvcsw) Accessor: Sets the number of voluntary context switches.
Parameters: nvcsw - is the new number voluntary context switches. | public void | toString(Writer stream) Converts the active state into something meant for human consumption.
The method will be called when recursively traversing the instance
tree. | public void | toXML(Writer stream, String indent, String namespace) Dump the state of the current element as XML output.
Parameters: stream - is a stream opened and ready for writing. |
Usage | public Usage()(Code) | | Default c'tor: Construct a hollow shell and allow further
information to be added later.
|
Usage | public Usage(double utime, double stime, int minflt, int majflt, int nswap, int nsignals, int nvcsw, int nivcsw, int maxrss, int ixrss, int idrss, int isrss, int inblock, int outblock, int msgsnd, int msgrcv)(Code) | | Full c'tor: All values are provided.
Parameters: utime - is the time spent in user mode Parameters: stime - is the time spent in system mode Parameters: minflt - are minor page faults and page reclaims Parameters: majflt - are major page faults and s.t. swaps Parameters: nswap - are the number of swap operations Parameters: nsignals - are the number of signals sent Parameters: nvcsw - are voluntary context switches Parameters: nivcsw - are involuntary context switches Parameters: maxrss - is the maximum resident set size Parameters: ixrss - is the integral shared memory size Parameters: idrss - is the integral unshared data size Parameters: isrss - is the integral unshared stack size Parameters: inblock - are block input operations Parameters: outblock - are block output operations Parameters: msgsnd - are messages sent Parameters: msgrcv - are messages received |
getInvoluntarySwitches | public int getInvoluntarySwitches()(Code) | | Accessor: Obtains the involuntary context switches.
the number of involuntary context switches. See Also: Usage.setInvoluntarySwitches(int) |
getMajorFaults | public int getMajorFaults()(Code) | | Accessor: Obtains the major page faults.
the number of major page faults. See Also: Usage.setMajorFaults(int) |
getSignals | public int getSignals()(Code) | | Accessor: Obtains the system signals sent.
the number of signals sent to the process. See Also: Usage.setSignals(int) |
getSwaps | public int getSwaps()(Code) | | Accessor: Obtains number of swap operations.
the number of swaps. See Also: Usage.setSwaps(int) |
getSystemTime | public double getSystemTime()(Code) | | Accessor: Obtains the system time from the object.
the time spent in system mode. See Also: Usage.setSystemTime(double) |
getUserTime | public double getUserTime()(Code) | | Accessor: Obtains the user time from the object.
the time spent in user mode. See Also: Usage.setUserTime(double) |
getVoluntarySwitches | public int getVoluntarySwitches()(Code) | | Accessor: Obtains the voluntary context switches.
the number of voluntary context switches. See Also: Usage.setVoluntarySwitches(int) |
setInvoluntarySwitches | public void setInvoluntarySwitches(int nivcsw)(Code) | | Accessor: Sets the number of involuntary context switches.
Parameters: nivcsw - is the new number involuntary context switches. See Also: Usage.getInvoluntarySwitches() |
setMajorFaults | public void setMajorFaults(int majflt)(Code) | | Accessor: Sets the number of major page faults.
Parameters: majflt - is the new number of major page faults. See Also: Usage.getMajorFaults() |
setMinorFaults | public void setMinorFaults(int minflt)(Code) | | Accessor: Sets the number of minor faults.
Parameters: minflt - is the new number of minor faults. See Also: Usage.getMinorFaults() |
setSignals | public void setSignals(int nsignals)(Code) | | Accessor: Sets the number of signalss sent.
Parameters: nsignals - is the new number of signals. See Also: Usage.getSignals() |
setSwaps | public void setSwaps(int nswap)(Code) | | Accessor: Sets the number of swap ops.
Parameters: nswap - is the new number of swap operations. See Also: Usage.getSwaps() |
setSystemTime | public void setSystemTime(double stime)(Code) | | Accessor: Sets the system time.
Parameters: stime - is the new user time in seconds with fraction. See Also: Usage.getSystemTime() |
setUserTime | public void setUserTime(double utime)(Code) | | Accessor: Sets the user time.
Parameters: utime - is the new user time in seconds with fraction. See Also: Usage.getUserTime() |
setVoluntarySwitches | public void setVoluntarySwitches(int nvcsw)(Code) | | Accessor: Sets the number of voluntary context switches.
Parameters: nvcsw - is the new number voluntary context switches. See Also: Usage.getVoluntarySwitches() |
toString | public void toString(Writer stream) throws IOException(Code) | | Converts the active state into something meant for human consumption.
The method will be called when recursively traversing the instance
tree.
Parameters: stream - is a stream opened and ready for writing. This can alsobe a string stream for efficient output. |
toXML | public void toXML(Writer stream, String indent, String namespace) throws IOException(Code) | | Dump the state of the current element as XML output.
Parameters: stream - is a stream opened and ready for writing. This can alsobe a string stream for efficient output. Parameters: indent - is a String of spaces used for prettyprinting. 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 norlinefeeds will be generated. Parameters: namespace - is the XML schema namespace prefix. If neitherempty nor null, each element will be prefixed with this prefix,and the root element will map the XML namespace. exception: IOException - if something fishy happens to the stream. |
|
|