TPTP 4.2.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.provisional.correlation.common
Interface IOperationContext

All Known Subinterfaces:
ICorrelationOperationContext

public interface IOperationContext

Defines a generic context in which a log analyzer operation is executed. The intention of this interface is to adapt objects required by log analyzer operations. For example it could adapt an IOperationMonitor neccessary to monitor progress activity on an import/export symptom database operation. In an import symptom catalog operation it could also provide information about the model that will be instantiated to persist the imported symptom database.


Method Summary
 java.lang.Object getAdapter(java.lang.Class cls)
          Returns an object which is an instance of the given class associated with this object.
 IOperationStatus getStatus()
           
 void setStatus(IOperationStatus status)
          Sets the current status of the operation.
 

Method Detail

getAdapter

public java.lang.Object getAdapter(java.lang.Class cls)
Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found. The implementer of org.eclipse.tptp.platform.association.engine.IAssociationEngine would need to query the context for adapters of org.eclipse.tptp.platform.provisional.log.analyzer.core.IOperationMonitor for a an association process monitor. In the case of a correlation request the implementer should also query for adapters of org.eclipse.hyades.models.hierarchy.CorrelationContainerProxy.

Returns:
an object castable to the given class, or null if this object does not have an adapter for the given class.

getStatus

public IOperationStatus getStatus()
Returns:
The status of the operaion.

setStatus

public void setStatus(IOperationStatus status)
Sets the current status of the operation.

Parameters:
status -

TPTP 4.2.0 Platform Project
Public API Specification