java.lang.Object
com.ibm.jvm.dtfjview.Session
- All Implemented Interfaces:
ISession
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the supplied command.voidexecute(String line, PrintStream redirector) Execute a command line.voidConvenience method which instructs the session to search through all the available contexts and set the current one to the first one it finds with a non-corrupt DTFJ JavaRuntime in it.Get the manager which is managing this context within this session.The currently selected context against which commands will be executed.static ISessiongetInstance(String[] args) Factory method for creating new sessions.The instance which is managing all registered output channels.voidrun()voidsetContext(int id) Set the context within which subsequent commands will be executed.voidsetContext(ICombinedContext switchTo) Set the context within which subsequent commands will be executed.voidshowContexts(boolean shortFormat) Display the contexts which are present in the core file currently being analysed.
-
Field Details
-
LOGGER_PROPERTY
- See Also:
-
prompt
-
-
Method Details
-
getInstance
Factory method for creating new sessions.- Parameters:
args- any session arguments- Returns:
- the session
-
getOutputManager
Description copied from interface:ISessionThe instance which is managing all registered output channels.- Specified by:
getOutputManagerin interfaceISession- Returns:
- the manager
-
getCharset
-
getCurrentContext
Description copied from interface:ISessionThe currently selected context against which commands will be executed.- Specified by:
getCurrentContextin interfaceISession- Returns:
- the current context, it may or may not have DDR interactive support
-
getContextManager
Description copied from interface:ISessionGet the manager which is managing this context within this session.- Specified by:
getContextManagerin interfaceISession- Returns:
- the context manager
-
setContext
Description copied from interface:ISessionSet the context within which subsequent commands will be executed.- Specified by:
setContextin interfaceISession- Parameters:
id- context ID- Throws:
CommandException- thrown if an invalid context ID is specified
-
setContext
Description copied from interface:ISessionSet the context within which subsequent commands will be executed.- Specified by:
setContextin interfaceISession- Parameters:
switchTo- the context to switch to- Throws:
CommandException- thrown if the switch fails. The underlying reason will be in the logs.
-
showContexts
public void showContexts(boolean shortFormat) Description copied from interface:ISessionDisplay the contexts which are present in the core file currently being analysed.- Specified by:
showContextsin interfaceISession- Parameters:
shortFormat- true for short format which just displays the first line of the java -version string
-
findAndSetContextWithJVM
public void findAndSetContextWithJVM()Description copied from interface:ISessionConvenience method which instructs the session to search through all the available contexts and set the current one to the first one it finds with a non-corrupt DTFJ JavaRuntime in it.- Specified by:
findAndSetContextWithJVMin interfaceISession
-
run
public void run() -
execute
Execute a command line.- Parameters:
line- The command line to be executed.redirector- The PrintStream.
-
execute
Description copied from interface:ISessionExecutes the supplied command. Output will be written via the IOutputManager to all registered channels.
-