org.gcube.application.aquamaps.enabling.Impl.crawler
Class ISCrawler

java.lang.Object
  extended by org.gcube.application.aquamaps.enabling.Impl.crawler.ISCrawler
Direct Known Subclasses:
PortalCrawler, ServiceCrawler, SingleScopeCrawler

public abstract class ISCrawler
extends Object


Field Summary
protected static org.gcube.common.core.informationsystem.client.ISClient isClient
           
protected static org.gcube.common.core.utils.logging.GCUBELog logger
           
protected  org.gcube.common.core.scope.GCUBEScope scope
           
 
Constructor Summary
ISCrawler()
           
 
Method Summary
 String checks()
           
protected abstract  ArrayList<org.gcube.common.core.scope.GCUBEScope> findAvailableScopes(org.gcube.common.core.scope.GCUBEScope Infrastructure)
           
 void forceUpdate()
          updates infrastructureMap information
static ISCrawler get(int minutes, int gcMinutes, boolean enableGCForceing, CrawlerMode mode, org.gcube.common.core.scope.GCUBEScope startScope)
           
protected static List<org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.environments.ComputationalInfrastructure> getEnvironments(org.gcube.common.core.scope.GCUBEScope scope)
          Query passed scope for generic resource referencing computational infrastructures Atomic conditions : //Profile/SecondaryType = ComputationalInfrastructure
protected static List<DataSourceDescriptor> getGeoNetwork(org.gcube.common.core.scope.GCUBEScope scope)
          Query passed scope for RuntimeResources describing valid geoNetworks AtomicConditions : //Profile/Category = Constants.get().getGeoNetworkCategoryName() //Profile/Platform/Name = Constants.get().getGeoNetworkPlatformName() Valid Access Points : EntryName = Constants.get().getGeoNetworkEntryName()
protected static List<GeoServerDescriptor> getGeoServers(org.gcube.common.core.scope.GCUBEScope scope)
          Query passed scope for RuntimeResources describing valid geoServers AtomicConditions : //Profile/Category = Constants.get().getGeoServerCategoryName() //Profile/Platform/Name = Constants.get().getGeoServerPlatformName() Valid Access Points : EntryName = Constants.get().getGeoServerEntryName() Mandatory properties : Constants.get().getGeoServerAquaMapsWorkspace() Constants.get().getGeoServerAquaMapsDataStore() Constants.get().getGeoServerAquaMapsDefaultDistributionStyle()
protected static ArrayList<DBDescriptor> getGISDataBase(org.gcube.common.core.scope.GCUBEScope scope)
          Query passed scope for RuntimeResources describing valid GIS Database AtomicConditions : //Profile/Category = Constants.get().getGeoServerDBCategory() //Profile/Platform/Name = Constants.get().getGeoServerDBPlatformName() Valid Access Points : EntryName = Constants.get().getGeoServerDBEntryName() Mandatory properties: Constants.get().getGeoServerDBAquaMapsDataStore() : boolean = true Constants.get().getDBMaxConnection() : integer DBDescriptor.AQUAMAPS_WORLD_TABLE
 ConcurrentHashMap<String,VODescriptor> getInfrastructureMap()
           
protected static ArrayList<DBDescriptor> getInternalDB(org.gcube.common.core.scope.GCUBEScope scope)
          Query passed scope for RuntimeResources describing valid Internal Database AtomicConditions : //Profile/Category = Constants.get().getInternalDBCategoryName() //Profile/Platform/Name = Constants.get().getInternalDBPlatformName() Valid Access Points : EntryName = Constants.get().getInternalDBEntryName() Mandatory properties: Constants.get().getInternalDBSchemaName() : boolean = true Constants.get().getDBMaxConnection() : integer DBDescriptor.TABLESPACE_PREFIX DBDescriptor.TABLESPACE_COUNT
