Adempiere 3.5.2a

org.compiere.process
Class AdempiereService

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

public class AdempiereService
extends StateEngine

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

Version:
$Id: AdempiereService.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
AdempiereService(PO processor, Class serverClass)
          Adempiere Service
 
Method Summary
 boolean abort()
          Abort: open -> aborted
 boolean complete()
          Complete: running -> completed
 AdempiereServer 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

AdempiereService

public AdempiereService(PO processor,
                        Class serverClass)
Adempiere Service

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

getCompierServer

public AdempiereServer getCompierServer()
Get Compier Server

Returns:
Adempiere 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

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.