com.esri.arcgis.carto
Class ImageCooker

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

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

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

Description 'ImageCooker 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.IImageCooker
IID, IIDc254d4a2_97b2_469e_b463_f51811f4b4cf, xxDummy
 
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
 
Constructor Summary
ImageCooker()
          Constructs a ImageCooker using ArcGIS Engine.
ImageCooker(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ImageCooker theImageCooker = (ImageCooker) 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 clear(IEnvelope pExtent, ITrackCancel pTrackCancel)
          Clears cache tiles with a given extent.
 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, IImageServer pImageServer)
          Connects an image server object to its cache location.
 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.
 java.lang.String getCacheDirectory(ILayer pLayer)
          Gets cache directory for a given layer.
 void getCacheDirectory(java.lang.String[] pCacheDir)
          Gets the cache directory/location.
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.
 double getMaximumImageCellsize()
          The maximum source image cellsize below which data are available.
 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.
 IName getServerObjectName()
          The ArcGIS server object to run the image cooker.
 void getStatusTileCount(int[] pTileCount)
          number of tiles processed in the current job
 int getThreadCount()
          The number of Image Cooker instances for building tile cache.
 byte[] getTile(ILayer pLayer, int level, int row, int column)
          Gets a tile for a given tile location from a given layer.
 byte[] getTile(int level, int row, int column)
          Gets a tile at a given LOD, and column and row location.
 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 putTile(int level, int row, int column, byte[] ppTile)
          Puts a tile at a given LOD, and column and row location.
 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 ImageCooker.
 void setAntialiasing(boolean pAntialiasing)
          Indicates if antialiasing should be used.
 void setCacheOnDemand(boolean pCacheOnDemand)
          Indicates if the service is cached on demand.
 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 setMaximumImageCellsize(double pMaxPS)
          The maximum source image cellsize below which data are available.
 void setMaxTileCount(int pNumTiles)
          The maximum number of map tiles to be generated.
 void setPath(java.lang.String pPath)
          The map cache path.
 void setServerObjectNameByRef(IName ppName)
          The ArcGIS server object to run the image cooker.
 void setThreadCount(int pThreadCount)
          The number of Image Cooker instances for building tile cache.
 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(IImageServer pImageServer, IEnvelope pExtent, ILongArray pLevels, int updateMode, ITrackCancel pTrackCancel)
          Updates cache within a given extent.
 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(IImageServer pImageServer, IGeometry pGeometry, ILongArray pLevels, int updateMode, ITrackCancel pTrackCancel)
          Updates cache within an area of interest defined by a given geometry.
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCooker

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

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

ImageCooker

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

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

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 ImageCooker.

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

connect

public void connect(java.lang.String location,
                    IImageServer pImageServer)
             throws java.io.IOException,
                    AutomationException
Connects an image server object to its cache location.

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

clear

public void clear(IEnvelope pExtent,
                  ITrackCancel pTrackCancel)
           throws java.io.IOException,
                  AutomationException
Clears cache tiles with a given extent.

Specified by:
clear in interface IImageCooker
Parameters:
pExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (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.

getTile

public byte[] getTile(int level,
                      int row,
                      int column)
               throws java.io.IOException,
                      AutomationException
Gets a tile at a given LOD, and column and row location.

Specified by:
getTile in interface IImageCooker
Parameters:
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(int level,
                    int row,
                    int column,
                    byte[] ppTile)
             throws java.io.IOException,
                    AutomationException
Puts a tile at a given LOD, and column and row location.

Specified by:
putTile in interface IImageCooker
Parameters:
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 void getCacheDirectory(java.lang.String[] pCacheDir)
                       throws java.io.IOException,
                              AutomationException
Gets the cache directory/location.

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

update

public void update(IImageServer pImageServer,
                   IEnvelope pExtent,
                   ILongArray pLevels,
                   int updateMode,
                   ITrackCancel pTrackCancel)
            throws java.io.IOException,
                   AutomationException
Updates cache within a given extent.

Specified by:
update in interface IImageCooker
Parameters:
pImageServer - A reference to a com.esri.arcgis.carto.IImageServer (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.

updateByGeometry

public void updateByGeometry(IImageServer pImageServer,
                             IGeometry pGeometry,
                             ILongArray pLevels,
                             int updateMode,
                             ITrackCancel pTrackCancel)
                      throws java.io.IOException,
                             AutomationException
Updates cache within an area of interest defined by a given geometry.

Specified by:
updateByGeometry in interface IImageCooker
Parameters:
pImageServer - A reference to a com.esri.arcgis.carto.IImageServer (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.

getThreadCount

public int getThreadCount()
                   throws java.io.IOException,
                          AutomationException
The number of Image Cooker instances for building tile cache.

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

setThreadCount

public void setThreadCount(int pThreadCount)
                    throws java.io.IOException,
                           AutomationException
The number of Image Cooker instances for building tile cache.

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

getMaximumImageCellsize

public double getMaximumImageCellsize()
                               throws java.io.IOException,
                                      AutomationException
The maximum source image cellsize below which data are available.

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

setMaximumImageCellsize

public void setMaximumImageCellsize(double pMaxPS)
                             throws java.io.IOException,
                                    AutomationException
The maximum source image cellsize below which data are available.

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

getServerObjectName

public IName getServerObjectName()
                          throws java.io.IOException,
                                 AutomationException
The ArcGIS server object to run the image cooker.

Specified by:
getServerObjectName in interface IImageCooker
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setServerObjectNameByRef

public void setServerObjectNameByRef(IName ppName)
                              throws java.io.IOException,
                                     AutomationException
The ArcGIS server object to run the image cooker.

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

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.