Compiere 3.1

org.compiere.process
Class CompiereService

java.lang.Object
  extended by org.compiere.process.StateEngine
      extended by org.compiere.process.CompiereService

public class CompiereService
extends StateEngine

Compiere Service. Instanciates and Controls the Compiere Server, which actually does the work in separate thread

Version:
$Id: CompiereService.java,v 1.2 2006/07/30 00:54:44 jjanke Exp $
Author:
Jorg Janke

Field Summary
 
Fields inherited from class org.compiere.process.StateEngine
ACTION_Abort, ACTION_Complete, ACTION_Resume, ACTION_Start, ACTION_Suspend, ACTION_Terminate, log, STATE_Aborted, STATE_Completed, STATE_NotStarted, STATE_Running, STATE_Suspended, STATE_Terminated
 
Constructor Summary
CompiereService(PO processor, Class<?> serverClass)
          Compiere Service
 
Method Summary
 boolean abort()
          Abort: open -> aborted
 boolean complete()
          Complete: running -> completed
 CompiereServer getCompierServer()
          Get Compier Server
 String getState()
          Get/Check State
 boolean resume()
          Resume: suspended -> running
 boolean start()
          Start: not started -> running
 boolean suspend()
          Suspend: running -> suspended
 boolean terminate()
          Terminate (System Error): open -> terminated
 String toString()
          String Representation
 
Methods inherited from class org.compiere.process.StateEngine
getActionOptions, getNewStateIfAction, getNewStateOptions, getStateInfo, isAborted, isClosed, isCompleted, isNotRunning, isNotStarted, isOpen, isRunning, isSuspended, isTerminated, isThrowException, isValidAction, isValidNewState, process, setState, setThrowException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompiereService

public CompiereService(PO processor,
                       Class<?> serverClass)
Compiere Service

Parameters:
processor - Processor instance
serverClass - server class
Method Detail

getCompierServer

public CompiereServer getCompierServer()
Get Compier Server

Returns:
Compiere Server

getState

public String getState()
Get/Check State

Overrides:
getState in class StateEngine
Returns:
state

start

public boolean start()
Start: not started -> running

Overrides:
start in class StateEngine
Returns:
true if set to running

resume

public boolean resume()
Resume: suspended -> running

Overrides:
resume in class StateEngine
Returns:
true if set to sunning

complete

public boolean complete()
Complete: running -> completed

Overrides:
complete in class StateEngine
Returns:
true if set to completed

suspend

public boolean suspend()
Suspend: running -> suspended

Overrides:
suspend in class StateEngine
Returns:
true if suspended

abort

public boolean abort()
Abort: open -> aborted

Overrides:
abort in class StateEngine
Returns:
true if set to aborted

terminate

public boolean terminate()
Terminate (System Error): open -> terminated

Overrides:
terminate in class StateEngine
Returns:
true if set to terminated

toString

public String toString()
String Representation

Overrides:
toString in class StateEngine
Returns:
info

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.