public class ControllerFacade extends Object implements ControllerServiceProvider
| Modifier and Type | Field and Description |
|---|---|
private DtoFactory |
dtoFactory |
private FlowController |
flowController |
private FlowService |
flowService |
private static org.slf4j.Logger |
logger |
private NiFiProperties |
properties |
private UserService |
userService |
| Constructor and Description |
|---|
ControllerFacade() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addIfAppropriate(String searchStr,
String value,
String label,
List<String> matches) |
void |
createArchive()
Creates an archive of the current flow.
|
ControllerServiceNode |
createControllerService(String type,
String id,
Map<String,String> properties) |
private ProvenanceEventDTO |
createProvenanceEventDto(ProvenanceEventRecord event)
Creates a ProvenanceEventDTO for the specified ProvenanceEventRecord.
|
void |
deleteLineage(String lineageId)
Deletes the lineage with the specified id.
|
void |
deleteProvenanceQuery(String provenanceId)
Deletes the query with the specified id.
|
String |
findProcessGroupIdForProcessor(String processorId)
Returns the group id that contains the specified processor.
|
BulletinRepository |
getBulletinRepository()
Gets the BulletinRepository.
|
Integer |
getClusterManagerRemoteSiteListeningPort()
Returns the socket port that the Cluster Manager is listening on for
Site-to-Site communications
|
String |
getComments()
Gets the comments of this controller.
|
StatusHistoryDTO |
getConnectionStatusHistory(String groupId,
String connectionId)
Returns the status history for the specified connection.
|
DownloadableContent |
getContent(Long eventId,
String uri,
ContentDirection contentDirection)
Gets the content for the specified claim.
|
ControllerService |
getControllerService(String serviceIdentifier)
Return the controller service for the specified identifier.
|
Set<String> |
getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType) |
ControllerServiceNode |
getControllerServiceNode(String id) |
ControllerStatusDTO |
getControllerStatus()
Gets the status of this controller.
|
List<Counter> |
getCounters()
Gets the counters for this controller.
|
Set<DocumentedTypeDTO> |
getFlowFileComparatorTypes()
Gets the FlowFileComparator types that this controller supports.
|
Set<DocumentedTypeDTO> |
getFlowFileProcessorTypes()
Gets the FlowFileProcessor types that this controller supports.
|
Set<RootGroupPort> |
getInputPorts()
Gets the input ports on the root group.
|
String |
getInstanceId() |
LineageDTO |
getLineage(String lineageId)
Gets the lineage with the specified id.
|
int |
getMaxEventDrivenThreadCount()
Gets the max event driven thread count of this controller.
|
int |
getMaxTimerDrivenThreadCount()
Gets the max timer driven thread count of this controller.
|
String |
getName()
Gets the name of this controller.
|
org.apache.nifi.cluster.protocol.NodeIdentifier |
getNodeId()
Get the node id of this controller.
|
Set<RootGroupPort> |
getOutputPorts()
Gets the output ports on the root group.
|
ProcessGroupStatusDTO |
getProcessGroupStatus(String groupId)
Gets the status for the specified process group.
|
StatusHistoryDTO |
getProcessGroupStatusHistory(String groupId)
Returns the status history for the specified process group.
|
StatusHistoryDTO |
getProcessorStatusHistory(String groupId,
String processorId)
Returns the status history for the specified processor.
|
ProvenanceEventDTO |
getProvenanceEvent(Long eventId)
Get the provenance event with the specified event id.
|
ProvenanceDTO |
getProvenanceQuery(String provenanceId)
Retrieves the results of a provenance query.
|
ProvenanceOptionsDTO |
getProvenanceSearchOptions()
Gets the available options for searching provenance.
|
StatusHistoryDTO |
getRemoteProcessGroupStatusHistory(String groupId,
String remoteProcessGroupId)
Returns the status history for the specified remote process group.
|
Integer |
getRemoteSiteListeningPort()
Returns the socket port that the local instance is listening on for
Site-to-Site communications
|
String |
getRootGroupId()
Gets the root group id.
|
SystemDiagnostics |
getSystemDiagnostics()
Returns a SystemDiagnostics that describes the current state of the node
|
boolean |
isClustered() |
Boolean |
isClusterManagerRemoteSiteCommsSecure()
Indicates whether or not Site-to-Site communications with the Cluster
Manager are secure
|
boolean |
isControllerServiceEnabled(ControllerService service) |
boolean |
isControllerServiceEnabled(String serviceIdentifier) |
Boolean |
isRemoteSiteCommsSecure()
Indicates whether or not Site-to-Site communications with the local
instance are secure
|
Counter |
resetCounter(String id)
Resets the counter with the specified id.
|
void |
save()
Saves the state of the flow controller.
|
private void |
search(SearchResultsDTO results,
String search,
ProcessGroup group) |
SearchResultsDTO |
search(String search)
Searches this controller for the specified term.
|
private ComponentSearchResultDTO |
search(String searchStr,
Connection connection) |
private ComponentSearchResultDTO |
search(String searchStr,
Funnel funnel) |
private ComponentSearchResultDTO |
search(String searchStr,
Port port) |
private ComponentSearchResultDTO |
search(String searchStr,
ProcessGroup group) |
private ComponentSearchResultDTO |
search(String searchStr,
ProcessorNode procNode) |
private ComponentSearchResultDTO |
search(String searchStr,
RemoteProcessGroup group) |
void |
setComments(String comments)
Sets the comments of this controller.
|
private void |
setComponentDetails(ProvenanceEventDTO dto)
Gets the name for the component with the specified id.
|
void |
setDtoFactory(DtoFactory dtoFactory) |
void |
setFlowController(FlowController flowController) |
void |
setFlowService(FlowService flowService) |
void |
setMaxEventDrivenThreadCount(int maxEventDrivenThreadCount)
Sets the max event driven thread count of this controller.
|
void |
setMaxTimerDrivenThreadCount(int maxTimerDrivenThreadCount)
Sets the max timer driven thread count of this controller.
|
void |
setName(String name)
Sets the name of this controller.
|
void |
setProperties(NiFiProperties properties) |
void |
setUserService(UserService userService) |
LineageDTO |
submitLineage(LineageDTO lineageDto)
Submits the specified lineage request.
|
ProvenanceDTO |
submitProvenance(ProvenanceDTO provenanceDto)
Submits a provenance query.
|
ProvenanceEventDTO |
submitReplay(Long eventId)
Submits a replay request for the specified event id.
|
private static final org.slf4j.Logger logger
private FlowController flowController
private FlowService flowService
private UserService userService
private NiFiProperties properties
private DtoFactory dtoFactory
public void createArchive()
public String findProcessGroupIdForProcessor(String processorId)
processorId - public void setName(String name)
name - public void setComments(String comments)
comments - public void setMaxTimerDrivenThreadCount(int maxTimerDrivenThreadCount)
maxTimerDrivenThreadCount - public void setMaxEventDrivenThreadCount(int maxEventDrivenThreadCount)
maxEventDrivenThreadCount - public String getRootGroupId()
public Set<RootGroupPort> getInputPorts()
public Set<RootGroupPort> getOutputPorts()
public StatusHistoryDTO getProcessorStatusHistory(String groupId, String processorId)
groupId - processorId - public StatusHistoryDTO getConnectionStatusHistory(String groupId, String connectionId)
groupId - connectionId - public StatusHistoryDTO getProcessGroupStatusHistory(String groupId)
groupId - public StatusHistoryDTO getRemoteProcessGroupStatusHistory(String groupId, String remoteProcessGroupId)
groupId - remoteProcessGroupId - public org.apache.nifi.cluster.protocol.NodeIdentifier getNodeId()
public boolean isClustered()
public String getName()
public String getInstanceId()
public String getComments()
public int getMaxTimerDrivenThreadCount()
public int getMaxEventDrivenThreadCount()
public Set<DocumentedTypeDTO> getFlowFileProcessorTypes()
public Set<DocumentedTypeDTO> getFlowFileComparatorTypes()
public Counter resetCounter(String id)
id - public ControllerService getControllerService(String serviceIdentifier)
getControllerService in interface ControllerServiceLookupserviceIdentifier - public ControllerServiceNode createControllerService(String type, String id, Map<String,String> properties)
createControllerService in interface ControllerServiceProviderpublic Set<String> getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType)
getControllerServiceIdentifiers in interface ControllerServiceLookuppublic ControllerServiceNode getControllerServiceNode(String id)
getControllerServiceNode in interface ControllerServiceProviderpublic boolean isControllerServiceEnabled(ControllerService service)
isControllerServiceEnabled in interface ControllerServiceLookuppublic boolean isControllerServiceEnabled(String serviceIdentifier)
isControllerServiceEnabled in interface ControllerServiceLookuppublic ControllerStatusDTO getControllerStatus()
public ProcessGroupStatusDTO getProcessGroupStatus(String groupId)
groupId - public BulletinRepository getBulletinRepository()
public void save()
throws NiFiCoreException
NiFiCoreExceptionpublic Integer getClusterManagerRemoteSiteListeningPort()
public Boolean isClusterManagerRemoteSiteCommsSecure()
public Integer getRemoteSiteListeningPort()
public Boolean isRemoteSiteCommsSecure()
public SystemDiagnostics getSystemDiagnostics()
public ProvenanceOptionsDTO getProvenanceSearchOptions()
public ProvenanceDTO submitProvenance(ProvenanceDTO provenanceDto)
provenanceDto - public ProvenanceDTO getProvenanceQuery(String provenanceId)
provenanceId - public LineageDTO submitLineage(LineageDTO lineageDto)
lineageDto - public LineageDTO getLineage(String lineageId)
lineageId - public void deleteProvenanceQuery(String provenanceId)
provenanceId - public void deleteLineage(String lineageId)
lineageId - public DownloadableContent getContent(Long eventId, String uri, ContentDirection contentDirection)
eventId - uri - contentDirection - public ProvenanceEventDTO submitReplay(Long eventId)
eventId - public ProvenanceEventDTO getProvenanceEvent(Long eventId)
eventId - private ProvenanceEventDTO createProvenanceEventDto(ProvenanceEventRecord event)
event - private void setComponentDetails(ProvenanceEventDTO dto)
dto - public SearchResultsDTO search(String search)
search - private void search(SearchResultsDTO results, String search, ProcessGroup group)
private ComponentSearchResultDTO search(String searchStr, Port port)
private ComponentSearchResultDTO search(String searchStr, ProcessorNode procNode)
private ComponentSearchResultDTO search(String searchStr, ProcessGroup group)
private ComponentSearchResultDTO search(String searchStr, Connection connection)
private ComponentSearchResultDTO search(String searchStr, RemoteProcessGroup group)
private ComponentSearchResultDTO search(String searchStr, Funnel funnel)
private void addIfAppropriate(String searchStr, String value, String label, List<String> matches)
public void setFlowController(FlowController flowController)
public void setProperties(NiFiProperties properties)
public void setUserService(UserService userService)
public void setFlowService(FlowService flowService)
public void setDtoFactory(DtoFactory dtoFactory)
Copyright © 2015 Apache NiFi (incubating). All rights reserved.