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)
ClientGetCallback
onSuccess
in interface ClientGetCallback
public boolean hasBlown()
public void onFailure(FetchException e, ClientGetter state)
ClientGetCallback
onFailure
in interface ClientGetCallback
public void kill()
public long getBlobSize()
public RandomAccessBucket getBlobBucket()
public RandomAccessBuffer getBlobBuffer()
public boolean persistent()
RequestClient
persistent
in interface RequestClient
public boolean realTimeFlag()
RequestClient
realTimeFlag
in interface RequestClient
public void onResume(ClientContext context)
ClientBaseCallback
onResume
in interface ClientBaseCallback
public RequestClient getRequestClient()
ClientBaseCallback
getRequestClient
in interface ClientBaseCallback