@Experimental public abstract class SingleGfshCommand extends GfshCommand
EXPERIMENTAL
Constructor and Description |
---|
SingleGfshCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
affectsClusterConfiguration()
For those commands that could possibly change the cluster configuration, they need to
override this method to return true.
|
abstract boolean |
updateConfigForGroup(String group,
CacheConfig config,
Object configObject)
Implement this method for updating the configuration of a given group
the implementation should update the passed in config object with appropriate changes if for
any reason config can't be updated.
|
authorize, authorize, authorize, executeAndGetFunctionResult, executeFunction, executeFunction, executeFunctionAndGetFunctionResult, findAllLocators, findAllOtherLocators, findAnyMembersForRegion, findMember, findMembers, findMembersForRegion, findMembersIncludingLocators, getAllMembers, getAllNormalMembers, getCache, getClusterManagementService, getConfigurationPersistenceService, getManagementService, getMember, getMembers, getMembersFunctionExecutor, getMembersIncludingLocators, getNormalMembersWithSameOrNewerVersion, getSubject, isOnlineCommandAvailable, isSharedConfigurationRunning, poll, setCache
public abstract boolean updateConfigForGroup(String group, CacheConfig config, Object configObject)
group
- the name of the group to update cluster config forconfig
- the configuration object, never nullconfigObject
- the return value of CommandResult.getConfigObject. CommandResult is the
return value of your command method.public boolean affectsClusterConfiguration()
GfshCommand
affectsClusterConfiguration
in class GfshCommand