com.sun.n1.sps.model.executor
Interface TargetStatus


public interface TargetStatus

Encapsulates the current status of a target and any tasks running on the target.


Method Summary
 HostID getHostID()
          Returns the HostID of of the intial host.
 int getStatus()
          Returns the status of this Target.
 Target getTarget()
          Returns the target tied to this TargetStatus.
 TargetStatusCode getTargetStatusCode()
          Returns the TargetStatusCode for this target status.
 TaskID getTaskID()
          Returns the TaskID of this task.
 

Method Detail

getStatus

int getStatus()
Returns the status of this Target.

Returns:
The status indicated by one of the constants of this class.

getTaskID

TaskID getTaskID()
Returns the TaskID of this task.

Returns:
The TaskID of the task - may be null

getTarget

Target getTarget()
Returns the target tied to this TargetStatus.

Returns:
the Target tied to this TargetStatus.

getHostID

HostID getHostID()
Returns the HostID of of the intial host.

Returns:
The HostID of of the intial host.
See Also:
Target#getInitialHostID()}

getTargetStatusCode

TargetStatusCode getTargetStatusCode()
Returns the TargetStatusCode for this target status.

Returns:
The TargetStatusCode for this target status.