@Override public ProxyController getProxyController(PathAddress address) { return delegate.getProxyController(address); }
@Override public ProxyController getProxyController(PathAddress address) { return delegate.getProxyController(address); }
@Override public ProxyController getProxyController(PathAddress address) { return delegate.getProxyController(address); }
@Override public ProxyController getProxyController(PathAddress address) { return delegate.getProxyController(address); }
@Override public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final PathAddress serverAddress = PathAddress.EMPTY_ADDRESS.append(PathElement.pathElement(SERVER, serverName)); final ProxyController controller = context.getResourceRegistration().getProxyController(serverAddress); if (controller != null) { context.getFailureDescription().set(HostControllerLogger.ROOT_LOGGER.serverStillRunning(serverName)); } } }, OperationContext.Stage.RUNTIME);
public static Map<String, ProxyController> getServerProxies(String localHostName, Resource domainRootResource, ImmutableManagementResourceRegistration domainRootResourceRegistration) { final Set<String> serverNames = domainRootResource.getChild(PathElement.pathElement(HOST, localHostName)).getChildrenNames(SERVER_CONFIG); final Map<String, ProxyController> proxies = new HashMap<String, ProxyController>(); for(String serverName : serverNames) { final PathAddress serverAddress = PathAddress.pathAddress(PathElement.pathElement(HOST, localHostName), PathElement.pathElement(SERVER, serverName)); final ProxyController proxyController = domainRootResourceRegistration.getProxyController(serverAddress); if(proxyController != null) { proxies.put(serverName, proxyController); } } return proxies; } }
public static Map<String, ProxyController> getServerProxies(String localHostName, Resource domainRootResource, ImmutableManagementResourceRegistration domainRootResourceRegistration) { final Set<String> serverNames = domainRootResource.getChild(PathElement.pathElement(HOST, localHostName)).getChildrenNames(SERVER_CONFIG); final Map<String, ProxyController> proxies = new HashMap<String, ProxyController>(); for(String serverName : serverNames) { final PathAddress serverAddress = PathAddress.pathAddress(PathElement.pathElement(HOST, localHostName), PathElement.pathElement(SERVER, serverName)); final ProxyController proxyController = domainRootResourceRegistration.getProxyController(serverAddress); if(proxyController != null) { proxies.put(serverName, proxyController); } } return proxies; } }
public static Map<String, ProxyController> getServerProxies(String localHostName, Resource domainRootResource, ImmutableManagementResourceRegistration domainRootResourceRegistration) { final Set<String> serverNames = domainRootResource.getChild(PathElement.pathElement(HOST, localHostName)).getChildrenNames(SERVER_CONFIG); final Map<String, ProxyController> proxies = new HashMap<String, ProxyController>(); for(String serverName : serverNames) { final PathAddress serverAddress = PathAddress.pathAddress(PathElement.pathElement(HOST, localHostName), PathElement.pathElement(SERVER, serverName)); final ProxyController proxyController = domainRootResourceRegistration.getProxyController(serverAddress); if(proxyController != null) { proxies.put(serverName, proxyController); } } return proxies; } }
@Override public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final PathAddress serverAddress = PathAddress.EMPTY_ADDRESS.append(PathElement.pathElement(SERVER, serverName)); final ProxyController controller = context.getResourceRegistration().getProxyController(serverAddress); if (controller != null) { context.getFailureDescription().set(HostControllerLogger.ROOT_LOGGER.serverStillRunning(serverName)); } } }, OperationContext.Stage.RUNTIME);
@Override public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final PathAddress serverAddress = PathAddress.EMPTY_ADDRESS.append(PathElement.pathElement(SERVER, serverName)); final ProxyController controller = context.getResourceRegistration().getProxyController(serverAddress); if (controller != null) { context.getFailureDescription().set(MESSAGES.serverStillRunning(serverName)); } context.stepCompleted(); } }, OperationContext.Stage.RUNTIME);
private boolean isWFCORE621Needed(ImmutableManagementResourceRegistration registration, PathAddress remaining) { if (remaining.size() > 0) { PathElement pe = remaining.getElement(0); if (pe.isMultiTarget() && RUNNING_SERVER.equals(pe.getKey())) { // We only need this for WildFly 8 and earlier (including EAP 6), // so that's proxied controllers running kernel version 1.x or 2.x ModelVersion modelVersion = registration.getProxyController(PathAddress.EMPTY_ADDRESS).getKernelModelVersion(); return modelVersion.getMajor() < 3; } } return false; }
private boolean isWFCORE621Needed(ImmutableManagementResourceRegistration registration, PathAddress remaining) { if (remaining.size() > 0) { PathElement pe = remaining.getElement(0); if (pe.isMultiTarget() && RUNNING_SERVER.equals(pe.getKey())) { // We only need this for WildFly 8 and earlier (including EAP 6), // so that's proxied controllers running kernel version 1.x or 2.x ModelVersion modelVersion = registration.getProxyController(PathAddress.EMPTY_ADDRESS).getKernelModelVersion(); return modelVersion.getMajor() < 3; } } return false; }
final boolean wildfly8 = registration.getProxyController(PathAddress.EMPTY_ADDRESS).getKernelModelVersion().getMajor() == 2;
final boolean wildfly8 = registration.getProxyController(PathAddress.EMPTY_ADDRESS).getKernelModelVersion().getMajor() == 2;