Examples of HostPort


Examples of asia.stampy.common.gateway.HostPort

  protected void ensureCleanup() {
    getGateway().addServiceListener(new MinaServiceAdapter() {

      @Override
      public void sessionDestroyed(IoSession session) throws Exception {
        HostPort hostPort = new HostPort((InetSocketAddress) session.getRemoteAddress());
        if (messages.containsKey(hostPort)) {
          log.debug("{} session terminated, cleaning up message interceptor", hostPort);
          messages.remove(hostPort);
        }
      }
View Full Code Here

Examples of com.facebook.hiveio.common.HostPort

    HadoopNative.requireHadoopNative();

    args.process();
    chooseRecordPrinter();

    HostPort metastoreHostPort = getMetastoreHostPort();
    if (metastoreHostPort == null) {
      return;
    }

    LOG.info("Creating Hive client for Metastore at {}", metastoreHostPort);
View Full Code Here

Examples of com.xiaomi.infra.chronos.zookeeper.HostPort

*/
public class TestHostPort {

  @Test
  public void testGetHost() {
    HostPort hostPort = new HostPort("127.0.0.1", 2181);
    assertTrue(hostPort.getHost().equals("127.0.0.1"));
  }
View Full Code Here

Examples of gov.nist.core.HostPort

    // Create a new client transaction around the
    // superclass' message channel
    // Create the host/port of the target hop
    Host targetHost = new Host();
    targetHost.setHostname(nextHop.getHost());
    HostPort targetHostPort = new HostPort();
    targetHostPort.setHost(targetHost);
    targetHostPort.setPort(nextHop.getPort());
    MessageChannel mc = mp.createMessageChannel(targetHostPort);

    // Superclass will return null if no message processor
    // available for the transport.
    if (mc == null)
View Full Code Here

Examples of gov.nist.core.HostPort

   *             If the host in the Hop doesn't exist.
   */
  public MessageChannel createRawMessageChannel(String sourceIpAddress,
      int sourcePort, Hop nextHop) throws UnknownHostException {
    Host targetHost;
    HostPort targetHostPort;
    Iterator processorIterator;
    MessageProcessor nextProcessor;
    MessageChannel newChannel;

    // Create the host/port of the target hop
    targetHost = new Host();
    targetHost.setHostname(nextHop.getHost());
    targetHostPort = new HostPort();
    targetHostPort.setHost(targetHost);
    targetHostPort.setPort(nextHop.getPort());

    // Search each processor for the correct transport
    newChannel = null;
    processorIterator = messageProcessors.iterator();
    while (processorIterator.hasNext() && newChannel == null) {
View Full Code Here

Examples of gov.nist.core.HostPort

   
    this.sipStack = transactionStack;
        this.savedIpAddress = ipAddress.getHostAddress();
        this.ipAddress = ipAddress;
        this.port = port;
        this.sentByHostPort = new HostPort();
        this.sentByHostPort.setHost(new Host(ipAddress.getHostAddress()));
        this.sentByHostPort.setPort(port);   
  }
View Full Code Here

Examples of gov.nist.core.HostPort

     */
    public void setSentBy(String sentBy) throws ParseException {

        int ind = sentBy.indexOf(":");
        if (ind == -1) {
            this.sentByHostPort = new HostPort();
            this.sentByHostPort.setHost(new Host(sentBy));
        } else {
            this.sentByHostPort = new HostPort();
            this.sentByHostPort.setHost(new Host(sentBy.substring(0, ind)));
            String portStr = sentBy.substring(ind + 1);
            try {
                int port = Integer.parseInt(portStr);
                this.sentByHostPort.setPort(port);
View Full Code Here

Examples of gov.nist.core.HostPort

    /**
     * Get the hostport structure of this message channel.
     */
    public HostPort getHostPort() {
        HostPort retval = new HostPort();
        retval.setHost(new Host(this.getHost()));
        retval.setPort(this.getPort());
        return retval;
    }
View Full Code Here

Examples of gov.nist.core.HostPort

     * Get the peer host and port.
     *
     * @return a HostPort structure for the peer.
     */
    public HostPort getPeerHostPort() {
        HostPort retval = new HostPort();
        retval.setHost(new Host(this.getPeerAddress()));
        retval.setPort(this.getPeerPort());
        return retval;
    }
View Full Code Here

Examples of gov.nist.core.HostPort

     * the request.
     *
     * @return a host:port structure
     */
    public HostPort getViaHostPort() {
        HostPort retval = new HostPort();
        retval.setHost(new Host(this.getViaHost()));
        retval.setPort(this.getViaPort());
        return retval;
    }
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.