|
||||||||||
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.common.gump.BrokerAccessImpl
public class BrokerAccessImpl
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
BrokerAccessImpl(ObjectID brokerAccessID,
EBPeerManagerFacade peerFacade)
Default constructor. |
|
BrokerAccessImpl(ObjectID brokerAccessID,
EBPeerManagerFacade ebPeerManagerFacade,
MGSecureClientSocketFactory secureClientSocketFactory,
MGSecureServerSocketFactory secureServerSocketFactory,
int securePort)
Constructor with security options. |
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 |
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 |
shutdown()
|
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 BrokerAccessImpl(ObjectID brokerAccessID, EBPeerManagerFacade peerFacade) throws java.rmi.RemoteException
brokerAccessID
- ID used to identify this broker access.peerFacade
- Facade used to communicate with peer module.
java.rmi.RemoteException
public BrokerAccessImpl(ObjectID brokerAccessID, EBPeerManagerFacade ebPeerManagerFacade, MGSecureClientSocketFactory secureClientSocketFactory, MGSecureServerSocketFactory secureServerSocketFactory, int securePort) throws java.rmi.RemoteException
brokerAccessID
- ID used to identify this broker access.ebPeerManagerFacade
- Facade used to communicate with peer module.secureClientSocketFactory
- The SecureClientSocketFactory.secureServerSocketFactory
- The SecureServerSocketFactory.securePort
- The port where the secure services will be bound.
java.rmi.RemoteException
Method Detail |
---|
public void requestGums(RequestSpec requestSpec) throws java.rmi.RemoteException, RequestAlreadyExistsException
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.
RequestAlreadyExistsException
- another request with the same ID
already existsGump.requestGums(RequestSpec)
public void finishRequestGums(long requestID)
Gump
finishRequestGums
in interface Gump
requestID
- the unique ID that represents the request that needs no
more grid machines.Gump.finishRequestGums(long)
public void disposeGum(long requestID, GumID gumID)
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 machineGump.disposeGum(long, GumID)
public void pauseRequestGums(long requestID)
Gump
pauseRequestGums
in interface Gump
requestID
- the identification of the request that will be
suspended.Gump.pauseRequestGums(long)
public void resumeRequestGums(long requestID)
Gump
resumeRequestGums
in interface Gump
requestID
- the identification of the request that will be resumed.Gump.resumeRequestGums(long)
public ObjectID getObjectID()
Gump
GridMachineProvider
.
getObjectID
in interface Gump
Gump.getObjectID()
public void shutdown()
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.unwantedGum(long,
org.ourgrid.common.id.GumID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |