/** * Register an active operation. The operation-id will be generated. * * @param attachment the shared attachment * @param callback the completed callback * @return the active operation */ protected <T, A> ActiveOperation<T, A> registerActiveOperation(A attachment, ActiveOperation.CompletedCallback<T> callback) { return registerActiveOperation(null, attachment, callback); }
@Override public <T, A> ActiveOperation<T, A> initializeOperation(A attachment, ActiveOperation.CompletedCallback<T> callback) throws IOException { return super.registerActiveOperation(attachment, callback); }
/** * Register an active operation. The operation-id will be generated. * * @param attachment the shared attachment * @param callback the completed callback * @return the active operation */ protected <T, A> ActiveOperation<T, A> registerActiveOperation(A attachment, ActiveOperation.CompletedCallback<T> callback) { return registerActiveOperation(null, attachment, callback); }
@Override public <T, A> ActiveOperation<T, A> initializeOperation(A attachment, ActiveOperation.CompletedCallback<T> callback) throws IOException { return super.registerActiveOperation(attachment, callback); }
@Override public <T, A> ActiveOperation<T, A> initializeOperation(A attachment, ActiveOperation.CompletedCallback<T> callback) throws IOException { return super.registerActiveOperation(attachment, callback); }
/** {@inheritDoc} */ @Override public <T, A> ActiveOperation<T, A> executeRequest(ManagementRequest<T, A> request, A attachment, ActiveOperation.CompletedCallback<T> callback) throws IOException { final ActiveOperation<T, A> operation = super.registerActiveOperation(attachment, callback); executeRequest(operation, request); return operation; }
/** {@inheritDoc} */ @Override public <T, A> ActiveOperation<T, A> executeRequest(final ManagementRequest<T, A> request, final A attachment) throws IOException { final ActiveOperation<T, A> operation = super.registerActiveOperation(attachment); executeRequest(operation, request); return operation; }
/** {@inheritDoc} */ @Override public <T, A> ActiveOperation<T, A> executeRequest(final ManagementRequest<T, A> request, final A attachment) throws IOException { final ActiveOperation<T, A> operation = super.registerActiveOperation(attachment); executeRequest(operation, request); return operation; }
/** * Register an active operation. The operation-id will be generated. * * @param attachment the shared attachment * @return the active operation */ protected <T, A> ActiveOperation<T, A> registerActiveOperation(A attachment) { final ActiveOperation.CompletedCallback<T> callback = getDefaultCallback(); return registerActiveOperation(attachment, callback); }
/** {@inheritDoc} */ @Override public <T, A> ActiveOperation<T, A> executeRequest(ManagementRequest<T, A> request, A attachment, ActiveOperation.CompletedCallback<T> callback) throws IOException { final ActiveOperation<T, A> operation = super.registerActiveOperation(attachment, callback); executeRequest(operation, request); return operation; }
/** {@inheritDoc} */ @Override public <T, A> ActiveOperation<T, A> executeRequest(final ManagementRequest<T, A> request, final A attachment) throws IOException { final ActiveOperation<T, A> operation = super.registerActiveOperation(attachment); executeRequest(operation, request); return operation; }
/** * Register an active operation with a specific operation id. * * @param id the operation id * @param attachment the shared attachment * @return the created active operation * * @throws java.lang.IllegalStateException if an operation with the same id is already registered */ protected <T, A> ActiveOperation<T, A> registerActiveOperation(final Integer id, A attachment) { final ActiveOperation.CompletedCallback<T> callback = getDefaultCallback(); return registerActiveOperation(id, attachment, callback); }
/** {@inheritDoc} */ @Override public <T, A> ActiveOperation<T, A> executeRequest(ManagementRequest<T, A> request, A attachment, ActiveOperation.CompletedCallback<T> callback) throws IOException { final ActiveOperation<T, A> operation = super.registerActiveOperation(attachment, callback); executeRequest(operation, request); return operation; }
/** * Register an active operation. The operation-id will be generated. * * @param attachment the shared attachment * @return the active operation */ protected <T, A> ActiveOperation<T, A> registerActiveOperation(A attachment) { final ActiveOperation.CompletedCallback<T> callback = getDefaultCallback(); return registerActiveOperation(attachment, callback); }
/** * Register an active operation with a specific operation id. * * @param id the operation id * @param attachment the shared attachment * @return the created active operation * * @throws java.lang.IllegalStateException if an operation with the same id is already registered */ protected <T, A> ActiveOperation<T, A> registerActiveOperation(final Integer id, A attachment) { final ActiveOperation.CompletedCallback<T> callback = getDefaultCallback(); return registerActiveOperation(id, attachment, callback); }