public class CopyUtility 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 |
---|
CopyUtility() |
CopyUtility(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 |
getDest() |
String |
getDestHostId() |
String |
getSrc() |
String |
getSrcHostId() |
void |
init(String token,
String fromHost,
String toHost,
String src,
String dest,
boolean recursive)
Copy initializer.
|
protected void |
initializeEacStub(com.endeca.eac.client.RunFileCopyType stub) |
boolean |
isRecursive() |
protected int |
maximumAllowedTokenLength() |
void |
setDest(String dest) |
void |
setDestHostId(String destHostId) |
void |
setRecursive(boolean recursive) |
void |
setSrc(String src) |
void |
setSrcHostId(String srcHostId) |
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 CopyUtility(String appName, String eacHost, int eacPort, boolean sslEnabled) throws AppConfigurationException
AppConfigurationException
- If the application name or EAC host is null.public CopyUtility()
public void init(String token, String fromHost, String toHost, String src, String dest, boolean recursive)
token
- ID of the copy utility.fromHost
- ID of the source host.toHost
- ID of the destination host.src
- Source path.dest
- Destination path.recursive
- Boolean indicating whether copy is recursive.public com.endeca.eac.client.RunUtilityType buildEacStub()
Utility
buildEacStub
in class Utility
protected void initializeEacStub(com.endeca.eac.client.RunFileCopyType stub)
public String getDest()
public void setDest(String dest)
public String getDestHostId()
public void setDestHostId(String destHostId)
public boolean isRecursive()
public void setRecursive(boolean recursive)
public String getSrc()
public void setSrc(String src)
public String getSrcHostId()
public void setSrcHostId(String srcHostId)
protected int maximumAllowedTokenLength()
maximumAllowedTokenLength
in class Utility
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.