com.irisel.pm.internal
Class ProcessImpl

java.lang.Object
  extended by com.irisel.pm.internal.GroupImpl
      extended by com.irisel.pm.internal.ProcessImpl
All Implemented Interfaces:
Constants, Group, GroupTypes, Process, Status

public class ProcessImpl
extends GroupImpl
implements Process


Field Summary
 
Fields inherited from interface com.irisel.pm.Status
ST_CANCELLED, ST_ERROR, ST_NEW, ST_RUNNING, ST_SUSPENDED, ST_WAITING
 
Fields inherited from interface com.irisel.pm.GroupTypes
TYPE_LEAF, TYPE_PARALLEL, TYPE_SERIAL
 
Constructor Summary
ProcessImpl()
           
ProcessImpl(Instance procInst)
           
ProcessImpl(long procId, long focusId)
           
 
Method Summary
 long getFocusId()
           
 Group getParent()
           
 Instance getProc()
           
 Instance getProcess()
           
static Instance getProcess(long procid)
           
 Instance getProcessRootGroup(Instance iProc)
           
 long getProcId()
           
 Instance getProcInst()
           
 int getStatus()
           
 java.lang.String getStatusReason()
           
static void main(java.lang.String[] args)
           
 void save()
           
 void setStatus(int status)
           
 void setStatusReason(java.lang.String statusReason)
           
 void start()
           
 
Methods inherited from class com.irisel.pm.internal.GroupImpl
getBrowser, getChildren, getGrp, getGrpInst, getId, getLogger, getName, getSiblings, getType, hasChildren, isCancelled, isError, isLeaf, isParallel, isRunning, isSerial, isSuspended, isTop, isWaiting, resume, setBrowser, setGrp, setGrpInst, setLogger, setResponse, stop, suspend
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.irisel.pm.Group
getChildren, getGrp, getGrpInst, getId, getName, getSiblings, getType, hasChildren, isCancelled, isError, isLeaf, isParallel, isRunning, isSerial, isSuspended, isTop, isWaiting, resume, setResponse, stop, suspend
 

Constructor Detail

ProcessImpl

public ProcessImpl()
            throws PMException
Throws:
PMException

ProcessImpl

public ProcessImpl(long procId,
                   long focusId)
            throws PMException
Throws:
PMException

ProcessImpl

public ProcessImpl(Instance procInst)
            throws PMException
Throws:
PMException
Method Detail

getFocusId

public long getFocusId()

getStatusReason

public java.lang.String getStatusReason()

setStatusReason

public void setStatusReason(java.lang.String statusReason)

getProcess

public Instance getProcess()

getProcId

public long getProcId()

getParent

public Group getParent()
Specified by:
getParent in interface Group
Overrides:
getParent in class GroupImpl

main

public static void main(java.lang.String[] args)

getProcInst

public Instance getProcInst()
Specified by:
getProcInst in interface Process

getProc

public Instance getProc()
Specified by:
getProc in interface Process

getProcess

public static Instance getProcess(long procid)
                           throws PMException
Throws:
PMException

getProcessRootGroup

public Instance getProcessRootGroup(Instance iProc)
                             throws QueryTreeException
Throws:
QueryTreeException

start

public void start()
Specified by:
start in interface Group
Overrides:
start in class GroupImpl

save

public void save()
          throws PMException
Throws:
PMException

getStatus

public int getStatus()
Specified by:
getStatus in interface Group
Overrides:
getStatus in class GroupImpl

setStatus

public void setStatus(int status)
Specified by:
setStatus in interface Group
Overrides:
setStatus in class GroupImpl