Inherited by com.scalagent.scheduler.monitor.CommandMonitor.
Inheritance diagram for com.scalagent.scheduler.monitor.ObjectMonitor:


Public Member Functions | |
| ObjectMonitor (MonitorParent parent) | |
| int | getStatus () |
| String | getErrorMessage () |
| Object | getReturnValue () |
| String | toString () |
| abstract void | start () throws Exception |
Protected Member Functions | |
| void | setStatus (int status) throws Exception |
| MonitorParent | getParent () |
| void | setErrorMessage (String errorMessage) |
| void | setReturnValue (Object returnValue) |
| void | sendTo (CommandMonitor monitor, AgentId to, IndexedCommand command) throws Exception |
Monitor objects inside an agent.
Definition at line 32 of file ObjectMonitor.java.
| com.scalagent.scheduler.monitor.ObjectMonitor.ObjectMonitor | ( | MonitorParent | parent | ) |
Constructor. Initializes status to NONE.
| parent | object to report status to |
Definition at line 48 of file ObjectMonitor.java.
| void com.scalagent.scheduler.monitor.ObjectMonitor.setStatus | ( | int | status | ) | throws Exception [protected] |
Property accessor. Changes this Monitor status and signals new status to parent.
| status | new status |
Definition at line 61 of file ObjectMonitor.java.
References com.scalagent.scheduler.monitor.MonitorParent.childReport().
Referenced by com.scalagent.scheduler.monitor.CommandMonitor.commandReport(), and com.scalagent.scheduler.monitor.CommandMonitor.start().
Here is the call graph for this function:

| int com.scalagent.scheduler.monitor.ObjectMonitor.getStatus | ( | ) |
| MonitorParent com.scalagent.scheduler.monitor.ObjectMonitor.getParent | ( | ) | [protected] |
Read only property accessor.
Definition at line 81 of file ObjectMonitor.java.
| void com.scalagent.scheduler.monitor.ObjectMonitor.setErrorMessage | ( | String | errorMessage | ) | [protected] |
Property accessor.
error message
Definition at line 88 of file ObjectMonitor.java.
Referenced by com.scalagent.scheduler.monitor.CommandMonitor.commandReport().
| String com.scalagent.scheduler.monitor.ObjectMonitor.getErrorMessage | ( | ) |
Property accessor.
Implements com.scalagent.scheduler.monitor.Monitor.
Definition at line 97 of file ObjectMonitor.java.
| void com.scalagent.scheduler.monitor.ObjectMonitor.setReturnValue | ( | Object | returnValue | ) | [protected] |
Property accessor.
return value
Definition at line 104 of file ObjectMonitor.java.
Referenced by com.scalagent.scheduler.monitor.CommandMonitor.commandReport().
| Object com.scalagent.scheduler.monitor.ObjectMonitor.getReturnValue | ( | ) |
Property accessor.
Implements com.scalagent.scheduler.monitor.Monitor.
Definition at line 113 of file ObjectMonitor.java.
| String com.scalagent.scheduler.monitor.ObjectMonitor.toString | ( | ) |
Provides a string image for this object.
Implements com.scalagent.scheduler.monitor.Monitor.
Reimplemented in com.scalagent.scheduler.monitor.CommandMonitor.
Definition at line 121 of file ObjectMonitor.java.
| abstract void com.scalagent.scheduler.monitor.ObjectMonitor.start | ( | ) | throws Exception [pure virtual] |
Starts monitor execution.
Implements com.scalagent.scheduler.monitor.Monitor.
Implemented in com.scalagent.scheduler.monitor.CommandMonitor.
| void com.scalagent.scheduler.monitor.ObjectMonitor.sendTo | ( | CommandMonitor | monitor, | |
| AgentId | to, | |||
| IndexedCommand | command | |||
| ) | throws Exception [protected] |
Allows a enclosed CommandMonitor object to send a Command. Registers the object so that it can be forwarded the Report to.
Actual implementation is provided by enclosing agent.
This function is not necessary in Monitor interface. However this simple implementation is needed in all Monitor objects which are Monitor parents.
| monitor | object sending the command | |
| to | agent target of command | |
| command | command to send |
Definition at line 148 of file ObjectMonitor.java.
References com.scalagent.scheduler.monitor.MonitorParent.sendTo().
Referenced by com.scalagent.scheduler.monitor.CommandMonitor.start().
Here is the call graph for this function:

1.5.0