|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.agila.services.AbstractInstanceService
public abstract class AbstractInstanceService
Constructor Summary | |
---|---|
AbstractInstanceService()
|
Method Summary | |
---|---|
void |
deRegisterListener(InstanceLifecycleListener listener)
|
Instance |
getInstanceByID(InstanceID id)
|
InstanceInfo |
getInstanceInfoByID(InstanceID id)
|
java.util.List |
getInstanceInfos()
TODO - scrap this. |
InstanceServiceInfo |
getInstanceServiceInfo()
|
protected abstract Instance |
internalCreate(BusinessProcessID processID,
java.util.Map params)
Method to create a new instance. |
protected abstract Instance |
internalGetByID(InstanceID id)
returns an instance by ID from the persistence store |
protected abstract java.util.List |
internalGetInstanceInfos()
returns all instances from the persistence store |
protected abstract InstanceServiceInfo |
internalInstanceServiceInfo()
|
protected abstract void |
internalSave(Instance instance)
Method to save an instance (update/persiste). |
InstanceID |
newInstance(BusinessProcessID processID,
java.util.Map params)
Returns a new instance for a given processID |
void |
registerListener(InstanceLifecycleListener listener)
|
void |
save(Instance instance)
|
void |
setBusinessProcessService(BusinessProcessService bps)
|
void |
setLogService(LogService logger)
|
void |
setQueueService(QueueService qs)
|
void |
setTokenService(TokenService ts)
|
void |
start(InstanceID id)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.agila.services.InstanceService |
---|
resume, stop, suspend |
Constructor Detail |
---|
public AbstractInstanceService()
Method Detail |
---|
public void setTokenService(TokenService ts)
public void setBusinessProcessService(BusinessProcessService bps)
public void setQueueService(QueueService qs)
public void setLogService(LogService logger)
public InstanceID newInstance(BusinessProcessID processID, java.util.Map params)
InstanceService
newInstance
in interface InstanceService
public void start(InstanceID id)
start
in interface InstanceService
public void save(Instance instance)
save
in interface InstanceService
public Instance getInstanceByID(InstanceID id)
getInstanceByID
in interface InstanceService
public InstanceInfo getInstanceInfoByID(InstanceID id)
getInstanceInfoByID
in interface InstanceService
public java.util.List getInstanceInfos()
getInstanceInfos
in interface InstanceService
public InstanceServiceInfo getInstanceServiceInfo()
getInstanceServiceInfo
in interface InstanceService
public void registerListener(InstanceLifecycleListener listener)
registerListener
in interface InstanceService
public void deRegisterListener(InstanceLifecycleListener listener)
deRegisterListener
in interface InstanceService
protected abstract Instance internalCreate(BusinessProcessID processID, java.util.Map params)
processID
- params
-
protected abstract void internalSave(Instance instance)
instance
- protected abstract Instance internalGetByID(InstanceID id)
id
-
protected abstract java.util.List internalGetInstanceInfos()
protected abstract InstanceServiceInfo internalInstanceServiceInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |