@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)); }
@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)); }
@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)); }