|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hypergraphdb.peer.workflow.ActivityManager
public class ActivityManager
The ActivityManager manages all activities currently in effect within
a given peer.
| Constructor Summary | |
|---|---|
ActivityManager(HyperGraphPeer thisPeer)
|
|
| Method Summary | |
|---|---|
Activity |
getParent(Activity a)
|
void |
handleMessage(Message msg)
|
java.util.concurrent.Future<ActivityResult> |
initiateActivity(Activity activity)
|
java.util.concurrent.Future<ActivityResult> |
initiateActivity(Activity activity,
Activity parentActivity,
ActivityListener listener)
Initiate a new activity. |
java.util.concurrent.Future<ActivityResult> |
initiateActivity(Activity activity,
ActivityListener listener)
|
void |
registerActivityType(java.lang.Class<? extends Activity> activityClass)
A simplified version of registerActivityType in which the
type name is taken to be the fully qualified classname of the
activityClass parameter and a DefaultActivityFactory
instance is going to be used to create new activities of that type. |
void |
registerActivityType(java.lang.Class<? extends Activity> activityClass,
ActivityFactory factory)
Register an activity type with an associated factory. |
void |
registerActivityType(java.lang.String type,
java.lang.Class<? extends Activity> activityClass)
Register an activity type with the specified non-default type name. |
void |
registerActivityType(java.lang.String type,
java.lang.Class<? extends Activity> activityClass,
ActivityFactory factory)
Register an activity type with the specified non-default type name and factory. |
void |
start()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivityManager(HyperGraphPeer thisPeer)
| Method Detail |
|---|
public void start()
public void registerActivityType(java.lang.Class<? extends Activity> activityClass)
A simplified version of registerActivityType in which the
type name is taken to be the fully qualified classname of the
activityClass parameter and a DefaultActivityFactory
instance is going to be used to create new activities of that type.
activityClass - The class implementing the activity.
public void registerActivityType(java.lang.Class<? extends Activity> activityClass,
ActivityFactory factory)
Register an activity type with an associated factory. The factory will be used to construct new activity instances based on incoming message.
activityClass - The class implementing the activity.factory - The activity factory associated with this type.
public void registerActivityType(java.lang.String type,
java.lang.Class<? extends Activity> activityClass)
Register an activity type with the specified non-default type name.
type - The type name.activityClass - The class that implements the activity.
public void registerActivityType(java.lang.String type,
java.lang.Class<? extends Activity> activityClass,
ActivityFactory factory)
Register an activity type with the specified non-default type name and factory.
type - The type name.activityClass - The class that implements the activity.factory - The activity factory associated with this type.public java.util.concurrent.Future<ActivityResult> initiateActivity(Activity activity)
public java.util.concurrent.Future<ActivityResult> initiateActivity(Activity activity,
ActivityListener listener)
public java.util.concurrent.Future<ActivityResult> initiateActivity(Activity activity,
Activity parentActivity,
ActivityListener listener)
Initiate a new activity.
activity - parentActivity - listener -
public void handleMessage(Message msg)
handleMessage in interface MessageHandlerpublic Activity getParent(Activity a)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||