org.ourgrid.mygrid.scheduler.gump
Class GumpManagerImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.ourgrid.common.rmi.OurgridUnicastRemoteObject
                  extended by org.ourgrid.mygrid.scheduler.gump.GumpManagerImpl
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, GumpManager

public class GumpManagerImpl
extends OurgridUnicastRemoteObject
implements GumpManager

The GuMPManager remote object responsible for receiving RMI calls and translating them to calls on the EBSchedulerFacade.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
GumpManagerImpl(EBSchedulerFacade ebSchedulerFacade)
          The constructor.
GumpManagerImpl(EBSchedulerFacade ebSchedulerFacade, MGSecureClientSocketFactory secureClientSocketFactory, MGSecureServerSocketFactory secureServerSocketFactory, int securePort)
          The constructor with SecureSocketFactories.
 
Method Summary
 java.util.Collection<PeerEntry> getPeerEntries(GridManagerListenerRemote newListener)
          Gets the GuMPSpecs.
 void peerAlive(java.lang.String url)
          Notifies that the peer PeerSpec is alive.
 void peerIsDead(java.lang.String url)
          Notifies that the peer PeerSpec is dead.
 void setPeers(java.util.Collection<PeerSpec> peerSpecs)
          Sets the GuMPSpecs.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GumpManagerImpl

public GumpManagerImpl(EBSchedulerFacade ebSchedulerFacade)
                throws java.rmi.RemoteException
The constructor.

Parameters:
ebSchedulerFacade - The EBSchedulerFacade
Throws:
java.rmi.RemoteException - When a connection problem occurs while trying to access this object through RMI

GumpManagerImpl

public GumpManagerImpl(EBSchedulerFacade ebSchedulerFacade,
                       MGSecureClientSocketFactory secureClientSocketFactory,
                       MGSecureServerSocketFactory secureServerSocketFactory,
                       int securePort)
                throws java.rmi.RemoteException
The constructor with SecureSocketFactories.

Parameters:
ebSchedulerFacade - The EBSchedulerFacade.
secureClientSocketFactory - The SecureClientSocketFactory.
secureServerSocketFactory - The SecureServerSocketFactory.
securePort - The port where the secure services will be bound.
Throws:
java.rmi.RemoteException
Method Detail

setPeers

public void setPeers(java.util.Collection<PeerSpec> peerSpecs)
              throws java.rmi.RemoteException
Description copied from interface: GumpManager
Sets the GuMPSpecs.

Specified by:
setPeers in interface GumpManager
Parameters:
peerSpecs - the new GuMPSpecs.
Throws:
java.rmi.RemoteException - when a communication error occurs.
See Also:
GumpManager.setPeers(Collection)

getPeerEntries

public java.util.Collection<PeerEntry> getPeerEntries(GridManagerListenerRemote newListener)
                                               throws java.rmi.RemoteException
Description copied from interface: GumpManager
Gets the GuMPSpecs.

Specified by:
getPeerEntries in interface GumpManager
Parameters:
newListener - TODO
Returns:
a collection of GuMPSpecs.
Throws:
java.rmi.RemoteException - when a communication error occurs.
See Also:
GumpManager.getPeerEntries(GridManagerListenerRemote)

peerAlive

public void peerAlive(java.lang.String url)
Description copied from interface: GumpManager
Notifies that the peer PeerSpec is alive.

Specified by:
peerAlive in interface GumpManager
Parameters:
url - Url of the Peer that is now alive.
See Also:
GumpManager.peerAlive(java.lang.String)

peerIsDead

public void peerIsDead(java.lang.String url)
Description copied from interface: GumpManager
Notifies that the peer PeerSpec is dead.

Specified by:
peerIsDead in interface GumpManager
Parameters:
url - Url of the Peer that is now dead.
See Also:
GumpManager.peerIsDead(java.lang.String)