|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthenticatorStore<Identifier>
Witnesses use instances of this class to store authenticators. Typically there are three instances: authInStore, authPendingStore and authOutStore. The former two contain authenticators about nodes for which the local node is a witness, while the latter contains authenticators about other nodes which haven't been sent to the corresponding witness sets yet.
Method Summary | |
---|---|
void |
addAuthenticator(Identifier id,
Authenticator authenticator)
Also writes it to disk. |
void |
flush(Identifier id)
|
void |
flushAll()
|
void |
flushAuthenticatorsFor(Identifier id,
long minseq,
long maxseq)
|
void |
garbageCollect()
Commits the Authenticators in memory to disk, overwriting the old store. |
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)
|
Method Detail |
---|
Authenticator getMostRecentAuthenticator(Identifier id)
Authenticator getOldestAuthenticator(Identifier id)
Authenticator getLastAuthenticatorBefore(Identifier id, long seq)
void addAuthenticator(Identifier id, Authenticator authenticator) throws java.io.IOException
id
- authenticator
-
java.io.IOException
void garbageCollect() throws java.io.IOException
java.io.IOException
int numAuthenticatorsFor(Identifier id)
int numAuthenticatorsFor(Identifier id, long minseq, long maxseq)
void flushAuthenticatorsFor(Identifier id, long minseq, long maxseq)
java.util.List<Authenticator> getAuthenticators(Identifier id, long minseq, long maxseq)
java.util.List<Identifier> getSubjects()
int getNumSubjects()
int getAuthenticatorSizeBytes()
void flush(Identifier id)
void flushAll()
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |