|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mpisws.p2p.transport.peerreview.commitment.AuthenticatorStoreImpl<Identifier>
public class AuthenticatorStoreImpl<Identifier extends RawSerializable>
| Field Summary | |
|---|---|
protected boolean |
allowDuplicateSeqs
|
| Constructor Summary | |
|---|---|
AuthenticatorStoreImpl(PeerReview<?,Identifier> peerreview)
|
|
AuthenticatorStoreImpl(PeerReview<?,Identifier> peerreview,
boolean allowDuplicateSeqs)
|
|
| Method Summary | |
|---|---|
void |
addAuthenticator(Identifier id,
Authenticator authenticator)
Also writes it to disk. |
protected void |
addAuthenticatorToMemory(Identifier id,
Authenticator authenticator)
Add a new authenticator. |
void |
destroy()
|
void |
disableMemoryBuffer()
|
protected java.util.SortedSet<Authenticator> |
findSubject(Identifier id)
|
void |
flush(Identifier id)
|
void |
flushAll()
|
void |
flushAuthenticatorsFor(Identifier id)
|
void |
flushAuthenticatorsFor(Identifier id,
long minseq,
long maxseq)
|
protected void |
flushAuthenticatorsFromMemory(Identifier id,
long minseq,
long maxseq)
Discard the authenticators in a certain sequence range (presumably because we just checked them against the corresponding log segment, and they were okay) |
void |
garbageCollect()
Commits the Authenticators in memory to disk, overwriting the old store. |
java.util.List<Authenticator> |
getAuthenticators(Identifier id)
|
java.util.List<Authenticator> |
getAuthenticators(Identifier id,
long minseq,
long maxseq)
Retrieve all the authenticators within a given range of sequence numbers |
int |
getAuthenticatorSizeBytes()
|
Authenticator |
getLastAuthenticatorBefore(Identifier id,
long seq)
|
Authenticator |
getMostRecentAuthenticator(Identifier id)
|
int |
getNumSubjects()
|
Authenticator |
getOldestAuthenticator(Identifier id)
|
java.util.List<Identifier> |
getSubjects()
|
int |
numAuthenticatorsFor(Identifier id)
|
int |
numAuthenticatorsFor(Identifier id,
long minseq,
long maxseq)
|
void |
setFilename(java.io.File file)
Read in the Authenticators from a file. |
Authenticator |
statAuthenticator(Identifier id,
long seq)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean allowDuplicateSeqs
| Constructor Detail |
|---|
public AuthenticatorStoreImpl(PeerReview<?,Identifier> peerreview)
public AuthenticatorStoreImpl(PeerReview<?,Identifier> peerreview,
boolean allowDuplicateSeqs)
| Method Detail |
|---|
public void destroy()
public void setFilename(java.io.File file)
throws java.io.IOException
setFilename in interface AuthenticatorStore<Identifier extends RawSerializable>java.io.IOException
protected void addAuthenticatorToMemory(Identifier id,
Authenticator authenticator)
protected void flushAuthenticatorsFromMemory(Identifier id,
long minseq,
long maxseq)
protected java.util.SortedSet<Authenticator> findSubject(Identifier id)
public void addAuthenticator(Identifier id,
Authenticator authenticator)
AuthenticatorStore
addAuthenticator in interface AuthenticatorStore<Identifier extends RawSerializable>
public void flushAuthenticatorsFor(Identifier id,
long minseq,
long maxseq)
flushAuthenticatorsFor in interface AuthenticatorStore<Identifier extends RawSerializable>public void flushAuthenticatorsFor(Identifier id)
flushAuthenticatorsFor in interface AuthenticatorStore<Identifier extends RawSerializable>
public void garbageCollect()
throws java.io.IOException
AuthenticatorStore
garbageCollect in interface AuthenticatorStore<Identifier extends RawSerializable>java.io.IOExceptionpublic int getAuthenticatorSizeBytes()
getAuthenticatorSizeBytes in interface AuthenticatorStore<Identifier extends RawSerializable>
public java.util.List<Authenticator> getAuthenticators(Identifier id,
long minseq,
long maxseq)
AuthenticatorStore
getAuthenticators in interface AuthenticatorStore<Identifier extends RawSerializable>public java.util.List<Authenticator> getAuthenticators(Identifier id)
getAuthenticators in interface AuthenticatorStore<Identifier extends RawSerializable>
public Authenticator getLastAuthenticatorBefore(Identifier id,
long seq)
getLastAuthenticatorBefore in interface AuthenticatorStore<Identifier extends RawSerializable>public Authenticator getMostRecentAuthenticator(Identifier id)
getMostRecentAuthenticator in interface AuthenticatorStore<Identifier extends RawSerializable>public int getNumSubjects()
getNumSubjects in interface AuthenticatorStore<Identifier extends RawSerializable>public Authenticator getOldestAuthenticator(Identifier id)
getOldestAuthenticator in interface AuthenticatorStore<Identifier extends RawSerializable>public java.util.List<Identifier> getSubjects()
getSubjects in interface AuthenticatorStore<Identifier extends RawSerializable>public int numAuthenticatorsFor(Identifier id)
numAuthenticatorsFor in interface AuthenticatorStore<Identifier extends RawSerializable>
public int numAuthenticatorsFor(Identifier id,
long minseq,
long maxseq)
numAuthenticatorsFor in interface AuthenticatorStore<Identifier extends RawSerializable>
public Authenticator statAuthenticator(Identifier id,
long seq)
statAuthenticator in interface AuthenticatorStore<Identifier extends RawSerializable>public void flush(Identifier id)
flush in interface AuthenticatorStore<Identifier extends RawSerializable>public void flushAll()
flushAll in interface AuthenticatorStore<Identifier extends RawSerializable>public void disableMemoryBuffer()
disableMemoryBuffer in interface AuthenticatorStore<Identifier extends RawSerializable>
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||