public class ProcessWrapper extends Object implements Serializable
Process class Annotation and all relevant method
Annotations.
It is generally unnecessary for users to use this class directly. ProcessChain will automatically wrap
process objects with an instance of this class.| Constructor and Description |
|---|
ProcessWrapper(Object process) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Method cleanup calls the annotated child Process object
ProcessCleanup method. |
void |
complete() |
List<Object> |
getChildren() |
Object |
getConfiguration() |
Map<String,Map<String,Long>> |
getCounters() |
Object |
getDependencyIncoming() |
Object |
getDependencyOutgoing() |
boolean |
hasChildren() |
boolean |
hasCleanup()
Method hasCleanup returns true if the annotated child Process object implements the
ProcessCleanup method. |
boolean |
hasCounters() |
boolean |
hasPrepare()
Method hasPrepare returns true if the annotated child Process object implements the
ProcessPrepare method. |
boolean |
hasStart()
Method hasStart returns true if the annotated child Process object implements the
ProcessStart method. |
void |
prepare()
Method prepare calls the annotated child Process object
ProcessPrepare method. |
void |
start()
Method start calls the annotated child Process object
ProcessStart method. |
void |
stop() |
String |
toString() |
public ProcessWrapper(Object process)
public Object getDependencyOutgoing() throws ProcessException
ProcessExceptionpublic Object getDependencyIncoming() throws ProcessException
ProcessExceptionpublic Object getConfiguration() throws ProcessException
ProcessExceptionpublic boolean hasPrepare()
ProcessPrepare method.public void prepare()
throws ProcessException
ProcessPrepare method.
This method will not fail if the prepare method is not implemented.ProcessException - whenpublic boolean hasCleanup()
ProcessCleanup method.public void cleanup()
throws ProcessException
ProcessCleanup method.
This method will not fail if the cleanup method is not implemented.ProcessException - whenpublic boolean hasStart()
ProcessStart method.public void start()
throws ProcessException
ProcessStart method.
This method will throw an exception if the start method is not implemented. Call hasStart()
to verify before calling.ProcessException - when there is a failurepublic void complete()
throws ProcessException
ProcessExceptionpublic void stop()
throws ProcessException
ProcessExceptionpublic boolean hasCounters()
throws ProcessException
ProcessExceptionpublic Map<String,Map<String,Long>> getCounters() throws ProcessException
ProcessExceptionpublic boolean hasChildren()
throws ProcessException
ProcessExceptionpublic List<Object> getChildren() throws ProcessException
ProcessExceptionCopyright © 2007-2016 Concurrent, Inc. All Rights Reserved.