|
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.audit.AuditProtocolImpl<Handle,Identifier>
public class AuditProtocolImpl<Handle extends RawSerializable,Identifier extends RawSerializable>
| Field Summary | |
|---|---|
protected TimerTask |
auditTimer
Null if there is no current timer. |
protected TimerTask |
progressTimer
|
| Fields inherited from interface org.mpisws.p2p.transport.peerreview.StatusConstants |
|---|
STATUS_EXPOSED, STATUS_SUSPECTED, STATUS_TRUSTED |
| Constructor Summary | |
|---|---|
AuditProtocolImpl(PeerReview<Handle,Identifier> peerreview,
SecureHistory history,
PeerInfoStore<Handle,Identifier> infoStore,
AuthenticatorStore<Identifier> authInStore,
IdentityTransport<Handle,Identifier> transport,
AuthenticatorStore<Identifier> authOutStore,
EvidenceTransferProtocol<Handle,Identifier> evidenceTransferProtocol,
AuthenticatorStore<Identifier> authCacheStore)
|
|
| Method Summary | |
|---|---|
protected void |
auditsTimerExpired()
A periodic timer to audit all nodes for which we are a witness |
void |
disableReplay()
|
ActiveAuditInfo<Handle,Identifier> |
findOngoingAudit(Identifier subject,
long evidenceSeq)
|
void |
handleIncomingDatagram(Handle handle,
PeerReviewMessage message)
|
void |
investigate(Handle target,
long since)
Start an investigation since is in millis |
protected void |
makeProgressTimerExpired()
While some audits haven't finished, we must call makeProgress() regularly |
void |
processAuditResponse(Identifier subject,
long timestamp,
AuditResponse<Handle> response)
Called by the challenge/response protocol if we have received a response to an AUDIT challenge. |
protected void |
scheduleProgressTimer()
|
protected void |
sendInvestigation(ActiveInvestigationInfo<Handle> investigation)
Starts an investigation by sending authenticator requests to all the witnesses. |
void |
setLogDownloadTimeout(int timeoutMicros)
|
void |
startAudits()
|
protected void |
startAuditTimer()
|
Evidence |
statOngoingAudit(Identifier subject,
long evidenceSeq)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TimerTask auditTimer
protected TimerTask progressTimer
| Constructor Detail |
|---|
public AuditProtocolImpl(PeerReview<Handle,Identifier> peerreview,
SecureHistory history,
PeerInfoStore<Handle,Identifier> infoStore,
AuthenticatorStore<Identifier> authInStore,
IdentityTransport<Handle,Identifier> transport,
AuthenticatorStore<Identifier> authOutStore,
EvidenceTransferProtocol<Handle,Identifier> evidenceTransferProtocol,
AuthenticatorStore<Identifier> authCacheStore)
| Method Detail |
|---|
public void setLogDownloadTimeout(int timeoutMicros)
public void disableReplay()
public void startAudits()
protected void scheduleProgressTimer()
protected void auditsTimerExpired()
protected void startAuditTimer()
protected void makeProgressTimerExpired()
public void processAuditResponse(Identifier subject,
long timestamp,
AuditResponse<Handle> response)
throws java.io.IOException
processAuditResponse in interface AuditProtocol<Handle extends RawSerializable,Identifier extends RawSerializable>java.io.IOException
public ActiveAuditInfo<Handle,Identifier> findOngoingAudit(Identifier subject,
long evidenceSeq)
public Evidence statOngoingAudit(Identifier subject,
long evidenceSeq)
statOngoingAudit in interface AuditProtocol<Handle extends RawSerializable,Identifier extends RawSerializable>
public void handleIncomingDatagram(Handle handle,
PeerReviewMessage message)
handleIncomingDatagram in interface AuditProtocol<Handle extends RawSerializable,Identifier extends RawSerializable>protected void sendInvestigation(ActiveInvestigationInfo<Handle> investigation)
public void investigate(Handle target,
long since)
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||