public class ThreddsInstanceManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ThreddsInfo |
cachedInfo |
protected static ConcurrentSkipListSet<String> |
checkedTokens |
protected DataTransferContext |
ctx |
protected String |
currentGHNId |
protected String |
currentHostname |
protected ExecutorService |
executor |
protected static ThreddsInstanceManager |
instance |
protected String |
threddsAdminPassword |
protected String |
threddsAdminUser |
protected ApplicationConfiguration |
threddsConfig |
protected String |
threddsPersistenceLocation |
protected String |
threddsVersionString |
| Modifier | Constructor and Description |
|---|---|
protected |
ThreddsInstanceManager(DataTransferContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
static ThreddsInstanceManager |
get(DataTransferContext ctx) |
String |
getContentRoot() |
String |
getCurrentHostname() |
ThreddsInfo |
getInfo() |
String |
getMainCatalogFile() |
XMLCatalogHandler |
mainCatalogHandler() |
static String |
marshal(Resource res) |
static List<String> |
queryById(String id) |
static ServiceEndpoint |
querySEById(String id) |
static ServiceEndpoint |
update(ServiceEndpoint toUpdate) |
void |
updatePublishedInfo() |
protected static ThreddsInstanceManager instance
protected static final ConcurrentSkipListSet<String> checkedTokens
protected ThreddsInfo cachedInfo
protected ExecutorService executor
protected DataTransferContext ctx
protected ApplicationConfiguration threddsConfig
protected String threddsAdminUser
protected String threddsAdminPassword
protected String threddsPersistenceLocation
protected String threddsVersionString
protected String currentHostname
protected String currentGHNId
protected ThreddsInstanceManager(DataTransferContext context)
public static ThreddsInstanceManager get(DataTransferContext ctx)
public ThreddsInfo getInfo()
throws SAXException,
IOException
IOExceptionSAXExceptionExceptionpublic void clearCache()
public String getCurrentHostname()
public String getMainCatalogFile()
public String getContentRoot()
public XMLCatalogHandler mainCatalogHandler() throws SAXException, IOException, Exception
SAXExceptionIOExceptionExceptionpublic static ServiceEndpoint update(ServiceEndpoint toUpdate)
public static ServiceEndpoint querySEById(String id)
public static String marshal(Resource res)
Copyright © 2021. All Rights Reserved.