public class CommandFactory extends Object implements ExtendedModuleCommandFactory
Constructor and Description |
---|
CommandFactory() |
Modifier and Type | Method and Description |
---|---|
ReplicableCommand |
fromStream(byte commandId,
Object[] args)
Construct and initialize a
ReplicableCommand based on the command
id and argument array passed in. |
CacheRpcCommand |
fromStream(byte commandId,
Object[] args,
String cacheName)
Construct and initialize a
CacheRpcCommand based on the command
id and argument array passed in. |
Map<Byte,Class<? extends ReplicableCommand>> |
getModuleCommands()
Provides a map of command IDs to command types of all the commands handled by the command factory instance.
|
public Map<Byte,Class<? extends ReplicableCommand>> getModuleCommands()
ModuleCommandFactory
getModuleCommands
in interface ModuleCommandFactory
public ReplicableCommand fromStream(byte commandId, Object[] args)
ModuleCommandFactory
ReplicableCommand
based on the command
id and argument array passed in.fromStream
in interface ModuleCommandFactory
commandId
- command id to constructargs
- array of arguments with which to initialize the ReplicableCommandpublic CacheRpcCommand fromStream(byte commandId, Object[] args, String cacheName)
ExtendedModuleCommandFactory
CacheRpcCommand
based on the command
id and argument array passed in.fromStream
in interface ExtendedModuleCommandFactory
commandId
- command id to constructargs
- array of arguments with which to initialize the CacheRpcCommand
cacheName
- cache name at which command to be created is directedCacheRpcCommand
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.