|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xensource.xenapi.Event
public class Event
Asynchronous event registration and handling
Nested Class Summary | |
---|---|
static class |
Event.Record
Represents all the fields in a Event |
Field Summary | |
---|---|
protected String |
ref
The XenAPI reference to this object. |
Method Summary | |
---|---|
static Map<Event,Event.Record> |
getAllRecords()
Get all the Event Records at once, in a single XML RPC call |
protected static Event |
getInstFromRef(String ref)
|
static Set<Event.Record> |
next()
Blocking call which returns a (possibly empty) batch of events |
static void |
register(Set<String> classes)
Registers this session with the event system. |
static void |
unregister(Set<String> classes)
Unregisters this session with the event system |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String ref
Method Detail |
---|
protected static Event getInstFromRef(String ref)
public static void register(Set<String> classes) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
classes
- register for events for the indicated classes
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static void unregister(Set<String> classes) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
classes
- remove this session's registration for the indicated classes
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Set<Event.Record> next() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.SessionNotRegistered
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.SessionNotRegistered
public static Map<Event,Event.Record> getAllRecords() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |