public class CreateDirUtility 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 |
---|
CreateDirUtility(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)
CreateDir initializer.
|
void |
run()
Runs the utility synchronously.
|
void |
setDir(String dir) |
void |
setHost(String host) |
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 CreateDirUtility(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 create.public void init(String host, String dir, String workingDir)
host
- ID of the host on which to execute the command.dir
- Directory to create.workingDir
- Working directory from which to execute the command.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)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.