com.isti.trinetwatch.server
Class GUIAcceptor_impl

java.lang.Object
  extended by org.omg.CORBA.portable.ObjectImpl
      extended by org.omg.CORBA.DynamicImplementation
          extended by com.isti.trinetwatch.server.gui_acceptor._GUIAcceptorImplBase
              extended by com.isti.trinetwatch.server.GUIAcceptor_impl
All Implemented Interfaces:
GUIAcceptor, java.lang.Runnable, org.omg.CORBA.Object

public class GUIAcceptor_impl
extends _GUIAcceptorImplBase
implements java.lang.Runnable

Class GUIAcceptor implements an acceptor class which accepts new GUI-client connections and returns "IOR:" strings for 'GUIServices' CORBA objects.


Constructor Summary
GUIAcceptor_impl(Server sObj, long inactivityTimeout)
          Creates a new instance of GUIAcceptor_impl
 
Method Summary
 java.lang.String newConnection(java.lang.String clientIDString)
          Returns an "IOR:" string for GUI services.
 void run()
          When this method is run it checks for GUIService_impl objects who are waiting to be disconnected.
 void terminateThread()
          This method informs the thread that it is time to quit.
 
Methods inherited from class com.isti.trinetwatch.server.gui_acceptor._GUIAcceptorImplBase
_ids, invoke
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

GUIAcceptor_impl

public GUIAcceptor_impl(Server sObj,
                        long inactivityTimeout)
Creates a new instance of GUIAcceptor_impl

Parameters:
sObj - A reference to a Server object.
inactivityTimeout - number of seconds of client inactivity before a timeout occurs (and the client is disconnected).
Method Detail

newConnection

public java.lang.String newConnection(java.lang.String clientIDString)
Returns an "IOR:" string for GUI services.

Specified by:
newConnection in interface GUIAcceptor
Parameters:
clientIDString - The IP address of the client in string form.
Returns:
An "IOR:" string for the 'GUIServices' CORBA object to be used by the calling client.

terminateThread

public void terminateThread()
This method informs the thread that it is time to quit.


run

public void run()
When this method is run it checks for GUIService_impl objects who are waiting to be disconnected.

Specified by:
run in interface java.lang.Runnable