|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.peer.manager.FakeGumpClient
public class FakeGumpClient
Constructor Summary | |
---|---|
FakeGumpClient(ObjectID id)
|
|
FakeGumpClient(java.lang.String objectIdUrl)
|
Method Summary | |
---|---|
ObjectID |
getObjectID()
Returns the Identification object related to this GumpClient . |
void |
hereIsGum(GumResponseEntry gumResponseEntry)
Delivers a grid machine ( Gum ) to this consumer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FakeGumpClient(java.lang.String objectIdUrl)
public FakeGumpClient(ObjectID id)
Method Detail |
---|
public void hereIsGum(GumResponseEntry gumResponseEntry) throws java.rmi.RemoteException
GumpClient
Delivers a grid machine (Gum
) to this consumer. The grid
machine satisfies the requirements of a specific request made by this
consumer. The respective request is informed through a requestID which
travels inside the parameter of type GumResponseEntry
,
which also contains a reference to the Gum
, a gum
specification (GumSpec
) and a ID of the grid machine
provider.
The grid machine availability has no guarantees. It may become unavailable due to failures or to the provider's will. For example, the provider may decide to schedule the grid machine to another consumer.
Also, it is expected that the consumer releases the Gum
when it does not need it anymore. To do this the consumer must invoke the
method Gump.finishRequestGums()
.
hereIsGum
in interface GumpClient
gumResponseEntry
- an object containing the information about the
delivery. It contains a reference to the Gum
, a
gum specification (GumSpec
) and a ID of the grid
machine provider.
java.rmi.RemoteException
- if some RMI error occurs during the method
invocation.public ObjectID getObjectID() throws java.rmi.RemoteException
GumpClient
GumpClient
.
getObjectID
in interface GumpClient
java.rmi.RemoteException
- if some RMI error occurs during the method
invocation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |