|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 EventClient
public static void resetShutdown()
public static void closeAll()
public void close()
close
in interface EventClient
public boolean isClosed()
isClosed
in interface EventClient
true
if the event client has been closedpublic boolean isRunning()
isRunning
in interface EventClient
true
if the event client is runningprotected void fireEventOccured(Event evt)
public void addEventListener(EventListener lis)
addEventListener
in interface EventClient
lis
- the event listenerpublic void removeEventListener(EventListener lis)
removeEventListener
in interface EventClient
lis
- the event listenerpublic void commit() throws JGDIException
commit
in interface EventClient
JGDIException
public void subscribe(EventTypeEnum type)
subscribe
in interface EventClient
type
- the event typepublic void subscribe(java.util.Set<EventTypeEnum> types)
subscribe
in interface EventClient
types
- set of event typespublic void unsubscribe(EventTypeEnum type)
unsubscribe
in interface EventClient
type
- the event typepublic void unsubscribe(java.util.Set<EventTypeEnum> types)
unsubscribe
in interface EventClient
types
- the set of eventspublic void subscribeAll()
subscribeAll
in interface EventClient
public void unsubscribeAll()
unsubscribeAll
in interface EventClient
public void setSubscription(java.util.Set<EventTypeEnum> types)
setSubscription
in interface EventClient
types
- set of event typespublic java.util.Set<EventTypeEnum> getSubscription()
getSubscription
in interface EventClient
public void setFlush(java.util.Map<EventTypeEnum,java.lang.Integer> map)
setFlush
in interface EventClient
map
- map with event type as key and flush time as valuepublic void setFlush(EventTypeEnum type, int time)
setFlush
in interface EventClient
type
- the event typetime
- the flush timepublic int getFlush(EventTypeEnum type)
getFlush
in interface EventClient
type
- the event type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |