| 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrice.p2p.aggregation.AggregateList
DESCRIBE THE CLASS
| Field Summary | |
protected  java.util.Hashtable | 
aggregateList
DESCRIBE THE FIELD  | 
protected  java.lang.String | 
configFileName
DESCRIBE THE FIELD  | 
protected  IdFactory | 
factory
DESCRIBE THE FIELD  | 
protected  java.lang.String | 
label
DESCRIBE THE FIELD  | 
protected  java.io.PrintStream | 
logFile
DESCRIBE THE FIELD  | 
protected  java.lang.String | 
logFileName
DESCRIBE THE FIELD  | 
protected  boolean | 
loggingEnabled
DESCRIBE THE FIELD  | 
protected  int | 
loglevel
DESCRIBE THE FIELD  | 
protected  long | 
nextSerial
DESCRIBE THE FIELD  | 
protected  Id | 
rootKey
DESCRIBE THE FIELD  | 
static boolean | 
verbose
DESCRIBE THE FIELD  | 
protected  boolean | 
wasReadOK
DESCRIBE THE FIELD  | 
| Constructor Summary | |
AggregateList(java.lang.String configFileName,
              java.lang.String label,
              IdFactory factory,
              boolean loggingEnabled)
Constructor for AggregateList.  | 
|
| Method Summary | |
 void | 
addAggregateDescriptor(rice.p2p.aggregation.AggregateDescriptor aggr)
Adds a feature to the AggregateDescriptor attribute of the AggregateList object  | 
 void | 
clear()
DESCRIBE THE METHOD  | 
 java.util.Enumeration | 
elements()
DESCRIBE THE METHOD  | 
 rice.p2p.aggregation.AggregateDescriptor | 
getADC(Id id)
Gets the ADC attribute of the AggregateList object  | 
 Id | 
getRoot()
Gets the Root attribute of the AggregateList object  | 
 Id[] | 
getSomePointers(int referenceThreshold,
                int max,
                Id[] excludes)
Gets the SomePointers attribute of the AggregateList object  | 
 AggregationStatistics | 
getStatistics(long granularity,
              long range,
              int nominalReferenceCount)
Gets the Statistics attribute of the AggregateList object  | 
 boolean | 
isEmpty()
Gets the Empty attribute of the AggregateList object  | 
 void | 
logEntry(java.lang.String entry)
DESCRIBE THE METHOD  | 
 boolean | 
readFromDisk()
DESCRIBE THE METHOD  | 
 boolean | 
readOK()
DESCRIBE THE METHOD  | 
 void | 
recalculateReferenceCounts(Id[] excludes)
DESCRIBE THE METHOD  | 
 void | 
recoverLog()
DESCRIBE THE METHOD  | 
 void | 
refreshAggregate(rice.p2p.aggregation.AggregateDescriptor adc,
                 long lifetime)
DESCRIBE THE METHOD  | 
 void | 
removeAggregateDescriptor(rice.p2p.aggregation.AggregateDescriptor aggr)
DESCRIBE THE METHOD  | 
 void | 
resetMarkers()
DESCRIBE THE METHOD  | 
 void | 
setAggregateLifetime(rice.p2p.aggregation.AggregateDescriptor adc,
                     long lifetime)
Sets the AggregateLifetime attribute of the AggregateList object  | 
 void | 
setLogLevel(int newLevel)
Sets the LogLevel attribute of the AggregateList object  | 
 void | 
setObjectCurrentLifetime(rice.p2p.aggregation.AggregateDescriptor adc,
                         int index,
                         long lifetime)
Sets the ObjectCurrentLifetime attribute of the AggregateList object  | 
 void | 
setObjectRefreshedLifetime(rice.p2p.aggregation.AggregateDescriptor adc,
                           int index,
                           long lifetime)
Sets the ObjectRefreshedLifetime attribute of the AggregateList object  | 
 void | 
setRoot(Id root)
Sets the Root attribute of the AggregateList object  | 
 void | 
writeToDisk()
DESCRIBE THE METHOD  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected final java.util.Hashtable aggregateList
protected final java.lang.String configFileName
protected final java.lang.String logFileName
protected final java.lang.String label
protected final IdFactory factory
protected final java.io.PrintStream logFile
protected final boolean loggingEnabled
protected Id rootKey
protected boolean wasReadOK
protected long nextSerial
protected int loglevel
public static final boolean verbose
| Constructor Detail | 
public AggregateList(java.lang.String configFileName,
                     java.lang.String label,
                     IdFactory factory,
                     boolean loggingEnabled)
              throws java.io.IOException
configFileName - DESCRIBE THE PARAMETERlabel - DESCRIBE THE PARAMETERfactory - DESCRIBE THE PARAMETERloggingEnabled - DESCRIBE THE PARAMETER
java.io.IOException - DESCRIBE THE EXCEPTION| Method Detail | 
public Id getRoot()
public boolean isEmpty()
public rice.p2p.aggregation.AggregateDescriptor getADC(Id id)
id - DESCRIBE THE PARAMETER
public Id[] getSomePointers(int referenceThreshold,
                            int max,
                            Id[] excludes)
referenceThreshold - DESCRIBE THE PARAMETERmax - DESCRIBE THE PARAMETERexcludes - DESCRIBE THE PARAMETER
public AggregationStatistics getStatistics(long granularity,
                                           long range,
                                           int nominalReferenceCount)
granularity - DESCRIBE THE PARAMETERrange - DESCRIBE THE PARAMETERnominalReferenceCount - DESCRIBE THE PARAMETER
public void setRoot(Id root)
root - The new Root value
public void setAggregateLifetime(rice.p2p.aggregation.AggregateDescriptor adc,
                                 long lifetime)
adc - The new AggregateLifetime valuelifetime - The new AggregateLifetime value
public void setObjectCurrentLifetime(rice.p2p.aggregation.AggregateDescriptor adc,
                                     int index,
                                     long lifetime)
adc - The new ObjectCurrentLifetime valueindex - The new ObjectCurrentLifetime valuelifetime - The new ObjectCurrentLifetime value
public void setObjectRefreshedLifetime(rice.p2p.aggregation.AggregateDescriptor adc,
                                       int index,
                                       long lifetime)
adc - The new ObjectRefreshedLifetime valueindex - The new ObjectRefreshedLifetime valuelifetime - The new ObjectRefreshedLifetime valuepublic void setLogLevel(int newLevel)
newLevel - The new LogLevel valuepublic boolean readOK()
public java.util.Enumeration elements()
public void recoverLog()
public void logEntry(java.lang.String entry)
entry - DESCRIBE THE PARAMETERpublic void clear()
public void resetMarkers()
public void refreshAggregate(rice.p2p.aggregation.AggregateDescriptor adc,
                             long lifetime)
adc - DESCRIBE THE PARAMETERlifetime - DESCRIBE THE PARAMETERpublic void addAggregateDescriptor(rice.p2p.aggregation.AggregateDescriptor aggr)
aggr - The feature to be added to the AggregateDescriptor attributepublic void removeAggregateDescriptor(rice.p2p.aggregation.AggregateDescriptor aggr)
aggr - DESCRIBE THE PARAMETERpublic void recalculateReferenceCounts(Id[] excludes)
excludes - DESCRIBE THE PARAMETERpublic boolean readFromDisk()
public void writeToDisk()
  | 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||