Examples of ChannelFactory


Examples of com.facebook.presto.jdbc.internal.netty.channel.ChannelFactory

     *         if the factory is not set for this bootstrap yet.
     *         The factory can be set in the constructor or
     *         {@link #setFactory(ChannelFactory)}.
     */
    public ChannelFactory getFactory() {
        ChannelFactory factory = this.factory;
        if (factory == null) {
            throw new IllegalStateException(
                    "factory is not set yet.");
        }
        return factory;
View Full Code Here

Examples of com.sshtools.j2ssh.connection.ChannelFactory

                true, null);

        if (success) {
            // Allow an Agent Channel to be opened
            connection.addChannelFactory(AgentSocketChannel.AGENT_FORWARDING_CHANNEL,
                new ChannelFactory() {
                    public Channel createChannel(String channelType,
                        byte[] requestData) throws InvalidChannelException {
                        try {
                            AgentSocketChannel channel = new AgentSocketChannel(false);
                            Socket socket = SshAgentClient.connectAgentSocket(System.getProperty(
View Full Code Here

Examples of eu.mosaic_cloud.interoperability.core.ChannelFactory

    final String driverIdentity = ConfigUtils.resolveParameter (this.configuration, "interop.driver.identity", String.class, "");
    final String driverEndpoint = ConfigUtils.resolveParameter (this.configuration, "interop.driver.endpoint", String.class, "");
    this.connectorChannel = ZeroMqChannel.create (UUID.randomUUID ().toString (), this.threading, this.exceptions);
    this.driverChannel = ZeroMqChannel.create (driverIdentity, this.threading, this.exceptions);
    this.driverChannel.accept (driverEndpoint);
    final ChannelFactory channelFactory = new ChannelFactory () {
      @SuppressWarnings ("synthetic-access")
      @Override
      public final Channel create ()
      {
        return Scenario.this.connectorChannel;
View Full Code Here

Examples of io.netty.channel.ChannelFactory

     *         if the factory is not set for this bootstrap yet.
     *         The factory can be set in the constructor or
     *         {@link #setFactory(ChannelFactory)}.
     */
    public ChannelFactory getFactory() {
        ChannelFactory factory = this.factory;
        if (factory == null) {
            throw new IllegalStateException(
                    "factory is not set yet.");
        }
        return factory;
View Full Code Here

Examples of net.gleamynode.netty.channel.ChannelFactory

    public Bootstrap(ChannelFactory channelFactory) {
        setFactory(channelFactory);
    }

    public ChannelFactory getFactory() {
        ChannelFactory factory = this.factory;
        if (factory == null) {
            throw new IllegalStateException(
                    "factory is not set yet.");
        }
        return factory;
View Full Code Here

Examples of org.activeio.ChannelFactory

            activeConnectionsCounter.reset();
            echoedBytesCounter.reset();
           
            shutdownLatch = new Latch();
               
            ChannelFactory factory = new ChannelFactory();
            AsynchChannelServer server = factory.bindAsynchChannel(url);
            System.out.println("Server accepting connections on: "+server.getConnectURI());
            server.setAcceptListener(this);
            server.start();
           
            while(!shutdownLatch.attempt(sampleInterval)) {
View Full Code Here

Examples of org.apache.flume.ChannelFactory

  private JsonFileConfigurationProvider provider;

  @Before
  public void setUp() {
    ChannelFactory channelFactory = new DefaultChannelFactory();
    SourceFactory sourceFactory = new DefaultSourceFactory();
    SinkFactory sinkFactory = new DefaultSinkFactory();

    channelFactory.register("memory", MemoryChannel.class);

    sourceFactory.register("seq", SequenceGeneratorSource.class);
    sourceFactory.register("netcat", NetcatSource.class);

    sinkFactory.register("null", NullSink.class);
View Full Code Here

Examples of org.jboss.as.clustering.jgroups.ChannelFactory

    protected void destroyService() {
        // no-op
    }

    protected Channel createChannel() {
        ChannelFactory factory = this.getChannelFactory();
        if (factory == null) {
            throw new IllegalStateException("HAPartitionConfig has no JChannelFactory");
        }
        String stack = this.getChannelStackName();
        if (stack == null) {
            throw new IllegalStateException("HAPartitionConfig has no multiplexer stack");
        }
        try {
            return factory.createChannel(this.getGroupName());
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new RuntimeException("Failure creating multiplexed Channel", e);
        }
View Full Code Here

Examples of org.jboss.as.clustering.jgroups.ChannelFactory

        return this.channel;
    }

    @Override
    protected void start() throws Exception {
        ChannelFactory factory = this.factory.getValue();
        this.channel = factory.createChannel(this.id);
        if (this.channel.getProtocolStack().findProtocol(STATE_TRANSFER.class, STATE.class, STATE_SOCK.class) != null) {
            this.channel.connect(this.id, null, STATE_TRANSFER_TIMEOUT);
        } else {
            this.channel.connect(this.id);
        }
        // Validate view
        String localName = this.channel.getName();
        Address localAddress = this.channel.getAddress();
        for (Address address: this.channel.getView()) {
            String name = this.channel.getName(address);
            if (name.equals(localName) && !address.equals(localAddress)) {
                this.channel.close();
                throw JGroupsMessages.MESSAGES.duplicateNodeName(factory.getServerEnvironment().getNodeName());
            }
        }
    }
View Full Code Here

Examples of org.jboss.as.clustering.jgroups.ChannelFactory

        }

        @Override
        protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {

            ChannelFactory factory = getChannelFactory(context, operation);
            // need to check for null
            if (factory == null) {
                context.getFailureDescription().set("required service ChannelFactoryService is not started");
                context.completeStep();
                return;
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.