public class DefaultUpdatingVOMSTrustStore extends DefaultVOMSTrustStore implements UpdatingVOMSTrustStore
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_UPDATE_FREQUENCY
Default trust store update frequency (10 minutes).
|
private java.util.concurrent.ScheduledExecutorService |
scheduler
The scheduler used to schedule the update tasks.
|
private long |
updateFrequency
This trust store update frequency in milliseconds.
|
CERTIFICATE_FILENAME_SUFFIX, DEFAULT_VOMS_DIR, listenerLock, LSC_FILENAME_SUFFIX, read, rwLock, write| Constructor and Description |
|---|
DefaultUpdatingVOMSTrustStore()
Builds a trust store.
|
DefaultUpdatingVOMSTrustStore(java.util.List<java.lang.String> localTrustDirs)
Builds a trust store configured as defined in the parameters.
|
DefaultUpdatingVOMSTrustStore(java.util.List<java.lang.String> localTrustDirs,
long updateFrequency)
Builds a trust store configured as defined in the parameters.
|
DefaultUpdatingVOMSTrustStore(java.util.List<java.lang.String> localTrustDirs,
long updateFrequency,
VOMSTrustStoreStatusListener listener)
Builds a trust store configured as defined in the parameters.
|
DefaultUpdatingVOMSTrustStore(long updateFrequency)
Builds a trust store configured as defined in the parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel the background tasks which updates this store.
|
long |
getUpdateFrequency()
Returns the update frequency, in milliseconds, for this store.
|
protected void |
scheduleUpdate() |
void |
update()
Updates the information in this store
|
protected void |
updateFrequencySanityChecks(long updateFrequency) |
buildDefaultTrustedDirs, getAACertificateBySubject, getAllLSCInfo, getLocalAACertificates, getLocalTrustedDirectories, getLSC, loadTrustInformation, setStatusListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAACertificateBySubject, getAllLSCInfo, getLocalAACertificates, getLocalTrustedDirectories, getLSC, loadTrustInformation, setStatusListenerpublic static final long DEFAULT_UPDATE_FREQUENCY
private long updateFrequency
private final java.util.concurrent.ScheduledExecutorService scheduler
public DefaultUpdatingVOMSTrustStore(java.util.List<java.lang.String> localTrustDirs,
long updateFrequency,
VOMSTrustStoreStatusListener listener)
localTrustDirs - where VOMS trust information will be looked forupdateFrequency - the update frequency in millisecondslistener - a listener that is notified of interesting events related to this
storepublic DefaultUpdatingVOMSTrustStore(long updateFrequency)
updateFrequency - the update frequency in millisecondspublic DefaultUpdatingVOMSTrustStore(java.util.List<java.lang.String> localTrustDirs,
long updateFrequency)
localTrustDirs - where VOMS trust information will be looked forupdateFrequency - the update frequency in millisecondspublic DefaultUpdatingVOMSTrustStore(java.util.List<java.lang.String> localTrustDirs)
localTrustDirs - where VOMS trust information will be looked forpublic DefaultUpdatingVOMSTrustStore()
DefaultVOMSTrustStore.DEFAULT_VOMS_DIR).
This store will be refreshed according to the value of
DEFAULT_UPDATE_FREQUENCY.protected void updateFrequencySanityChecks(long updateFrequency)
protected void scheduleUpdate()
public long getUpdateFrequency()
getUpdateFrequency in interface UpdateableUpdateable object.public void update()
update in interface Updateablepublic void cancel()
cancel in interface Updateable