org.apache.blur.thrift
Class Connection

java.lang.Object
  extended by org.apache.blur.thrift.Connection

public class Connection
extends Object

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Field Summary
static int DEFAULT_TIMEOUT
           
 
Constructor Summary
Connection(String connectionStr)
           
Connection(String host, int port)
           
Connection(String host, int port, int timeout)
           
Connection(String host, int port, String proxyHost, int proxyPort)
           
Connection(String host, int port, String proxyHost, int proxyPort, int timeout)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getConnectionStr()
           
 String getHost()
           
 int getPort()
           
 String getProxyHost()
           
 int getProxyPort()
           
 int getTimeout()
           
 int hashCode()
           
 boolean isProxy()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
Constructor Detail

Connection

public Connection(String connectionStr)

Connection

public Connection(String host,
                  int port,
                  int timeout)

Connection

public Connection(String host,
                  int port,
                  String proxyHost,
                  int proxyPort)

Connection

public Connection(String host,
                  int port,
                  String proxyHost,
                  int proxyPort,
                  int timeout)

Connection

public Connection(String host,
                  int port)
Method Detail

getHost

public String getHost()

getPort

public int getPort()

isProxy

public boolean isProxy()

getProxyPort

public int getProxyPort()

getProxyHost

public String getProxyHost()

getTimeout

public int getTimeout()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getConnectionStr

public String getConnectionStr()


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.