autohit.server.service
Class CommandService

java.lang.Object
  extended byautohit.vm.VM
      extended byautohit.server.service.Service
          extended byautohit.server.service.CommandService

public class CommandService
extends Service

Command service.

Version:
1.0 Version HistoryEPG - Initial - 16SEP03
Author:
Erich P. Gatejen

Field Summary
 
Fields inherited from class autohit.server.service.Service
sc
 
Fields inherited from class autohit.vm.VM
buf, core, errors, faults, ip, left, loader, myLog, process, right, rinjector, rootProgram, sname, state, STATE_ACTIVE_THRESHOLD, STATE_BUILDING, STATE_DONE, STATE_INVALID, STATE_NEW, STATE_NO_VM, STATE_PAUSED, STATE_RUNNING, TIME_GRAN
 
Constructor Summary
CommandService()
          Default constructor
 
Method Summary
 void construct()
          Complete construction.
 void destruct()
          Complete destroy.
 void execute()
          Fast loop.
 
Methods inherited from class autohit.server.service.Service
loadcontext
 
Methods inherited from class autohit.vm.VM
attach, die, finalize, getState, init, pause, prepare, resume, setParentCore, start, ticks
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandService

public CommandService()
Default constructor

Method Detail

construct

public void construct()
               throws ServiceException
Complete construction. This will be called when the VM is initialized.

Specified by:
construct in class VM
Throws:
ServiceException

execute

public void execute()
             throws ServiceException
Fast loop. We spend most of our time waiting for connections. Cycle back to VM only after an accept or a timeout.

Specified by:
execute in class VM
Throws:
ServiceException
See Also:
VMException

destruct

public void destruct()
              throws ServiceException
Complete destroy. This will be called when the VM is finalizing.

Specified by:
destruct in class VM
Throws:
ServiceException


Test.