org.csource.fastdfs
Class TrackerServer

java.lang.Object
  extended by org.csource.fastdfs.TrackerServer
Direct Known Subclasses:
StorageServer

public class TrackerServer
extends java.lang.Object

Tracker Server Info

Version:
Version 1.11
Author:
Happy Fish / YuQing

Field Summary
protected  java.net.InetSocketAddress inetSockAddr
           
protected  java.net.Socket sock
           
 
Constructor Summary
TrackerServer(java.net.Socket sock, java.net.InetSocketAddress inetSockAddr)
          Constructor
 
Method Summary
 void close()
           
protected  void finalize()
           
 java.net.InetSocketAddress getInetSocketAddress()
          get the server info
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 java.net.Socket getSocket()
          get the connected socket
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sock

protected java.net.Socket sock

inetSockAddr

protected java.net.InetSocketAddress inetSockAddr
Constructor Detail

TrackerServer

public TrackerServer(java.net.Socket sock,
                     java.net.InetSocketAddress inetSockAddr)
Constructor

Parameters:
sock - Socket of server
inetSockAddr - the server info
Method Detail

getSocket

public java.net.Socket getSocket()
                          throws java.io.IOException
get the connected socket

Returns:
the socket
Throws:
java.io.IOException

getInetSocketAddress

public java.net.InetSocketAddress getInetSocketAddress()
get the server info

Returns:
the server info

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable