public class CurlUtility extends ShellUtility
EAC_MAX_TOKEN_LENGTH, ENDECA_CONF, IS_WINDOWS, WINDOWS_MAX_PATH_LENGTH
appName, dataPrefix, eacHost, eacPort, elementId, lockManager, logDir, sslEnabled, workingDir
Constructor and Description |
---|
CurlUtility(String appName,
String eacHost,
int eacPort,
boolean sslEnabled)
Default (inherited) constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getBinaryDir() |
protected String |
getCurlBinary() |
void |
init(String host,
String url)
Convenience wrapper of init(host, dir, workingDir) that specifies
a null workingDir.
|
void |
init(String host,
String url,
String workingDir)
Curl initializer.
|
void |
init(String host,
String url,
String workingDir,
String certFile,
String caFile)
Curl initializer.
|
buildEacStub, conditionalRun, getCommand, getHostId, init, initializeEacStub, maximumAllowedTokenLength, setCommand, setHostId
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 CurlUtility(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 url)
host
- ID of the host on which to execute the command.url
- URL to curl.public void init(String host, String url, String workingDir)
host
- ID of the host on which to execute the command.url
- URL to curl.workingDir
- Working directory from which to execute the command.public void init(String host, String url, String workingDir, String certFile, String caFile)
host
- ID of the host on which to execute the command.url
- URL to curl.workingDir
- Working directory from which to execute the command.certFile
- The certificate file that is needed to use an HTTPS URL. This
is 'null' if HTTP is used instead.caFile
- The Certificate Authority that is needed to verify the various
certificates when using an HTTPS URL. This is 'null' if HTTP
is used instead.protected String getCurlBinary()
protected String getBinaryDir()
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.