public class PostGISRasterServerExplorer extends Object implements RasterDataServerExplorer, DataServerExplorerProvider
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
TIME
MODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER
Constructor and Description |
---|
PostGISRasterServerExplorer(PostGISRasterServerExplorerParameters parameters,
DataServerExplorerProviderServices services) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(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(String storeName)
Indicates whether this DataServerExplorer can create a new DataStore in
the server, given the store name.
|
void |
connect(ICancellable cancellable)
Connect to the server
|
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
NewDataStoreParameters |
getAddParameters(String storeName)
Given the store's name, returns its parameters for creation.
|
List<?> |
getDataStoreProviderNames()
Return the list of provider names that this server allow.
|
DataServerExplorerParameters |
getParameters()
Returns this DataServerExplorer parameters
|
String |
getProviderName()
Returns the DataServerExplorer's name
|
DataServerExplorerProviderServices |
getServerExplorerProviderServices() |
DataStoreParameters |
getStoredParameters()
Returns the internal parameters, that is, the parameters that
are not tiled.
|
boolean |
isHostReachable()
Checks if the network and host are reachable
|
boolean |
isHostReachable(int timeout)
Checks if the network and host are reachable
|
List<?> |
list()
Provides a list of available stores in the server.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, getResourcePath
public static final String NAME
public PostGISRasterServerExplorer(PostGISRasterServerExplorerParameters parameters, DataServerExplorerProviderServices services) throws InitializeException
InitializeException
public DataServerExplorerProviderServices getServerExplorerProviderServices()
getServerExplorerProviderServices
in interface DataServerExplorerProvider
public boolean add(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(String storeName) throws DataException
DataServerExplorer
canAdd
in interface DataServerExplorer
storeName
- store name.DataException
public NewDataStoreParameters getAddParameters(String storeName) throws DataException
DataServerExplorer
getAddParameters
in interface DataServerExplorer
DataException
public List<?> getDataStoreProviderNames()
DataServerExplorer
getDataStoreProviderNames
in interface DataServerExplorer
public DataServerExplorerParameters getParameters()
DataServerExplorer
getParameters
in interface DataServerExplorer
public String getProviderName()
DataServerExplorer
getProviderName
in interface DataServerExplorer
public List<?> list() throws DataException
DataServerExplorer
list
in interface DataServerExplorer
DataException
public 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 void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable
public DataStoreParameters getStoredParameters()
RasterDataServerExplorer
getStoredParameters
in interface RasterDataServerExplorer
public void connect(ICancellable cancellable) throws ConnectException
RasterDataServerExplorer
connect
in interface RasterDataServerExplorer
ConnectException
public boolean isHostReachable(int timeout)
isHostReachable
in interface RasterDataServerExplorer
timeout
- for the hostpublic boolean isHostReachable()
isHostReachable
in interface RasterDataServerExplorer