@Component public class LegacyFlowManagerImpl extends java.lang.Object implements LegacyFlowManager
Constructor and Description |
---|
LegacyFlowManagerImpl() |
LegacyFlowManagerImpl(HubConfig hubConfig)
For use outside of a Spring container.
|
Modifier and Type | Method and Description |
---|---|
LegacyFlow |
getFlow(java.lang.String entityName,
java.lang.String flowName)
Retrieves a named flow from a given entity
|
LegacyFlow |
getFlow(java.lang.String entityName,
java.lang.String flowName,
FlowType flowType)
Retrieves a named flow from a given entity
|
LegacyFlow |
getFlowFromProperties(java.nio.file.Path propertiesFile)
Obtains a flow from a property file
|
java.util.List<LegacyFlow> |
getFlows(java.lang.String entityName)
Retrieves a list of flows installed on the MarkLogic server
|
java.util.List<LegacyFlow> |
getLocalFlows()
retrieves a list of all the flows on the local files systems
|
java.util.List<LegacyFlow> |
getLocalFlowsForEntity(java.lang.String entityName)
retrieves a list of all the flows on the local files systems
|
java.util.List<LegacyFlow> |
getLocalFlowsForEntity(java.lang.String entityName,
FlowType flowType)
retrieves a list of all the flows on the local files systems
|
LegacyFlowRunner |
newFlowRunner()
Creates and returns a new LegacyFlowRunner object using the FlowManager's hubconfig
|
void |
setHubConfig(HubConfig hubConfig)
Set HubConfig
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flowFromXml
public LegacyFlowManagerImpl()
public LegacyFlowManagerImpl(HubConfig hubConfig)
hubConfig
- public void setHubConfig(HubConfig hubConfig)
LegacyFlowManager
setHubConfig
in interface LegacyFlowManager
hubConfig
- a hubConfig objectpublic java.util.List<LegacyFlow> getLocalFlows()
LegacyFlowManager
getLocalFlows
in interface LegacyFlowManager
public java.util.List<LegacyFlow> getLocalFlowsForEntity(java.lang.String entityName)
LegacyFlowManager
getLocalFlowsForEntity
in interface LegacyFlowManager
entityName
- - string name of the entity for the flowpublic java.util.List<LegacyFlow> getLocalFlowsForEntity(java.lang.String entityName, FlowType flowType)
LegacyFlowManager
getLocalFlowsForEntity
in interface LegacyFlowManager
entityName
- - string name of the entity for the flowflowType
- - the FlowType enum, eg: ingest or harmonizepublic LegacyFlow getFlowFromProperties(java.nio.file.Path propertiesFile)
LegacyFlowManager
getFlowFromProperties
in interface LegacyFlowManager
propertiesFile
- - the Path to the property filepublic java.util.List<LegacyFlow> getFlows(java.lang.String entityName)
LegacyFlowManager
getFlows
in interface LegacyFlowManager
entityName
- - the entity from which to fetch the flowspublic LegacyFlow getFlow(java.lang.String entityName, java.lang.String flowName)
LegacyFlowManager
getFlow
in interface LegacyFlowManager
entityName
- - the entity that the flow belongs toflowName
- - the name of the flow to getpublic LegacyFlow getFlow(java.lang.String entityName, java.lang.String flowName, FlowType flowType)
LegacyFlowManager
getFlow
in interface LegacyFlowManager
entityName
- - the entity that the flow belongs toflowName
- - the name of the flow to getflowType
- - the type of flow (ingest/harmonize)public LegacyFlowRunner newFlowRunner()
LegacyFlowManager
newFlowRunner
in interface LegacyFlowManager