public interface CommandsFactory
- not creating CacheCommands
directly (i.e. through new usage) as this would reduce unit testability
- reduce the coupling between commands and other components. e.g. considering a commands that needs to knwo whether
locking type is optimistic, we will pass in a 'optimistic' boolean flag rather than entire Configuration object
Note: As of 3.0, this is now an interface.
PutDataMapCommand buildPutDataMapCommand(GlobalTransaction gtx, Fqn fqn, Map data)
PutKeyValueCommand buildPutKeyValueCommand(GlobalTransaction gtx, Fqn fqn, Object key, Object value)
PutForExternalReadCommand buildPutForExternalReadCommand(GlobalTransaction gtx, Fqn fqn, Object key, Object value)
ReplicateCommand buildReplicateCommand(ReplicableCommand command)
ReplicateCommand buildReplicateCommand(List<ReplicableCommand> modifications)
PrepareCommand buildPrepareCommand(GlobalTransaction gtx, WriteCommand command, boolean onePhaseCommit)
PrepareCommand buildPrepareCommand(GlobalTransaction gtx, List<WriteCommand> modifications, org.jgroups.Address address, boolean onePhaseCommit)
CommitCommand buildCommitCommand(GlobalTransaction gtx)
DataGravitationCleanupCommand buildDataGravitationCleanupCommand(Fqn primaryFqn, Fqn backupFqn)
GravitateDataCommand buildGravitateDataCommand(Fqn fqn, Boolean searchSubtrees)
RemoveNodeCommand buildRemoveNodeCommand(GlobalTransaction gtx, Fqn fqn)
ClearDataCommand buildClearDataCommand(GlobalTransaction gtx, Fqn fqn)
EvictCommand buildEvictFqnCommand(Fqn fqn)
InvalidateCommand buildInvalidateCommand(Fqn fqn)
RemoveKeyCommand buildRemoveKeyCommand(GlobalTransaction tx, Fqn fqn, Object key)
GetDataMapCommand buildGetDataMapCommand(Fqn fqn)
ExistsCommand buildExistsNodeCommand(Fqn fqn)
GetKeyValueCommand buildGetKeyValueCommand(Fqn fqn, Object key, boolean sendNodeEvent)
GetNodeCommand buildGetNodeCommand(Fqn fqn)
GetKeysCommand buildGetKeysCommand(Fqn fqn)
GetChildrenNamesCommand buildGetChildrenNamesCommand(Fqn fqn)
MoveCommand buildMoveCommand(Fqn from, Fqn to)
RollbackCommand buildRollbackCommand(GlobalTransaction gtx)
OptimisticPrepareCommand buildOptimisticPrepareCommand(GlobalTransaction gtx, List<WriteCommand> modifications, org.jgroups.Address address, boolean onePhaseCommit)
AnnounceBuddyPoolNameCommand buildAnnounceBuddyPoolNameCommand(org.jgroups.Address address, String buddyPoolName)
RemoveFromBuddyGroupCommand buildRemoveFromBuddyGroupCommand(String groupName)
AssignToBuddyGroupCommand buildAssignToBuddyGroupCommand(BuddyGroup group, Map<Fqn,byte[]> state)
ClusteredGetCommand buildClusteredGetCommand(Boolean searchBackupSubtrees, DataCommand dataCommand)
CreateNodeCommand buildCreateNodeCommand(Fqn fqn)
ReplicableCommand fromStream(int id, Object[] parameters)
id
- id of the command to buildparameters
- parameters attached to the commandStateTransferControlCommand buildStateTransferControlCommand(boolean b)
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.