Package org.jboss.as.protocol.mgmt

Examples of org.jboss.as.protocol.mgmt.ManagementChannelFactory


        configuration.setEndpointName("endpoint");
        configuration.setUriScheme("remote");

        try {
            configuration.setUri(new URI("remote://" + host.getHostAddress() + ":" + port));
            configuration.setChannelFactory(new ManagementChannelFactory(txOperationHandler));
            client = ProtocolChannelClient.create(configuration);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
View Full Code Here


        ProtocolChannelClient<ManagementChannel> client;
        try {
            ProtocolChannelClient.Configuration<ManagementChannel> configuration = new ProtocolChannelClient.Configuration<ManagementChannel>();
            configuration.setEndpoint(endpointInjector.getValue());
            configuration.setUri(new URI("remote://" + hcAddressInjector.getValue().getHostName() + ":" + hcAddressInjector.getValue().getPort()));
            configuration.setChannelFactory(new ManagementChannelFactory());
            client = ProtocolChannelClient.create(configuration);
        } catch (Exception e) {
            throw new StartException(e);
        }
View Full Code Here

        ProtocolChannelClient<ManagementChannel> client;
        try {
            ProtocolChannelClient.Configuration<ManagementChannel> configuration = new ProtocolChannelClient.Configuration<ManagementChannel>();
            configuration.setEndpoint(endpointInjector.getValue());
            configuration.setUri(new URI("remote://" + hcAddressInjector.getValue().getHostName() + ":" + hcAddressInjector.getValue().getPort()));
            configuration.setChannelFactory(new ManagementChannelFactory());
            client = ProtocolChannelClient.create(configuration);
        } catch (Exception e) {
            throw new StartException(e);
        }
View Full Code Here

        configuration.setExecutor(RemotingServices.createExecutor());
        configuration.setUriScheme("remote");

        try {
            configuration.setUri(new URI("remote://" + host.getHostAddress() + ":" + port));
            configuration.setChannelFactory(new ManagementChannelFactory(txOperationHandler));
            client = ProtocolChannelClient.create(configuration);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
View Full Code Here

        configuration.setExecutor(RemotingServices.createExecutor());
        configuration.setUriScheme("remote");

        try {
            configuration.setUri(new URI("remote://" + host.getHostAddress() + ":" + port));
            configuration.setChannelFactory(new ManagementChannelFactory(txOperationHandler));
            client = ProtocolChannelClient.create(configuration);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
View Full Code Here

        ProtocolChannelClient<ManagementChannel> client;
        try {
            ProtocolChannelClient.Configuration<ManagementChannel> configuration = new ProtocolChannelClient.Configuration<ManagementChannel>();
            configuration.setEndpoint(endpointInjector.getValue());
            configuration.setUri(new URI("remote://" + hcAddressInjector.getValue().getHostName() + ":" + hcAddressInjector.getValue().getPort()));
            configuration.setChannelFactory(new ManagementChannelFactory());
            client = ProtocolChannelClient.create(configuration);
        } catch (Exception e) {
            throw new StartException(e);
        }
View Full Code Here

    }

    @Override
    protected ManagementChannel createChannel(Channel channel) {
        final ManagementOperationHandler handler = operationHandlerFactoryValue.getValue().createOperationHandler();
        final ManagementChannel managementChannel = new ManagementChannelFactory(handler).create(channelName, channel);
        log.tracef("Opened %s: %s with handler %s", channelName, managementChannel, handler);
        managementChannel.startReceiving();
        channel.addCloseHandler(new CloseHandler<Channel>() {
            public void handleClose(final Channel closed, final IOException exception) {
                try {
View Full Code Here

    }

    @Override
    public void channelOpened(Channel channel) {
        final ManagementOperationHandler handler = operationHandlerFactoryValue.getValue().createOperationHandler();
        final ManagementChannel managementChannel = new ManagementChannelFactory(handler).create(channelName, channel);
        channels.add(managementChannel);
        log.tracef("Opened %s: %s with handler %s", channelName, managementChannel, handler);
        managementChannel.startReceiving();
        channel.addCloseHandler(new CloseHandler<Channel>() {
            public void handleClose(final Channel closed, final IOException exception) {
View Full Code Here

TOP

Related Classes of org.jboss.as.protocol.mgmt.ManagementChannelFactory

Copyright © 2018 www.massapicom. 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.