use of org.jboss.as.controller.SimpleOperationDefinition in project wildfly by wildfly.
the class AddressSettingsResolveHandler method registerOperationHandler.
public static void registerOperationHandler(ManagementResourceRegistration registry, ResourceDescriptionResolver resolver) {
SimpleOperationDefinition op = new SimpleOperationDefinitionBuilder(RESOLVE_ADDRESS_SETTING, resolver).withFlags(EnumSet.of(OperationEntry.Flag.READ_ONLY, OperationEntry.Flag.RUNTIME_ONLY)).addParameter(ACTIVEMQ_ADDRESS).setReplyType(ModelType.LIST).setReplyParameters(AddressSettingDefinition.ATTRIBUTES).build();
registry.registerOperationHandler(op, AddressSettingsResolveHandler.INSTANCE);
}
use of org.jboss.as.controller.SimpleOperationDefinition in project wildfly by wildfly.
the class ClusterConnectionDefinition method registerOperations.
@Override
public void registerOperations(ManagementResourceRegistration registry) {
super.registerOperations(registry);
ClusterConnectionControlHandler.INSTANCE.registerOperations(registry, getResourceDescriptionResolver());
final EnumSet<OperationEntry.Flag> flags = EnumSet.of(OperationEntry.Flag.READ_ONLY, OperationEntry.Flag.RUNTIME_ONLY);
SimpleOperationDefinition getNodesDef = new SimpleOperationDefinitionBuilder(ClusterConnectionDefinition.GET_NODES, getResourceDescriptionResolver()).withFlags(flags).setReplyType(OBJECT).setReplyValueType(STRING).build();
registry.registerOperationHandler(getNodesDef, ClusterConnectionControlHandler.INSTANCE);
}
use of org.jboss.as.controller.SimpleOperationDefinition in project wildfly by wildfly.
the class BroadcastGroupDefinition method registerOperations.
@Override
public void registerOperations(ManagementResourceRegistration registry) {
super.registerOperations(registry);
BroadcastGroupControlHandler.INSTANCE.registerOperations(registry, getResourceDescriptionResolver());
SimpleOperationDefinition op = new SimpleOperationDefinitionBuilder(GET_CONNECTOR_PAIRS_AS_JSON, getResourceDescriptionResolver()).withFlags(EnumSet.of(OperationEntry.Flag.READ_ONLY, OperationEntry.Flag.RUNTIME_ONLY)).setReplyType(STRING).build();
registry.registerOperationHandler(op, BroadcastGroupControlHandler.INSTANCE);
}
Aggregations