netcom.proxy
Class HandleOutsideSockets

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

public class HandleOutsideSockets
extends java.lang.Thread

Title: Handle Outside Sockets

Description: This class loops through and handles and data coming in on the sockets facing away from the MDSCloud (PClients and PServers) and processes that data into Tasks

Copyright: Copyright (c) 2002

Company:


Field Summary
 java.util.Map incoming_names_ptr
          Reference/pointer to MDSProxy names
 java.util.Collection incoming_sockets_ptr
          Reference/pointer to the MDSProxy incoming_out_sockets Collection
 java.util.Map object_streams
          Reference/pointer to MDSProxy object_streams to MDS from PServer
 java.util.Map outgoing_sockets_ptr
          Reference/pointer to the MDSProxy outgoing_ps_sockets Map
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HandleOutsideSockets(java.util.Map outgoing_sockets, java.util.Collection incoming_sockets, ThreadPool thread_pool, java.util.Map incoming_names, LDAPCommunicator ldap_communicator, Logger log, java.util.Map object_streams, java.util.Map return_streams)
          Constructor, This is created with all of the data structures located in the MDSProxy It will pass these structures to HandleXMLTask
 
Method Summary
 void readSockets()
          Loops through, polling all sockets for data, processes data into a task
 void run()
          begins the execution of this thread
 
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

incoming_sockets_ptr

public java.util.Collection incoming_sockets_ptr
Reference/pointer to the MDSProxy incoming_out_sockets Collection


outgoing_sockets_ptr

public java.util.Map outgoing_sockets_ptr
Reference/pointer to the MDSProxy outgoing_ps_sockets Map


object_streams

public java.util.Map object_streams
Reference/pointer to MDSProxy object_streams to MDS from PServer


incoming_names_ptr

public java.util.Map incoming_names_ptr
Reference/pointer to MDSProxy names

Constructor Detail

HandleOutsideSockets

public HandleOutsideSockets(java.util.Map outgoing_sockets,
                            java.util.Collection incoming_sockets,
                            ThreadPool thread_pool,
                            java.util.Map incoming_names,
                            LDAPCommunicator ldap_communicator,
                            Logger log,
                            java.util.Map object_streams,
                            java.util.Map return_streams)
Constructor, This is created with all of the data structures located in the MDSProxy It will pass these structures to HandleXMLTask

Parameters:
outgoing_sockets - the map of PServer to MDS
incoming_sockets - the collection to add Sockets to
thread_pool - HandleXMLTasks are put in this threadpool
ldap_communicator - Handles communcation with the LDAP server
log - Logs events
Method Detail

run

public void run()
begins the execution of this thread


readSockets

public void readSockets()
Loops through, polling all sockets for data, processes data into a task