public class ThreddsInstanceManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.data.transfer.model.plugins.thredds.ThreddsInfo |
cachedInfo |
protected static ConcurrentSkipListSet<String> |
checkedTokens |
protected org.gcube.data.transfer.plugin.model.DataTransferContext |
ctx |
protected String |
currentGHNId |
protected String |
currentHostname |
protected ExecutorService |
executor |
protected static ThreddsInstanceManager |
instance |
protected String |
threddsAdminPassword |
protected String |
threddsAdminUser |
protected org.gcube.smartgears.configuration.application.ApplicationConfiguration |
threddsConfig |
protected String |
threddsPersistenceLocation |
protected String |
threddsVersionString |
| Modifier | Constructor and Description |
|---|---|
protected |
ThreddsInstanceManager(org.gcube.data.transfer.plugin.model.DataTransferContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
static ThreddsInstanceManager |
get(org.gcube.data.transfer.plugin.model.DataTransferContext ctx) |
String |
getContentRoot() |
String |
getCurrentHostname() |
org.gcube.data.transfer.model.plugins.thredds.ThreddsInfo |
getInfo() |
String |
getMainCatalogFile() |
XMLCatalogHandler |
mainCatalogHandler() |
static String |
marshal(org.gcube.common.resources.gcore.Resource res) |
static List<String> |
queryById(String id) |
static org.gcube.common.resources.gcore.ServiceEndpoint |
querySEById(String id) |
static org.gcube.common.resources.gcore.ServiceEndpoint |
update(org.gcube.common.resources.gcore.ServiceEndpoint toUpdate) |
void |
updatePublishedInfo() |
protected static ThreddsInstanceManager instance
protected static final ConcurrentSkipListSet<String> checkedTokens
protected org.gcube.data.transfer.model.plugins.thredds.ThreddsInfo cachedInfo
protected ExecutorService executor
protected org.gcube.data.transfer.plugin.model.DataTransferContext ctx
protected org.gcube.smartgears.configuration.application.ApplicationConfiguration threddsConfig
protected String threddsAdminUser
protected String threddsAdminPassword
protected String threddsPersistenceLocation
protected String threddsVersionString
protected String currentHostname
protected String currentGHNId
protected ThreddsInstanceManager(org.gcube.data.transfer.plugin.model.DataTransferContext context)
public static ThreddsInstanceManager get(org.gcube.data.transfer.plugin.model.DataTransferContext ctx)
public org.gcube.data.transfer.model.plugins.thredds.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 org.gcube.common.resources.gcore.ServiceEndpoint update(org.gcube.common.resources.gcore.ServiceEndpoint toUpdate)
public static org.gcube.common.resources.gcore.ServiceEndpoint querySEById(String id)
public static String marshal(org.gcube.common.resources.gcore.Resource res)
Copyright © 2021. All Rights Reserved.