|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectshocks.framework.workflow.sequence.repository.CentralSequenceRepository
Constructor Summary | |
CentralSequenceRepository()
|
Method Summary | |
void |
addWorkflow(Workflow sequence)
The mechanism by which sequence components are added to the system. |
java.lang.String |
getVersion(DataSource metadata)
Returns the current operating version of a workflow sequence. |
java.util.SortedSet |
getVersions(DataSource metadata)
Returns a SortedSet of all the existing version strings in descending order. |
Workflow |
leaseWorkflow(DataSource metadata)
Leases one instance of the appropriate sequence. |
void |
release(Workflow instance)
Releases a leased workflow component back into the instance pool. |
void |
setCurrentVersion(DataSource metadata,
java.lang.String version)
This method will set the current operating version of a workflow sequence to a previous existing version. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CentralSequenceRepository()
Method Detail |
public Workflow leaseWorkflow(DataSource metadata)
leaseWorkflow
in interface SequenceRepository
metadata
-
public void release(Workflow instance)
SequenceRepository
Releases a leased workflow component back into the instance pool. The method will sort the workflow component by name and version.
release
in interface SequenceRepository
instance
- public void addWorkflow(Workflow sequence)
addWorkflow
in interface SequenceRepository
sequence
- public java.lang.String getVersion(DataSource metadata)
CentralSequenceRepositoryMBean
Returns the current operating version of a workflow sequence. Each workflow sequence is identified by a metadata component whose values amount to a composite key.
getVersion
in interface CentralSequenceRepositoryMBean
metadata
-
public void setCurrentVersion(DataSource metadata, java.lang.String version)
CentralSequenceRepositoryMBean
This method will set the current operating version of a workflow sequence to a previous existing version. The string value entered must be one of the previous operating versions existing in the system.
setCurrentVersion
in interface CentralSequenceRepositoryMBean
metadata
- version
- public java.util.SortedSet getVersions(DataSource metadata)
CentralSequenceRepositoryMBean
Returns a SortedSet of all the existing version strings in descending order.
getVersions
in interface CentralSequenceRepositoryMBean
metadata
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |