public class RollbackUtility extends Utility
EAC_MAX_TOKEN_LENGTH, ENDECA_CONF, IS_WINDOWS, WINDOWS_MAX_PATH_LENGTHappName, 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, waitForFinishedgetAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setLockManager, setLogDir, setSslEnabled, setWorkingDirpublic 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()
UtilitybuildEacStub in class Utilityprotected 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 UtilityCopyright © 2015, Oracle and/or its affiliates. All rights reserved.