Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.management.configuration
Interface ScriptMBean

All Superinterfaces:
ConfigurationMBean, DescriptorBean, DynamicMBean, MBeanRegistration, NotificationBroadcaster, SettableBean, WebLogicMBean
All Known Subinterfaces:
PostProcessorScriptMBean, PreProcessorScriptMBean

public interface ScriptMBean
extends ConfigurationMBean
Since:
12.2.1

Field Summary

 

Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY

 

Method Summary
abstract  String[] getArguments()
          The arguments to the command script as well as for the error-handler script
abstract  Properties getEnvironment()
          Returns the properties used to create environment for the script sub-process.
abstract  int getNumberOfRetriesAllowed()
           
abstract  String getPathToErrorHandlerScript()
          Returns the path to the error handler script to be executed.
abstract  String getPathToScript()
          Returns the path to the script to be executed.
abstract  long getRetryDelayInMillis()
           
abstract  int getTimeoutInSeconds()
          Returns the timeout interval for script execution in seconds.
abstract  String getWorkingDirectory()
           
abstract  boolean isIgnoreFailures()
           
abstract  void setArguments(String[] arguments)
          Sets the arguments to the command script as well as for the error-handler script
abstract  void setEnvironment(Properties environment)
          Set properties to be used to create environment for the script sub-process.
abstract  void setIgnoreFailures(boolean ignore)
          Set ignoreFailures flag
abstract  void setNumberOfRetriesAllowed(int retries)
          Set number of allowed retries
abstract  void setPathToErrorHandlerScript(String pathToErrorHandlerScript)
           
abstract  void setPathToScript(String pathToScript)
           
abstract  void setRetryDelayInMillis(long retryDelay)
          Set retry delay
abstract  void setTimeoutInSeconds(int timeout)
          Sets the timeout interval in seconds for script execution.
abstract  void setWorkingDirectory(String workingDirectory)
          Set working directory for running the script

 

Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet

 

Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent

 

Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes

 

Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister

 

Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener

 

Methods inherited from interface weblogic.descriptor.DescriptorBean
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener

 

Method Detail

getWorkingDirectory

String getWorkingDirectory()
Returns:
Working directory which will be used to run the script. If not set or empty, the working directory of the server will be used.

setWorkingDirectory

void setWorkingDirectory(String workingDirectory)
Set working directory for running the script
Parameters:
workingDirectory - Working directory to be used while running the script

getPathToScript

String getPathToScript()
Returns the path to the script to be executed. If null or empty, the script will not be executed. The value should be the path to the script program. If the command is not set, the script is effectively disabled. When specified as a relative path, it will be relative to DomainDir/bin/scripts directory. When specified as an absolute path, the script must be under DomainDir/bin/scripts directory.
Returns:
Script command.

setPathToScript

void setPathToScript(String pathToScript)
Parameters:
the - path to the Script command

getArguments

String[] getArguments()
The arguments to the command script as well as for the error-handler script
Returns:
the arguments to the command script as well as for the error-handler script

setArguments

void setArguments(String[] arguments)
Sets the arguments to the command script as well as for the error-handler script
Parameters:
arguments - the arguments to the command script as well as for the error-handler script

getEnvironment

Properties getEnvironment()
Returns the properties used to create environment for the script sub-process.
Returns:
Additional environmental properties that will be used to create environment for the script sub-process.

setEnvironment

void setEnvironment(Properties environment)
Set properties to be used to create environment for the script sub-process.
Parameters:
environment -

isIgnoreFailures

boolean isIgnoreFailures()
Returns:
True if failures while execution of script specified by getPathToScript() should be ignored.

setIgnoreFailures

void setIgnoreFailures(boolean ignore)
Set ignoreFailures flag
Parameters:
ignore - if true, ignore failures while execution of script specified by getPathToScript()

getNumberOfRetriesAllowed

int getNumberOfRetriesAllowed()
Returns:
Number of times the script should be re-executed in case of failures before declaring failure.

setNumberOfRetriesAllowed

void setNumberOfRetriesAllowed(int retries)
Set number of allowed retries
Parameters:
retries - Number of retries

getRetryDelayInMillis

long getRetryDelayInMillis()
Returns:
Number of miliseconds to wait before re-trying failed script

setRetryDelayInMillis

void setRetryDelayInMillis(long retryDelay)
Set retry delay
Parameters:
retryDelay - Number of milli seconds to wait before re-trying failed script

getPathToErrorHandlerScript

String getPathToErrorHandlerScript()
Returns the path to the error handler script to be executed. If null or empty, the script will not be executed. The value should be the path to the script program. If the command is not set, the error handler is effectively disabled. Note that the error handler script is executed using the same arguments and and environment as the command script. When specified as a relative path, it will be relative to DomainDir/bin/scripts directory. When specified as an absolute path, the script must be under DomainDir/bin/scripts directory.
Returns:
the path to the error handler Script.

setPathToErrorHandlerScript

void setPathToErrorHandlerScript(String pathToErrorHandlerScript)
Parameters:
pathToErrorHandlerScript - the path to the error handler Script.

getTimeoutInSeconds

int getTimeoutInSeconds()
Returns the timeout interval for script execution in seconds. A zero or negative timeout will imply no timeout.
Returns:
Timeout interval in seconds. If zero or negative, there will be no timeout applied.

setTimeoutInSeconds

void setTimeoutInSeconds(int timeout)
Sets the timeout interval in seconds for script execution. If zero or negative, there will be no timeout applied.
Parameters:
timeout -

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09