public interface ScriptMBean extends ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY| Modifier and Type | Method and Description |
|---|---|
String[] |
getArguments()
The arguments to the command script as well as for the error-handler script
|
Properties |
getEnvironment()
Returns the properties used to create environment for the script sub-process.
|
int |
getNumberOfRetriesAllowed() |
String |
getPathToErrorHandlerScript()
Returns the path to the error handler script to be executed.
|
String |
getPathToScript()
Returns the path to the script to be executed.
|
long |
getRetryDelayInMillis() |
int |
getTimeoutInSeconds()
Returns the timeout interval for script execution in seconds.
|
String |
getWorkingDirectory() |
boolean |
isIgnoreFailures() |
void |
setArguments(String[] arguments)
Sets the arguments to the command script as well as for the error-handler script
|
void |
setEnvironment(Properties environment)
Set properties to be used to create environment for the script sub-process.
|
void |
setIgnoreFailures(boolean ignore)
Set ignoreFailures flag
|
void |
setNumberOfRetriesAllowed(int retries)
Set number of allowed retries
|
void |
setPathToErrorHandlerScript(String pathToErrorHandlerScript) |
void |
setPathToScript(String pathToScript) |
void |
setRetryDelayInMillis(long retryDelay)
Set retry delay
|
void |
setTimeoutInSeconds(int timeout)
Sets the timeout interval in seconds for script execution.
|
void |
setWorkingDirectory(String workingDirectory)
Set working directory for running the script
|
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSetgetMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParentgetAttribute, getAttributes, invoke, setAttribute, setAttributespostDeregister, postRegister, preDeregister, preRegisteraddNotificationListener, getNotificationInfo, removeNotificationListeneraddPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListenerString getWorkingDirectory()
void setWorkingDirectory(String workingDirectory)
workingDirectory - Working directory to be used while running the scriptString getPathToScript()
DomainDir/bin/scripts directory. When
specified as an absolute path, the script must be under DomainDir/bin/scripts
directory.void setPathToScript(String pathToScript)
the - path to the Script commandString[] getArguments()
void setArguments(String[] arguments)
arguments - the arguments to the command script as well as for the error-handler scriptProperties getEnvironment()
void setEnvironment(Properties environment)
environment - boolean isIgnoreFailures()
void setIgnoreFailures(boolean ignore)
ignore - if true, ignore failures while execution of script specified by getPathToScript()int getNumberOfRetriesAllowed()
void setNumberOfRetriesAllowed(int retries)
retries - Number of retrieslong getRetryDelayInMillis()
void setRetryDelayInMillis(long retryDelay)
retryDelay - Number of milli seconds to wait before re-trying failed scriptString getPathToErrorHandlerScript()
DomainDir/bin/scripts directory. When specified as an
absolute path, the script must be under DomainDir/bin/scripts directory.void setPathToErrorHandlerScript(String pathToErrorHandlerScript)
pathToErrorHandlerScript - the path to the error handler Script.int getTimeoutInSeconds()
void setTimeoutInSeconds(int timeout)
timeout -