9 #ifndef __PDG_SERVICE_CLIENT_H__
10 #define __PDG_SERVICE_CLIENT_H__
52 {
return myCommandArgs; }
72 {
return myClientNumber; }
88 {
return myTotalCooks; }
92 {
return myMemoryUsage; }
101 {
return myIsConnected; }
105 {
return myIsActive; }
125 bool hasValidProcess();
133 void stopCook(
exint memory_usage);
136 void setConnected(
bool connected);
150 bool updateTimeout(
fpreal delta);
173 exint myClientNumber;
exint PDG_WorkItemID
Type defs for unique work item IDs.
exint clientNumber() const
Returns the client number.
const UT_StringHolder & name() const
Returns the current name of the service client.
exint id() const
Returns the process or job ID.
const UT_StringHolder & address() const
Returns the MQ connection address.
PDG_WorkItemID lock() const
Gets the current client work item lock, or -1 if one isn't set.
bool isActive() const
Returns whether or not the client is active.
exint port() const
Returns the MQ connection port.
void setId(exint id)
Sets the current job ID.
GLbitfield GLuint64 timeout
exint totalCooks() const
Returns the total number of jobs the client has cooked.
const UT_StringHolder & logPath() const
Returns the log path for the client.
exint memoryUsage() const
Returns the current memory usage.
const UT_StringArray & commandArgs() const
Returns the current command line args for the service client.
bool isConnected() const
Returns whether or not the client is connected to the MQ.