|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBVM
IBVM is the interface to the Brahms Virtual Machine.
Method Summary | |
---|---|
void |
addProcessListener(IProcessListener listener)
Adds the specified process listener to this virtual machine to be notified when the virtual machine exits. |
int |
getErrorCode()
Returns the error code set by the VM when initializing the VM. |
java.lang.Throwable |
getErrorException()
Returns the error exception if one is available, null otherwise. |
java.lang.String |
getErrorMessage()
Returns the error message if the error code is larger than 0. |
IVMController |
getVMController()
Returns the virtual machine's controller |
int |
initialize(java.lang.String[] argv)
Parses the arguments defining the vm parameters and vm behavior and starts and initializes the virtual machine controller. |
int |
initialize(java.lang.String[] argv,
java.util.Properties p)
Parses the arguments defining the vm parameters and vm behavior, uses the specifies Properties as the base configuration and starts and initializes the virtual machine controller. |
void |
removeProcessListener(IProcessListener listener)
Removes the specified listener as a process listener for the virtual machine. |
void |
setExternalControl(boolean external)
Indicates whether the VM is controlled by an external application. |
Method Detail |
---|
void setExternalControl(boolean external)
int getErrorCode()
java.lang.String getErrorMessage()
java.lang.Throwable getErrorException()
int initialize(java.lang.String[] argv)
argv
- the list of arguments passed to the Brahms virtual machine
int initialize(java.lang.String[] argv, java.util.Properties p)
argv
- the list of arguments passed to the Brahms virtual machinep
- the properties used to configure the Brahms virtual machine
void addProcessListener(IProcessListener listener)
listener
- the IProcessListener to be registeredvoid removeProcessListener(IProcessListener listener)
listener
- the IProcessListener to be removed.IVMController getVMController() throws ExternalException
ExternalException
- if there was a problem returning the controllerIVMController
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |