|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.demac.process.base.extension.ExtensionModule
org.demac.process.base.extension.ConcurrencyService
public abstract class ConcurrencyService
This class performs several services needed for parallel execution of processes.
| Field Summary | |
|---|---|
static java.lang.String |
ID
|
| Fields inherited from class org.demac.process.base.extension.ExtensionModule |
|---|
STATUS_EXECUTION_DONE, STATUS_MIGRATE_TO_OTHER, STATUS_WAIT_FOR_EVENT |
| Constructor Summary | |
|---|---|
ConcurrencyService()
|
|
| Method Summary | |
|---|---|
abstract int |
checkForJoin(AmplifiedPackage ap,
java.lang.String actRefId)
Checks, if a Join has to be performed and tries to perform it. |
boolean |
execute(DataSet ds,
java.lang.String type)
Deprecated. |
abstract int |
executeSplit(AmplifiedPackage ap,
java.lang.String actRefId)
Tries to execute a Split |
abstract java.util.Set |
getConflicts(Package p,
java.lang.String dataClasses)
Returns a set of conflicts, which occur in the process |
java.lang.String |
getId()
|
abstract int |
solveConflicts(DataSet ds,
java.lang.String actRefId)
Checks if there is a dependency conflict at the current activity and begins the resolution of the conflict |
| Methods inherited from class org.demac.process.base.extension.ExtensionModule |
|---|
getInstance |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.demac.Service |
|---|
isStarted, start, stop |
| Field Detail |
|---|
public static final java.lang.String ID
| Constructor Detail |
|---|
public ConcurrencyService()
| Method Detail |
|---|
public java.lang.String getId()
getId in class ExtensionModule
public abstract java.util.Set getConflicts(Package p,
java.lang.String dataClasses)
p - DPDL-PackagedataClasses - String of configuration of data classes
public abstract int solveConflicts(DataSet ds,
java.lang.String actRefId)
ds - the DataSet where the process is storedactRefId - the ID of the current Activity
ExtensionModule.STATUS_EXECUTION_DONE, ExtensionModule.STATUS_WAIT_FOR_EVENT, ExtensionModule.STATUS_MIGRATE_TO_OTHER
public abstract int executeSplit(AmplifiedPackage ap,
java.lang.String actRefId)
throws ParserException,
StorageException
ap - the processactRefId - the ID of the Activity to check
ExtensionModule.STATUS_EXECUTION_DONE, ExtensionModule.STATUS_WAIT_FOR_EVENT, ExtensionModule.STATUS_MIGRATE_TO_OTHER
ParserException
StorageException
public abstract int checkForJoin(AmplifiedPackage ap,
java.lang.String actRefId)
ap - the processactRefId - the ID of the Activity to check
ExtensionModule.STATUS_EXECUTION_DONE, ExtensionModule.STATUS_WAIT_FOR_EVENT, ExtensionModule.STATUS_MIGRATE_TO_OTHER
public boolean execute(DataSet ds,
java.lang.String type)
throws java.lang.Exception
ExtensionModule
execute in class ExtensionModuletype - a possible description to specify the handling of the object to execute (if there is more than one possibility to execute it).
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||