com.hazelcast.client
Class Connection

java.lang.Object
  extended by com.hazelcast.client.Connection

public class Connection
extends Object

Holds the socket to one of the members of Hazelcast Cluster.

Author:
fuad-malikov

Constructor Summary
Connection(InetSocketAddress address, int id)
           
Connection(String host, int port, int id)
          Creates the Socket to the given host and port
 
Method Summary
 void close()
           
 InetSocketAddress getAddress()
           
 DataInputStream getInputStream()
           
 Member getMember()
           
 DataOutputStream getOutputStream()
           
 Socket getSocket()
           
 int getVersion()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Connection

public Connection(String host,
                  int port,
                  int id)
Creates the Socket to the given host and port

Parameters:
host - ip address of the host
port - port of the host
Throws:
UnknownHostException
IOException

Connection

public Connection(InetSocketAddress address,
                  int id)
Method Detail

getSocket

public Socket getSocket()

getAddress

public InetSocketAddress getAddress()

getVersion

public int getVersion()

close

public void close()
           throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

getOutputStream

public DataOutputStream getOutputStream()

getInputStream

public DataInputStream getInputStream()

getMember

public Member getMember()


Copyright © 2012 Hazel Bilisim Ltd.. All Rights Reserved.