|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.representationparser.OSgLReader
org.optimizationservices.oscommon.representationparser.OSpLReader
public class OSpLReader
The
Field Summary |
---|
Fields inherited from class org.optimizationservices.oscommon.representationparser.OSgLReader |
---|
m_document |
Constructor Summary | |
---|---|
OSpLReader()
Default constructor. |
|
OSpLReader(boolean validate)
constructor. |
Method Summary | |
---|---|
double |
getAvailableDiskSpace()
Get the available disk space (in bytes). |
double |
getAvailableMemory()
Get the available memory (in bytes). |
int |
getCurrentJobCount()
Get the current job count. |
java.lang.String |
getCurrentState()
Get the current state, , which can be: "busy", "busyButAccepting", "idle", "idleButNotAccepting" and "noResponse". |
JobStatistics[] |
getJobStatistics()
Get the statistics of all the jobs. |
JobOptimization[] |
getOptimizationProcess()
Get the optimization process of all the jobs, which are in effect intermediate (or occasionally final) optimization results. |
OSProcess |
getOSProcess()
get the standard OSProcess, a local interface for storing Optimization Services process. |
java.lang.String |
getOtherProcessDescriptionByName(java.lang.String name)
Get the String value from the other process hash map. |
java.lang.String[] |
getOtherProcessDescriptions()
Get the descriptions of all other processes. |
java.util.HashMap<java.lang.String,java.lang.String> |
getOtherProcesses()
Get the hash map of other processes. |
java.lang.String[] |
getOtherProcessNames()
Get the names of all other processes. |
int |
getOtherProcessNumber()
Get the number of other processes. |
java.lang.String |
getOtherProcessValueByName(java.lang.String name)
Get the String value from the other process hash map. |
java.lang.String[] |
getOtherProcessValues()
Get the values of all other processes. |
java.lang.String |
getProcessMessage()
Get the process message. |
ProcessStatistics |
getProcessStatistics()
Get the process statistics. |
java.util.GregorianCalendar |
getProcessTime()
Get time of the last process update. |
java.lang.String |
getRequestAction()
Get the request action, which can be: ping, notifyJobCompletion, requestJob, getServiceStatistics, setServiceStatistics, getJobStatistics, setJobStatistics, getOptimization, setOptimization, getAll, setAll. |
java.lang.String |
getRequestDescription()
Get the request description. |
java.lang.String |
getResponseDescription()
Get the response description. |
java.lang.String |
getResponseStatus()
Get the response status, which can be: success, error, warning. |
java.lang.String |
getServiceName()
Get service name. |
java.lang.String |
getServiceURI()
Get service uri. |
double |
getServiceUtilization()
Get the service utilization ([0, 1]). |
java.util.GregorianCalendar |
getTimeLastJobEnded()
Get the time last job ended. |
double |
getTimeLastJobTook()
Get the time last job took (in seconds). |
java.util.GregorianCalendar |
getTimeServiceStarted()
Get the time the service started. |
int |
getTotalJobsSoFar()
Get the total jobs received so far. |
static void |
main(java.lang.String[] argv)
main for test purposes. |
Methods inherited from class org.optimizationservices.oscommon.representationparser.OSgLReader |
---|
getDocument, getRootElement, isValidate, readFile, readString, setDocument, setRootElement, setValidate, writeToFile, writeToSring, writeToStandardOutput |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSpLReader(boolean validate)
validate
- holds whether the reader should be validating against the schema or not.public OSpLReader()
Method Detail |
---|
public OSProcess getOSProcess() throws java.lang.Exception
java.lang.Exception
- if there are errors getting the OSOption.public java.lang.String getRequestAction()
public java.lang.String getRequestDescription()
public java.lang.String getResponseStatus()
public java.lang.String getResponseDescription()
public java.lang.String getServiceURI()
public java.lang.String getServiceName()
public java.util.GregorianCalendar getProcessTime()
public java.lang.String getProcessMessage()
public ProcessStatistics getProcessStatistics()
public java.lang.String getCurrentState()
public double getAvailableDiskSpace()
public double getAvailableMemory()
public int getCurrentJobCount()
public int getTotalJobsSoFar()
public java.util.GregorianCalendar getTimeLastJobEnded()
public double getTimeLastJobTook()
public java.util.GregorianCalendar getTimeServiceStarted()
public double getServiceUtilization()
public JobStatistics[] getJobStatistics()
public JobOptimization[] getOptimizationProcess()
public java.util.HashMap<java.lang.String,java.lang.String> getOtherProcesses()
public int getOtherProcessNumber()
public java.lang.String getOtherProcessValueByName(java.lang.String name)
name
- holds the name of process to get.
public java.lang.String getOtherProcessDescriptionByName(java.lang.String name)
name
- holds the name of process to get.
public java.lang.String[] getOtherProcessNames()
public java.lang.String[] getOtherProcessValues()
public java.lang.String[] getOtherProcessDescriptions()
public static void main(java.lang.String[] argv)
argv
- command line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |