|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesraster.DrLoader
public class DrLoader
A distributed raster catalog loader.
The DrLoader object provides functions to load raster datasets or a directory of raster datasets to a raster catalog, it is designed for ArcGIS server environment where there are many containers, and DrLoader spawns its loads to all the worker machines to achieve parallel loading effects. Parallel loading from multiple clients to a raster catalog improves loading performance tremendously.
While loading rasters with transformation and/or spatial reference, options are available for either applying the transformation to the raster or keeping it as a separate xform for the output raster dataset, if chosen, the rasters can also be projected on-the-fly if the raster has a different spatial reference from the raster column of the raster catalog.
Constructor Summary | |
---|---|
DrLoader()
Constructs a DrLoader using ArcGIS Engine. |
|
DrLoader(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. DrLoader theDrLoader = (DrLoader) obj; |
Method Summary | |
---|---|
void |
cancel()
Cancels loading. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
String |
getInvalidDatasets()
The current list of semicolon delimited failed dataset names. |
IErrorInfo |
getLastError()
The last loading error. |
IRasterCatalogLoader |
getRasterCatalogLoader()
The raster catalog loader to be distributed. |
String |
getServerName()
The ArcGIS server name to host loaders. |
void |
getStats(String[] pName,
double[] pMillis)
Gets the current loading stats. |
int |
getThreadHandle()
Gets the loading thread handle. |
int |
hashCode()
the hashcode for this object |
boolean |
isBusy()
Indicates if the loader is currently busy. |
void |
load(String catalog,
String directory)
Loads all datasets in a directory into a given raster catalog. |
void |
loadDatasets(String catalog,
String namelist)
Loads all datasets in a name list into a given raster catalog. |
void |
setRasterCatalogLoaderByRef(IRasterCatalogLoader ppLoader)
The raster catalog loader to be distributed. |
void |
setServerName(String pServerName)
The ArcGIS server name to host loaders. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public DrLoader() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic DrLoader(Object obj) throws IOException
DrLoader theDrLoader = (DrLoader) obj;
obj
to DrLoader
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getServerName() throws IOException, AutomationException
ServerName is the name of the ArcGIS server machine that hosts the loaders.
getServerName
in interface IDrLoader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setServerName(String pServerName) throws IOException, AutomationException
Set the ArcGIS server machine name.
setServerName
in interface IDrLoader
pServerName
- The pServerName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterCatalogLoader getRasterCatalogLoader() throws IOException, AutomationException
The RasterCatalogLoader to be distributed among the available ArcGIS containers. The storage parameters can be specified for the loader to instruct how the data will be stored in the geodatabase, also whether the data will be transformed or projected can be set.
getRasterCatalogLoader
in interface IDrLoader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRasterCatalogLoaderByRef(IRasterCatalogLoader ppLoader) throws IOException, AutomationException
setRasterCatalogLoaderByRef
in interface IDrLoader
ppLoader
- A reference to a com.esri.arcgis.datasourcesraster.IRasterCatalogLoader (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getInvalidDatasets() throws IOException, AutomationException
Get the list of the raster dataset names that failed to load to the raster catalog. The list is delimited by new line.
getInvalidDatasets
in interface IDrLoader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isBusy() throws IOException, AutomationException
Get the status of the loader, whether it is in use or not.
isBusy
in interface IDrLoader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IErrorInfo getLastError() throws IOException, AutomationException
getLastError
in interface IDrLoader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(String catalog, String directory) throws IOException, AutomationException
Perform the loading of raster datasets to the raster catalog.
load
in interface IDrLoader
catalog
- The catalog (in)directory
- The directory (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void loadDatasets(String catalog, String namelist) throws IOException, AutomationException
Load a list of raster datasets to the raster catalog, the list contains raster dataset with full pathname and it is delimited by newline.
loadDatasets
in interface IDrLoader
catalog
- The catalog (in)namelist
- The namelist (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void cancel() throws IOException, AutomationException
Cancel the loading operation.
cancel
in interface IDrLoader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getStats(String[] pName, double[] pMillis) throws IOException, AutomationException
Get the status of the loading performance, with the raster dataset name and time used to load it to the raster catalog.
getStats
in interface IDrLoader
pName
- The pName (out: use single element array)pMillis
- The pMillis (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getThreadHandle() throws IOException, AutomationException
Get the handle of the loader.
getThreadHandle
in interface IDrLoader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |