public class Message extends XenAPIObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Message.Record
Represents all the fields in a Message
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
ref
The XenAPI reference to this object.
|
| Modifier and Type | Method and Description |
|---|---|
static Message |
create(Connection c,
String name,
Long priority,
Types.Cls cls,
String objUuid,
String body) |
void |
destroy(Connection c) |
boolean |
equals(Object obj)
If obj is a Message, compares XenAPI references for equality.
|
static Map<Message,Message.Record> |
get(Connection c,
Types.Cls cls,
String objUuid,
Date since) |
static Set<Message> |
getAll(Connection c) |
static Map<Message,Message.Record> |
getAllRecords(Connection c) |
static Map<Message,Message.Record> |
getAllRecordsWhere(Connection c,
String expr) |
static Message |
getByUuid(Connection c,
String uuid) |
Message.Record |
getRecord(Connection c) |
static Map<Message,Message.Record> |
getSince(Connection c,
Date since) |
int |
hashCode() |
String |
toWireString() |
protected final String ref
public String toWireString()
toWireString in class XenAPIObjectpublic boolean equals(Object obj)
public static Message create(Connection c, String name, Long priority, Types.Cls cls, String objUuid, String body) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
name - The name of the messagepriority - The priority of the messagecls - The class of object this message is associated withobjUuid - The uuid of the object this message is associated withbody - The body of the messageTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void destroy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Map<Message,Message.Record> get(Connection c, Types.Cls cls, String objUuid, Date since) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
cls - The class of objectobjUuid - The uuid of the objectsince - The cutoff timeTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Set<Message> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Map<Message,Message.Record> getSince(Connection c, Date since) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
since - The cutoff timeTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Message.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Message getByUuid(Connection c, String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid - The uuid of the messageTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Map<Message,Message.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Map<Message,Message.Record> getAllRecordsWhere(Connection c, String expr) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
expr - The expression to match (not currently used)Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcException