public interface DataHub
Modifier and Type | Method and Description |
---|---|
void |
clearUserModules()
Removes user's modules from the modules db
|
FlowRunner |
getFlowRunner()
Creates and returns the FlowRunner object using the datahub's autowired hubconfig
|
java.lang.String |
getPortInUseBy(com.marklogic.hub.DatabaseKind kind)
Returns name of what is using the port
|
java.lang.String |
getServerVersion()
Returns the string presentation of the server version, eg: "9.03-1"
|
void |
initProject()
Initializes the project on disk, creates scaffold project code
|
void |
install()
Installs the data hub configuration and server-side config files into MarkLogic
Must be run as a user with sufficient privileges to install a data hub.
|
InstallInfo |
isInstalled()
Determines if the data hub is installed in MarkLogic
|
boolean |
isPortInUse(com.marklogic.hub.DatabaseKind kind)
Checks to see if the port is in use
|
boolean |
isSafeToInstall()
Checks to make sure all the versions and database in a valid configuration with version check
Must be run as a user with sufficient privileges to install a data hub.
|
boolean |
isServerVersionOk()
Checks to see if the datahub and server versions are compatible
|
boolean |
isServerVersionValid(java.lang.String versionString)
Validates the MarkLogic server to ensure compatibility with the hub
|
java.util.Map<java.lang.String,java.lang.Object> |
runPreInstallCheck()
Runs the pre-install check for the datahub populating the object
with variables necessary to perform the install.
|
void |
updateIndexes()
Updates the indexes in the database based on the project
Must be run as a user with flow-developer-role or equivalent
|
boolean |
upgradeHub()
Upgrades the installed datahub on the server to this version of the DataHub
Must be run as a user with sufficient privileges to install a data hub.
|
InstallInfo isInstalled()
boolean isServerVersionValid(java.lang.String versionString)
versionString
- - the version of the server to validateServerValidationException
- if the server is not compatiblevoid initProject()
void clearUserModules()
java.util.Map<java.lang.String,java.lang.Object> runPreInstallCheck()
void install()
void updateIndexes()
boolean isSafeToInstall()
boolean isPortInUse(com.marklogic.hub.DatabaseKind kind)
kind
- - the DatabaseKind enum value (ex STAGING or JOB)java.lang.String getPortInUseBy(com.marklogic.hub.DatabaseKind kind)
kind
- - the DatabaseKind enum value (ex STAGING or JOB)boolean isServerVersionOk()
java.lang.String getServerVersion()
boolean upgradeHub()
FlowRunner getFlowRunner()