Class ThreddsInstanceManager
- java.lang.Object
-
- org.gcube.data.transfer.plugins.thredds.ThreddsInstanceManager
-
public class ThreddsInstanceManager extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.gcube.data.transfer.model.plugins.thredds.ThreddsInfocachedInfoprotected static ConcurrentSkipListSet<String>checkedTokensprotected org.gcube.data.transfer.plugin.model.DataTransferContextctxprotected StringcurrentGHNIdprotected StringcurrentHostnameprotected ExecutorServiceexecutorprotected static ThreddsInstanceManagerinstanceprotected StringthreddsAdminPasswordprotected StringthreddsAdminUserprotected org.gcube.smartgears.configuration.application.ApplicationConfigurationthreddsConfigprotected StringthreddsPersistenceLocationprotected StringthreddsVersionString
-
Constructor Summary
Constructors Modifier Constructor Description protectedThreddsInstanceManager(org.gcube.data.transfer.plugin.model.DataTransferContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCache()static ThreddsInstanceManagerget(org.gcube.data.transfer.plugin.model.DataTransferContext ctx)StringgetContentRoot()StringgetCurrentHostname()org.gcube.data.transfer.model.plugins.thredds.ThreddsInfogetInfo()StringgetMainCatalogFile()XMLCatalogHandlermainCatalogHandler()static Stringmarshal(org.gcube.common.resources.gcore.Resource res)static List<String>queryById(String id)static org.gcube.common.resources.gcore.ServiceEndpointquerySEById(String id)static org.gcube.common.resources.gcore.ServiceEndpointupdate(org.gcube.common.resources.gcore.ServiceEndpoint toUpdate)voidupdatePublishedInfo()
-
-
-
Field Detail
-
instance
protected static ThreddsInstanceManager instance
-
checkedTokens
protected static final ConcurrentSkipListSet<String> checkedTokens
-
cachedInfo
protected org.gcube.data.transfer.model.plugins.thredds.ThreddsInfo cachedInfo
-
executor
protected ExecutorService executor
-
ctx
protected org.gcube.data.transfer.plugin.model.DataTransferContext ctx
-
threddsConfig
protected org.gcube.smartgears.configuration.application.ApplicationConfiguration threddsConfig
-
threddsAdminUser
protected String threddsAdminUser
-
threddsAdminPassword
protected String threddsAdminPassword
-
threddsPersistenceLocation
protected String threddsPersistenceLocation
-
threddsVersionString
protected String threddsVersionString
-
currentHostname
protected String currentHostname
-
currentGHNId
protected String currentGHNId
-
-
Method Detail
-
get
public static ThreddsInstanceManager get(org.gcube.data.transfer.plugin.model.DataTransferContext ctx)
-
getInfo
public org.gcube.data.transfer.model.plugins.thredds.ThreddsInfo getInfo() throws SAXException, IOException- Returns:
- Throws:
IOExceptionSAXExceptionException
-
clearCache
public void clearCache()
-
getCurrentHostname
public String getCurrentHostname()
-
getMainCatalogFile
public String getMainCatalogFile()
-
getContentRoot
public String getContentRoot()
-
mainCatalogHandler
public XMLCatalogHandler mainCatalogHandler() throws SAXException, IOException, Exception
- Throws:
SAXExceptionIOExceptionException
-
update
public static org.gcube.common.resources.gcore.ServiceEndpoint update(org.gcube.common.resources.gcore.ServiceEndpoint toUpdate)
-
querySEById
public static org.gcube.common.resources.gcore.ServiceEndpoint querySEById(String id)
-
marshal
public static String marshal(org.gcube.common.resources.gcore.Resource res)
-
-