|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.joctopus.server.Server
com.joctopus.server.FileRecieverServer
public class FileRecieverServer
This class is server for accepting File recieve notifications from others.This class manages the file recieve operation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class com.joctopus.server.Server |
---|
debug |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
FileRecieverServer(int port,
JOctopusConsole chatterConsole,
int poolSize)
|
Method Summary | |
---|---|
java.util.Vector<java.lang.Integer> |
getBusyPools()
|
FileRecieverHandler[] |
getFileRecieverHandler()
|
int |
getPoolSize()
|
void |
removeID(java.lang.Integer ID)
Removes the given ID from busy pools. |
void |
run()
|
void |
setBusyPools(java.util.Vector<java.lang.Integer> busyPools)
|
void |
setPoolSize(int poolSize)
|
void |
startServer()
starts server. |
Methods inherited from class com.joctopus.server.Server |
---|
addMessageRecieveListener, getChatServerSocket, getChatterConsole, getMessageRecieveListener, getPort, getRecievedClientSocket, getRecievedClientSocketChannel, getServerName, getServerSocketChannel, instantiateServer, isFailToRun, isStarted, setPort, setRecievedClientSocket, setServerName, stopService, writeOut |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileRecieverServer(int port, JOctopusConsole chatterConsole, int poolSize)
port
- The port at which to start the serverchatterConsole
- The system wide default chatter console objectpoolSize
- The capacity of server, means the number of file transfer
operations can be performed by server for each client.Method Detail |
---|
public java.util.Vector<java.lang.Integer> getBusyPools()
public void setBusyPools(java.util.Vector<java.lang.Integer> busyPools)
busyPools
- public FileRecieverHandler[] getFileRecieverHandler()
public int getPoolSize()
public void setPoolSize(int poolSize)
poolSize
- Set the pool size for file reciever handlerpublic void startServer() throws java.net.BindException
Server
startServer
in class Server
java.net.BindException
public void run()
run
in interface java.lang.Runnable
run
in class Server
public void removeID(java.lang.Integer ID)
ID
- ID to be removed from busy pools maintained by this server
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |