|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.ourgrid.common.rmi.OurgridUnicastRemoteObject
org.ourgrid.peer.community.RemoteAccessImpl
public class RemoteAccessImpl
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
RemoteAccessImpl(ObjectID peerID,
EBCommunityObtainerFacade ebCommunityObtainerFacade,
EBPeerManagerFacade ebPeerManagerFacade)
Creates a peerImpl |
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 . |
java.util.Collection<ObjectID> |
getPeerList()
|
void |
hereIsGum(GumResponseEntry gumResponseEntry)
Delivers a grid machine ( Gum ) to this consumer. |
void |
hereIsPeerList(java.util.Collection<ObjectID> peerListReceived)
Receives the know peer list. |
void |
joinCommunity()
Joins the OurGrid Community. |
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 |
setPeerID(ObjectID peerID)
Sets this peer's ID. |
void |
setPeerList(java.util.List<ObjectID> peerList)
|
void |
unwantedGum(long requestID,
GumID gumID)
Informs the provider that a given grid machine is not needed anymore. |
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 |
---|
public RemoteAccessImpl(ObjectID peerID, EBCommunityObtainerFacade ebCommunityObtainerFacade, EBPeerManagerFacade ebPeerManagerFacade) throws java.rmi.RemoteException
peerID
- This peer's IDebCommunityObtainerFacade
- This peer's community obtainerebPeerManagerFacade
- This peer's community proxy
java.rmi.RemoteException
- If couldn't create the peer.Method Detail |
---|
public ObjectID getObjectID() throws java.rmi.RemoteException
Gump
GridMachineProvider
.
getObjectID
in interface Gump
getObjectID
in interface GumpClient
java.rmi.RemoteException
- if some RMI error occurs during the method
invocation.public void hereIsPeerList(java.util.Collection<ObjectID> peerListReceived) throws java.rmi.RemoteException
RemoteAccess
hereIsPeerList
in interface RemoteAccess
peerListReceived
- A list of peer ids
java.rmi.RemoteException
RemoteAccess.hereIsPeerList(Collection)
public java.util.Collection<ObjectID> getPeerList()
public void setPeerList(java.util.List<ObjectID> peerList)
public void setPeerID(ObjectID peerID)
peerID
- The peer's IDpublic void joinCommunity() throws java.rmi.RemoteException
joinCommunity
in interface RemoteAccess
java.rmi.RemoteException
- If could not contact the core peer.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 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 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 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 |