public class DataHub
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Modifier and Type | Method and Description |
|---|---|
void |
clearUserModules()
Removes user's modules from the modules db
TODO: this becomes much simpler when we move code into the server dir
|
com.marklogic.mgmt.admin.AdminManager |
getAdminManager() |
java.util.List<com.marklogic.appdeployer.command.Command> |
getCommandList() |
com.marklogic.mgmt.resource.databases.DatabaseManager |
getDatabaseManager() |
com.marklogic.mgmt.ManageClient |
getManageClient() |
com.marklogic.mgmt.resource.appservers.ServerManager |
getServerManager() |
void |
initProject() |
void |
install()
Installs the data hub configuration and server-side modules into MarkLogic
|
void |
install(HubDeployStatusListener listener)
Installs the data hub configuration and server-side modules into MarkLogic
|
InstallInfo |
isInstalled()
Determines if the data hub is installed in MarkLogic
|
boolean |
isServerVersionValid(java.lang.String versionString)
Validates the MarkLogic server to ensure compatibility with the hub
|
PreInstallCheck |
runPreInstallCheck() |
PreInstallCheck |
runPreInstallCheck(Versions versions) |
void |
uninstall()
Uninstalls the data hub configuration and server-side modules from MarkLogic
|
void |
uninstall(HubDeployStatusListener listener)
Uninstalls the data hub configuration and server-side modules from MarkLogic
|
void |
updateIndexes() |
public DataHub(HubConfig hubConfig)
public com.marklogic.mgmt.ManageClient getManageClient()
public com.marklogic.mgmt.admin.AdminManager getAdminManager()
public com.marklogic.mgmt.resource.databases.DatabaseManager getDatabaseManager()
public com.marklogic.mgmt.resource.appservers.ServerManager getServerManager()
public InstallInfo isInstalled()
public boolean isServerVersionValid(java.lang.String versionString)
versionString - - the version of the server to validateServerValidationException - if the server is not compatiblepublic void initProject()
public void clearUserModules()
public java.util.List<com.marklogic.appdeployer.command.Command> getCommandList()
public PreInstallCheck runPreInstallCheck()
public PreInstallCheck runPreInstallCheck(Versions versions)
public void install()
public void install(HubDeployStatusListener listener)
listener - - the callback method to receive status updatespublic void updateIndexes()
public void uninstall()
public void uninstall(HubDeployStatusListener listener)
listener - - the callback method to receive status updates