org.csource.fastdfs
Class TrackerServer
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sock
protected java.net.Socket sock
inetSockAddr
protected java.net.InetSocketAddress inetSockAddr
TrackerServer
public TrackerServer(java.net.Socket sock,
java.net.InetSocketAddress inetSockAddr)
- Constructor
- Parameters:
sock
- Socket of serverinetSockAddr
- the server info
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