Examples of config()


Examples of io.nodyn.netty.pipe.NioInputStreamChannel.config()

    protected void openInput(int fd, FileDescriptor fileDescriptor) throws IOException {
        FileInputStream in = new FileInputStream(fileDescriptor);

        NioInputStreamChannel nioChannel = NioInputStreamChannel.create(this.process, in);
        nioChannel.config().setAutoRead(false);

        //nioChannel.pipeline().addLast("debug", new DebugHandler("input:" + fd + " // " + process.getPosix().getpid()));
        nioChannel.pipeline().addLast("emit.data", new DataEventHandler(this.process, this));
        nioChannel.pipeline().addLast("emit.eof", new EOFEventHandler(this.process, this));
        this.channelFuture = nioChannel.newSucceededFuture();
View Full Code Here

Examples of io.nodyn.netty.pipe.NioOutputStreamChannel.config()

    protected void openOutput(int fd, FileDescriptor fileDescriptor) throws IOException {
        FileOutputStream out = new FileOutputStream(fileDescriptor);

        NioOutputStreamChannel nioChannel = NioOutputStreamChannel.create(this.process, out);
        nioChannel.config().setAutoRead(false);
        this.channelFuture = nioChannel.newSucceededFuture();
        //nioChannel.pipeline().addLast("debug", new DebugHandler("output:" + fd + " // " + process.getPosix().getpid()));
        process.getEventLoop().getEventLoopGroup().register(nioChannel);

        this.type = Type.OUTPUT;
View Full Code Here

Examples of java.util.logging.Logger.config()

      // add any such Loggers to a list of unconfigured ones and revisit
      // them upon the manager's configuration.
      if (!configured && (result instanceof TransactionalLogger)) {
                unconfiguredLoggers.add((TransactionalLogger) result);
            } else {
    result.config("This logger now has transactional semantics");
      }

      // this call is necessary to install all the handlers associated
      // with the Logger.
      addLogger(result);
View Full Code Here

Examples of java.util.logging.Logger.config()

        }
        lowLevelHttpRequest.setContent(content);
      }
      // log from buffer
      if (loggable) {
        logger.config(logbuf.toString());
        if (curlbuf != null) {
          curlbuf.append(" -- ");
          curlbuf.append(urlString);
          if (content != null) {
            curlbuf.append(" << $$$");
View Full Code Here

Examples of java.util.logging.Logger.config()

          curlbuf.append(" -- ");
          curlbuf.append(urlString);
          if (content != null) {
            curlbuf.append(" << $$$");
          }
          logger.config(curlbuf.toString());
        }
      }

      // We need to make sure our content type can support retry
      // null content is inherently able to be retried
View Full Code Here

Examples of java.util.logging.Logger.config()

    this.contentType = contentType;
    mediaType = contentType == null ? null : new HttpMediaType(contentType);

    // log from buffer
    if (loggable) {
      logger.config(logbuf.toString());
    }
  }

  /**
   * Returns the limit to the content size that will be logged during {@link #getContent()}.
View Full Code Here

Examples of net.kuujo.vertigo.component.ModuleContext.config()

    assertEquals("feeder", moduleContext.name());
    assertEquals("vertigo.test.feeder", moduleContext.address());
    assertEquals("com.test~test-module~1.0", moduleContext.module());
    assertFalse(moduleContext.isVerticle());
    assertTrue(moduleContext.isModule());
    assertEquals(new JsonObject(), moduleContext.config());
    assertEquals(1, moduleContext.numInstances());
    assertNotNull(moduleContext.network());
  }

  @Test
View Full Code Here

Examples of net.kuujo.vertigo.component.ModuleContext.config()

    assertEquals("feeder", moduleContext.name());
    assertEquals("vertigo.test.feeder", moduleContext.address());
    assertEquals("com.test~test-module~1.0", moduleContext.module());
    assertFalse(moduleContext.isVerticle());
    assertTrue(moduleContext.isModule());
    assertEquals("bar", moduleContext.config().getString("foo"));
    assertEquals(2, moduleContext.numInstances());
    assertEquals(2, moduleContext.instances().size());
    assertEquals("test", moduleContext.group());
    assertNotNull(moduleContext.network());
  }
View Full Code Here

Examples of net.kuujo.vertigo.component.ModuleContext.config()

    assertEquals("worker", moduleContext.name());
    assertEquals("vertigo.test.worker", moduleContext.address());
    assertEquals("com.test~test-module~1.0", moduleContext.module());
    assertFalse(moduleContext.isVerticle());
    assertTrue(moduleContext.isModule());
    assertEquals(new JsonObject(), moduleContext.config());
    assertEquals(1, moduleContext.numInstances());
    assertNotNull(moduleContext.network());
  }

  @Test
View Full Code Here

Examples of net.kuujo.vertigo.component.ModuleContext.config()

    assertEquals("worker", moduleContext.name());
    assertEquals("vertigo.test.worker", moduleContext.address());
    assertEquals("com.test~test-module~1.0", moduleContext.module());
    assertFalse(moduleContext.isVerticle());
    assertTrue(moduleContext.isModule());
    assertEquals("bar", moduleContext.config().getString("foo"));
    assertEquals(2, moduleContext.numInstances());
    assertEquals(2, moduleContext.instances().size());
    assertEquals("test", moduleContext.group());
    assertNotNull(moduleContext.network());
  }
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.