dist1.acb.ACBpoint.transport
Class ProviderSocket

java.lang.Object
  extended byjava.lang.Thread
      extended bydist1.acb.common.transport.AbstractConnectionServer
          extended bydist1.acb.ACBpoint.transport.ProviderSocket
All Implemented Interfaces:
java.lang.Runnable

public class ProviderSocket
extends AbstractConnectionServer

The server that accepts download request from peers

Version:
$Revision: 1.30 $
Author:
$Lazar Adzigogov$

Nested Class Summary
 class ProviderSocket.ClientManager
          DOCUMENT ME!
 
Field Summary
 
Fields inherited from class dist1.acb.common.transport.AbstractConnectionServer
log, socketPort
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
protected  AbstractPersonalManager createPersonalManager(java.net.Socket s, java.lang.ThreadGroup group)
          Concrete creating a ProviderSocket
static ProviderSocket getInstance()
          Gets the instance of the ProviderSocket server
protected  void handleUnrecoverableError(java.lang.Throwable e)
           
 
Methods inherited from class dist1.acb.common.transport.AbstractConnectionServer
run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Method Detail

getInstance

public static ProviderSocket getInstance()
                                  throws java.lang.Exception
Gets the instance of the ProviderSocket server

Returns:
The instance value
Throws:
java.lang.Exception - Error while creating the handlers of requests

createPersonalManager

protected AbstractPersonalManager createPersonalManager(java.net.Socket s,
                                                        java.lang.ThreadGroup group)
Concrete creating a ProviderSocket

Specified by:
createPersonalManager in class AbstractConnectionServer
Parameters:
s - A socket with connected client
group - Thread group to which current thread will be related
Returns:
New object ProviderSocket

handleUnrecoverableError

protected void handleUnrecoverableError(java.lang.Throwable e)
Specified by:
handleUnrecoverableError in class AbstractConnectionServer


Copyright © 2004 Phoenix Team (CMU/AIT). All Rights Reserved.