|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.grid.jgdi.jni.EventClientImpl
public class EventClientImpl
event client implementation
| Constructor Summary | |
|---|---|
EventClientImpl(java.lang.String url,
int regId)
Creates a new instance of EventClientImpl |
|
| Method Summary | |
|---|---|
void |
addEventListener(EventListener lis)
Add an event listener to this event client |
void |
close()
Close this event client |
static void |
closeAll()
Close all instances of the EventClientImpl |
void |
commit()
Commit the changed subscription |
protected void |
fireEventOccured(Event evt)
|
int |
getFlush(EventTypeEnum type)
Get the flush time of a event |
int |
getId()
Get the id of this event client |
java.util.Set<EventTypeEnum> |
getSubscription()
Get the current subscriptions |
boolean |
isClosed()
Determine if the event client has been closed |
boolean |
isRunning()
Determine if the event client is running |
void |
removeEventListener(EventListener lis)
Remove an event listener from this event client |
static void |
resetShutdown()
|
void |
setFlush(EventTypeEnum type,
int time)
Set the flush time for subscribed event |
void |
setFlush(java.util.Map<EventTypeEnum,java.lang.Integer> map)
Set the flush time for subscribed events |
void |
setSubscription(java.util.Set<EventTypeEnum> types)
Set the subscription of this event client |
void |
subscribe(EventTypeEnum type)
Subscribe an additional event. |
void |
subscribe(java.util.Set<EventTypeEnum> types)
Add a set of events to the subscription |
void |
subscribeAll()
Subscribe all events for this event client |
void |
unsubscribe(EventTypeEnum type)
Remove a event from the subscription |
void |
unsubscribe(java.util.Set<EventTypeEnum> types)
Remove a set of events from the subscription |
void |
unsubscribeAll()
Unsubscribe all events for this event client |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventClientImpl(java.lang.String url,
int regId)
url - JGDI connection url in the form
bootstrap://<SGE_ROOT>@<SGE_CELL>:<SGE_QMASTER_PORT>regId - Registration id for the event client (0 => qmaster assignes a
event client id dynamically)| Method Detail |
|---|
public int getId()
getId in interface EventClientpublic static void resetShutdown()
public static void closeAll()
public void close()
close in interface EventClientpublic boolean isClosed()
isClosed in interface EventClienttrue if the event client has been closedpublic boolean isRunning()
isRunning in interface EventClienttrue if the event client is runningprotected void fireEventOccured(Event evt)
public void addEventListener(EventListener lis)
addEventListener in interface EventClientlis - the event listenerpublic void removeEventListener(EventListener lis)
removeEventListener in interface EventClientlis - the event listener
public void commit()
throws JGDIException
commit in interface EventClientJGDIExceptionpublic void subscribe(EventTypeEnum type)
subscribe in interface EventClienttype - the event typepublic void subscribe(java.util.Set<EventTypeEnum> types)
subscribe in interface EventClienttypes - set of event typespublic void unsubscribe(EventTypeEnum type)
unsubscribe in interface EventClienttype - the event typepublic void unsubscribe(java.util.Set<EventTypeEnum> types)
unsubscribe in interface EventClienttypes - the set of eventspublic void subscribeAll()
subscribeAll in interface EventClientpublic void unsubscribeAll()
unsubscribeAll in interface EventClientpublic void setSubscription(java.util.Set<EventTypeEnum> types)
setSubscription in interface EventClienttypes - set of event typespublic java.util.Set<EventTypeEnum> getSubscription()
getSubscription in interface EventClientpublic void setFlush(java.util.Map<EventTypeEnum,java.lang.Integer> map)
setFlush in interface EventClientmap - map with event type as key and flush time as value
public void setFlush(EventTypeEnum type,
int time)
setFlush in interface EventClienttype - the event typetime - the flush timepublic int getFlush(EventTypeEnum type)
getFlush in interface EventClienttype - the event type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||