autohit.server.service
Class Service

java.lang.Object
  extended byautohit.vm.VM
      extended byautohit.server.service.Service
Direct Known Subclasses:
CLIService, CommandService, HttpCommandService, SocketRelayService

public abstract class Service
extends VM

Root service. Basically, it cheats by being a VM. You must implement prepare(), execute(), construct_chain(), and destruct(). Look at autohit.vm.VM for more information. You must call loadcontext() after instantiating and before calling init()!

Version:
1.0 Version History EPG - Initial - 15Sep03
Author:
Erich P. Gatejen

Field Summary
 SystemContext sc
          Make it easier to see the 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
Service()
           
 
Method Summary
 void loadcontext(SystemContext ssc)
          Complete initialization.
 
Methods inherited from class autohit.vm.VM
attach, construct, destruct, die, execute, 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
 

Field Detail

sc

public SystemContext sc
Make it easier to see the SC

Constructor Detail

Service

public Service()
Method Detail

loadcontext

public void loadcontext(SystemContext ssc)
                 throws VMException
Complete initialization. MUST BE CALLED BEFORE CONSTRUCTION! This hack lets us use the VM.

Throws:
VMException


Test.