public class RollbackUtility extends Utility
EAC_MAX_TOKEN_LENGTH, ENDECA_CONF, IS_WINDOWS, WINDOWS_MAX_PATH_LENGTH
appName, dataPrefix, eacHost, eacPort, elementId, lockManager, logDir, sslEnabled, workingDir
Constructor and Description |
---|
RollbackUtility() |
RollbackUtility(String appName,
String eacHost,
int eacPort,
boolean sslEnabled)
Default (inherited) constructor.
|
Modifier and Type | Method and Description |
---|---|
com.endeca.eac.client.RunUtilityType |
buildEacStub()
Builds a RunUtilityType object to send to the EAC.
|
String |
getDir() |
String |
getHostId() |
void |
init(String token,
String host,
String dir)
Rollback initializer.
|
protected void |
initializeEacStub(com.endeca.eac.client.RunRollbackType stub) |
protected int |
maximumAllowedTokenLength() |
void |
setDir(String dir) |
void |
setHostId(String hostId) |
getDirContents, getMaxMissedStatusChecksAllowed, getMaxWaitTimeSeconds, getMinWaitTimeSeconds, getNonNullPositiveLongValueOrDefault, getNumMissedStatusChecks, getSlowPollingIntervalMs, getStandardPollingIntervalMs, getStatus, incrementMissedStatusQueries, initializeEacStub, isActive, isFailed, run, runInParallel, setElementId, setMaxMissedStatusQueriesAllowed, setMaxWaitSeconds, setMinWaitSeconds, setNumMissedStatusChecks, setPollingIntervalMs, setSlowPollingIntervalMs, start, stop, waitForFinished
getAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setLockManager, setLogDir, setSslEnabled, setWorkingDir
public RollbackUtility(String appName, String eacHost, int eacPort, boolean sslEnabled) throws AppConfigurationException
AppConfigurationException
- If the application name or EAC host is null.public RollbackUtility()
public void init(String token, String host, String dir)
token
- ID of the rollback utility.host
- ID of the host on which to rollback the directory.dir
- Directory whose most recent backup should be rolled back.public com.endeca.eac.client.RunUtilityType buildEacStub()
Utility
buildEacStub
in class Utility
protected void initializeEacStub(com.endeca.eac.client.RunRollbackType stub)
public String getDir()
public void setDir(String dir)
public String getHostId()
public void setHostId(String hostId)
protected int maximumAllowedTokenLength()
maximumAllowedTokenLength
in class Utility
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.