org.apache.agila.impl.memory
Class InstanceServiceImpl

java.lang.Object
  extended by org.apache.agila.services.AbstractInstanceService
      extended by org.apache.agila.impl.memory.InstanceServiceImpl
All Implemented Interfaces:
InstanceService

public class InstanceServiceImpl
extends AbstractInstanceService

Abstract, storage free mplementation of the InstanceService that does the work. Implementations just need to implement the persistence part. *

Version:
$Id$
Author:
Geir Magnusson Jr.

Constructor Summary
InstanceServiceImpl()
           
 
Method Summary
protected  Instance internalCreate(BusinessProcessID processID, java.util.Map params)
          Method to create a new instance.
protected  Instance internalGetByID(InstanceID id)
          returns an instance by ID from the persistence store
protected  java.util.List internalGetInstanceInfos()
          Returns all instances from the persistence store
protected  InstanceServiceInfo internalInstanceServiceInfo()
           
protected  void internalSave(Instance instance)
          Method to save an instance (update/persiste).
 void resume(InstanceID id)
          Resumes a halted process instance.
 void stop(InstanceID id)
          Stop a running process instance.
 void suspend(InstanceID id)
          Suspend a running process instance.
 
Methods inherited from class org.apache.agila.services.AbstractInstanceService
deRegisterListener, getInstanceByID, getInstanceInfoByID, getInstanceInfos, getInstanceServiceInfo, newInstance, registerListener, save, setBusinessProcessService, setLogService, setQueueService, setTokenService, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceServiceImpl

public InstanceServiceImpl()
Method Detail

internalCreate

protected Instance internalCreate(BusinessProcessID processID,
                                  java.util.Map params)
Method to create a new instance. Implementations can just override to use a different kind of persistent store

Specified by:
internalCreate in class AbstractInstanceService
Parameters:
processID -
params -
Returns:

internalSave

protected void internalSave(Instance instance)
Method to save an instance (update/persiste). Implementations can just override.

Specified by:
internalSave in class AbstractInstanceService
Parameters:
instance -

internalGetByID

protected Instance internalGetByID(InstanceID id)
returns an instance by ID from the persistence store

Specified by:
internalGetByID in class AbstractInstanceService
Parameters:
id -
Returns:

internalGetInstanceInfos

protected java.util.List internalGetInstanceInfos()
Returns all instances from the persistence store

Specified by:
internalGetInstanceInfos in class AbstractInstanceService
Returns:

internalInstanceServiceInfo

protected InstanceServiceInfo internalInstanceServiceInfo()
Specified by:
internalInstanceServiceInfo in class AbstractInstanceService

stop

public void stop(InstanceID id)
Description copied from interface: InstanceService
Stop a running process instance.


suspend

public void suspend(InstanceID id)
Description copied from interface: InstanceService
Suspend a running process instance.


resume

public void resume(InstanceID id)
Description copied from interface: InstanceService
Resumes a halted process instance.



Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.