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.scripting.utils
Class WLSTInterpreter

java.lang.Object
  extended by org.python.util.PythonInterpreter
      extended by org.python.util.InteractiveInterpreter
          extended by weblogic.management.scripting.utils.WLSTInterpreter


public class WLSTInterpreter
extends org.python.util.InteractiveInterpreter

This is a wrapper class to the Jython interpreter. It adds Weblogic specific extensions that enable you to run WLST in Embedded Mode from a Java client

NOTE: WLSTInterpreter is not designed to have multiple active instances within one process. If you need multiple simultaneous instances, then you should use multiple JVM processes with one WLSTInterpreter in each. For more information see http://www.jython.org/docs/javadoc/org/python/util/InteractiveInterpreter.html


Field Summary
static String DISABLE_PLUGIN_JAR_LOADING_MODE
          Key used to specify whether or not to automatically load the WLST dependency JARs from the <product-home>/plugins/wlst directory in this interpreter.
static String ENABLE_SCRIPT_MODE
          Key used to specifies whether WLST should enables script mode.
static String ONLINE_ONLY_MODE
          Key used to specify wheether or not only online commands are supported by this interpreter.
static String SCRIPT_DIR
          Key used to specifies script directory.
static String SKIP_WLS_MODULE_SCANNING
          Key used to specifies whether WLST should skip scanning of WLS modules.

 

Fields inherited from class org.python.util.InteractiveInterpreter
buffer, filename

 

Fields inherited from class org.python.util.PythonInterpreter
cflags, systemState

 

Method Summary
 void exec(String string)
          Executes Jython commands that are passed in as a string.
 void execfile(String string)
          Executes Jython commands that are passed in as a file.
 ClassLoader getClassLoader()
           
 boolean getDisablePluginJarLoadingMode()
          Get the disablePluginJarLoadingMode setting.
 boolean getDisconnected()
          Get the disconnected setting.
 boolean getEaseSyntax()
          Get the easeSyntax setting.
 org.python.core.PyObject getOfflineCMO()
          Get the offline cmo value.
 org.python.core.PyObject getOfflinePrompt()
          Get the offline prompt value.
 boolean getOnlineOnlyMode()
          Get the onlineOnlyMode setting.
 boolean getRecordAll()
          Get the recordAll setting.
 boolean getRecordingInProgress()
          Get the recordingInProgress setting.
 String getScriptDir()
          Get the scriptDir setting.
 boolean getScriptMode()
          Get the scriptMode setting.
 boolean isStandalone()
          Check if it's standalone WLST or not.
 boolean runsource(String command, String source, weblogic.management.scripting.JLineWrapper wrapper)
           
 void setClassLoader(ClassLoader cls)
           
 void setDisablePluginJarLoadingMode(boolean disablePluginJarLoadingMode)
          Set the disablePluginJarLoadingMode setting.
 void setDisconnected(boolean disconnected)
          Set the disconnected setting.
 void setEaseSyntax(boolean easeSyntax)
          Set the easeSyntax setting.
 void setOfflineCMO(org.python.core.PyObject offlineCMO)
          Set the offline cmo value.
 void setOfflinePrompt(org.python.core.PyObject offlinePrompt)
          Set the offline prompt value.
 void setOnlineOnlyMode(boolean onlineOnlyMode)
          Set the onlineOnlyMode setting.
 void setRecordAll(boolean recordAll)
          Set the recordAll setting.
 void setRecordingInProgress(boolean recordingInProgress)
          Set the recordingInProgress setting.
 void setScriptMode(boolean scriptMode)
          Set the scriptMode setting.

 

Methods inherited from class org.python.util.InteractiveInterpreter
interrupt, resetbuffer, runcode, runsource, runsource, runsource, showexception, write

 

Methods inherited from class org.python.util.PythonInterpreter
cleanup, eval, exec, execfile, execfile, get, get, getLocals, initialize, set, set, setErr, setErr, setErr, setLocals, setOut, setOut, setOut, setState

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

SKIP_WLS_MODULE_SCANNING

public static final String SKIP_WLS_MODULE_SCANNING
Key used to specifies whether WLST should skip scanning of WLS modules. In the Hashtable, specify this key and a Boolean as the value.
See Also:
Constant Field Values

ENABLE_SCRIPT_MODE

public static final String ENABLE_SCRIPT_MODE
Key used to specifies whether WLST should enables script mode. In the Hashtable, specify this key and a Boolean as the value.
See Also:
Constant Field Values

SCRIPT_DIR

