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