public interface DataFlowManagementService
Modifier and Type | Method and Description |
---|---|
Set<NodeIdentifier> |
getNodeIds()
Returns the set of node identifiers the service is using to retrieve the flow.
|
PersistedFlowState |
getPersistedFlowState() |
int |
getRetrievalDelaySeconds() |
boolean |
isFlowCurrent() |
boolean |
isRunning() |
ClusterDataFlow |
loadDataFlow()
Loads the dataflow.
|
void |
setNodeIds(Set<NodeIdentifier> nodeIds)
Sets the node identifiers to use when attempting to retrieve the flow.
|
void |
setPersistedFlowState(PersistedFlowState flowState)
Sets the state of the flow.
|
void |
setRetrievalDelay(String delay)
Sets the retrieval delay.
|
void |
start()
Starts the instance.
|
void |
stop()
Stops the instance.
|
void |
updateControllerServices(byte[] serializedControllerServices)
Updates the dataflow with the given serialized form of the Controller Services that are to exist on the NCM.
|
void |
updatePrimaryNode(NodeIdentifier nodeId)
Updates the dataflow with the given primary node identifier.
|
void |
updateReportingTasks(byte[] serializedReportingTasks)
Updates the dataflow with the given serialized form of Reporting Tasks that are to exist on the NCM.
|
void start()
void stop()
boolean isRunning()
ClusterDataFlow loadDataFlow()
void updatePrimaryNode(NodeIdentifier nodeId) throws DaoException
nodeId
- the node identifierDaoException
- if the update failedvoid updateControllerServices(byte[] serializedControllerServices) throws DaoException
serializedControllerServices
- servicesDaoException
- exvoid updateReportingTasks(byte[] serializedReportingTasks) throws DaoException
serializedReportingTasks
- tasksDaoException
- exvoid setPersistedFlowState(PersistedFlowState flowState)
flowState
- the statePersistedFlowState
PersistedFlowState getPersistedFlowState()
boolean isFlowCurrent()
void setNodeIds(Set<NodeIdentifier> nodeIds)
nodeIds
- the node identifiersSet<NodeIdentifier> getNodeIds()
int getRetrievalDelaySeconds()
void setRetrievalDelay(String delay)
delay
- the retrieval delay in secondsCopyright © 2016 Apache NiFi Project. All rights reserved.