public class CleanDirUtility extends PerlInlineScriptUtility
EAC_MAX_TOKEN_LENGTH, ENDECA_CONF, IS_WINDOWS, WINDOWS_MAX_PATH_LENGTH
appName, dataPrefix, eacHost, eacPort, elementId, lockManager, logDir, sslEnabled, workingDir
Constructor and Description |
---|
CleanDirUtility(String appName,
String eacHost,
int eacPort,
boolean sslEnabled)
Default (inherited) constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDir() |
String |
getHost() |
void |
init(String host,
String dir)
Convenience wrapper of init(host, dir, workingDir) that specifies
a null workingDir.
|
void |
init(String host,
String dir,
String workingDir)
CleanDir initializer.
|
void |
init(String host,
String dir,
String workingDir,
boolean skipTestingForFiles)
CleanDir initializer.
|
boolean |
isSkipTestingForFiles() |
void |
run()
Runs the utility synchronously.
|
void |
setDir(String dir) |
void |
setHost(String host) |
void |
setSkipTestingForFiles(boolean skipTestingForFiles) |
init
getPerlBinary
buildEacStub, conditionalRun, getCommand, getHostId, initializeEacStub, maximumAllowedTokenLength, setCommand, setHostId
getDirContents, getMaxMissedStatusChecksAllowed, getMaxWaitTimeSeconds, getMinWaitTimeSeconds, getNonNullPositiveLongValueOrDefault, getNumMissedStatusChecks, getSlowPollingIntervalMs, getStandardPollingIntervalMs, getStatus, incrementMissedStatusQueries, initializeEacStub, isActive, isFailed, 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 CleanDirUtility(String appName, String eacHost, int eacPort, boolean sslEnabled) throws AppConfigurationException
AppConfigurationException
- If the application name or EAC host is null.public void init(String host, String dir)
host
- ID of the host on which to execute the command.dir
- Directory to remove.public void init(String host, String dir, String workingDir)
host
- ID of the host on which to execute the command.dir
- Directory to clean.workingDir
- Working directory from which to execute the command.public void init(String host, String dir, String workingDir, boolean skipTestingForFiles)
host
- ID of the host on which to execute the command.dir
- Directory to clean.workingDir
- Working directory from which to execute the command.skipTestingForFiles
- Defaults to false, causing utility to test the target
directory for files before executing the cleanup shell call. To skip this test,
set this parameter to true.public void run() throws EacCommunicationException, EacComponentControlException
Utility
run
in class Utility
EacCommunicationException
- If a communication error occurs while
requesting the status of the utility from the EAC.EacComponentControlException
- If an error occurs while trying to
start the utility.public String getDir()
public void setDir(String dir)
public String getHost()
public void setHost(String host)
public boolean isSkipTestingForFiles()
public void setSkipTestingForFiles(boolean skipTestingForFiles)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.