|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.agila.services.AbstractInstanceService
org.apache.agila.impl.memory.InstanceServiceImpl
public class InstanceServiceImpl
Abstract, storage free mplementation of the InstanceService that does the work. Implementations just need to implement the persistence part. *
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 |
---|
public InstanceServiceImpl()
Method Detail |
---|
protected Instance internalCreate(BusinessProcessID processID, java.util.Map params)
internalCreate
in class AbstractInstanceService
processID
- params
-
protected void internalSave(Instance instance)
internalSave
in class AbstractInstanceService
instance
- protected Instance internalGetByID(InstanceID id)
internalGetByID
in class AbstractInstanceService
id
-
protected java.util.List internalGetInstanceInfos()
internalGetInstanceInfos
in class AbstractInstanceService
protected InstanceServiceInfo internalInstanceServiceInfo()
internalInstanceServiceInfo
in class AbstractInstanceService
public void stop(InstanceID id)
InstanceService
public void suspend(InstanceID id)
InstanceService
public void resume(InstanceID id)
InstanceService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |