Class EmptyDTFJContext
java.lang.Object
com.ibm.java.diagnostics.utils.Context
com.ibm.java.diagnostics.utils.DTFJContext
com.ibm.java.diagnostics.utils.EmptyDTFJContext
- All Implemented Interfaces:
IContext, IDTFJContext, PluginLoader
It is possible that if a core file is sufficiently corrupt, or that an invalid type of
file is passed to jdmpview, then at least one context needs to be created so that the
user can exit the tool
-
Field Summary
Fields declared in class Context
commands, globalCommands, lastException, lastExecutedCommand, loader, loggerModifier and TypeFieldDescriptionprotected Exceptionprotected ICommandprotected PluginManagerstatic final LoggerShared logger for all commands to write to -
Constructor Summary
ConstructorsConstructorDescriptionEmptyDTFJContext(int major, int minor, Image image, ImageAddressSpace space, ImageProcess proc, JavaRuntime rt) -
Method Summary
Methods declared in class DTFJContext
getAddressSpace, getImage, getMajorVersion, getMinorVersion, getPluginClassloader, getPluginFailures, getPlugins, getProcess, getProperties, getRuntime, hasPropertyBeenSet, loadPlugins, refreshModifier and TypeMethodDescriptionThe address space for this context.getImage()A simple Java bean which allows access to the data on DTFJ image interface.intThe major version of the DTFJ API for this context.intThe minor version of the DTFJ API for this context.Gets the classloader which has been used to add plugins.The process for this context.A set of defined properties.The Java runtime for this context.booleanhasPropertyBeenSet(String name) Used to determine if a property has been set in the context property bag, and that the value of that property is TRUEvoidvoidrefresh()Refresh this context.Methods declared in class Context
addGlobalCommandsToContext, execute, execute, execute, getCommandNames, getCommands, getLastCommandException, getLastExecutedCommand, getPluginManager, isCommandRecognisedModifier and TypeMethodDescriptionprotected voidThis adds the list of global commands which are applicable for any context to this specific context instancevoidexecute(CommandParser commandParser, PrintStream out) Execute the entered command line with the output sent to the supplied print stream.voidexecute(String line, PrintStream out) Execute the entered command line with the output sent to the supplied print stream.voidexecute(String command, String[] arguments, PrintStream out) Execute the entered command line with the output sent to the supplied print stream.List of all the command names that are available within this contextReturns a list of commands which are available for this contextProvides access to any uncaught exceptions thrown when the last command was executed.The last command which was successfully executed by the context.booleanisCommandRecognised(String command) Allows to check if the given command will be executed (i.e. if there is a command that will accept the string) without actually executing it, avoiding error messages etc.
-
Constructor Details
-
EmptyDTFJContext
public EmptyDTFJContext(int major, int minor, Image image, ImageAddressSpace space, ImageProcess proc, JavaRuntime rt)
-