public class WCSServerExplorer extends AbstractDataServerExplorer implements RasterDataServerExplorer, DataServerExplorerProvider
LOGGER
TIME
FILESYSTEM_SERVER_EXPLORER_NAME, MODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER
Constructor and Description |
---|
WCSServerExplorer(WCSServerExplorerParameters parameters,
DataServerExplorerProviderServices services) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.String provider,
NewDataStoreParameters parameters,
boolean overwrite)
Creates a new DataStore in this server.
|
boolean |
canAdd()
Indicates whether this DataServerExplorer can create a new DataStore in
the server.
|
boolean |
canAdd(java.lang.String storeName)
Indicates whether this DataServerExplorer can create a new DataStore in
the server, given the store name.
|
void |
connect(ICancellable cancellable)
Connects to the server and throws a getCapabilities.
|
java.lang.String |
getAbstract()
Gets the description of this service
|
NewDataStoreParameters |
getAddParameters(java.lang.String storeName)
Given the store's name, returns its parameters for creation.
|
WCSLayerNode |
getCoverageByName(java.lang.String name)
Gets a layer searching by its name
|
WCSLayerNode[] |
getCoverageList()
Gets the coverage list
|
java.lang.String |
getDataStoreProviderName()
Gets the provider's name
|
java.util.List |
getDataStoreProviderNames()
Return the list of provider names that this server allow.
|
java.lang.String |
getDescription() |
java.lang.String |
getHost()
Gets the host URI
|
java.awt.geom.Point2D |
getMaxResolution(java.lang.String layerName) |
java.util.Hashtable |
getOnlineResources()
Gets the online resources
|
WCSServerExplorerParameters |
getParameters()
Returns this DataServerExplorer parameters
|
java.lang.String |
getProviderName()
Returns the DataServerExplorer's name
|
DataServerExplorerProviderServices |
getServerExplorerProviderServices() |
java.lang.String |
getServerType()
Gets the server title
|
DataStoreParameters |
getStoredParameters()
Returns the internal parameters, that is, the parameters that
are not tiled.
|
java.lang.String |
getTitle()
Gets the title
|
java.lang.String |
getVersion()
Gets the protocol supported by the server
|
boolean |
isConnected()
Returns true if this provider is connected to the server
|
boolean |
isHostReachable()
Checks if the network and host are reachable
|
boolean |
isHostReachable(int timeout)
Checks if the network and host are reachable
|
java.util.List |
list()
Provides a list of available stores in the server.
|
java.util.List |
list(int mode)
Provides a list of available stores in the server of a type.
|
void |
remove(DataStoreParameters parameters)
Removes a store from the server given its DataStoreParameters.
|
close, createSQLBuilder, doDispose, exists, get, getProperties, getProperty, getResourcePath, getResourcesStorage, getResourcesStorage, getResourcesStorage, open, open, setProperty
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exists, get, getResourcePath, getResourcesStorage, getResourcesStorage, getResourcesStorage
dispose
public WCSServerExplorer(WCSServerExplorerParameters parameters, DataServerExplorerProviderServices services) throws InitializeException
InitializeException
public java.lang.String getDataStoreProviderName()
public java.lang.String getDescription()
public boolean add(java.lang.String provider, NewDataStoreParameters parameters, boolean overwrite) throws DataException
DataServerExplorer
add
in interface DataServerExplorer
parameters
- , an instance of DataStoreParameters from
DataServerExplorer.getAddParameters(String)
that describes the
new DataStore.overwrite
- if the store already existsDataException
public boolean canAdd()
DataServerExplorer
canAdd
in interface DataServerExplorer
public boolean canAdd(java.lang.String storeName) throws DataException
DataServerExplorer
canAdd
in interface DataServerExplorer
storeName
- store name.DataException
public NewDataStoreParameters getAddParameters(java.lang.String storeName) throws DataException
DataServerExplorer
getAddParameters
in interface DataServerExplorer
DataException
public java.util.List getDataStoreProviderNames()
DataServerExplorer
getDataStoreProviderNames
in interface DataServerExplorer
public WCSServerExplorerParameters getParameters()
DataServerExplorer
getParameters
in interface DataServerExplorer
getParameters
in class AbstractDataServerExplorer
public java.util.List list() throws DataException
DataServerExplorer
list
in interface DataServerExplorer
DataException
public java.util.List list(int mode) throws DataException
DataServerExplorer
list
in interface DataServerExplorer
mode
- , filter store from a type: DataServerExplorer.MODE_ALL
,
DataServerExplorer.MODE_FEATURE
, #MODE_FEATURE_GEOMETRY
,
DataServerExplorer.MODE_RASTER
DataException
public void remove(DataStoreParameters parameters) throws DataException
DataServerExplorer
remove
in interface DataServerExplorer
DataException
public java.lang.String getProviderName()
DataServerExplorer
getProviderName
in interface DataServerExplorer
public java.util.Hashtable getOnlineResources()
public DataStoreParameters getStoredParameters()
RasterDataServerExplorer
getStoredParameters
in interface RasterDataServerExplorer
public void connect(ICancellable cancellable) throws ConnectException
connect
in interface RasterDataServerExplorer
RemoteServiceException
ConnectException
public boolean isHostReachable(int timeout)
isHostReachable
in interface RasterDataServerExplorer
timeout
- for the hostpublic boolean isHostReachable()
isHostReachable
in interface RasterDataServerExplorer
public boolean isConnected()
public java.lang.String getAbstract()
public java.lang.String getServerType()
public java.lang.String getVersion()
public java.lang.String getHost()
public java.lang.String getTitle()
public DataServerExplorerProviderServices getServerExplorerProviderServices()
getServerExplorerProviderServices
in interface DataServerExplorerProvider
getServerExplorerProviderServices
in class AbstractDataServerExplorer
public java.awt.geom.Point2D getMaxResolution(java.lang.String layerName)
public WCSLayerNode[] getCoverageList()
public WCSLayerNode getCoverageByName(java.lang.String name)