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
ProcessException
public Object getDependencyIncoming() throws ProcessException
ProcessException
public Object getConfiguration() throws ProcessException
ProcessException
public 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
ProcessException
public void stop() throws ProcessException
ProcessException
public boolean hasCounters() throws ProcessException
ProcessException
public Map<String,Map<String,Long>> getCounters() throws ProcessException
ProcessException
public boolean hasChildren() throws ProcessException
ProcessException
public List<Object> getChildren() throws ProcessException
ProcessException
Copyright © 2007-2017 Concurrent, Inc. All Rights Reserved.