org.ourgrid.mygrid.ui.test
Class FakeGumpManager

java.lang.Object
  extended by org.ourgrid.mygrid.ui.test.FakeGumpManager
All Implemented Interfaces:
java.rmi.Remote, GumpManager

public class FakeGumpManager
extends java.lang.Object
implements GumpManager


Constructor Summary
FakeGumpManager()
           
 
Method Summary
 void addMoreGuMPs()
           
 int getNumberOfGuMPs()
           
 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> gumpSpecs)
          Sets the GuMPSpecs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeGumpManager

public FakeGumpManager()
Method Detail

setPeers

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

Specified by:
setPeers in interface GumpManager
Parameters:
gumpSpecs - the new GuMPSpecs.

getPeerEntries

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

Specified by:
getPeerEntries in interface GumpManager
Parameters:
newListener - TODO
Returns:
a collection of GuMPSpecs.

addMoreGuMPs

public void addMoreGuMPs()

getNumberOfGuMPs

public int getNumberOfGuMPs()

peerAlive

public void peerAlive(java.lang.String url)
               throws java.rmi.RemoteException
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.
Throws:
java.rmi.RemoteException

peerIsDead

public void peerIsDead(java.lang.String url)
                throws java.rmi.RemoteException
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.
Throws:
java.rmi.RemoteException