public class LocalTileStore extends java.lang.Object implements TileStore
Local tile storage.
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAX_COMMIT |
| Constructor and Description |
|---|
LocalTileStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appendTileVersionUpdate(java.lang.String tileVersionName, double[] scaleDenominators, double[] resolutions, Rectangle2D bounds)
Adds the update information to the specified tile version
|
void |
commit()
Stores the tiles in a tile set.
|
java.lang.String |
createNewVersion(java.lang.String parentVersion, java.lang.String versionDescription, VersionUpdate versionUpdate)
Creates a new tile version.
|
void |
dispose()
Release the resource object.
|
java.lang.String |
getLastTileVersion()
Gets the latest tile version.
|
TilesetDesc |
getTilesetDesc()
Gets the tile description.
|
boolean |
init(TileSourceInfo tileSourceInfo, MetaData metaData, boolean createTilesetIfNotExist)
Initialization.
|
void |
storeTile( tile)
Stores tiles.
|
void |
storeTiles([] tiles)
Stores tiles.
|
public void dispose()
DisposableRelease the resource object.
dispose in interface Disposablepublic boolean init(TileSourceInfo tileSourceInfo, MetaData metaData, boolean createTilesetIfNotExist)
TileStoreInitialization.
public void storeTile( tile)
throws StoreTileFailedException
TileStoreStores tiles.
storeTile in interface TileStoreStoreTileFailedException
public void storeTiles([] tiles)
throws StoreTileFailedException
TileStoreStores tiles.
storeTiles in interface TileStoreStoreTileFailedException
public java.lang.String createNewVersion(java.lang.String parentVersion,
java.lang.String versionDescription,
VersionUpdate versionUpdate)
TileStoreCreates a new tile version.
createNewVersion in interface TileStorepublic java.lang.String getLastTileVersion()
TileStoreGets the latest tile version.
getLastTileVersion in interface TileStore
public boolean appendTileVersionUpdate(java.lang.String tileVersionName,
double[] scaleDenominators,
double[] resolutions,
Rectangle2D bounds)
TileStoreAdds the update information to the specified tile version
appendTileVersionUpdate in interface TileStore
public void commit()
throws StoreTileFailedException
TileStoreStores the tiles in a tile set.
commit in interface TileStoreStoreTileFailedExceptionpublic TilesetDesc getTilesetDesc()
TileStoreGets the tile description.
getTilesetDesc in interface TileStore