|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.italiangrid.voms.store.impl.DefaultVOMSTrustStore
org.italiangrid.voms.store.impl.DefaultUpdatingVOMSTrustStore
public class DefaultUpdatingVOMSTrustStore
A VOMS trust store that periodically updates itself. The update frequency is set once at VOMS trust store creation time.
Field Summary | |
---|---|
static long |
DEFAULT_UPDATE_FREQUENCY
Default trust store update frequency. |
Fields inherited from class org.italiangrid.voms.store.impl.DefaultVOMSTrustStore |
---|
CERTIFICATE_FILENAME_SUFFIX, DEFAULT_VOMS_DIR, LSC_FILENAME_SUFFIX |
Constructor Summary | |
---|---|
DefaultUpdatingVOMSTrustStore()
Builds a trust store. |
|
DefaultUpdatingVOMSTrustStore(List<String> localTrustDirs)
Builds a trust store configured as defined in the parameters. |
|
DefaultUpdatingVOMSTrustStore(List<String> localTrustDirs,
long updateFrequency)
Builds a trust store configured as defined in the parameters. |
|
DefaultUpdatingVOMSTrustStore(List<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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class org.italiangrid.voms.store.impl.DefaultVOMSTrustStore |
---|
buildDefaultTrustedDirs, getAACertificateBySubject, getAllLSCInfo, getLocalAACertificates, getLocalTrustedDirectories, getLSC, loadTrustInformation, setStatusListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.italiangrid.voms.store.VOMSTrustStore |
---|
getAACertificateBySubject, getAllLSCInfo, getLocalAACertificates, getLocalTrustedDirectories, getLSC, loadTrustInformation, setStatusListener |
Field Detail |
---|
public static final long DEFAULT_UPDATE_FREQUENCY
Constructor Detail |
---|
public DefaultUpdatingVOMSTrustStore(List<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(List<String> localTrustDirs, long updateFrequency)
localTrustDirs
- where VOMS trust information will be looked forupdateFrequency
- the update frequency in millisecondspublic DefaultUpdatingVOMSTrustStore(List<String> localTrustDirs)
localTrustDirs
- where VOMS trust information will be looked forpublic DefaultUpdatingVOMSTrustStore()
Method Detail |
---|
protected void updateFrequencySanityChecks(long updateFrequency)
protected void scheduleUpdate()
public long getUpdateFrequency()
getUpdateFrequency
in interface Updateable
Updateable
object.public void update()
update
in interface Updateable
public void cancel()
cancel
in interface Updateable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |