|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlbg.peer.register.NeighborhoodNegotiationProfile
public class NeighborhoodNegotiationProfile
| Constructor Summary | |
|---|---|
NeighborhoodNegotiationProfile(Peer managed_peer,
PeerRegister grid_register,
PeerStrategyConfiguration peer_strategy_config)
|
|
| Method Summary | |
|---|---|
void |
accountSentConsumptionGrants(java.lang.String peer_id,
int tasks_count)
|
void |
accountSentSupplyingRequests(java.lang.String peer_id,
int tasks_count)
|
void |
accountUsedConsumptionGrant(java.lang.String peer_id)
|
void |
addReceivedConsumptionGrant(java.lang.String peer_id,
int tasks_count)
|
void |
addReceivedSupplyingRequest(java.lang.String peer_id,
int tasks_count)
|
boolean |
couldEvaluateConsumptionGrants()
Returns whether Consumption Grants can be evaluated, which is allowed when either the number of registered Consumption Grantors has reached the specified threshold, or when the time since a Consumption Grantor has been resgistered has reached the specified threshold, or both. |
boolean |
couldEvaluateSupplyingRequests()
Returns whether Supplying Requests can be evaluated, which is allowed when either the number of registered Supplying Requestors has reached the specified threshold, or when the time since a Supplying Requestor has been resgistered has reached the specified threshold, or both. |
boolean |
couldGenerateSupplyingRequests()
Returns whether Supplying can be Requested, which is allowed when the time since some Supplying has been Requested to other Peers has reached the specified threshold. |
int |
countReceivedConsumptionGrants()
|
int |
countReceivedSupplyingRequests()
|
ConsumptionGrantsContainer |
getReceivedConsumptionGrants()
Returns received Consumption grants. |
SupplyingRequestsContainer |
getReceivedSupplyingRequests()
Returns received Supplying Requests. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NeighborhoodNegotiationProfile(Peer managed_peer,
PeerRegister grid_register,
PeerStrategyConfiguration peer_strategy_config)
throws GridException
GridException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public void addReceivedSupplyingRequest(java.lang.String peer_id,
int tasks_count)
throws GridException
GridException
public int countReceivedSupplyingRequests()
throws GridException
GridException
public boolean couldEvaluateSupplyingRequests()
throws GridException
GridException
public SupplyingRequestsContainer getReceivedSupplyingRequests()
throws GridException
GridException
public void accountSentConsumptionGrants(java.lang.String peer_id,
int tasks_count)
throws GridException
GridException
public boolean couldGenerateSupplyingRequests()
throws GridException
GridException
public void accountSentSupplyingRequests(java.lang.String peer_id,
int tasks_count)
throws GridException
GridException
public void addReceivedConsumptionGrant(java.lang.String peer_id,
int tasks_count)
throws GridException
GridException
public int countReceivedConsumptionGrants()
throws GridException
GridException
public boolean couldEvaluateConsumptionGrants()
throws GridException
GridException
public ConsumptionGrantsContainer getReceivedConsumptionGrants()
throws GridException
GridException
public void accountUsedConsumptionGrant(java.lang.String peer_id)
throws GridException
GridException
|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.