Version 1.5APIs subject to change!

multiverse.server.engine
Class EnginePlugin.GetPropertyMessage

java.lang.Object
  extended by multiverse.msgsys.Message
      extended by multiverse.msgsys.SubjectMessage
          extended by multiverse.server.messages.OIDNamespaceMessage
              extended by multiverse.server.engine.EnginePlugin.GetPropertyMessage
All Implemented Interfaces:
java.io.Serializable, INamespaceMessage
Enclosing class:
EnginePlugin

public static class EnginePlugin.GetPropertyMessage
extends OIDNamespaceMessage

Get property message for an sub object in a particular namespace. Capable of getting a single property, or a set of property values.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class multiverse.msgsys.SubjectMessage
oid
 
Constructor Summary
EnginePlugin.GetPropertyMessage()
          No-arg constructor, required by marshalling
EnginePlugin.GetPropertyMessage(java.lang.Long oid, Namespace namespace, java.util.List<java.lang.String> keys)
          GetPropertyMessage constructor for cases where we want the values of a list of keys.
EnginePlugin.GetPropertyMessage(java.lang.Long oid, Namespace namespace, java.lang.String key)
          GetPropertyMessage constructor for cases where we want the value of a single key.
 
Method Summary
 void addKey(java.lang.String key)
          Add another key to the list of keys for which this message will fetch values.
 java.util.List<java.lang.String> getKeys()
          Return the list of keys for which this message will fetch values
 java.io.Serializable removeKey(java.io.Serializable key)
          Remove a key from the list of keys for which this message will fetch values.
 java.lang.String toString()
          Method to produce a human-readable version of the key list
 
Methods inherited from class multiverse.server.messages.OIDNamespaceMessage
getNamespace, setNamespace
 
Methods inherited from class multiverse.msgsys.SubjectMessage
getSubject, setSubject
 
Methods inherited from class multiverse.msgsys.Message
getEnqueueTime, getMsgId, getMsgType, getSenderName, isRPC, setEnqueueTime, setEnqueueTime, setMsgType, toBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnginePlugin.GetPropertyMessage

public EnginePlugin.GetPropertyMessage()
No-arg constructor, required by marshalling


EnginePlugin.GetPropertyMessage

public EnginePlugin.GetPropertyMessage(java.lang.Long oid,
                                       Namespace namespace,
                                       java.lang.String key)
GetPropertyMessage constructor for cases where we want the value of a single key.

Parameters:
oid - The oid of the object.
namespace - The Namespace containing the sub-object.
key - The key whose value will be fetched.

EnginePlugin.GetPropertyMessage

public EnginePlugin.GetPropertyMessage(java.lang.Long oid,
                                       Namespace namespace,
                                       java.util.List<java.lang.String> keys)
GetPropertyMessage constructor for cases where we want the values of a list of keys.

Parameters:
oid - The oid of the object.
namespace - The Namespace containing the sub-object.
keys - The list of keys whose values will be fetched.
Method Detail

toString

public java.lang.String toString()
Method to produce a human-readable version of the key list

Overrides:
toString in class SubjectMessage

addKey

public void addKey(java.lang.String key)
Add another key to the list of keys for which this message will fetch values.

Parameters:
key - The key to be added to the list of keys for which values will be fetched.

removeKey

public java.io.Serializable removeKey(java.io.Serializable key)
Remove a key from the list of keys for which this message will fetch values.

Parameters:
key - The key to be removed from the list of keys for which values will be fetched.
Returns:
The key, if it was previously in the list of keys, else null.

getKeys

public java.util.List<java.lang.String> getKeys()
Return the list of keys for which this message will fetch values

Returns:
The list of keys for which values will be fetched.


Copyright © 2008 The Multiverse Network, Inc.