| java.lang.Object com.sun.midp.main.IsolateMonitor
IsolateMonitor | class IsolateMonitor implements MIDletProxyListListener(Code) | | Implements the mechanism to monitor MIDlet suites isolate.
The StartMIDletMonitor provides the isolate references at it gets
a MIDlet create notification from the MIDletProxyList. When an isolate
terminates it notifies the native application manager. The notification is
needed for native auto testers because the notification that the test MIDlet
is destoryed does not indicate that the VM has closed it JAR.
|
addIsolate | static void addIsolate(MIDletProxy proxy, Isolate isolate)(Code) | | Adds the Isolate associated with a started MIDlet.
Parameters: proxy - proxy of a started MIDlet Parameters: isolate - the Isolate of the started MIDlet, for systems thatrun multiple Isolates from a suite concurrently thismay be a duplicate isolate |
addListener | public static void addListener(IsolateMonitorListener listener)(Code) | | Add a listener for MIDlet suite terminations.
Parameters: listener - Isolate monitor listener |
initClass | static void initClass(MIDletProxyList theMIDletProxyList)(Code) | | Initializes StartMIDletMonitor class.
Shall only be called from AmsUtil.
No need in security checks since it is package private method.
Parameters: theMIDletProxyList - MIDletController's container |
midletAdded | public void midletAdded(MIDletProxy midlet)(Code) | | Called when a MIDlet is added to the list.
Parameters: midlet - The proxy of the MIDlet being added |
midletRemoved | public void midletRemoved(MIDletProxy proxy)(Code) | | Called when a MIDlet is removed from the list.
If this is the last MIDlet in its isolate then start a termination
notification thread to wait on its isolate.
Parameters: proxy - The proxy of the removed MIDlet |
midletStartError | public void midletStartError(int externalAppId, int suiteId, String className, int errorCode, String errorDetails)(Code) | | Called when error occurred while starting a MIDlet object.
Parameters: externalAppId - ID assigned by the external application manager Parameters: suiteId - Suite ID of the MIDlet Parameters: className - Class name of the MIDlet Parameters: errorCode - start error code Parameters: errorDetails - start error details |
midletUpdated | public void midletUpdated(MIDletProxy midlet, int fieldId)(Code) | | Called when the state of a MIDlet in the list is updated.
Parameters: midlet - The proxy of the MIDlet that was updated Parameters: fieldId - code for which field of the proxy was updated |
notifyListeners | void notifyListeners(int suiteId)(Code) | | Notifies the listeners that a suite has terminated.
Parameters: suiteId - ID of the MIDlet suite |
|
|