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.diagnostics.descriptor
Interface WLDFScriptActionBean

All Superinterfaces:
WLDFBean, WLDFNotificationBean

public interface WLDFScriptActionBean
extends WLDFNotificationBean

Configures an action that can execute an external command-line process. This action type can be used to execute custom scripts when a policy rule is triggered.

Note that any child process forked by an action of this type will have all the rights and privileges of the WebLogic Server process that spawns it. Care must be taken that the target script is available and can be read/executed by the system-level identity that owns the WebLogic Server process.


Method Summary
abstract  Properties getEnvironment()
          A map of environment variables to set for the child process.
abstract  String[] getParameters()
          An array of ordered command-line arguments to the target script.
abstract  String getPathToScript()
          The full path to the script to execute.
abstract  String getWorkingDirectory()
          The working directory for the child process.
abstract  void setEnvironment(Properties environment)
          Set environment for the script
abstract  void setParameters(String[] parameters)
          Set parameters to be passed to the script
abstract  void setPathToScript(String pathToScript)
          Set path to script
abstract  void setWorkingDirectory(String workingDirectory)
          Set working directory

 

Methods inherited from interface weblogic.diagnostics.descriptor.WLDFNotificationBean
getTimeout, isEnabled, setEnabled, setTimeout

 

Methods inherited from interface weblogic.diagnostics.descriptor.WLDFBean
getId, getName

 

Method Detail

getWorkingDirectory

String getWorkingDirectory()
The working directory for the child process. If not set the working directory will be the same as the WebLogic Server parent process.
Returns:
Working directory

setWorkingDirectory

void setWorkingDirectory(String workingDirectory)
Set working directory

getPathToScript

String getPathToScript()
The full path to the script to execute.
Returns:

setPathToScript

void setPathToScript(String pathToScript)
Set path to script
Parameters:
pathToScript - Path to script

getEnvironment

Properties getEnvironment()
A map of environment variables to set for the child process.
Returns:

setEnvironment

void setEnvironment(Properties environment)
Set environment for the script
Parameters:
environment - Environment for the script

getParameters

String[] getParameters()
An array of ordered command-line arguments to the target script.
Returns:

setParameters

void setParameters(String[] parameters)
Set parameters to be passed to the script
Parameters:
parameters - Parameters to be passed to the script

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