protected static ArrayList<DBDescriptor> getPublisherDB(org.gcube.common.core.scope.GCUBEScope scope)
          Query passed scope for RuntimeResources describing valid Publisher Database AtomicConditions : //Profile/Category = Constants.get().getPublisherDBCategoryName() //Profile/Platform/Name = Constants.get().getPublisherDBPlatformName() Valid Access Points : EntryName = Constants.get().getPublisherDBEntryName() Mandatory properties: Constants.get().getPublisherDBSchemaName() : boolean = true Constants.get().getDBMaxConnection() : integer
protected static List<org.gcube.common.core.resources.GCUBERunningInstance> getRIsByServiceName(org.gcube.common.core.scope.GCUBEScope scope, String serviceName)
           
protected static List<org.gcube.common.core.resources.GCUBERunningInstance> getRIsByServiceNameAndClass(org.gcube.common.core.scope.GCUBEScope scope, String serviceName, String serviceClass)
           
protected  VODescriptor getScopeInformation(org.gcube.common.core.scope.GCUBEScope scope)
          Makes query on passed scope to fill a VODescriptor object with required information
protected abstract  boolean isCheckGisDatabase()
           
protected abstract  boolean isCheckInternalDB()
           
protected abstract  boolean isCheckPublisherDatabase()
           
protected abstract  boolean isCheckRunningInstance()
           
protected  void schedule(int updateMinutes, int gcMinutes, boolean enableGCForcing)
          Schedules both update routine and gcForceing (opt.)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isClient

protected static org.gcube.common.core.informationsystem.client.ISClient isClient

logger

protected static org.gcube.common.core.utils.logging.GCUBELog logger

scope

protected org.gcube.common.core.scope.GCUBEScope scope
Constructor Detail

ISCrawler

public ISCrawler()
Method Detail

get

public static ISCrawler get(int minutes,
                            int gcMinutes,
                            boolean enableGCForceing,
                            CrawlerMode mode,
                            org.gcube.common.core.scope.GCUBEScope startScope)
                     throws Exception
Throws:
Exception

findAvailableScopes

protected abstract ArrayList<org.gcube.common.core.scope.GCUBEScope> findAvailableScopes(org.gcube.common.core.scope.GCUBEScope Infrastructure)
                                                                                  throws Exception
Throws:
Exception

getScopeInformation

protected VODescriptor getScopeInformation(org.gcube.common.core.scope.GCUBEScope scope)
                                    throws Exception
Makes query on passed scope to fill a VODescriptor object with required information

Parameters:
scope -
Returns:
Throws:
Exception

schedule

protected void schedule(int updateMinutes,
                        int gcMinutes,
                        boolean enableGCForcing)
Schedules both update routine and gcForceing (opt.)

Parameters:
updateMinutes -
gcMinutes -
enableGCForcing -

forceUpdate

public void forceUpdate()
                 throws Exception
updates infrastructureMap information

Throws:
Exception

getInfrastructureMap

public ConcurrentHashMap<String,VODescriptor> getInfrastructureMap()

getRIsByServiceName

protected static List<org.gcube.common.core.resources.GCUBERunningInstance> getRIsByServiceName(org.gcube.common.core.scope.GCUBEScope scope,
                                                                                                String serviceName)
                                                                                         throws Exception
Throws:
Exception

getRIsByServiceNameAndClass

protected static List<org.gcube.common.core.resources.GCUBERunningInstance> getRIsByServiceNameAndClass(org.gcube.common.core.scope.GCUBEScope scope,
                                                                                                        String serviceName,
                                                                                                        String serviceClass)
                                                                                                 throws Exception
Throws:
Exception

getEnvironments

protected static List<org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.environments.ComputationalInfrastructure> getEnvironments(org.gcube.common.core.scope.GCUBEScope scope)
                                                                                                                                        throws Exception
Query passed scope for generic resource referencing computational infrastructures Atomic conditions : //Profile/SecondaryType = ComputationalInfrastructure

