public interface Operation
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Reclaim resources if any prior to exiting ...
|
void |
execute()
Execute the operation.
|
byte[] |
getBytes()
Marshall this operation as a stream of bytes
|
DatasetCollection |
getDatasetCollection()
Retrieve the dataset that is associated with this particular operation.
|
java.lang.String |
getDomain()
Get information about the domain for this operation
|
ExecutionProfile |
getExecutionProfile()
Retrieve the execution profile associated with this operation
|
java.lang.String |
getInstanceIdentifier()
Retrieve the instance identifier for this operation.
|
java.lang.String |
getOperationIdentifier()
Retrieve the identifier associated with this operation.
|
java.util.Properties |
getProcessingDirectives()
These properties encapsulate the set of processing directives that are
needed to initialize the operation in question.
|
long |
getVersionInformation()
A monotonically increasing version number needs to be associated with the
operations.
|
boolean |
hasDatasetCollection()
Returns true if this operation operates on an underlying dataset
collection.
|
boolean |
hasExecutionProfile()
Check to see if this operation has an execution profile
|
boolean |
hasProcessingDirectives()
Checks to see if the operation has processing directives
|
void |
initialize(java.util.Properties processingDirectives)
Initialize the operation based on the specified processing directives.
|
boolean |
isInitialized()
Check if the operation has been initialized
|
boolean |
needsInitialization()
Returns an indicator that indicates if the initialization needs to be
performed.
|
boolean |
terminationConditionReached()
This indicates if the operation has completed or not.
|
java.lang.String |
toString()
A summarized String-based representation of the operation
|
void |
unmarshall(byte[] marshalledBytes)
Unmarshall the operation from a set of marshalled bytes.
|
java.lang.String getOperationIdentifier()
java.lang.String getInstanceIdentifier()
java.lang.String getDomain()
long getVersionInformation()
byte[] getBytes() throws java.io.IOException
java.io.IOException
- If there are problems Marshalling this operation.void unmarshall(byte[] marshalledBytes) throws java.io.IOException, DatasetException
marshalledBytes
- The byte[] representation of the operation.java.io.IOException
- If there are problems unmarshalling this operation.DatasetException
boolean hasProcessingDirectives()
true
if the operation has processing directives;
false
otherwise.java.util.Properties getProcessingDirectives()
void dispose()
boolean hasDatasetCollection()
true
if the operation has an underlying dataset
collection; false
otherwise.DatasetCollection getDatasetCollection()
void initialize(java.util.Properties processingDirectives) throws ProcessingException
processingDirectives
- The specified processing directivesProcessingException
- If there are problems initializing based on the specified
processing directives.void execute() throws ProcessingException
ProcessingException
- If there are problems executing the operation in question.boolean isInitialized()
true
if the operation has been initialized;
false
otherwise.boolean needsInitialization()
true
if the operation has needs to be initialized;
false
otherwise.boolean terminationConditionReached()
true
if the operation has reached its termination
condition; false
otherwise.boolean hasExecutionProfile()
true
if the operation has an execution profile;
false
otherwise.ExecutionProfile getExecutionProfile()
java.lang.String toString()
toString
in class java.lang.Object