public abstract class GIComputation extends MapReduceBase
Operation.OperationType| Modifier and Type | Field and Description |
|---|---|
static java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String> |
check |
static java.lang.String |
DATASET_ID |
static boolean |
debugSubActive |
static java.lang.ThreadLocal<java.lang.String> |
trace |
MODULE| Constructor and Description |
|---|
GIComputation() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Execute the operation.
|
ComputationDescription |
getDescription() |
static int |
getID(java.lang.String s) |
java.lang.String |
getJobID() |
ComputationStats |
getStats() |
ComputationUsage |
getUsage() |
void |
initialize(java.util.Properties providedDirectives)
Initialize the operation based on the specified processing directives.
|
void |
marshall(FormatWriter mFormat) |
void |
setDetails(GIPlacementDetails inServDetails,
ComputationDescription inCompDesc,
java.lang.String inJobID,
boolean inActive,
GIPlacementNode.Migration inMigrConf,
java.lang.String inDebID) |
void |
setInitializationComplete()
Mark the initialization of the application as having completed
|
void |
setTeminationConditionReached()
Mark the termination condition of this operation as having reached.
|
void |
startMigration(double inScore) |
void |
unmarshall(FormatReader mFormat)
Unmarshall the operation from a set of marshalled bytes.
|
addMap, addReduce, createResults, getAwaitingOutputsFrom, getDatasetCollection, getMapIdentifiers, getNumberOfMaps, getNumberOfReducers, getReduceIdentifiers, isAwaitingOutputs, removeMap, removeReduce, resetOutputTracker, setReceivedOutputFrom, writeResults, writeResults, writeResults, writeResultsdispose, getDomain, getExecutionProfile, getInstanceIdentifier, getOperationIdentifier, getProcessingDirectives, getVersionInformation, hasDatasetCollection, hasExecutionProfile, hasProcessingDirectives, isInitialized, markInitializationAsComplete, needsInitialization, setAsExecuteFixedNumberOfTimes, setAsExecuteOnce, setAsExecutePeriodically, setAsExecuteWhenDataAvailable, setAsStayAlive, setDatasetCollection, setDomain, setInitializationNeeded, setInstanceIdentifier, setOperationIdentifier, setProcessingDirectives, setVersionInformation, terminationConditionReached, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitdispose, getDomain, getExecutionProfile, getInstanceIdentifier, getOperationIdentifier, getProcessingDirectives, getVersionInformation, hasDatasetCollection, hasExecutionProfile, hasProcessingDirectives, isInitialized, needsInitialization, terminationConditionReached, toStringpublic static final java.lang.String DATASET_ID
public static volatile boolean debugSubActive
public static final java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String> check
public static final java.lang.ThreadLocal<java.lang.String> trace
public void unmarshall(FormatReader mFormat) throws FormatException
Operationunmarshall in interface Operationunmarshall in class MapReduceBasemFormat - The byte[] representation of the operation.FormatExceptionpublic void marshall(FormatWriter mFormat) throws FormatException
marshall in interface FormatMarshallermarshall in class MapReduceBasemFormat - - The format writer to write toFormatException - If there was a problem while writingpublic void setDetails(GIPlacementDetails inServDetails, ComputationDescription inCompDesc, java.lang.String inJobID, boolean inActive, GIPlacementNode.Migration inMigrConf, java.lang.String inDebID)
public java.lang.String getJobID()
public ComputationDescription getDescription()
public ComputationUsage getUsage()
public ComputationStats getStats()
public final void initialize(java.util.Properties providedDirectives)
throws ProcessingException
Operationinitialize in interface Operationinitialize in class OperationBaseprovidedDirectives - The specified processing directivesProcessingException - If there are problems initializing based on the specified
processing directives.public final void execute()
throws ProcessingException
Operationexecute in interface Operationexecute in class OperationBaseProcessingException - If there are problems executing the operation in question.public void startMigration(double inScore)
throws MapReduceException
MapReduceExceptionpublic void setInitializationComplete()
OperationConfigurationsetInitializationComplete in interface OperationConfigurationsetInitializationComplete in class OperationBasepublic void setTeminationConditionReached()
OperationConfigurationsetTeminationConditionReached in interface OperationConfigurationsetTeminationConditionReached in class OperationBasepublic static int getID(java.lang.String s)