public class UGCMapProviderSetting extends MapProviderSetting implements java.io.Serializable, ConfigValidatable, MultiInstanceSupported
SuperMap map service provider settings class.
It is used to set the information of the SuperMap map sesrvice providers.
dataPrjCoordSysType, watermark
Constructor and Description |
---|
UGCMapProviderSetting()
The default constructor.
|
UGCMapProviderSetting(UGCMapProviderSetting mapSetting)
Constructs a UGCMapProviderSetting object based on the configuration information of a SuperMap map service provider.
|
Modifier and Type | Method and Description |
---|---|
UGCMapProviderSetting |
clone() |
boolean |
equals(java.lang.Object obj)
Determines whether two objects are equal.
|
FilteredDatasourceInfo[] |
getDatasourceInfos()
Sets the datasource information.
|
ExcludedFieldsInMap[] |
getExcludedFieldsInMaps() |
Style |
getHighlightLineStyle(java.lang.String mapName)
Gets the highlight style of the line features of a specified map.
|
Style |
getHighlightPointStyle(java.lang.String mapName)
Gets the highlight style of the point features of a specified map.
|
Style |
getHighlightRegionStyle(java.lang.String mapName)
Gets the highlight style of the polygon features of a specified map.
|
int |
getLayerCountPerDataType()
Returns the maximum number of layers dynamically created for each data type.
|
Point2D |
getLeftTopCorner()
Gets the start point of map tile.
|
ExcludedFieldsInMap |
getMapFieldExcluded(java.lang.String mapName) |
java.util.List<java.lang.String> |
getMapNames()
Gets the name list of the maps that need to be published.
|
java.lang.String |
getMaps()
Gets the names of the published maps.
|
int |
getPoolSize()
Gets the size of the map object pool.
|
java.lang.String |
getPreferedPNGType()
Gets the preferred PNG type when using PNG cache.
|
int |
getQueryExpectCount()
Gets the expected query records number.
|
java.util.List<UGCMapSetting> |
getUgcMapSettings()
Gets the SuperMap map settings.
|
java.lang.String |
getWorkspacePath()
Gets the SuperMap workspace path.
|
int |
hashCode()
Gets hash value of the instance.
|
boolean |
isCacheDisabled()
Returns whether to disable cache.
|
boolean |
isExtractCacheToFile()
Gets whether to generate new image files when extracting caches from the large file.
|
boolean |
isIgnoreHashcodeWhenUseCache()
Whether to ignore Hashcode when using cache.
|
boolean |
isInflatDisabled()
Returns whether to disable the query with expanded bounds.
|
boolean |
isMapEditable()
Returns if the map is editable.
|
boolean |
isMultiInstance()
Returns whether the current service provider is enabled
|
boolean |
isMultiThread()
Gets the identifier of the multi-thread mode.
|
boolean |
isUseCompactCache()
Gets whether compact cache is in use (i.e., multiple cache images are centralized and saved in several files using the algorithm).
|
void |
setCacheDisabled(boolean cacheDisabled)
Sets whether to disable cache.
|
void |
setDatasourceInfos(FilteredDatasourceInfo[] datasourceInfos)
Returns the datasource information.
|
void |
setExcludedFieldsInMaps(ExcludedFieldsInMap[] excludedFieldsInMaps) |
void |
setExtractCacheToFile(boolean extracCacheToFile)
Sets whether to extract the cache as images file from big file (it will extract binary contents if set to false).
|
void |
setHighlightLineStyle(java.lang.String mapName, Style lineStyle)
Sets the highlight style of the line features of a specified map.
|
void |
setHighlightPointStyle(java.lang.String mapName, Style pointStyle)
Sets the highlight style of the point features of a specified map.
|
void |
setHighlightRegionStyle(java.lang.String mapName, Style regionStyle)
Sets the highlight style of the polygon features of a specified map.
|
void |
setIgnoreHashcodeWhenUseCache(boolean ignoreHashcodeWhenUseCache)
Sets whether to ignore Hashcode when using cache.
|
void |
setInflatDisabled(boolean inflatDisabled)
Sets whether to disable the query with expanded bounds.
|
void |
setLayerCountPerDataType(int layerCountPerDataType)
Sets the maximum number of layers dynamically created for each data type.
|
void |
setLeftTopCorner(Point2D leftTopCorner)
Sets the start point of map tile.
|
void |
setMapEditable(boolean mapEditable)
Sets if the map is editable.
|
void |
setMaps(java.lang.String maps)
Sets the maps that need to be published.
|
void |
setMultiInstance(boolean isMultiInstance)
Sets whether the current service provider is enabled
|
void |
setMultiThread(boolean multiThread)
Enables the multi-thread mode.
|
void |
setPoolSize(int poolSize)
Sets the size of the map object pool.
|
void |
setPreferedPNGType(java.lang.String preferedPNGType)
Sets the preferred PNG type when using PNG cache.
|
void |
setQueryExpectCount(int queryExpectCount)
Sets the expected query records number.
|
void |
setUgcMapSettings(java.util.List<UGCMapSetting> ugcMapSettings)
Sets the SuperMap map settings.
|
void |
setUseCompactCache(boolean useCompactCache)
Sets whether to use compact cache (i.e., multiple cache images are centralized and saved in several files using the algorithm).
|
void |
setWorkspacePath(java.lang.String workspacePath)
Sets the SuperMap workspace path.
|
void |
validate()
Verifies the configuration
|
getCacheMode, getCacheVersion, getName, getOutputPath, getOutputSite, getWatermark, setCacheMode, setCacheVersion, setName, setOutputPath, setOutputSite, setWatermark
public UGCMapProviderSetting()
The default constructor.
public UGCMapProviderSetting(UGCMapProviderSetting mapSetting)
Constructs a UGCMapProviderSetting object based on the configuration information of a SuperMap map service provider.
mapSetting
- The configuration information of SuperMap map service provider.public FilteredDatasourceInfo[] getDatasourceInfos()
Sets the datasource information. This attribute takes effect when workspacePath is null. It will dynamically create map object according to the specified datasource information and publish it.
public void setDatasourceInfos(FilteredDatasourceInfo[] datasourceInfos)
Returns the datasource information. This attribute takes effect when workspacePath is null. It will dynamically create map object according to the specified datasource information and publish it.
datasourceInfos
-public int getLayerCountPerDataType()
Returns the maximum number of layers dynamically created for each data type. If it is 2, then the dynamically created map contains 2 point layers, 2 line layers, 2 region layers and 2 raster layers.
public void setLayerCountPerDataType(int layerCountPerDataType)
Sets the maximum number of layers dynamically created for each data type. If it is 2, then the dynamically created map contains 2 point layers, 2 line layers, 2 region layers and 2 raster layers.
public Point2D getLeftTopCorner()
Gets the start point of map tile.
public void setLeftTopCorner(Point2D leftTopCorner)
Sets the start point of map tile.
public boolean isMapEditable()
Returns if the map is editable.
True means it allows to edit the map in the workspace and persist it on disk.public void setMapEditable(boolean mapEditable)
Sets if the map is editable.
True means it allows to edit the map in the workspace and persist it on disk.public boolean isInflatDisabled()
Returns whether to disable the query with expanded bounds. The default is false, which means enabling the query with expanded bounds.
public void setInflatDisabled(boolean inflatDisabled)
Sets whether to disable the query with expanded bounds. The default is false, which means enabling the query with expanded bounds.
inflatDisabled
-public java.lang.String getWorkspacePath()
Gets the SuperMap workspace path.
public void setWorkspacePath(java.lang.String workspacePath)
Sets the SuperMap workspace path.
workspacePath
- The SuperMap workspace path.public Style getHighlightPointStyle(java.lang.String mapName)
Gets the highlight style of the point features of a specified map.
mapName
- The map name.public void setHighlightPointStyle(java.lang.String mapName, Style pointStyle)
Sets the highlight style of the point features of a specified map.
mapName
- The map name.pointStyle
- The highlight style of the point features.public Style getHighlightLineStyle(java.lang.String mapName)
Gets the highlight style of the line features of a specified map.
mapName
- The map name.public void setHighlightLineStyle(java.lang.String mapName, Style lineStyle)
Sets the highlight style of the line features of a specified map.
mapName
- The map name.lineStyle
- The highlight style of the line features.public Style getHighlightRegionStyle(java.lang.String mapName)
Gets the highlight style of the polygon features of a specified map.
mapName
- The map name.public void setHighlightRegionStyle(java.lang.String mapName, Style regionStyle)
Sets the highlight style of the polygon features of a specified map.
mapName
- The map name.regionStyle
- The highlight style of the polygon features.public java.lang.String getMaps()
Gets the names of the published maps.
public void setMaps(java.lang.String maps)
Sets the maps that need to be published. If it is set to null, all the maps will be published. If there are multiple maps to be published, each of them should be separated by ",".
maps
- The list of map names.public java.util.List<java.lang.String> getMapNames()
Gets the name list of the maps that need to be published.
public java.util.List<UGCMapSetting> getUgcMapSettings()
Gets the SuperMap map settings.
public void setUgcMapSettings(java.util.List<UGCMapSetting> ugcMapSettings)
Sets the SuperMap map settings.
ugcMapSettings
- The SuperMap map settings.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
Determines whether two objects are equal.
equals
in class java.lang.Object
obj
- The object to compare.public boolean isMultiThread()
Gets the identifier of the multi-thread mode.
public void setMultiThread(boolean multiThread)
Enables the multi-thread mode.
multiThread
- The multi-thread mode.public int getPoolSize()
Gets the size of the map object pool.
public void setPoolSize(int poolSize)
Sets the size of the map object pool.
poolSize
- The size of the map object pool.public java.lang.String getPreferedPNGType()
Gets the preferred PNG type when using PNG cache.
public void setPreferedPNGType(java.lang.String preferedPNGType)
Sets the preferred PNG type when using PNG cache. SuperMap supports PNG and PNG8. Null denotes to use PNG. Now it is valid for 5.0 cache.
preferedPNGType
- The preferred PNG cache image type.public int getQueryExpectCount()
Gets the expected query records number.
public void setQueryExpectCount(int queryExpectCount)
Sets the expected query records number.
queryExpectCount
-public boolean isUseCompactCache()
Gets whether compact cache is in use (i.e., multiple cache images are centralized and saved in several files using the algorithm). This option needs to enable caching first.
public void setUseCompactCache(boolean useCompactCache)
Sets whether to use compact cache (i.e., multiple cache images are centralized and saved in several files using the algorithm). This option needs to enable caching first.
useCompactCache
- Whether to use compact cache.public boolean isExtractCacheToFile()
Gets whether to generate new image files when extracting caches from the large file. It supports 4.0 cache now. This method requires to enable the compact cache firstly.
public void setExtractCacheToFile(boolean extracCacheToFile)
Sets whether to extract the cache as images file from big file (it will extract binary contents if set to false). It only supports 4.0 caches. This method requires to enable the compact cache firstly.
extracCacheToFile
- Whether generating new image files when extracting caches from the file.public boolean isIgnoreHashcodeWhenUseCache()
Whether to ignore Hashcode when using cache. It supports 4.0 and 5.0 caches.
public void setIgnoreHashcodeWhenUseCache(boolean ignoreHashcodeWhenUseCache)
Sets whether to ignore Hashcode when using cache. It supports 4.0 and 5.0 caches.
ignoreHashcodeWhenUseCache
- Whether to ignore Hashcode.public boolean isCacheDisabled()
Returns whether to disable cache. The default is disable.
public void setCacheDisabled(boolean cacheDisabled)
Sets whether to disable cache. The default is disable.
public void validate() throws InvalidConfigException
ConfigValidatable
validate
in interface ConfigValidatable
InvalidConfigException
public boolean isMultiInstance()
MultiInstanceSupported
Returns whether the current service provider is enabled
isMultiInstance
in interface MultiInstanceSupported
public void setMultiInstance(boolean isMultiInstance)
MultiInstanceSupported
Sets whether the current service provider is enabled
setMultiInstance
in interface MultiInstanceSupported
public ExcludedFieldsInMap getMapFieldExcluded(java.lang.String mapName)
public ExcludedFieldsInMap[] getExcludedFieldsInMaps()
public void setExcludedFieldsInMaps(ExcludedFieldsInMap[] excludedFieldsInMaps)
public UGCMapProviderSetting clone()
clone
in class java.lang.Object