@Override void sendMessage(FlushableDataOutput output) throws IOException { sendResponse(output, DomainControllerProtocol.PARAM_OK, extensions); } });
protected boolean completeTask(Object result) { synchronized (this) { if(failed) { return false; } if(task != null) { return task.completeStep(result); } } return false; }
protected Long getRemoteConnectionId() { if (pinger != null) { return pinger.getRemoteConnectionID(); } else { return null; } }
private synchronized void initialize(final String hostName, final ModelNode hostInfo, final ManagementRequestContext<RegistrationContext> responseChannel) { this.hostName = hostName; this.hostInfo = HostInfo.fromModelNode(hostInfo, domainHostExcludeRegistry); this.responseChannel = responseChannel; }
void completeRegistration(final ManagementRequestContext<RegistrationContext> responseChannel, boolean commit) { this.responseChannel = responseChannel; failed |= ! commit; completeTask(!failed); }
boolean setFailed() { return setFailed(null); } }
@Override protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { DomainHostExcludeRegistry.VersionKey versionKey = getVersionKey(context, model); domainHostExcludeRegistry.removeVersionExcludeData(versionKey); }
@Override void sendMessage(FlushableDataOutput output) throws IOException { sendResponse(output, DomainControllerProtocol.PARAM_OK, extensions); } });
protected boolean completeTask(Object result) { synchronized (this) { if(failed) { return false; } if(task != null) { return task.completeStep(result); } } return false; }
private synchronized void initialize(final String hostName, final ModelNode hostInfo, final ManagementRequestContext<RegistrationContext> responseChannel) { this.hostName = hostName; this.hostInfo = HostInfo.fromModelNode(hostInfo); this.responseChannel = responseChannel; }
void completeRegistration(final ManagementRequestContext<RegistrationContext> responseChannel, boolean commit) { this.responseChannel = responseChannel; failed |= ! commit; completeTask(! failed); }
protected Long getRemoteConnectionId() { if (pinger != null) { return pinger.getRemoteConnectionID(); } else { return null; } }
@Override protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { DomainHostExcludeRegistry.VersionKey versionKey = getVersionKey(context, model); domainHostExcludeRegistry.removeVersionExcludeData(versionKey); }
@Override void sendMessage(final FlushableDataOutput output) throws IOException { sendResponse(output, DomainControllerProtocol.PARAM_OK, result); } });
protected boolean completeTask(Object result) { synchronized (this) { if(failed) { return false; } if(task != null) { return task.completeStep(result); } } return false; }
private synchronized void initialize(final String hostName, final ModelNode hostInfo, final ManagementRequestContext<RegistrationContext> responseChannel) { this.hostName = hostName; this.hostInfo = HostInfo.fromModelNode(hostInfo, domainHostExcludeRegistry); this.responseChannel = responseChannel; }
protected void setSubsystems(final ModelNode resolved, final ManagementRequestContext<RegistrationContext> responseChannel) { this.responseChannel = responseChannel; completeTask(resolved); }
@Override void sendMessage(final FlushableDataOutput output) throws IOException { sendResponse(output, DomainControllerProtocol.PARAM_OK, result); } });
@Override void sendMessage(final FlushableDataOutput output) throws IOException { sendResponse(output, DomainControllerProtocol.PARAM_OK, result); } });
@Override void sendMessage(FlushableDataOutput output) throws IOException { sendResponse(output, DomainControllerProtocol.PARAM_OK, extensions); } });