public class PSyncProducerBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
expectedNEntries_ |
protected HashMap<Object,Name> |
hashToName_ |
protected InvertibleBloomLookupTable |
iblt_ |
protected HashMap<Name,Object> |
nameToHash_ |
protected Name |
syncPrefix_ |
protected double |
syncReplyFreshnessPeriod_ |
protected int |
threshold_ |
| Modifier | Constructor and Description |
|---|---|
protected |
PSyncProducerBase(int expectedNEntries,
Name syncPrefix,
double syncReplyFreshnessPeriod)
Create a PSyncProducerBase.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
insertIntoIblt(Name name)
Insert the URI of the name into the iblt_, and update nameToHash_ and
hashToName_.
|
static void |
onRegisterFailed(Name prefix)
This is called when registerPrefix fails to log an error message.
|
protected void |
removeFromIblt(Name name)
If the Name is in nameToHash_, then remove the hash from the iblt_,
nameToHash_ and hashToName_.
|
protected final InvertibleBloomLookupTable iblt_
protected final int expectedNEntries_
protected final int threshold_
protected final Name syncPrefix_
protected final double syncReplyFreshnessPeriod_
protected PSyncProducerBase(int expectedNEntries,
Name syncPrefix,
double syncReplyFreshnessPeriod)
expectedNEntries - The expected number of entries in the IBLT.syncPrefix - The prefix Name of the sync group, which is copied.syncReplyFreshnessPeriod - The freshness period of the sync
Data packet, in milliseconds.protected final void insertIntoIblt(Name name)
name - The Name to insert.protected final void removeFromIblt(Name name)
name - The Name to remove.public static void onRegisterFailed(Name prefix)
Copyright © 2019. All rights reserved.