Parameters:
scope -
Returns:
Throws:
Exception

getGeoServers

protected static List<GeoServerDescriptor> getGeoServers(org.gcube.common.core.scope.GCUBEScope scope)
                                                  throws Exception
Query passed scope for RuntimeResources describing valid geoServers AtomicConditions : //Profile/Category = Constants.get().getGeoServerCategoryName() //Profile/Platform/Name = Constants.get().getGeoServerPlatformName() Valid Access Points : EntryName = Constants.get().getGeoServerEntryName() Mandatory properties : Constants.get().getGeoServerAquaMapsWorkspace() Constants.get().getGeoServerAquaMapsDataStore() Constants.get().getGeoServerAquaMapsDefaultDistributionStyle()

Parameters:
scope -
Returns:
Throws:
Exception

getGeoNetwork

protected static List<DataSourceDescriptor> getGeoNetwork(org.gcube.common.core.scope.GCUBEScope scope)
                                                   throws Exception
Query passed scope for RuntimeResources describing valid geoNetworks AtomicConditions : //Profile/Category = Constants.get().getGeoNetworkCategoryName() //Profile/Platform/Name = Constants.get().getGeoNetworkPlatformName() Valid Access Points : EntryName = Constants.get().getGeoNetworkEntryName()

Parameters:
scope -
Returns:
Throws:
Exception

getGISDataBase

protected static ArrayList<DBDescriptor> getGISDataBase(org.gcube.common.core.scope.GCUBEScope scope)
                                                 throws Exception
Query passed scope for RuntimeResources describing valid GIS Database AtomicConditions : //Profile/Category = Constants.get().getGeoServerDBCategory() //Profile/Platform/Name = Constants.get().getGeoServerDBPlatformName() Valid Access Points : EntryName = Constants.get().getGeoServerDBEntryName() Mandatory properties: Constants.get().getGeoServerDBAquaMapsDataStore() : boolean = true Constants.get().getDBMaxConnection() : integer DBDescriptor.AQUAMAPS_WORLD_TABLE

Parameters:
scope -
Returns:
Throws:
Exception

getInternalDB

protected static ArrayList<DBDescriptor> getInternalDB(org.gcube.common.core.scope.GCUBEScope scope)
                                                throws Exception
Query passed scope for RuntimeResources describing valid Internal Database AtomicConditions : //Profile/Category = Constants.get().getInternalDBCategoryName() //Profile/Platform/Name = Constants.get().getInternalDBPlatformName() Valid Access Points : EntryName = Constants.get().getInternalDBEntryName() Mandatory properties: Constants.get().getInternalDBSchemaName() : boolean = true Constants.get().getDBMaxConnection() : integer DBDescriptor.TABLESPACE_PREFIX DBDescriptor.TABLESPACE_COUNT

Parameters:
scope -
Returns:
Throws:
Exception

getPublisherDB

protected static ArrayList<DBDescriptor> getPublisherDB(org.gcube.common.core.scope.GCUBEScope scope)
                                                 throws Exception
Query passed scope for RuntimeResources describing valid Publisher Database AtomicConditions : //Profile/Category = Constants.get().getPublisherDBCategoryName() //Profile/Platform/Name = Constants.get().getPublisherDBPlatformName() Valid Access Points : EntryName = Constants.get().getPublisherDBEntryName() Mandatory properties: Constants.get().getPublisherDBSchemaName() : boolean = true Constants.get().getDBMaxConnection() : integer

Parameters:
scope -
Returns:
Throws:
Exception

isCheckInternalDB

protected abstract boolean isCheckInternalDB()

isCheckGisDatabase

protected abstract boolean isCheckGisDatabase()

isCheckPublisherDatabase

protected abstract boolean isCheckPublisherDatabase()

isCheckRunningInstance

protected abstract boolean isCheckRunningInstance()

checks

public String checks()


Copyright © 2013. All Rights Reserved.