public class DefaultTroubleshootingService extends Object implements TroubleshootingService
| Constructor and Description |
|---|
DefaultTroubleshootingService(DeploymentService deploymentService) |
| Modifier and Type | Method and Description |
|---|---|
Object |
executeOperation(String name,
Map<String,String> arguments)
Invokes an operation with the given parameters.
|
List<TroubleshootingOperationDefinition> |
getAvailableOperations()
Gets the available operation definitions.
|
void |
registerOperation(TroubleshootingOperation operation)
Registers a new
TroubleshootingOperation. |
void |
unregisterOperation(String name)
Unregisters a new
TroubleshootingOperation. |
public DefaultTroubleshootingService(DeploymentService deploymentService)
public void registerOperation(TroubleshootingOperation operation)
TroubleshootingServiceTroubleshootingOperation.registerOperation in interface TroubleshootingServiceoperation - the operation to be registered.public void unregisterOperation(String name)
TroubleshootingServiceTroubleshootingOperation.unregisterOperation in interface TroubleshootingServicename - the name of the operation to be registered.public List<TroubleshootingOperationDefinition> getAvailableOperations()
TroubleshootingServiceTroubleshootingService.executeOperation(String, Map).getAvailableOperations in interface TroubleshootingServicepublic Object executeOperation(String name, Map<String,String> arguments) throws TroubleshootingOperationException
TroubleshootingServiceTroubleshootingService.getAvailableOperations()executeOperation in interface TroubleshootingServicename - The name of the operation to execute.arguments - A dictionary with the arguments.TroubleshootingOperationException - if it couldn't execute the operation because it wasn't available or there is an
error in the arguments.Copyright © 2003–2023 MuleSoft, Inc.. All rights reserved.