com.hazelcast.client
Class Connection
java.lang.Object
com.hazelcast.client.Connection
public class Connection
- extends Object
Holds the socket to one of the members of Hazelcast Cluster.
- Author:
- fuad-malikov
Connection
public Connection(String host,
int port,
int id)
- Creates the Socket to the given host and port
- Parameters:
host - ip address of the hostport - port of the host
- Throws:
UnknownHostException
IOException
Connection
public Connection(InetSocketAddress address,
int id)
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.