Examples of ports()


Examples of io.fabric8.service.jclouds.firewall.Rule.ports()

            }
            for (String cidr : sourceCidrs) {
                Rule rule = Rule.create().destination(node).source(cidr);

                if (port != null && port.length > 0) {
                    rule = rule.ports(port);
                }
                if (revoke) {
                    firewallManager.addRule(rule.revoke());
                } else {
                    firewallManager.addRule(rule);
View Full Code Here

Examples of net.kuujo.vertigo.io.InputContext.ports()

    // added and removed or opened and closed on the object.
    tasks.runTask(new Handler<Task>() {
      @Override
      public void handle(final Task task) {
        final List<InputPort> newPorts = new ArrayList<>();
        for (InputPortContext input : update.ports()) {
          if (!ports.containsKey(input.name())) {
            InputPortContext port = DefaultInputCollector.this.context.port(input.name());
            if (port != null) {
              log.debug(String.format("%s - Adding in port: %s", DefaultInputCollector.this, input));
              newPorts.add(new DefaultInputPort(vertx, port));
View Full Code Here

Examples of net.kuujo.vertigo.io.OutputContext.ports()

    // added and removed or opened and closed on the object.
    tasks.runTask(new Handler<Task>() {
      @Override
      public void handle(final Task task) {
        final List<OutputPort> newPorts = new ArrayList<>();
        for (OutputPortContext output : update.ports()) {
          if (!ports.containsKey(output.name())) {
            OutputPortContext port = DefaultOutputCollector.this.context.port(output.name());
            if (port != null) {
              log.debug(String.format("%s - Adding out port: %s", DefaultOutputCollector.this, output));
              newPorts.add(new DefaultOutputPort(vertx, port));
View Full Code Here

Examples of net.tomp2p.connection.ChannelServerConfiguration.ports()

   
  }

  private Peer createPeer(int port) throws IOException {
    ChannelServerConfiguration csc = PeerBuilder.createDefaultChannelServerConfiguration();
    csc.ports(new Ports(port, port));
    csc.portsForwarding(new Ports(port, port));
    csc.connectionTimeoutTCPMillis(10 * 1000);
    csc.idleTCPSeconds(10);
    csc.idleUDPSeconds(10);
   
 
View Full Code Here

Examples of net.tomp2p.connection.ChannelServerConfiguration.ports()

  public static ChannelServerConfiguration createDefaultChannelServerConfiguration() {
    ChannelServerConfiguration channelServerConfiguration = new ChannelServerConfiguration();
    channelServerConfiguration.bindings(new Bindings());
    //these two values may be overwritten in the peer builder
    channelServerConfiguration.ports(new Ports(Ports.DEFAULT_PORT, Ports.DEFAULT_PORT));
    channelServerConfiguration.portsForwarding(new Ports(Ports.DEFAULT_PORT, Ports.DEFAULT_PORT));
    channelServerConfiguration.behindFirewall(false);
    channelServerConfiguration.pipelineFilter(new DefaultPipelineFilter());
    channelServerConfiguration.signatureFactory(new DSASignatureFactory());
    return channelServerConfiguration;
View Full Code Here

Examples of net.tomp2p.p2p.PeerBuilder.ports()

      try {
        peer = pMaker.start();
        isConnected = true;
      } catch (IOException ex) {
        System.out.println("Port " + pMaker.tcpPort() + " busy");
        pMaker.ports(pMaker.tcpPort() + 1);
      }
    } while (!isConnected);
  }

  public void shutdown() {
View Full Code Here

Examples of org.apache.whirr.service.FirewallManager.Rule.ports()

      } else {
        rule.destination(RolePredicates.role(role));
      }
     
      List<String> ports = firewallRules.get(role);
      rule.ports(Ints.toArray(Collections2.transform(ports, new Function<String,Integer>() {
        @Override
        public Integer apply(String input) {
          return Integer.valueOf(input);
        }
      })));
View Full Code Here

Examples of org.apache.whirr.service.FirewallManager.Rule.ports()

      } else {
        rule.destination(RolePredicates.role(role));
      }
     
      List<String> ports = firewallRules.get(role);
      rule.ports(Ints.toArray(Collections2.transform(ports, new Function<String,Integer>() {
        @Override
        public Integer apply(String input) {
          return Integer.valueOf(input);
        }
      })));
View Full Code Here

Examples of org.apache.whirr.service.FirewallManager.Rule.ports()

      } else {
        rule.destination(RolePredicates.role(role));
      }
     
      List<String> ports = firewallRules.get(role);
      rule.ports(Ints.toArray(Collections2.transform(ports, new Function<String,Integer>() {
        @Override
        public Integer apply(String input) {
          return Integer.valueOf(input);
        }
      })));
View Full Code Here

Examples of org.terasology.logic.behavior.nui.PortList.ports()

    @Test
    public void testLeaf() {
        RenderableNode node = new RenderableNode();
        node.setNode(node());
        PortList portList = node.getPortList();
        Assert.assertEquals(0, portList.ports().size());

    }

    @Test
    public void testDecorator() {
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.