|
" 2013 FRC Java API " |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.squawk.debugger.EventManager
public abstract class EventManager
The EventManager class manages requests from a remote
entity that wants to be notified when certain events occur. The
event manager registers the requests and co-ordinates notifications
when an event occurs for which there may be a matching request.
| Nested Class Summary | |
|---|---|
static class |
EventManager.MatchedRequests
Summary of the requests that matched given event. |
| Field Summary | |
|---|---|
protected EventNotifier |
notifier
The object that is the conduit for events sent from an event producer. |
protected Vector |
requests
The set of registered event requests. |
| Constructor Summary | |
|---|---|
protected |
EventManager(EventRequestModifier.Matcher matcher)
|
| Method Summary | |
|---|---|
boolean |
clear(int eventKind,
int requestID)
Removes some event request(s) from this manager. |
void |
consumeEvent(Debugger.Event event)
Consumes an event from an event producer. |
Enumeration |
getEventsOfKind(int eventKind)
Returns an enumeration of all the event requests of a given kind. |
boolean |
isDone()
Determines if this consumer is still interested in consuming events. |
abstract boolean |
isMyEventRequestID(int id)
Events handled by proxy are odd, and those by the agent are even. |
void |
logRegisteredRequests()
|
EventManager.MatchedRequests |
matchRequests(Debugger.Event event)
Finds the registered requests that match a given event. |
void |
produceEvent(Debugger.Event event)
|
boolean |
quit()
|
void |
register(EventRequest request)
Registers an event request with this manager. |
void |
run()
Main event handling loop of the event manager. |
abstract void |
send(Debugger.Event event,
EventManager.MatchedRequests mr)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final EventNotifier notifier
protected Vector requests
| Constructor Detail |
|---|
protected EventManager(EventRequestModifier.Matcher matcher)
| Method Detail |
|---|
public void run()
run in interface RunnableThread.run()public boolean quit()
public void register(EventRequest request)
request - the event request to add
public boolean clear(int eventKind,
int requestID)
eventKind - the JDWP.EventKind of the request(s) to remove or 0 to remove all requestsrequestID - the ID of the request to remove or 0 to remove all requests of eventKind
public Enumeration getEventsOfKind(int eventKind)
eventKind - the JDWP.EventKind of events to retrieve
eventKindpublic final void produceEvent(Debugger.Event event)
event - EventNotifier.produceEvent(com.sun.squawk.Debugger.Event, com.sun.squawk.debugger.EventNotifier.Consumer)public final boolean isDone()
isDone in interface EventNotifier.Consumerpublic EventManager.MatchedRequests matchRequests(Debugger.Event event)
event - to match against requests
public void consumeEvent(Debugger.Event event)
throws IOException
consumeEvent in interface EventNotifier.Consumerevent - the details of the event
IOException - if an IO error occurspublic void logRegisteredRequests()
public abstract void send(Debugger.Event event,
EventManager.MatchedRequests mr)
throws IOException,
SDWPException
IOException
SDWPExceptionpublic abstract boolean isMyEventRequestID(int id)
id - the id to check
|
" 2013 FRC Java API " |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||