Package org.jboss.as.protocol.mgmt

Examples of org.jboss.as.protocol.mgmt.ManagementChannel.addCloseHandler()


    public synchronized ProxyController popChannelAndCreateProxy(final String hostName) {
        ManagementChannel channel = unregisteredHostChannels.remove(hostName);
        if (channel == null) {
            throw new IllegalArgumentException("No channel for host " + hostName);
        }
        channel.addCloseHandler(new CloseHandler<Channel>() {
            public void handleClose(final Channel closed, final IOException exception) {
                unregisterRemoteHost(hostName);
            }
        });
        final PathAddress addr = PathAddress.pathAddress(PathElement.pathElement(ModelDescriptionConstants.HOST, hostName));
View Full Code Here


            this.channelClient = client;

            ManagementChannel channel = client.openChannel(ManagementRemotingServices.DOMAIN_CHANNEL);
            this.channel = channel;

            channel.addCloseHandler(new CloseHandler<Channel>() {
                public void handleClose(final Channel closed, final IOException exception) {
                    connectionClosed();
                }
            });
View Full Code Here

            this.channelClient = client;

            ManagementChannel channel = client.openChannel(RemotingServices.DOMAIN_CHANNEL);
            this.channel = channel;

            channel.addCloseHandler(new CloseHandler<Channel>() {
                public void handleClose(final Channel closed, final IOException exception) {
                    connectionClosed();
                }
            });
View Full Code Here

    public synchronized ProxyController popChannelAndCreateProxy(final String hostName) {
        ManagementChannel channel = unregisteredHostChannels.remove(hostName);
        if (channel == null) {
            throw new IllegalArgumentException("No channel for host " + hostName);
        }
        channel.addCloseHandler(new CloseHandler<Channel>() {
            //This does not get called when slave terminates abruptly - see REM3-121
            public void handleClose(final Channel closed, final IOException exception) {
                //TODO A bit strange doing it here before the proxy is actually registered
                unregisterRemoteHost(hostName);
            }
View Full Code Here

            this.channelClient = client;

            ManagementChannel channel = client.openChannel(RemotingServices.DOMAIN_CHANNEL);
            this.channel = channel;

            channel.addCloseHandler(new CloseHandler<Channel>() {
                public void handleClose(final Channel closed, final IOException exception) {
                    connectionClosed();
                }
            });
View Full Code Here

    public synchronized ProxyController popChannelAndCreateProxy(final String hostName) {
        ManagementChannel channel = unregisteredHostChannels.remove(hostName);
        if (channel == null) {
            throw new IllegalArgumentException("No channel for host " + hostName);
        }
        channel.addCloseHandler(new CloseHandler<Channel>() {
            //This does not get called when slave terminates abruptly - see REM3-121
            public void handleClose(final Channel closed, final IOException exception) {
                //TODO A bit strange doing it here before the proxy is actually registered
                unregisterRemoteHost(hostName);
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.