public static final String SCRIPT_DIR
Key used to specifies script directory. In the Hashtable, specify this key and a String as the value.
See Also:
Constant Field Values

ONLINE_ONLY_MODE

public static final String ONLINE_ONLY_MODE
Key used to specify wheether or not only online commands are supported by this interpreter. In the Hashtable, specify this key and a Boolean as the value.
See Also:
Constant Field Values

DISABLE_PLUGIN_JAR_LOADING_MODE

public static final String DISABLE_PLUGIN_JAR_LOADING_MODE
Key used to specify whether or not to automatically load the WLST dependency JARs from the <product-home>/plugins/wlst directory in this interpreter. In the Hashtable, specify this key and a Boolean as the value.
See Also:
Constant Field Values

Method Detail

setClassLoader

public void setClassLoader(ClassLoader cls)

getClassLoader

public ClassLoader getClassLoader()

exec

public void exec(String string)
Executes Jython commands that are passed in as a string.
Overrides:
exec in class org.python.util.PythonInterpreter
Parameters:
string - String

execfile

public void execfile(String string)
Executes Jython commands that are passed in as a file.
Overrides:
execfile in class org.python.util.PythonInterpreter
Parameters:
string - String

runsource

public boolean runsource(String command,
                         String source,
                         weblogic.management.scripting.JLineWrapper wrapper)

getEaseSyntax

public boolean getEaseSyntax()
Get the easeSyntax setting.
Returns:
true if easeSyntax is enabled, false otherwise

setEaseSyntax

public void setEaseSyntax(boolean easeSyntax)
Set the easeSyntax setting.
Parameters:
easeSyntax - - true if easeSyntax is enabled, false otherwise

getScriptMode

public boolean getScriptMode()
Get the scriptMode setting.
Returns:
true if running in scriptMode, false otherwise

setScriptMode

public void setScriptMode(boolean scriptMode)
Set the scriptMode setting.
Parameters:
scriptMode - - true if running in script mode, false otherwise

getOnlineOnlyMode

public boolean getOnlineOnlyMode()
Get the onlineOnlyMode setting.
Returns:
true if running in onlineOnlyMode, false otherwise

setOnlineOnlyMode

public void setOnlineOnlyMode(boolean onlineOnlyMode)
Set the onlineOnlyMode setting.
Parameters:
onlineOnlyMode - - true if running in onlineOnly mode, false otherwise

getDisablePluginJarLoadingMode

public boolean getDisablePluginJarLoadingMode()
Get the disablePluginJarLoadingMode setting.
Returns:
true if running with plugin jar loading is disabled, false otherwise

setDisablePluginJarLoadingMode

public void setDisablePluginJarLoadingMode(boolean disablePluginJarLoadingMode)
Set the disablePluginJarLoadingMode setting.
Parameters:
disablePluginJarLoadingMode - - true to disable plugin jar loading, false otherwise

getRecordingInProgress

public boolean getRecordingInProgress()
Get the recordingInProgress setting.
Returns:
true if recording, false otherwise

setRecordingInProgress

public void setRecordingInProgress(boolean recordingInProgress)
Set the recordingInProgress setting.
Parameters:
recordingInProgress - - true if recording, false otherwise

getRecordAll

public boolean getRecordAll()
Get the recordAll setting.
Returns:
true if recording all, false otherwise

setRecordAll

public void setRecordAll(boolean recordAll)
Set the recordAll setting.
Parameters:
recordAll - - true if recording all, false otherwise

getOfflineCMO

public org.python.core.PyObject getOfflineCMO()
Get the offline cmo value.
Returns:
offline cmo object

setOfflineCMO

public void setOfflineCMO(org.python.core.PyObject offlineCMO)
Set the offline cmo value.
Parameters:
offlineCMO - - offline cmo value

getOfflinePrompt

public org.python.core.PyObject getOfflinePrompt()
Get the offline prompt value.
Returns:
offline prompt object

setOfflinePrompt

public void setOfflinePrompt(org.python.core.PyObject offlinePrompt)
Set the offline prompt value.
Parameters:
offlinePrompt - - offline cmo value

getDisconnected

public boolean getDisconnected()
Get the disconnected setting.
Returns:
true if disconnected, false otherwise

setDisconnected

public void setDisconnected(boolean disconnected)
Set the disconnected setting.
Parameters:
disconnected - - true if disconnected, false otherwise

isStandalone

public boolean isStandalone()
Check if it's standalone WLST or not.
Returns:
true if is standalone WLST, false otherwise

getScriptDir

public String getScriptDir()
Get the scriptDir setting.
Returns:
list of directories from which to load py files

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