org.ourgrid.common.gump
Class GumpClientThreadManager

java.lang.Object
  extended by org.ourgrid.common.gump.GumpClientThreadManager
All Implemented Interfaces:
Shutdownable

public class GumpClientThreadManager
extends java.lang.Object
implements Shutdownable

Represents a ThreadPool responsible for managing and executing Threads that will invoke RMI methods on the external consumers using the Peer, for example: MyGrid.


Constructor Summary
GumpClientThreadManager(EBPeerManagerFacade facade)
          Default constructor
 
Method Summary
 void createAndExecuteDelivererThread(ObjectID gumClientID, GumResponseEntry gumResponseEntry)
          Creates a DelivererThread and arrange to be executed by a thread in the pool.
 void shutdown()
          Informs the service thread associated with the object that it must shutdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GumpClientThreadManager

public GumpClientThreadManager(EBPeerManagerFacade facade)
Default constructor

Method Detail

createAndExecuteDelivererThread

public void createAndExecuteDelivererThread(ObjectID gumClientID,
                                            GumResponseEntry gumResponseEntry)
Creates a DelivererThread and arrange to be executed by a thread in the pool. The Thread created will try to deliver a Gum to a GumpClient. If the gum cannot be successfully delivered, the deliverer thread will dispose the gum.

Parameters:
gumClientID - ID of the consumer that will receive the GridMachine
gumResponseEntry - an object which encapsulates information about the gum to be delivered, including a reference to a Gum type

shutdown

public void shutdown()
Description copied from interface: Shutdownable
Informs the service thread associated with the object that it must shutdown.

Specified by:
shutdown in interface Shutdownable
See Also:
Shutdownable.shutdown()