public class Event extends XenAPIObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Event.Record
Represents all the fields in a Event
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
ref
The XenAPI reference to this object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
If obj is a Event, compares XenAPI references for equality.
|
static Long |
getCurrentId(Connection c)
Return the ID of the next event to be generated by the system
|
int |
hashCode() |
static Set<Event.Record> |
next(Connection c)
Blocking call which returns a (possibly empty) batch of events
|
static void |
register(Connection c,
Set<String> classes)
Registers this session with the event system.
|
static Task |
registerAsync(Connection c,
Set<String> classes)
Registers this session with the event system.
|
String |
toWireString() |
static void |
unregister(Connection c,
Set<String> classes)
Unregisters this session with the event system
|
static Task |
unregisterAsync(Connection c,
Set<String> classes)
Unregisters this session with the event system
|
protected final String ref
public String toWireString()
toWireString in class XenAPIObjectpublic boolean equals(Object obj)
public static Task registerAsync(Connection c, Set<String> classes) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
classes - register for events for the indicated classesTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static void register(Connection c, Set<String> classes) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
classes - register for events for the indicated classesTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Task unregisterAsync(Connection c, Set<String> classes) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
classes - remove this session's registration for the indicated classesTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static void unregister(Connection c, Set<String> classes) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
classes - remove this session's registration for the indicated classesTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Set<Event.Record> next(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SessionNotRegistered, Types.EventsLost
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.SessionNotRegisteredTypes.EventsLostpublic static Long getCurrentId(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcException