com.esri.arcgis.carto
Class MapCooker

java.lang.Object
  extended by com.esri.arcgis.carto.MapCooker
All Implemented Interfaces:
IMapCooker, IMapCooker2, IMapCooker3, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class MapCooker
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IMapCooker, IMapCooker2, IMapCooker3

COM Class 'MapCooker'. Generated 3/19/2015 1:20:41 PM from 'C:\ArcGIS\COM\esriCarto.olb'

Description 'A map cache generator class.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.carto.IMapCooker2
IID, IID11f3e86e_9351_4226_a1e8_1a1338a9dcf2, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IMapCooker
IID842ba25b_fe2f_41a4_8867_b521951a2b34
 
Fields inherited from interface com.esri.arcgis.carto.IMapCooker3
IID, IIDb77d1a50_aef0_4150_add4_e5d1bc4177d4, xxDummy
 
Constructor Summary
MapCooker()
          Constructs a MapCooker using ArcGIS Engine.
MapCooker(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
MapCooker theMapCooker = (MapCooker) obj;
 
Method Summary
 void addCachedLayers(IMap pMap)
          Adds all cached layers in the map cache.
 void addLayer(java.lang.String name, ILayer pLayer)
          Adds a layer to the map cache.
 void cleanUPState(java.lang.Object pMapOrMapServerInfo, java.lang.Object pLayerOrMapLayerInfo, IGeometry pGeometry, ILongArray pLevels, ITrackCancel pTrackCancel)
          Cleans up the state of current caching job.
 void clear(ILayer pLayer, IEnvelope pExtent)
          Clears cache for a given layer within a given extent.
 void clearAll()
          Clears cache for all layers.
 void connect(java.lang.String location, java.lang.String name, IMap pMap)
          Connects to a given map and its cache.
 void delete()
          Deletes map service cache directory.
 void deleteByExtent(IMap pMap, ILayer pLayer, IEnvelope pExtent, ILongArray pLevels, ITrackCancel pTrackCancel)
          Deletes cache for a given layer within a given extent.
 void draw(ILayer pLayer, IDisplay pDisplay, ITrackCancel pTrackCancel)
          Draws a given layer to the specified display.
 boolean equals(java.lang.Object o)
          Compare this object with another
 void exit()
          Exits the map cache generator host process.
 void generate(IMap pMap, ILayer pLayer, IDisplay pDisplay, ITrackCancel pTrackCancel)
          Fully generates cache for a given layer.
 ICacheDatasetInfo getCacheDatasetInfo()
          The map cache dataset info.
 java.lang.String getCacheDirectory(ILayer pLayer)
          Gets cache directory for a given layer.
 ICacheStorageInfo getCacheStorageInfo()
          The map cache storage info.
static java.lang.String getClsid()
          getClsid.
 IEnvelope getExtent()
          The map cache extent.
 java.lang.String getFormat()
          The tile cache format.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int getMaxTileCount()
          The maximum number of map tiles to be generated.
 int getNumLevels()
          The number of map cache levels.
 java.lang.String getPath()
          The map cache path.
 void getStatusTileCount(int[] pTileCount)
          number of tiles processed in the current job
 byte[] getTile(ILayer pLayer, int level, int row, int column)
          Gets a tile for a given tile location from a given layer.
 ITileCacheInfo getTileCacheInfo()
          The tile cache info.
 ITileImageInfo getTileImageInfo()
          The map cache tile image info.
 boolean hasCache()
          Indicates if there is any cache.
 int hashCode()
          the hashcode for this object
 boolean hasLayerCache(ILayer pLayer)
          Indicates if there is a cache for a given layer.
 boolean isAntialiasing()
          Indicates if antialiasing should be used.
 boolean isCacheOnDemand()
          Indicates if the service is cached on demand.
 void putTile(ILayer pLayer, int level, int row, int column, byte[] ppTile)
          Puts a tile for a given tile location for a given layer.
 void putTilePosition(int level, int row, int column)
          Sets the current map tile position.
 void queryTilePosition(int[] pLevel, int[] pRow, int[] pColumn)
          Queries for the current map tile position.
 void release()
          Release a MapCooker.
 void setAntialiasing(boolean pAntialiasing)
          Indicates if antialiasing should be used.
 void setCacheDatasetInfoByRef(ICacheDatasetInfo ppInfo)
          The map cache dataset info.
 void setCacheOnDemand(boolean pCacheOnDemand)
          Indicates if the service is cached on demand.
 void setCacheStorageInfoByRef(ICacheStorageInfo ppInfo)
          The map cache storage info.
 void setDefaultLODInfos(int numLevels)
          Sets default LOD Info for a given number of levels.
 void setExtent(IEnvelope ppExtent)
          The map cache extent.
 void setFormat(java.lang.String pFormat)
          The tile cache format.
 void setMaxTileCount(int pNumTiles)
          The maximum number of map tiles to be generated.
 void setPath(java.lang.String pPath)
          The map cache path.
 void setTileCacheInfoByRef(ITileCacheInfo ppCacheInfo)
          The tile cache info.
 void setTileImageInfoByRef(ITileImageInfo ppInfo)
          The map cache tile image info.
 void snap(IDisplay pDisplay, IEnvelope pExtent)
          Snaps a view extent to one of map cache levels.
 void update(IMap pMap, ILayer pLayer, IDisplay pDisplay, IEnvelope pExtent, ILongArray pLevels, int updateMode, ITrackCancel pTrackCancel)
          Updates cache for a given layer within a given extent.
 void updateByGeometry(IMap pMap, ILayer pLayer, IDisplay pDisplay, IGeometry pGeometry, ILongArray pLevels, int updateMode, ITrackCancel pTrackCancel)
          Deletes cache for a given layer within a given extent.
 void updateMapServerCacheScales(IDoubleArray pScales)
          Updates Map Server's Cache Scales.
 void writeTilingScheme(ITileCacheInfo pCacheInfo, ITileImageInfo pTileImageInfo, java.lang.String cacheDir, java.lang.String layerName)
          Writes the tiling scheme for the service.
 void writeTilingSchemeEx(ITileCacheInfo pCacheInfo, ITileImageInfo pTileImageInfo, ICacheStorageInfo pCacheStorageInfo, ICacheDatasetInfo pCacheDatasetInfo, java.lang.String cacheDir, java.lang.String layerName)
          Writes the tiling scheme for the service.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapCooker

public MapCooker()
          throws java.io.IOException,
                 java.net.UnknownHostException
Constructs a MapCooker using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

MapCooker

public MapCooker(java.lang.Object obj)
          throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
MapCooker theMapCooker = (MapCooker) obj;

Construct a MapCooker using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to MapCooker.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a MapCooker.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getPath

public java.lang.String getPath()
                         throws java.io.IOException,
                                AutomationException
The map cache path.

Specified by:
getPath in interface IMapCooker
Returns:
The pPath
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPath

public void setPath(java.lang.String pPath)
             throws java.io.IOException,
                    AutomationException
The map cache path.

Specified by:
setPath in interface IMapCooker
Parameters:
pPath - The pPath (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExtent

public IEnvelope getExtent()
                    throws java.io.IOException,
                           AutomationException
The map cache extent.

Specified by:
getExtent in interface IMapCooker
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExtent

public void setExtent(IEnvelope ppExtent)
               throws java.io.IOException,
                      AutomationException
The map cache extent.

Specified by:
setExtent in interface IMapCooker
Parameters:
ppExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFormat

public java.lang.String getFormat()
                           throws java.io.IOException,
                                  AutomationException
The tile cache format.

Specified by:
getFormat in interface IMapCooker
Returns:
The pFormat
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFormat

public void setFormat(java.lang.String pFormat)
               throws java.io.IOException,
                      AutomationException
The tile cache format.

Specified by:
setFormat in interface IMapCooker
Parameters:
pFormat - The pFormat (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isAntialiasing

public boolean isAntialiasing()
                       throws java.io.IOException,
                              AutomationException
Indicates if antialiasing should be used.

Specified by:
isAntialiasing in interface IMapCooker
Returns:
The pAntialiasing
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAntialiasing

public void setAntialiasing(boolean pAntialiasing)
                     throws java.io.IOException,
                            AutomationException
Indicates if antialiasing should be used.

Specified by:
setAntialiasing in interface IMapCooker
Parameters:
pAntialiasing - The pAntialiasing (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTileCacheInfo

public ITileCacheInfo getTileCacheInfo()
                                throws java.io.IOException,
                                       AutomationException
The tile cache info.

Specified by:
getTileCacheInfo in interface IMapCooker
Returns:
A reference to a com.esri.arcgis.carto.ITileCacheInfo
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTileCacheInfoByRef

public void setTileCacheInfoByRef(ITileCacheInfo ppCacheInfo)
                           throws java.io.IOException,
                                  AutomationException
The tile cache info.

Specified by:
setTileCacheInfoByRef in interface IMapCooker
Parameters:
ppCacheInfo - A reference to a com.esri.arcgis.carto.ITileCacheInfo (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNumLevels

public int getNumLevels()
                 throws java.io.IOException,
                        AutomationException
The number of map cache levels.

Specified by:
getNumLevels in interface IMapCooker
Returns:
The pNumLevels
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

connect

public void connect(java.lang.String location,
                    java.lang.String name,
                    IMap pMap)
             throws java.io.IOException,
                    AutomationException
Connects to a given map and its cache.

Specified by:
connect in interface IMapCooker
Parameters:
location - The location (in)
name - The name (in)
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addCachedLayers

public void addCachedLayers(IMap pMap)
                     throws java.io.IOException,
                            AutomationException
Adds all cached layers in the map cache.

Specified by:
addCachedLayers in interface IMapCooker
Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addLayer

public void addLayer(java.lang.String name,
                     ILayer pLayer)
              throws java.io.IOException,
                     AutomationException
Adds a layer to the map cache.

Specified by:
addLayer in interface IMapCooker
Parameters:
name - The name (in)
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clear

public void clear(ILayer pLayer,
                  IEnvelope pExtent)
           throws java.io.IOException,
                  AutomationException
Clears cache for a given layer within a given extent.

Specified by:
clear in interface IMapCooker
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clearAll

public void clearAll()
              throws java.io.IOException,
                     AutomationException
Clears cache for all layers.

Specified by:
clearAll in interface IMapCooker
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

snap

public void snap(IDisplay pDisplay,
                 IEnvelope pExtent)
          throws java.io.IOException,
                 AutomationException
Snaps a view extent to one of map cache levels.

Specified by:
snap in interface IMapCooker
Parameters:
pDisplay - A reference to a com.esri.arcgis.display.IDisplay (in)
pExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

draw

public void draw(ILayer pLayer,
                 IDisplay pDisplay,
                 ITrackCancel pTrackCancel)
          throws java.io.IOException,
                 AutomationException
Draws a given layer to the specified display.

Specified by:
draw in interface IMapCooker
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pDisplay - A reference to a com.esri.arcgis.display.IDisplay (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDefaultLODInfos

public void setDefaultLODInfos(int numLevels)
                        throws java.io.IOException,
                               AutomationException
Sets default LOD Info for a given number of levels.

Specified by:
setDefaultLODInfos in interface IMapCooker
Parameters:
numLevels - The numLevels (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

generate

public void generate(IMap pMap,
                     ILayer pLayer,
                     IDisplay pDisplay,
                     ITrackCancel pTrackCancel)
              throws java.io.IOException,
                     AutomationException
Fully generates cache for a given layer.

Specified by:
generate in interface IMapCooker
Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pDisplay - A reference to a com.esri.arcgis.display.IDisplay (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

hasCache

public boolean hasCache()
                 throws java.io.IOException,
                        AutomationException
Indicates if there is any cache.

Specified by:
hasCache in interface IMapCooker
Returns:
The pHasCache
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

hasLayerCache

public boolean hasLayerCache(ILayer pLayer)
                      throws java.io.IOException,
                             AutomationException
Indicates if there is a cache for a given layer.

Specified by:
hasLayerCache in interface IMapCooker
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Returns:
The pHasCache
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTile

public byte[] getTile(ILayer pLayer,
                      int level,
                      int row,
                      int column)
               throws java.io.IOException,
                      AutomationException
Gets a tile for a given tile location from a given layer.

Specified by:
getTile in interface IMapCooker
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
level - The level (in)
row - The row (in)
column - The column (in)
Returns:
An unsigned byte
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

putTile

public void putTile(ILayer pLayer,
                    int level,
                    int row,
                    int column,
                    byte[] ppTile)
             throws java.io.IOException,
                    AutomationException
Puts a tile for a given tile location for a given layer.

Specified by:
putTile in interface IMapCooker
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
level - The level (in)
row - The row (in)
column - The column (in)
ppTile - An unsigned byte (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCacheDirectory

public java.lang.String getCacheDirectory(ILayer pLayer)
                                   throws java.io.IOException,
                                          AutomationException
Gets cache directory for a given layer.

Specified by:
getCacheDirectory in interface IMapCooker
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Returns:
The pCacheDir
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryTilePosition

public void queryTilePosition(int[] pLevel,
                              int[] pRow,
                              int[] pColumn)
                       throws java.io.IOException,
                              AutomationException
Queries for the current map tile position.

Specified by:
queryTilePosition in interface IMapCooker
Parameters:
pLevel - The pLevel (out: use single element array)
pRow - The pRow (out: use single element array)
pColumn - The pColumn (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

putTilePosition

public void putTilePosition(int level,
                            int row,
                            int column)
                     throws java.io.IOException,
                            AutomationException
Sets the current map tile position.

Specified by:
putTilePosition in interface IMapCooker
Parameters:
level - The level (in)
row - The row (in)
column - The column (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMaxTileCount

public int getMaxTileCount()
                    throws java.io.IOException,
                           AutomationException
The maximum number of map tiles to be generated.

Specified by:
getMaxTileCount in interface IMapCooker
Returns:
The pNumTiles
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMaxTileCount

public void setMaxTileCount(int pNumTiles)
                     throws java.io.IOException,
                            AutomationException
The maximum number of map tiles to be generated.

Specified by:
setMaxTileCount in interface IMapCooker
Parameters:
pNumTiles - The pNumTiles (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exit

public void exit()
          throws java.io.IOException,
                 AutomationException
Exits the map cache generator host process.

Specified by:
exit in interface IMapCooker
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

update

public void update(IMap pMap,
                   ILayer pLayer,
                   IDisplay pDisplay,
                   IEnvelope pExtent,
                   ILongArray pLevels,
                   int updateMode,
                   ITrackCancel pTrackCancel)
            throws java.io.IOException,
                   AutomationException
Updates cache for a given layer within a given extent.

Specified by:
update in interface IMapCooker
Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pDisplay - A reference to a com.esri.arcgis.display.IDisplay (in)
pExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
pLevels - A reference to a com.esri.arcgis.system.ILongArray (in)
updateMode - A com.esri.arcgis.carto.esriMapCacheUpdateMode constant (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

delete

public void delete()
            throws java.io.IOException,
                   AutomationException
Deletes map service cache directory.

Specified by:
delete in interface IMapCooker
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTileImageInfo

public ITileImageInfo getTileImageInfo()
                                throws java.io.IOException,
                                       AutomationException
The map cache tile image info.

Specified by:
getTileImageInfo in interface IMapCooker2
Returns:
A reference to a com.esri.arcgis.carto.ITileImageInfo
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTileImageInfoByRef

public void setTileImageInfoByRef(ITileImageInfo ppInfo)
                           throws java.io.IOException,
                                  AutomationException
The map cache tile image info.

Specified by:
setTileImageInfoByRef in interface IMapCooker2
Parameters:
ppInfo - A reference to a com.esri.arcgis.carto.ITileImageInfo (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCacheOnDemand

public void setCacheOnDemand(boolean pCacheOnDemand)
                      throws java.io.IOException,
                             AutomationException
Indicates if the service is cached on demand.

Specified by:
setCacheOnDemand in interface IMapCooker2
Parameters:
pCacheOnDemand - The pCacheOnDemand (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isCacheOnDemand

public boolean isCacheOnDemand()
                        throws java.io.IOException,
                               AutomationException
Indicates if the service is cached on demand.

Specified by:
isCacheOnDemand in interface IMapCooker2
Returns:
The pCacheOnDemand
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeTilingScheme

public void writeTilingScheme(ITileCacheInfo pCacheInfo,
                              ITileImageInfo pTileImageInfo,
                              java.lang.String cacheDir,
                              java.lang.String layerName)
                       throws java.io.IOException,
                              AutomationException
Writes the tiling scheme for the service.

Specified by:
writeTilingScheme in interface IMapCooker2
Parameters:
pCacheInfo - A reference to a com.esri.arcgis.carto.ITileCacheInfo (in)
pTileImageInfo - A reference to a com.esri.arcgis.carto.ITileImageInfo (in)
cacheDir - The cacheDir (in)
layerName - The layerName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

updateMapServerCacheScales

public void updateMapServerCacheScales(IDoubleArray pScales)
                                throws java.io.IOException,
                                       AutomationException
Updates Map Server's Cache Scales.

Specified by:
updateMapServerCacheScales in interface IMapCooker2
Parameters:
pScales - A reference to a com.esri.arcgis.system.IDoubleArray (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteByExtent

public void deleteByExtent(IMap pMap,
                           ILayer pLayer,
                           IEnvelope pExtent,
                           ILongArray pLevels,
                           ITrackCancel pTrackCancel)
                    throws java.io.IOException,
                           AutomationException
Deletes cache for a given layer within a given extent.

Specified by:
deleteByExtent in interface IMapCooker2
Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
pLevels - A reference to a com.esri.arcgis.system.ILongArray (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

updateByGeometry

public void updateByGeometry(IMap pMap,
                             ILayer pLayer,
                             IDisplay pDisplay,
                             IGeometry pGeometry,
                             ILongArray pLevels,
                             int updateMode,
                             ITrackCancel pTrackCancel)
                      throws java.io.IOException,
                             AutomationException
Deletes cache for a given layer within a given extent.

Specified by:
updateByGeometry in interface IMapCooker2
Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pDisplay - A reference to a com.esri.arcgis.display.IDisplay (in)
pGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
pLevels - A reference to a com.esri.arcgis.system.ILongArray (in)
updateMode - A com.esri.arcgis.carto.esriMapCacheUpdateMode constant (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStatusTileCount

public void getStatusTileCount(int[] pTileCount)
                        throws java.io.IOException,
                               AutomationException
number of tiles processed in the current job

Specified by:
getStatusTileCount in interface IMapCooker2
Parameters:
pTileCount - The pTileCount (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCacheStorageInfo

public ICacheStorageInfo getCacheStorageInfo()
                                      throws java.io.IOException,
                                             AutomationException
The map cache storage info.

Specified by:
getCacheStorageInfo in interface IMapCooker3
Returns:
A reference to a com.esri.arcgis.carto.ICacheStorageInfo
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCacheStorageInfoByRef

public void setCacheStorageInfoByRef(ICacheStorageInfo ppInfo)
                              throws java.io.IOException,
                                     AutomationException
The map cache storage info.

Specified by:
setCacheStorageInfoByRef in interface IMapCooker3
Parameters:
ppInfo - A reference to a com.esri.arcgis.carto.ICacheStorageInfo (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCacheDatasetInfo

public ICacheDatasetInfo getCacheDatasetInfo()
                                      throws java.io.IOException,
                                             AutomationException
The map cache dataset info.

Specified by:
getCacheDatasetInfo in interface IMapCooker3
Returns:
A reference to a com.esri.arcgis.carto.ICacheDatasetInfo
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCacheDatasetInfoByRef

public void setCacheDatasetInfoByRef(ICacheDatasetInfo ppInfo)
                              throws java.io.IOException,
                                     AutomationException
The map cache dataset info.

Specified by:
setCacheDatasetInfoByRef in interface IMapCooker3
Parameters:
ppInfo - A reference to a com.esri.arcgis.carto.ICacheDatasetInfo (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeTilingSchemeEx

public void writeTilingSchemeEx(ITileCacheInfo pCacheInfo,
                                ITileImageInfo pTileImageInfo,
                                ICacheStorageInfo pCacheStorageInfo,
                                ICacheDatasetInfo pCacheDatasetInfo,
                                java.lang.String cacheDir,
                                java.lang.String layerName)
                         throws java.io.IOException,
                                AutomationException
Writes the tiling scheme for the service.

Specified by:
writeTilingSchemeEx in interface IMapCooker3
Parameters:
pCacheInfo - A reference to a com.esri.arcgis.carto.ITileCacheInfo (in)
pTileImageInfo - A reference to a com.esri.arcgis.carto.ITileImageInfo (in)
pCacheStorageInfo - A reference to a com.esri.arcgis.carto.ICacheStorageInfo (in)
pCacheDatasetInfo - A reference to a com.esri.arcgis.carto.ICacheDatasetInfo (in)
cacheDir - The cacheDir (in)
layerName - The layerName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

cleanUPState

public void cleanUPState(java.lang.Object pMapOrMapServerInfo,
                         java.lang.Object pLayerOrMapLayerInfo,
                         IGeometry pGeometry,
                         ILongArray pLevels,
                         ITrackCancel pTrackCancel)
                  throws java.io.IOException,
                         AutomationException
Cleans up the state of current caching job.

Specified by:
cleanUPState in interface IMapCooker3
Parameters:
pMapOrMapServerInfo - A reference to another Object (IUnknown) (in)
pLayerOrMapLayerInfo - A reference to another Object (IUnknown) (in)
pGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
pLevels - A reference to a com.esri.arcgis.system.ILongArray (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.