|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.workflowelement.WorkflowElement<WorkflowElementCfg>
org.opends.server.workflowelement.LeafWorkflowElement<LocalBackendWorkflowElementCfg>
org.opends.server.workflowelement.localbackend.LocalBackendWorkflowElement
public class LocalBackendWorkflowElement
This class defines a local backend workflow element; e-g an entity that handle the processing of an operation aginst a local backend.
Constructor Summary | |
---|---|
LocalBackendWorkflowElement()
Creates a new instance of the local backend workflow element. |
Method Summary | ||
---|---|---|
ConfigChangeResult |
applyConfigurationChange(LocalBackendWorkflowElementCfg configuration)
Applies the configuration changes to this change listener. |
|
static
|
attachLocalOperation(O globalOperation,
L currentLocalOperation)
Attaches the current local operation to the global operation so that operation runner can execute local operation post response later on. |
|
static LocalBackendWorkflowElement |
createAndRegister(java.lang.String workflowElementID,
Backend backend)
Creates and registers a local backend with the server. |
|
void |
execute(Operation operation)
Executes the workflow element for an operation. |
|
void |
finalizeWorkflowElement()
Performs any finalization that might be required when this workflow element is unloaded. |
|
void |
initializeWorkflowElement(LocalBackendWorkflowElementCfg configuration)
Initializes a new instance of the local backend workflow element. |
|
boolean |
isConfigurationChangeAcceptable(LocalBackendWorkflowElementCfg configuration,
java.util.List<Message> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable to this change listener. |
|
static void |
remove(java.lang.String workflowElementID)
Removes a local backend that was registered with the server. |
|
static void |
removeAll()
Removes all the local backends that were registered with the server. |
Methods inherited from class org.opends.server.workflowelement.WorkflowElement |
---|
deregister, getWorkflowElement, getWorkflowElementID, initialize, isConfigurationAcceptable, isPrivate, register, resetConfig, setParent, setPrivate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalBackendWorkflowElement()
Method Detail |
---|
public void initializeWorkflowElement(LocalBackendWorkflowElementCfg configuration) throws ConfigException, InitializationException
configuration
- The configuration for this local backend
workflow element.
ConfigException
- If there is a problem with the provided
configuration.
InitializationException
- If an error occurs while trying
to initialize this workflow
element that is not related to
the provided configuration.public void finalizeWorkflowElement()
finalizeWorkflowElement
in class WorkflowElement<WorkflowElementCfg>
public boolean isConfigurationChangeAcceptable(LocalBackendWorkflowElementCfg configuration, java.util.List<Message> unacceptableReasons)
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<LocalBackendWorkflowElementCfg>
configuration
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.
true
if the proposed change is
acceptable, or false
if it is not.public ConfigChangeResult applyConfigurationChange(LocalBackendWorkflowElementCfg configuration)
applyConfigurationChange
in interface ConfigurationChangeListener<LocalBackendWorkflowElementCfg>
configuration
- The new configuration containing the changes.
public static LocalBackendWorkflowElement createAndRegister(java.lang.String workflowElementID, Backend backend)
workflowElementID
- the identifier of the workflow element to createbackend
- the backend to associate with the local backend
workflow element
public static void remove(java.lang.String workflowElementID)
workflowElementID
- the identifier of the workflow element to removepublic static void removeAll()
public void execute(Operation operation) throws CanceledOperationException
execute
in class WorkflowElement<WorkflowElementCfg>
operation
- the operation to execute
CanceledOperationException
- if this operation should be
cancelledpublic static final <O extends Operation,L> void attachLocalOperation(O globalOperation, L currentLocalOperation)
O
- subtype of OperationL
- subtype of LocalBackendOperationglobalOperation
- the global operation to which local operation
should be attached tocurrentLocalOperation
- the local operation to attach to the global
operation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |