public class RemoteTileStore extends java.lang.Object implements TileStore
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
RemoteTileStore.TilesCommiter |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAX_COMMIT |
protected static long |
MAX_TILEBYTESIZE_IN_MEMORY |
| Constructor and Description |
|---|
RemoteTileStore() |
| 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.
|
MetaData |
getMetaData() |
protected long |
getTileByteSizeInMemory() |
TilesetDesc |
getTilesetDesc()
Gets the tile description.
|
java.lang.String |
getToken() |
boolean |
init(TileSourceInfo tileSourceInfo, MetaData metaData, boolean createTilesetIfNotExist)
Initialization.
|
void |
setTileCommiter(RemoteTileStore.TilesCommiter tileCommiter) |
void |
storeTile( tile)
Stores tiles.
|
void |
storeTiles([] tiles)
Stores tiles.
|
protected static final int MAX_COMMIT
protected static final long MAX_TILEBYTESIZE_IN_MEMORY
public void dispose()
DisposableRelease the resource object.
dispose in interface Disposablepublic boolean init(TileSourceInfo tileSourceInfo, MetaData metaData, boolean createTilesetIfNotExist)
TileStoreInitialization.
public MetaData getMetaData()
public java.lang.String getToken()
public void storeTile( tile)
throws StoreTileFailedException
TileStoreStores tiles.
storeTile in interface TileStoreStoreTileFailedExceptionpublic void setTileCommiter(RemoteTileStore.TilesCommiter tileCommiter)
protected long getTileByteSizeInMemory()
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 TileStorepublic TilesetDesc getTilesetDesc()
TileStoreGets the tile description.
getTilesetDesc in interface TileStore
public void commit()
throws StoreTileFailedException
TileStoreStores the tiles in a tile set.
commit in interface TileStoreStoreTileFailedException