Example #1
0
 @Process(actionType = ModifyBufferPool.class)
 public void modify(final ModifyBufferPool action, final Dispatcher.Channel channel) {
   lastModifiedBufferPool = action.getName();
   operationDelegate.onSaveResource(
       RESOURCE_ADDRESS,
       lastModifiedBufferPool,
       action.getChangedValues(),
       new RefreshCallback(channel));
 }
Example #2
0
 @Process(actionType = AddBufferPool.class)
 public void add(final AddBufferPool action, final Dispatcher.Channel channel) {
   lastModifiedBufferPool = action.getBufferPool().get(NAME).asString();
   operationDelegate.onCreateResource(
       RESOURCE_ADDRESS, action.getBufferPool(), new RefreshCallback(channel));
 }
Example #3
0
 @Process(actionType = RemoveBufferPool.class)
 public void remove(final RemoveBufferPool action, final Dispatcher.Channel channel) {
   lastModifiedBufferPool = null;
   operationDelegate.onRemoveResource(
       RESOURCE_ADDRESS, action.getName(), new RefreshCallback(channel));
 }