netcom.proxy
Class HandleMDSConnections

java.lang.Object
  extended byjava.lang.Thread
      extended bynetcom.proxy.HandleMDSConnections
All Implemented Interfaces:
java.lang.Runnable

public class HandleMDSConnections
extends java.lang.Thread

Title: Handle MDS Connections

Description: This class handles any new connections coming from the MDSCloud, which should only ever be Search returns

Copyright: Copyright (c) 2002

Company:


Field Summary
 java.util.Collection socket_collection_ptr
          Reference/pointer to incoming_out_sockets List in MDSProxy
 ThreadPool thread_pool_ptr
          Reference/pointer to parse_pool in MDSProxy
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HandleMDSConnections(int server_port, java.util.Collection incoming_sockets, ThreadPool thread_pool, java.util.Map return_streams, Logger log)
           
 
Method Summary
 void run()
          This Method is where this thread begins execution This thread just loops, waiting for a new socket connection
 void waitForConnection()
          Method to wait for connections and then process them
 
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
 

Field Detail

socket_collection_ptr

public java.util.Collection socket_collection_ptr
Reference/pointer to incoming_out_sockets List in MDSProxy


thread_pool_ptr

public ThreadPool thread_pool_ptr
Reference/pointer to parse_pool in MDSProxy

Constructor Detail

HandleMDSConnections

public HandleMDSConnections(int server_port,
                            java.util.Collection incoming_sockets,
                            ThreadPool thread_pool,
                            java.util.Map return_streams,
                            Logger log)
Parameters:
server_port - the port to bind to
incoming_sockets - the collection to add Sockets to
thread_pool - HandleXMLTasks are put in this threadpool
Method Detail

run

public void run()
This Method is where this thread begins execution This thread just loops, waiting for a new socket connection


waitForConnection

public void waitForConnection()
Method to wait for connections and then process them