public class BackupUtility 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 |
|---|
BackupUtility() |
BackupUtility(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() |
int |
getNumBackups() |
void |
init(String token,
String host,
String dir,
boolean isMove,
int numBackups)
Backup initializer.
|
protected void |
initializeEacStub(com.endeca.eac.client.RunBackupType stub) |
boolean |
isMove() |
protected int |
maximumAllowedTokenLength() |
void |
setDir(String dir) |
void |
setHostId(String hostId) |
void |
setMove(boolean isMove) |
void |
setNumBackups(int numBackups) |
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 BackupUtility(String appName, String eacHost, int eacPort, boolean sslEnabled) throws AppConfigurationException
AppConfigurationException - If the application name or EAC host is null.public BackupUtility()
public void init(String token, String host, String dir, boolean isMove, int numBackups)
token - ID of the backup utility.host - ID of the host on which to backup the directory.dir - Directory to back up.isMove - True if the backup should remove the existing directory, false
if the backup should simply copy the directory.numBackups - Number of backups to keep.public com.endeca.eac.client.RunUtilityType buildEacStub()
UtilitybuildEacStub in class Utilityprotected void initializeEacStub(com.endeca.eac.client.RunBackupType stub)
public String getDir()
public void setDir(String dir)
public String getHostId()
public void setHostId(String hostId)
public boolean isMove()
public void setMove(boolean isMove)
public int getNumBackups()
public void setNumBackups(int numBackups)
protected int maximumAllowedTokenLength()
maximumAllowedTokenLength in class UtilityCopyright © 2015, Oracle and/or its affiliates. All rights reserved.