|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.server.engine.EnginePlugin
public class EnginePlugin
The EnginePlugin is the preferred way to extend the server. Sub-class to add new server functionality. Plugins typically implement one or more sub-objects, identified by name space. The sub-class provides its own hooks for sub-object manipulation; creation, load, unload, delete, and custom operations.
Plugins must have a unique name. This identifies the plugin within
the messages domain/cluster. The plugin name should be set in the
plugin constructor. setName(String)
Plugins must have a plugin type. The
plugin type is a string associated with a plugin class. The plugin
type is used to resolve startup dependencies. The plugin type should
be set in the plugin constructor. setPluginType(String)
When the atavism engine starts up, it will load initialization scripts (which can change the network ports and database server, etc) and then bring up the database and network services.
After these services are up, the engine loads the remaining game scripts. These scripts will register engine plugins, by calling Engine.registerPlugin(String classFile). This is where the plugin object is constructed.
The engine then calls the activate method on all registered plugins. You can call Engine.getPlugin(String pluginName) to retrieve a registered plugin.
HookManager
Nested Class Summary | |
---|---|
static interface |
EnginePlugin.DeleteHook
The interface definition to be satisfied by delete hook objects, containing the onDelete method. |
static class |
EnginePlugin.DeleteSubObjHook
|
static class |
EnginePlugin.GenerateSubObjectHook
A hook to process the GenerateSubObjectMessage, sent by the object manager. |
static class |
EnginePlugin.GetPropertyMessage
Get property message for an sub object in a particular namespace. |
static class |
EnginePlugin.GetPropertyNamesMessage
Get property names message for an sub object in a particular namespace. |
static interface |
EnginePlugin.LoadHook
The interface definition to be satisfied by load hook objects, containing the onLoad method. |
static class |
EnginePlugin.LoadSubObjHook
A hook called to load sub-object. |
static interface |
EnginePlugin.PluginActivateHook
|
static class |
EnginePlugin.PluginStateMessage
Message used by plugins to announce various control states. |
static interface |
EnginePlugin.SaveHook
The interface definition to be satisfied by save hook objects, containing the onSave method. |
static class |
EnginePlugin.SaveSubObjHook
A hook called to persist a sub-object. |
static class |
EnginePlugin.SetPropertyMessage
Set property message for an sub object in a particular namespace. |
static class |
EnginePlugin.SubObjData
Returned by GenerateSubObject hook's generateSubObject() method. |
static class |
EnginePlugin.TransferFilter
Base class for message filters used for the transfer object subscription. |
static class |
EnginePlugin.TransferObjectMessage
The message used to transfer control of an object from one world manager to another. |
static interface |
EnginePlugin.UnloadHook
The interface definition to be satisfied by unload hook objects, containing the onUnload method. |
static class |
EnginePlugin.UnloadSubObjHook
|
Field Summary | |
---|---|
protected static java.lang.Long |
deleteSubObjectSubscription
|
protected static java.lang.Long |
dumpAllThreadSubscription
|
protected static java.util.concurrent.locks.Lock |
dumpAllThreadSubscriptionLock
|
protected static java.lang.Long |
loadSubObjectSubscription
|
protected java.util.concurrent.locks.Lock |
lock
|
static MessageType |
MSG_TYPE_DUMP_ALL_THREAD_STACKS
Message from proxy server, telling all processes to dump their thread stacks to the log. |
static MessageType |
MSG_TYPE_GET_PROPERTY
|
static MessageType |
MSG_TYPE_GET_PROPERTY_NAMES
|
static MessageType |
MSG_TYPE_PLUGIN_STATE
|
static MessageType |
MSG_TYPE_SET_PROPERTY
|
static MessageType |
MSG_TYPE_SET_PROPERTY_NONBLOCK
|
static MessageType |
MSG_TYPE_TRANSFER_OBJECT
Message requesting transfer of an entity to a different world manager. |
protected static java.lang.Long |
pluginStateSubscription
|
protected static java.lang.Long |
propertySubscription
|
protected static java.lang.Long |
saveSubObjectSubscription
|
protected static INamespaceFilter |
selectionFilter
|
protected static java.lang.Long |
selectionSubscription
|
protected static java.lang.Long |
setSubObjectPersistenceSubscription
|
protected static java.lang.Long |
subObjectSubscription
|
protected static java.lang.Long |
unloadSubObjectSubscription
|
Fields inherited from interface atavism.msgsys.MessageCallback |
---|
NO_FLAGS, RESPONSE_EXPECTED |
Constructor Summary | |
---|---|
EnginePlugin()
No args constructor (deprecated). |
|
EnginePlugin(java.lang.String name)
constructor. |
|
EnginePlugin(java.lang.String name,
EnginePlugin.PluginActivateHook activateHook)
constructor. |
Method Summary | |
---|---|
void |
activate()
called by the engine to initialize the plugin. |
protected java.lang.Object |
createMBeanInstance()
|
void |
createSubscription(Hook hook,
MessageType msgType,
int flags)
helper method to create a subscription based on a message type and associate it with a hook for processing. |
HookManager |
getHookManager()
Returns the HookManager associated with this plugin. |
protected MessageCallback |
getMessageHandler()
|
java.lang.String |
getName()
Returns the name of the plugin. |
protected ObjectLockManager |
getObjectLockManager()
Returns the ObjectLockManager associated with this plugin. |
static java.util.List<java.io.Serializable> |
getObjectProperties(OID oid,
Namespace namespace,
java.util.List<java.lang.String> keys)
EnginePlugin entrypoint which gets a list of the values of the object properties associated with the given list of keys |
static java.util.List<java.io.Serializable> |
getObjectProperties(OID oid,
Namespace namespace,
java.lang.String... keys)
EnginePlugin entrypoint which gets a list of the values of the object properties associated with the list of keys supplied as varargs |
static java.io.Serializable |
getObjectProperty(OID oid,
Namespace namespace,
java.lang.String key)
EnginePlugin entrypoint which gets the value of the object property associated with the given key |
static java.util.List<java.lang.String> |
getObjectPropertyNames(OID oid,
Namespace namespace)
EnginePlugin entrypoint which gets the names of all of the properties of the object in the specified namespace. |
int |
getPercentCPULoad()
Getter for percentCPULoad. |
boolean |
getPluginAvailable()
|
java.lang.String |
getPluginInfo()
Getter for pluginInfo. |
java.util.Collection<Namespace> |
getPluginNamespaces()
|
java.lang.String |
getPluginState(java.lang.String pluginName)
See EnginePlugin.PluginStateMessage.BuiltInState for some possible values |
java.lang.String |
getPluginStatus()
Return the status string for the plugin |
java.lang.String |
getPluginType()
Getter for pluginType. |
protected boolean |
getPropertyImpl(EnginePlugin.GetPropertyMessage msg)
Process the GetPropertyMessage, looking up the entity by oid and namespace, and getting the properties identified by the list of keys in the message. |
protected boolean |
getPropertyNamesImpl(EnginePlugin.GetPropertyNamesMessage msg)
Process the GetPropertyMessage, looking up the entity by oid and namespace, and getting the properties identified by the list of keys in the message. |
java.util.Map<java.lang.String,java.lang.String> |
getStatusMap()
Override to provide plugin status. |
void |
handleMessage(Message msg,
int flags)
Callback method for subscriptions which by default calls hooks registered with this plugin's hookmanager via EnginePlugin.getHookManager(). |
protected void |
handleMessageImpl(Message msg,
int flags)
Iterate through the Hooks associated with the message type, calling each one's processMessage() method until one of them returns false. |
protected void |
logDepsOutstanding(java.lang.String prefix,
OID oid,
Namespace ns)
A utility method to log depsOutstanding for the given oid |
void |
onActivate()
for developers extending the EnginePlugin object, it may be easier to use the onActivate() method which gets called when the plugin is being activated by the Engine. |
protected static java.util.Map<java.lang.String,java.io.Serializable> |
processKeysAndValues(java.lang.String what,
java.io.Serializable[] keysAndValues)
A utility function to turn an array of keys and values into a propMap. |
void |
registerActivateHook(EnginePlugin.PluginActivateHook hook)
Called on startup to initialize the plugin. |
void |
registerDeleteHook(Namespace namespace,
EnginePlugin.DeleteHook deleteHook)
Register a hook to be called when one of this plugin's sub object instances is deleted. |
void |
registerLoadHook(Namespace namespace,
EnginePlugin.LoadHook loadHook)
Register a hook to be called when one of this plugin's sub object instances is loaded. |
void |
registerPluginNamespace(Namespace namespace,
EnginePlugin.GenerateSubObjectHook genSubObjHook)
Register the plugin namespace, used to identify the kind of subobject created by this plugin. |
void |
registerPluginNamespaces(java.util.Collection<Namespace> namespaces,
EnginePlugin.GenerateSubObjectHook genSubObjHook)
Register plugin namespaces, used to identify the kind of subobject created by this plugin. |
void |
registerPluginNamespaces(java.util.Collection<Namespace> namespaces,
EnginePlugin.GenerateSubObjectHook genSubObjHook,
Hook loadSubObjHook,
Hook saveSubObjHook,
Hook unloadSubObjHook,
Hook deleteSubObjHook,
INamespaceFilter selectionFilter,
INamespaceFilter subObjectFilter)
Register namespaces this plugin is authoritative for. |
void |
registerPluginNamespaces(java.util.Collection<Namespace> namespaces,
EnginePlugin.GenerateSubObjectHook genSubObjHook,
INamespaceFilter selectionFilter,
INamespaceFilter subObjectFilter)
Register plugin namespaces, used to identify the kind of subobject created by this plugin. |
void |
registerSaveHook(Namespace namespace,
EnginePlugin.SaveHook saveHook)
Register a hook to be called when one of this plugin's sub object instances is saved. |
void |
registerTransferHook(Filter filter,
Hook hook)
Creates a subscription for transfer messages. |
void |
registerUnloadHook(Namespace namespace,
EnginePlugin.UnloadHook unloadHook)
Register a hook to be called when one of this plugin's sub object instances is unloaded. |
void |
sendSubObjectResponse(Message origMsg,
OID oid,
Namespace oidNamespace)
Overloading of sendSubObjectResponse used when there are no dependent Namespaces |
void |
sendSubObjectResponse(Message msg,
OID oid,
Namespace oidNamespace,
java.util.LinkedList<Namespace> depNamespaces,
Hook callback)
The plugin calls this after generating a sub object to let the object manager know the sub object is ready. |
void |
sendSubObjectResponse(Message origMsg,
OID oid,
Namespace oidNamespace,
Namespace depNamespace,
Hook callback)
Overloading of sendSubObjectResponse that takes a single dependent Namespace |
protected void |
setMessageHandler(MessageCallback handler)
|
protected void |
setName(java.lang.String name)
Sets the name of the plugin. |
static java.util.List<java.io.Serializable> |
setObjectProperties(OID oid,
Namespace namespace,
java.util.Map<java.lang.String,java.io.Serializable> propMap)
EnginePlugin entrypoint which sets the object properties identified by the key/value pair in the propMap argument. |
static java.util.List<java.io.Serializable> |
setObjectProperties(OID oid,
Namespace namespace,
java.util.Map<java.lang.String,java.io.Serializable> propMap,
java.util.Collection<java.lang.String> removedProps)
EnginePlugin entrypoint which sets the object properties identified by the key/value pair in the propMap argument. |
static java.util.List<java.io.Serializable> |
setObjectProperties(OID oid,
Namespace namespace,
java.io.Serializable... keysAndValues)
EnginePlugin entrypoint which sets the object properties identified by the alternating key and value arguments supplied as varargs. |
static void |
setObjectPropertiesNoResponse(OID oid,
Namespace namespace,
java.util.Map<java.lang.String,java.io.Serializable> propMap)
EnginePlugin entrypoint which sets the object properties identified by the key/value pair in the propMap argument. |
static void |
setObjectPropertiesNoResponse(OID oid,
Namespace namespace,
java.util.Map<java.lang.String,java.io.Serializable> propMap,
java.util.Collection<java.lang.String> removedProps)
EnginePlugin entrypoint which sets the object properties identified by the key/value pair in the propMap argument. |
static void |
setObjectPropertiesNoResponse(OID oid,
Namespace namespace,
java.io.Serializable... keysAndValues)
EnginePlugin entrypoint which sets the object properties identified by the alternating key and value arguments supplied as varargs. |
static java.io.Serializable |
setObjectProperty(OID oid,
Namespace namespace,
java.lang.String key,
java.io.Serializable value)
EnginePlugin entrypoint which sets the object property identified by the key/value pair. |
static void |
setObjectPropertyNoResponse(OID oid,
Namespace namespace,
java.lang.String key,
java.io.Serializable value)
EnginePlugin entrypoint which sets the object property identified by the key/value pair. |
void |
setPercentCPULoad(int percentCPULoad)
Setter for percentCPULoad int. |
void |
setPluginAvailable(boolean avail)
|
void |
setPluginInfo(java.lang.String pluginInfo)
Setter for pluginInfo string. |
void |
setPluginType(java.lang.String pluginType)
Setter for pluginType. |
protected boolean |
setPropertyImpl(EnginePlugin.SetPropertyMessage msg)
Process the SetPropertyMessage, looking up the entity by oid and namespace, and setting the properties identified by the list of keys in the message. |
boolean |
transferObject(java.util.HashMap<java.lang.String,java.io.Serializable> propMap,
Entity entity)
Transfers this object from this instance of this plugin, to another instance of this plugin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.concurrent.locks.Lock lock
public static MessageType MSG_TYPE_PLUGIN_STATE
public static MessageType MSG_TYPE_GET_PROPERTY
public static MessageType MSG_TYPE_GET_PROPERTY_NAMES
public static MessageType MSG_TYPE_SET_PROPERTY
public static MessageType MSG_TYPE_SET_PROPERTY_NONBLOCK
protected static java.util.concurrent.locks.Lock dumpAllThreadSubscriptionLock
protected static java.lang.Long dumpAllThreadSubscription
protected static java.lang.Long pluginStateSubscription
protected static java.lang.Long subObjectSubscription
protected static java.lang.Long selectionSubscription
protected static INamespaceFilter selectionFilter
protected static java.lang.Long saveSubObjectSubscription
protected static java.lang.Long loadSubObjectSubscription
protected static java.lang.Long unloadSubObjectSubscription
protected static java.lang.Long deleteSubObjectSubscription
protected static java.lang.Long setSubObjectPersistenceSubscription
protected static java.lang.Long propertySubscription
public static MessageType MSG_TYPE_DUMP_ALL_THREAD_STACKS
public static final MessageType MSG_TYPE_TRANSFER_OBJECT
Constructor Detail |
---|
public EnginePlugin()
public EnginePlugin(java.lang.String name)
name
- Plugin name, must be unique.public EnginePlugin(java.lang.String name, EnginePlugin.PluginActivateHook activateHook)
name
- Plugin name which is used in broadcasting
plugin availability and also used
to find the plugin with Engine.getPlugin(String)
activateHook
- called by the Engine when the plugin starts upMethod Detail |
---|
public java.lang.String getName()
setName(String)
protected void setName(java.lang.String name)
name
- plugin name, must be uniquegetName()
public void setPluginType(java.lang.String pluginType)
pluginType
- The string type of the plugin.public java.lang.String getPluginType()
public java.util.Map<java.lang.String,java.lang.String> getStatusMap()
getStatusMap
in interface StatusMapCallback
public java.lang.String getPluginStatus()
public void setPluginInfo(java.lang.String pluginInfo)
pluginInfo
- The new string pluginInfo of the plugin.public java.lang.String getPluginInfo()
public void setPercentCPULoad(int percentCPULoad)
percentCPULoad
- The int percentCPULoad of the plugin.public int getPercentCPULoad()
public void registerActivateHook(EnginePlugin.PluginActivateHook hook)
Plugins are typically registered in config scripts calling Engine.registerPlugin(String classFile).
public void activate()
public boolean getPluginAvailable()
public void setPluginAvailable(boolean avail)
public void onActivate()
public java.lang.String getPluginState(java.lang.String pluginName)
pluginName
-
protected void setMessageHandler(MessageCallback handler)
protected MessageCallback getMessageHandler()
public void createSubscription(Hook hook, MessageType msgType, int flags)
hook
- hook processes any incoming messagesmsgType
- the message type to match. see Message.setMsgType()public void handleMessage(Message msg, int flags)
handleMessage
in interface MessageCallback
msg
- Message sent from other agent.flags
- Bitwise OR of MessageCallback.NO_FLAGS
, MessageCallback.RESPONSE_EXPECTED
.HookManager
protected void handleMessageImpl(Message msg, int flags)
msg
- The message to be handledflags
- The flags associated with the message.public java.util.Collection<Namespace> getPluginNamespaces()
registerPluginNamespaces(java.util.Collection, atavism.server.engine.EnginePlugin.GenerateSubObjectHook)
public void registerPluginNamespace(Namespace namespace, EnginePlugin.GenerateSubObjectHook genSubObjHook)
namespace
- The namespace object associated with the plugingenSubObjHook
- Called when sub-object is created in this
plugin's namespace. Triggered by a generate sub-object message
from the object manager.public void registerPluginNamespaces(java.util.Collection<Namespace> namespaces, EnginePlugin.GenerateSubObjectHook genSubObjHook)
namespaces
- The namespaces associated with the plugingenSubObjHook
- Called when sub-object is created in this
plugin's namespace. Triggered by a generate sub-object message
from the object manager.public void registerPluginNamespaces(java.util.Collection<Namespace> namespaces, EnginePlugin.GenerateSubObjectHook genSubObjHook, INamespaceFilter selectionFilter, INamespaceFilter subObjectFilter)
namespaces
- The namespaces associated with the plugingenSubObjHook
- Called when sub-object is created in this
plugin's namespace. Triggered by a generate sub-object message
from the object manager.selectionFilter
- A namespace filter for sub-object generation
and loading. This filter should match sub-objects this plugin
should own. The filter can be as simple as matching namespace
(one plugin owns all the sub-objects), or more sophisticated.
For example matching odd or even numbered OIDs (sub-objects
split between two plugin instances), or matching locations
(sub-objects split by geometry).subObjectFilter
- namespace filter for sub-object manipulation
messages. This filter should match sub-objects loaded or generated
into this plugin.public void registerPluginNamespaces(java.util.Collection<Namespace> namespaces, EnginePlugin.GenerateSubObjectHook genSubObjHook, Hook loadSubObjHook, Hook saveSubObjHook, Hook unloadSubObjHook, Hook deleteSubObjHook, INamespaceFilter selectionFilter, INamespaceFilter subObjectFilter)
namespaces
- Plugin's namespaces.genSubObjHook
- Called when sub-object is created in this
plugin's namespace. Triggered by a generate sub-object message
from the object manager.loadSubObjHook
- Override load sub obj hook, 'null' to use
default hook.saveSubObjHook
- Override save sub obj hook, 'null' to use
default hook.unloadSubObjHook
- Override unload sub obj hook, 'null' to use
default hook.deleteSubObjHook
- Override delete sub obj hook, 'null' to use
default hook.selectionFilter
- A namespace filter for sub-object generation
and loading. This filter should match sub-objects this plugin
should own. The filter can be as simple as matching namespace
(one plugin owns all the sub-objects), or more sophisticated.
For example matching odd or even numbered OIDs (sub-objects
split between two plugin instances), or matching locations
(sub-objects split by geometry).subObjectFilter
- namespace filter for sub-object manipulation
messages. This filter should match sub-objects loaded or generated
into this plugin.public void registerSaveHook(Namespace namespace, EnginePlugin.SaveHook saveHook)
namespace
- The namespace in which this plugin's sub object instances reside.saveHook
- the hook to be used when your sub object is marked dirty and
needs to be saved. it should handle deep copy if needed. this will be called
by the persistenceManager when it wants to save the object.
if saveHook is null, it will use the default handler which does not do a deep copypublic void registerLoadHook(Namespace namespace, EnginePlugin.LoadHook loadHook)
namespace
- The namespace in which this plugin's sub object instances reside.loadHook
- The hook to be called when the sub object is loaded.public void registerUnloadHook(Namespace namespace, EnginePlugin.UnloadHook unloadHook)
namespace
- The namespace in which this plugin's sub object instances reside.unloadHook
- The hook to be called when the sub object is unloaded.public void registerDeleteHook(Namespace namespace, EnginePlugin.DeleteHook deleteHook)
namespace
- The namespace in which this plugin's sub object instances reside.deleteHook
- The hook to be called when the sub object is deleted.public void registerTransferHook(Filter filter, Hook hook)
public boolean transferObject(java.util.HashMap<java.lang.String,java.io.Serializable> propMap, Entity entity)
propMap
- - we pass in HashMap because its serializable unlike Mapentity
-
public HookManager getHookManager()
protected ObjectLockManager getObjectLockManager()
public void sendSubObjectResponse(Message origMsg, OID oid, Namespace oidNamespace)
origMsg
- the original message to which we are respondingoid
- oid of the sub object that was createdoidNamespace
- the Namespace in which the new subobject should be createdpublic void sendSubObjectResponse(Message origMsg, OID oid, Namespace oidNamespace, Namespace depNamespace, Hook callback)
origMsg
- the original message to which we are respondingoid
- oid of the sub object that was createdoidNamespace
- the Namespace in which the new subobject should be createddepNamespace
- the dependent Namespace objectcallback
- the callback when we dependencies are all ready.kpublic void sendSubObjectResponse(Message msg, OID oid, Namespace oidNamespace, java.util.LinkedList<Namespace> depNamespaces, Hook callback)
msg
- the original message to which we are respondingoid
- oid of the sub object that was created; the same as the master oidoidNamespace
- the Namespace in which the new subobject should be createddepNamespaces
- collection of dependent Namespace objectscallback
- the callback when we dependencies are all ready.protected void logDepsOutstanding(java.lang.String prefix, OID oid, Namespace ns)
protected boolean getPropertyImpl(EnginePlugin.GetPropertyMessage msg)
msg
- The GetPropertyMessage instance.
protected boolean getPropertyNamesImpl(EnginePlugin.GetPropertyNamesMessage msg)
msg
- The GetPropertyMessage instance.
protected boolean setPropertyImpl(EnginePlugin.SetPropertyMessage msg)
msg
- The SetPropertyMessage instance.
public static java.io.Serializable getObjectProperty(OID oid, Namespace namespace, java.lang.String key)
oid
- The oid of the objectnamespace
- The namespace containing the objectkey
- The String key
public static java.util.List<java.io.Serializable> getObjectProperties(OID oid, Namespace namespace, java.util.List<java.lang.String> keys)
oid
- The oid of the objectnamespace
- The namespace containing the objectkeys
- A list of keys
public static java.util.List<java.io.Serializable> getObjectProperties(OID oid, Namespace namespace, java.lang.String... keys)
oid
- The oid of the objectnamespace
- The namespace containing the objectkeys
- A list of keys
public static java.util.List<java.lang.String> getObjectPropertyNames(OID oid, Namespace namespace)
oid
- The oid of the objectnamespace
- The namespace containing the object
public static java.io.Serializable setObjectProperty(OID oid, Namespace namespace, java.lang.String key, java.io.Serializable value)
oid
- The oid of the objectnamespace
- The namespace containing the objectkey
- The String keyvalue
- The Serializable value to which to set the object's key property
public static void setObjectPropertyNoResponse(OID oid, Namespace namespace, java.lang.String key, java.io.Serializable value)
oid
- The oid of the objectnamespace
- The namespace containing the objectkey
- The String keyvalue
- The Serializable value to which to set the object's key propertypublic static java.util.List<java.io.Serializable> setObjectProperties(OID oid, Namespace namespace, java.util.Map<java.lang.String,java.io.Serializable> propMap)
oid
- The oid of the objectnamespace
- The namespace containing the objectpropMap
- The map of keys and values
public static java.util.List<java.io.Serializable> setObjectProperties(OID oid, Namespace namespace, java.util.Map<java.lang.String,java.io.Serializable> propMap, java.util.Collection<java.lang.String> removedProps)
oid
- The oid of the objectnamespace
- The namespace containing the objectpropMap
- The map of keys and valuesremovedProps
- The set of keys that should be removed
public static java.util.List<java.io.Serializable> setObjectProperties(OID oid, Namespace namespace, java.io.Serializable... keysAndValues)
oid
- The oid of the objectnamespace
- The namespace containing the objectkeysAndValues
- The varargs sequence of key and value arguments
public static void setObjectPropertiesNoResponse(OID oid, Namespace namespace, java.util.Map<java.lang.String,java.io.Serializable> propMap)
oid
- The oid of the objectnamespace
- The namespace containing the objectpropMap
- The map of keys and valuespublic static void setObjectPropertiesNoResponse(OID oid, Namespace namespace, java.util.Map<java.lang.String,java.io.Serializable> propMap, java.util.Collection<java.lang.String> removedProps)
oid
- The oid of the objectnamespace
- The namespace containing the objectpropMap
- The map of keys and valuesremovedProps
- The set of keys that should be removedpublic static void setObjectPropertiesNoResponse(OID oid, Namespace namespace, java.io.Serializable... keysAndValues)
oid
- The oid of the objectnamespace
- The namespace containing the objectkeysAndValues
- The varargs sequence of key and value argumentsprotected static java.util.Map<java.lang.String,java.io.Serializable> processKeysAndValues(java.lang.String what, java.io.Serializable[] keysAndValues)
protected java.lang.Object createMBeanInstance()
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |