Version 1.5APIs subject to change!

multiverse.server.engine
Class EnginePlugin.SetPropertyMessage

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.SetPropertyMessage
All Implemented Interfaces:
java.io.Serializable, INamespaceMessage
Enclosing class:
EnginePlugin

public static class EnginePlugin.SetPropertyMessage
extends OIDNamespaceMessage

Set property message for an sub object in a particular namespace. Capable of setting 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.SetPropertyMessage()
          No-arg constructor, required by marshalling.
EnginePlugin.SetPropertyMessage(java.lang.Long oid, Namespace namespace, java.util.Map<java.lang.String,java.io.Serializable> propMap, boolean reqResponse)
          Constructor for the case that we want to set the values of more than one key.
EnginePlugin.SetPropertyMessage(java.lang.Long oid, Namespace namespace, java.lang.String key, java.io.Serializable val, boolean reqResponse)
          Constructor for the case that we want to set the value of a single key.
 
Method Summary
 boolean containsKey(java.lang.String key)
          Return true of the message contains the key argument; false otherwise
 java.io.Serializable get(java.lang.String key)
          Deprecated. Use getProperty(String key) instead
 java.io.Serializable getProperty(java.lang.String key)
          Return the value associated with a key.
 java.util.Map<java.lang.String,java.io.Serializable> getPropMap()
          Return the property map of keys and values
 boolean getRequestResponse()
          Get whether this message requires a response.
 void put(java.lang.String key, java.io.Serializable val)
          Deprecated. Use setProperty(String key, Serializable val) instead
 java.io.Serializable setProperty(java.lang.String key, java.io.Serializable val)
          Add (or replace) the key/value pair
 void setRequestResponse(boolean val)
          Set whether this message requires a response.
 
Methods inherited from class multiverse.server.messages.OIDNamespaceMessage
getNamespace, setNamespace
 
Methods inherited from class multiverse.msgsys.SubjectMessage
getSubject, setSubject, toString
 
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.SetPropertyMessage

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


EnginePlugin.SetPropertyMessage

public EnginePlugin.SetPropertyMessage(java.lang.Long oid,
                                       Namespace namespace,
                                       java.lang.String key,
                                       java.io.Serializable val,
                                       boolean reqResponse)
Constructor for the case that we want to set the value of a single key.

Parameters:
oid - The oid of the subobject whose key/value pair will be set.
namespace - The namespace containing the subobject
key - The String key
val - The Serializable value
reqResponse - True if the message requires a response; false otherwise

EnginePlugin.SetPropertyMessage

public EnginePlugin.SetPropertyMessage(java.lang.Long oid,
                                       Namespace namespace,
                                       java.util.Map<java.lang.String,java.io.Serializable> propMap,
                                       boolean reqResponse)
Constructor for the case that we want to set the values of more than one key.

Parameters:
oid - The oid of the subobject whose key/value pair will be set.
namespace - The namespace containing the subobject.
propMap - The map of keys to values.
reqResponse - True if the message requires a response; false otherwise.
Method Detail

get

public java.io.Serializable get(java.lang.String key)
Deprecated. Use getProperty(String key) instead

Get the value associated with a key.


getProperty

public java.io.Serializable getProperty(java.lang.String key)
Return the value associated with a key.

Parameters:
key - A String key.
Returns:
The Serializable value associated with the key, or null if none exists.

containsKey

public boolean containsKey(java.lang.String key)
Return true of the message contains the key argument; false otherwise

Parameters:
key - The key to look for
Returns:
True if the key is contained in the list of keys; false otherwise.

put

public void put(java.lang.String key,
                java.io.Serializable val)
Deprecated. Use setProperty(String key, Serializable val) instead

Associate the value with the key.


setProperty

public java.io.Serializable setProperty(java.lang.String key,
                                        java.io.Serializable val)
Add (or replace) the key/value pair

Parameters:
key - The string key
val - The Serializable value to be put.
Returns:
the previous value associated with the key, or null.

getPropMap

public java.util.Map<java.lang.String,java.io.Serializable> getPropMap()
Return the property map of keys and values

Returns:
The property map.

setRequestResponse

public void setRequestResponse(boolean val)
Set whether this message requires a response.

Parameters:
val - The boolean value which, if true, indicates that the message requires a response

getRequestResponse

public boolean getRequestResponse()
Get whether this message requires a response.

Returns:
true if the message requires a response.


Copyright © 2008 The Multiverse Network, Inc.