|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.mygrid.scheduler.test.FakeGump
public class FakeGump
Fake object.
Field Summary | |
---|---|
protected int |
disposeOfCount
|
protected int |
expectedDisposeOf
|
protected int |
expectedLostGuM
|
protected int |
expectedNoMoreGuMs
|
protected int |
expectedWannaGuMs
|
protected int |
lostGuMCount
|
protected int |
noMoreGuMsCount
|
protected int |
wannaGuMsCount
|
Constructor Summary | |
---|---|
FakeGump()
|
Method Summary | |
---|---|
void |
disposeGum(long requestID,
GumID gumID)
Informs the provider that a given grid machine is not needed anymore. |
void |
finishRequestGums(long requestID)
Informs the provider that it must stop providing grid machines for the consumer who made a given request. |
ObjectID |
getObjectID()
Returns the identification object related to this GridMachineProvider . |
void |
lostGum(long requestId,
GumID gumID)
|
void |
pauseRequestGums(long requestID)
Suspends a request for gums. |
void |
requestGums(RequestSpec requestSpec)
Requests grid machines according to the specification contained in a RequestSpec . |
void |
resumeRequestGums(long requestID)
Resumes a request for gums. |
void |
setExpectedDisposeOf(int expectedDisposeOf)
|
void |
setExpectedLostGuM(int expectedLostGuM)
|
void |
setExpectedNMoreGuMs(int expectedNoMoreGuMs)
|
void |
setExpectedWannaGuMs(int expectedWannaGuMs)
|
void |
unwantedGum(long requestID,
GumID gumID)
Informs the provider that a given grid machine is not needed anymore. |
void |
verify()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int expectedWannaGuMs
protected int expectedNoMoreGuMs
protected int expectedDisposeOf
protected int expectedLostGuM
protected int wannaGuMsCount
protected int noMoreGuMsCount
protected int disposeOfCount
protected int lostGuMCount
Constructor Detail |
---|
public FakeGump()
Method Detail |
---|
public void setExpectedWannaGuMs(int expectedWannaGuMs)
public void setExpectedNMoreGuMs(int expectedNoMoreGuMs)
public void setExpectedDisposeOf(int expectedDisposeOf)
public void setExpectedLostGuM(int expectedLostGuM)
public void requestGums(RequestSpec requestSpec) throws java.rmi.RemoteException
Gump
RequestSpec
. This event must be broadcasted to the entire
Ourgrid community (that is, all know peers).
requestGums
in interface Gump
requestSpec
- specification of the request
java.rmi.RemoteException
- if some RMI error occurs during the method
invocation.public void finishRequestGums(long requestID) throws java.rmi.RemoteException
Gump
finishRequestGums
in interface Gump
requestID
- the unique ID that represents the request that needs no
more grid machines.
java.rmi.RemoteException
- if some RMI error occurs during the method
invocation.public void disposeGum(long requestID, GumID gumID) throws java.rmi.RemoteException
Gump
unwantedGum(long, org.ourgrid.common.id.GumID)
call should
be used.
disposeGum
in interface Gump
requestID
- the unique ID that represents the request that wants to
dispose the grid machine.gumID
- identification of the grid machine
java.rmi.RemoteException
- if some RMI error occurs during the method
invocation.Gump.unwantedGum(long, GumID)
public void lostGum(long requestId, GumID gumID) throws java.rmi.RemoteException
java.rmi.RemoteException
public void verify()
public void pauseRequestGums(long requestID) throws java.rmi.RemoteException
Gump
pauseRequestGums
in interface Gump
requestID
- the identification of the request that will be
suspended.
java.rmi.RemoteException
- if some RMI error occurs during the method
invocation.public void resumeRequestGums(long requestID) throws java.rmi.RemoteException
Gump
resumeRequestGums
in interface Gump
requestID
- the identification of the request that will be resumed.
java.rmi.RemoteException
- if some RMI error occurs during the method
invocation.public ObjectID getObjectID() throws java.rmi.RemoteException
Gump
GridMachineProvider
.
getObjectID
in interface Gump
java.rmi.RemoteException
- if some RMI error occurs during the method
invocation.public void unwantedGum(long requestID, GumID gumID) throws java.rmi.RemoteException
Gump
disposeGum(long, org.ourgrid.common.id.GumID)
,
when a Peer receives this call it will no longer deliver this machines to
the same request.
unwantedGum
in interface Gump
requestID
- the unique ID that represents the request which no
longer wants this grid machine.gumID
- identification of the grid machine
java.rmi.RemoteException
- if some RMI error occurs during the method
invocation.Gump.disposeGum(long, GumID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |