public class ClusterCommandManagementService extends Object
Constructor and Description |
---|
ClusterCommandManagementService() |
Modifier and Type | Method and Description |
---|---|
CommandView |
getPublishedCommand(String commandId)
Retrive a single command view with given command version
|
Map<Integer,CommandView> |
getPublishedCommands()
Gets the currently published cluster commands.
|
String |
publishCommand(String marshaledCommand)
Publishes a
XControlCommand through the XClusterManager 's command
framework. |
void |
retryCommand(int commandId)
Retries a given
XControlCommand . |
public Map<Integer,CommandView> getPublishedCommands() throws ManagementServiceException
ManagementServiceException
- If unable to fetch the commandspublic CommandView getPublishedCommand(String commandId) throws ManagementServiceException
commandId
- command versionManagementServiceException
- if any error occur when fetching the command viewpublic void retryCommand(int commandId) throws ManagementServiceException
XControlCommand
. The command instance will be identified
by the commandId which is the command version number.commandId
- command version numberManagementServiceException
- in case of a failure to retry the commandpublic String publishCommand(String marshaledCommand) throws ManagementServiceException
XControlCommand
through the XClusterManager
's command
framework. The command should be given as a string (marshaled).marshaledCommand
- XControlCommand
to be published as marshaled stringManagementServiceException
- if unable to publishCopyright © 2016–2019 AdroitLogic. All rights reserved.