public class RevocationChecker extends java.lang.Object implements ClientGetCallback, RequestClient
| Modifier and Type | Field and Description |
|---|---|
static int |
REVOCATION_DNF_MIN |
| Constructor and Description |
|---|
RevocationChecker(NodeUpdateManager manager,
java.io.File blobFile) |
| Modifier and Type | Method and Description |
|---|---|
RandomAccessBucket |
getBlobBucket() |
RandomAccessBuffer |
getBlobBuffer() |
long |
getBlobSize() |
RequestClient |
getRequestClient()
Get the RequestClient context object used to indicate which requests are related to each
other for scheduling purposes.
|
int |
getRevocationDNFCounter() |
boolean |
hasBlown() |
void |
kill() |
void |
onChangeRevocationURI()
Called when the revocation URI changes.
|
void |
onFailure(FetchException e,
ClientGetter state)
Called on failed/canceled fetch.
|
void |
onResume(ClientContext context)
Called for a persistent request when the node is restarted.
|
void |
onSuccess(FetchResult result,
ClientGetter state)
Called on successful fetch.
|
boolean |
persistent()
Is this request persistent? **Must not change!**
|
boolean |
realTimeFlag()
Send the request with the real time flag enabled? Real-time requests are given
a higher priority in data transfers, but fewer of them are accepted.
|
void |
start(boolean aggressive) |
boolean |
start(boolean aggressive,
boolean reset)
Start a fetch.
|
public static final int REVOCATION_DNF_MIN
public RevocationChecker(NodeUpdateManager manager, java.io.File blobFile)
public int getRevocationDNFCounter()
public void start(boolean aggressive)
public boolean start(boolean aggressive,
boolean reset)
aggressive - If set to true, then we have just fetched an update, and therefore can increase the priority of the
fetch to maximum.public void onChangeRevocationURI()
public void onSuccess(FetchResult result, ClientGetter state)
ClientGetCallbackonSuccess in interface ClientGetCallbackpublic boolean hasBlown()
public void onFailure(FetchException e, ClientGetter state)
ClientGetCallbackonFailure in interface ClientGetCallbackpublic void kill()
public long getBlobSize()
public RandomAccessBucket getBlobBucket()
public RandomAccessBuffer getBlobBuffer()
public boolean persistent()
RequestClientpersistent in interface RequestClientpublic boolean realTimeFlag()
RequestClientrealTimeFlag in interface RequestClientpublic void onResume(ClientContext context)
ClientBaseCallbackonResume in interface ClientBaseCallbackpublic RequestClient getRequestClient()
ClientBaseCallbackgetRequestClient in interface ClientBaseCallback