|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlbg.peer.register.learning.supplying.PeerSupplyingDataTracker
public class PeerSupplyingDataTracker
A PeerSupplyingDataTracker analyzes trends in stored data for Supplying Tasks, using Ranganthan's popularity metric and Briquet's metrics, with a sliding window policy bounding the number of analyzed data.
The main purpose of a PeerSupplyingDataTracker is to predict which observed Supplying data will be needed again in the near future, so as to replicate them on the Peer Resources.
Constructor Summary | |
---|---|
PeerSupplyingDataTracker(Peer managed_peer,
int capacity)
Constructs a new PeerSupplyingDataTracker. |
Method Summary | |
---|---|
void |
add(MetaGridData[] ds)
Add data (from a presumably Supplying Task) to be stored and analyzed. |
static void |
main(java.lang.String[] args)
Test method. |
void |
replicateData(java.util.Iterator<ResourceUsageData> it,
int res_count)
Replicates data to target Resources, using prediction based on analysed trends. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PeerSupplyingDataTracker(Peer managed_peer, int capacity) throws GridException
GridException
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void add(MetaGridData[] ds) throws GridException
GridException
public void replicateData(java.util.Iterator<ResourceUsageData> it, int res_count) throws GridException
it
- target Resources (as an Iterator over their ResourceUsageData)res_count
- target Resources count
GridException
- if a parameter is illegalpublic static void main(java.lang.String[] args)
|
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.