public static class DefaultVOMSServerInfoStore.Builder
extends java.lang.Object
DefaultVOMSServerInfoStore. The
DefaultVOMSServerInfoStore parameters can be set with the
appropriate methods. Example:
{
@code
VOMSServerInfoStore serverInfoStore = new DefaultVOMSServerInfoStore.Builder()
.storeListener(storeListener).vomsesPaths(vomsesLocations).build();
};
| Modifier and Type | Field and Description |
|---|---|
private VOMSServerInfoStoreListener |
listener
The listener that will be notified of interesting store events
|
private VOMSESLookupStrategy |
lookupStrategy
The
VOMSESLookupStrategy that will be used to lookup vomses
information |
private VOMSESParser |
vomsesParser
The parser implementation used to parse VOMSES files
|
private java.util.List<java.lang.String> |
vomsesPaths
A list of paths where vomses information will be looked for
|
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DefaultVOMSServerInfoStore |
build()
Builds the
DefaultVOMSServerInfoStore |
private void |
buildLookupStrategy() |
DefaultVOMSServerInfoStore.Builder |
lookupStrategy(VOMSESLookupStrategy strategy)
Sets the
VOMSESLookupStrategy that will be used to lookup vomses
information for the DefaultVOMSServerInfoStore that this builder
is creating |
DefaultVOMSServerInfoStore.Builder |
storeListener(VOMSServerInfoStoreListener l)
Sets the
VOMSServerInfoStoreListener that will receive
store-related notifications for the DefaultVOMSServerInfoStore
that this builder is creating |
DefaultVOMSServerInfoStore.Builder |
vomsesParser(VOMSESParser p)
Sets the
VOMSESParser implementation that will be used to parse
vomses files |
DefaultVOMSServerInfoStore.Builder |
vomsesPaths(java.util.List<java.lang.String> paths)
Sets a list of paths where vomses files will be looked up by the
DefaultVOMSServerInfoStore that this builder is creating |
private java.util.List<java.lang.String> vomsesPaths
private VOMSESLookupStrategy lookupStrategy
VOMSESLookupStrategy that will be used to lookup vomses
informationprivate VOMSServerInfoStoreListener listener
private VOMSESParser vomsesParser
public DefaultVOMSServerInfoStore.Builder lookupStrategy(VOMSESLookupStrategy strategy)
VOMSESLookupStrategy that will be used to lookup vomses
information for the DefaultVOMSServerInfoStore that this builder
is creatingstrategy - The strategy that will be used to lookup vomses informationDefaultVOMSServerInfoStore.Builder instancepublic DefaultVOMSServerInfoStore.Builder storeListener(VOMSServerInfoStoreListener l)
VOMSServerInfoStoreListener that will receive
store-related notifications for the DefaultVOMSServerInfoStore
that this builder is creatingl - the listenerDefaultVOMSServerInfoStore.Builder instancepublic DefaultVOMSServerInfoStore.Builder vomsesParser(VOMSESParser p)
VOMSESParser implementation that will be used to parse
vomses filesp - the parserDefaultVOMSServerInfoStore.Builder instancepublic DefaultVOMSServerInfoStore.Builder vomsesPaths(java.util.List<java.lang.String> paths)
DefaultVOMSServerInfoStore that this builder is creatingpaths - a list of pathsDefaultVOMSServerInfoStore.Builder instanceprivate void buildLookupStrategy()
public DefaultVOMSServerInfoStore build()
DefaultVOMSServerInfoStoreDefaultVOMSServerInfoStore configured as required by
this builder