|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.globecore.GlobeServer
public class GlobeServer
A Globe Server class that serves Globe Tiles.
The GlobeServer component provides programmatic access to the contents of a Globe document on disk, and serves globe data tiles of the layers in the 3dd document. GlobeServer is an efficient means of serving globe optimized data for web services and Lan access by globe clients.
GlobeServer is a coarse-grained ArcObjects component allowing users to display and query ArcGIS Globe layers bound to a GlobeServer object. GlobeServer can be used in either desktop, intranet (LAN/WAN), or internet development environments. In a server environment, GlobeServer objects can be accessed via Distributed COM (DCOM) over a TCP/IP connection (Intranet) or via SOAP/XML over an HTTP connection (Internet). In order to make GlobeServer objects available over the Internet, you will need to publish the GlobeServer object to a web catalog using the Web Service Publisher application.
In a desktop environment, GlobeServer objects can be created in-process within your application.
GlobeServer objects are run within ArcGIS Server. When running in ArcGIS Server, GlobeServer objects can be accessed via the Server API over TCP/IP (intranet), or can be accessed over HTTP using SOAP/XML and a binnary messaging protocol. The default and prefered method of communication between ArcGIS GlobeServer and ArcGlobe desktop application is via the binnary messaging protocol.
ArcGIS Desktop and ArcGIS Engine developers can also consume GlobeServer objects via the Server API. The Globeserver object always works in a stateless manner. That means, unlike MapServer objects, GlobeServer Objects are always exposed as pooled objects and you can only use them to gain access to finer grained ArcObjects. However note that you will not be able to make permanet changes as a non-pooled mode of operation is not supported by the GlobeServer Objects.
You can use GISServerConnection to connect to the GIS server, or you can obtain a reference to the ServerObjectManager through GISClient (TCP/IP connection only).
The GlobeServer coclass contains several interfaces with basic functions for displaying (IGlobeServer) and querying (IGlobeServer, IGlobeServerObjects and IGlobeServerSetup) a Globe layer.
Field Summary |
---|
Fields inherited from interface com.esri.arcgis.system.IRequestHandler |
---|
IID, IID46a0e2ea_3b64_4a46_bd78_88a1660f35bb, xxDummy |
Fields inherited from interface com.esri.arcgis.system.IObjectActivate |
---|
IID, IIDe3b78022_143e_4e61_9099_ed319ec061e7, xxDummy |
Constructor Summary | |
---|---|
GlobeServer()
Constructs a GlobeServer using ArcGIS Engine. |
|
GlobeServer(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GlobeServer theGlobeServer = (GlobeServer) obj; |
Method Summary | |
---|---|
void |
activate()
Activates the object. |
void |
construct(IPropertySet props)
Two phase object construction. |
void |
deactivate()
Deactivates the object. |
boolean |
equals(Object o)
Compare this object with another |
IGlobeServerFindResults |
find(int layerID,
String searchString,
boolean contains,
String searchFields)
Returns a Globe Server Find Result object that contain the given search string. |
IServerObjectExtension |
findExtensionByCLSID(String cLSID)
Returns a server object extension found using a string representation of its class ID. |
IServerObjectExtension |
findExtensionByTypeName(String name)
Returns a server object extension found using its type name. |
byte[] |
getAnimation()
Gets the animation stream. |
ICacheControlInfo |
getCacheControlInfo()
Returns cache related properties of the a GlobeServer. |
String |
getCacheName(int layerID)
Gets the virtual cache directory for a given layer. |
static String |
getClsid()
getClsid. |
byte[] |
getConfig(int layerID)
Gets the configuration file from a given layer. |
byte[] |
getConfiguration(int layerID)
Gets all the configuration and MQT files from a given layer. |
String |
getConfigurationName()
Name of the server object configuration that defines the server object. |
IGlobeDisplay |
getDisplay()
The display used by the Globe Server. |
ILayer |
getLayer(int layerID)
The layer used by the Globe Server. |
int |
getLayerCount(int parentID)
The number of layers in the server under a certain parent. |
IGlobeLayerInfos |
getLayerInfos(int parentID)
A collection of Globe Layer Info objects. |
IGlobeLegendInfos |
getLegendInfos(ILongArray layerIDs)
Returns a collection of Globe Legend Info objects for the specified layers. |
byte[] |
getMQT(int layerID,
int face)
Gets the MQT for a given face from a given layer. |
String |
getPhysicalCacheDirectory()
The physical directory for Globe cache. |
String |
getPhysicalOutputDirectory()
The physical directory for output files. |
String |
getSOMPhysicalCacheDirectory()
The SOM physical directory for Globe cache. |
String |
getSOMVirtualCacheDirectory()
The SOM virtual directory for Globe cache. |
byte[] |
getSymbols(int layerID,
ILongArray pSymbolIDs)
Gets the symbols with given IDs. |
byte[] |
getTextures(int layerID,
ILongArray pTextureIDs)
Gets the textures with given IDs. |
byte[] |
getTexturesEx(int layerID,
ILongArray pTextureIDs,
boolean getDDT)
Gets the textures with given IDs. |
byte[] |
getTile(int layerID,
int face,
int level,
int row,
int column)
Gets a tile for a given tile location from a given layer. |
String |
getTypeName()
Type of the server object (MapServer or GeocodeServer). |
float |
getVersion()
The Globe Server version number. |
String |
getVirtualCacheDirectory()
The virtual directory for Globe cache. |
String |
getVirtualCacheDirectory(int layerID)
Gets the virtual cache directory for a given layer. |
String |
getVirtualOutputDirectory()
The virtual directory for output files. |
byte[] |
handleBinaryRequest(byte[] request)
Handles a binary request. |
byte[] |
handleBinaryRequest2(String capabilities,
byte[] request)
Handles a binary request with explicit capabilities. |
String |
handleStringRequest(String capabilities,
String request)
Handles a SOAP string request. |
int |
hashCode()
the hashcode for this object |
IGlobeServerIdentifyResults |
identify(int layerID,
int oid,
IGeometry searchShape)
Returns a Globe Server Identify Result object at the given location. |
void |
init(String docFile)
Initializes the server from a globe document path. |
void |
initFromLayer(String layerFile)
Initializes the server from from a layer file. |
void |
initLogging(ILog log)
Initializes an object with a log. |
void |
setPhysicalCacheDirectory(String pPath)
The physical directory for Globe cache. |
void |
setPhysicalOutputDirectory(String pPath)
The physical directory for output files. |
void |
setSOMPhysicalCacheDirectory(String pPath)
The SOM physical directory for Globe cache. |
void |
setVirtualCacheDirectory(String pPath)
The virtual directory for Globe cache. |
void |
setVirtualOutputDirectory(String pPath)
The virtual directory for output files. |
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 GlobeServer() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GlobeServer(Object obj) throws IOException
GlobeServer theGlobeServer = (GlobeServer) obj;
obj
to GlobeServer
.
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 void construct(IPropertySet props) throws IOException, AutomationException
construct
in interface IObjectConstruct
props
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] handleBinaryRequest(byte[] request) throws IOException, AutomationException
handleBinaryRequest
in interface IRequestHandler
request
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String handleStringRequest(String capabilities, String request) throws IOException, AutomationException
handleStringRequest
in interface IRequestHandler
capabilities
- The capabilities (in)request
- The request (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] handleBinaryRequest2(String capabilities, byte[] request) throws IOException, AutomationException
handleBinaryRequest2
in interface IRequestHandler2
capabilities
- The capabilities (in)request
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void initLogging(ILog log) throws IOException, AutomationException
initLogging
in interface ILogSupport
log
- A reference to a com.esri.arcgis.system.ILog (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void activate() throws IOException, AutomationException
activate
in interface IObjectActivate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deactivate() throws IOException, AutomationException
deactivate
in interface IObjectActivate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public float getVersion() throws IOException, AutomationException
Returns the GlobeServer Version.
getVersion
in interface IGlobeServer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getLayerCount(int parentID) throws IOException, AutomationException
getLayerCount
in interface IGlobeServer
parentID
- The parentID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGlobeLayerInfos getLayerInfos(int parentID) throws IOException, AutomationException
getLayerInfos
in interface IGlobeServer
parentID
- The parentID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGlobeLegendInfos getLegendInfos(ILongArray layerIDs) throws IOException, AutomationException
getLegendInfos
in interface IGlobeServer
layerIDs
- A reference to a com.esri.arcgis.system.ILongArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getConfig(int layerID) throws IOException, AutomationException
getConfig
in interface IGlobeServer
layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getMQT(int layerID, int face) throws IOException, AutomationException
getMQT
in interface IGlobeServer
layerID
- The layerID (in)face
- The face (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getConfiguration(int layerID) throws IOException, AutomationException
getConfiguration
in interface IGlobeServer
layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getTile(int layerID, int face, int level, int row, int column) throws IOException, AutomationException
getTile
in interface IGlobeServer
layerID
- The layerID (in)face
- The face (in)level
- The level (in)row
- The row (in)column
- The column (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getSymbols(int layerID, ILongArray pSymbolIDs) throws IOException, AutomationException
getSymbols
in interface IGlobeServer
layerID
- The layerID (in)pSymbolIDs
- A reference to a com.esri.arcgis.system.ILongArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getTextures(int layerID, ILongArray pTextureIDs) throws IOException, AutomationException
getTextures
in interface IGlobeServer
layerID
- The layerID (in)pTextureIDs
- A reference to a com.esri.arcgis.system.ILongArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getAnimation() throws IOException, AutomationException
getAnimation
in interface IGlobeServer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGlobeServerIdentifyResults identify(int layerID, int oid, IGeometry searchShape) throws IOException, AutomationException
Returns GlobeServerIdentifyResults object by taking in the LayerId to be identified, an Object ID and the geometry of the identify area, delineated by the geometry object. Note, a value of -1 should be passed as the OID value to return all objects found within the identify area.
identify
in interface IGlobeServer
layerID
- The layerID (in)oid
- The oid (in)searchShape
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGlobeServerFindResults find(int layerID, String searchString, boolean contains, String searchFields) throws IOException, AutomationException
Returns GlobeServerFindResults object by taking in the LayerId used to perform Find on , a search string - representing the value to be searched, a boolen defineing wheter to search for exact match or results that contain the defind string, and a string defining which fields to search on the layer. Note passing an empty string For SearchFields will search in all available Fields.
find
in interface IGlobeServer
layerID
- The layerID (in)searchString
- The searchString (in)contains
- The contains (in)searchFields
- The searchFields (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getVirtualCacheDirectory(int layerID) throws IOException, AutomationException
getVirtualCacheDirectory
in interface IGlobeServer
layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCacheName(int layerID) throws IOException, AutomationException
getCacheName
in interface IGlobeServer
layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICacheControlInfo getCacheControlInfo() throws IOException, AutomationException
getCacheControlInfo
in interface IGlobeServer2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getTexturesEx(int layerID, ILongArray pTextureIDs, boolean getDDT) throws IOException, AutomationException
getTexturesEx
in interface IGlobeServer3
layerID
- The layerID (in)pTextureIDs
- A reference to a com.esri.arcgis.system.ILongArray (in)getDDT
- The getDDT (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILayer getLayer(int layerID) throws IOException, AutomationException
getLayer
in interface IGlobeServerObjects
layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGlobeDisplay getDisplay() throws IOException, AutomationException
getDisplay
in interface IGlobeServerObjects
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void init(String docFile) throws IOException, AutomationException
init
in interface IGlobeServerSetup
docFile
- The docFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void initFromLayer(String layerFile) throws IOException, AutomationException
initFromLayer
in interface IGlobeServerSetup
layerFile
- The layerFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPhysicalOutputDirectory(String pPath) throws IOException, AutomationException
setPhysicalOutputDirectory
in interface IGlobeServerSetup
pPath
- The pPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getPhysicalOutputDirectory() throws IOException, AutomationException
getPhysicalOutputDirectory
in interface IGlobeServerSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setVirtualOutputDirectory(String pPath) throws IOException, AutomationException
setVirtualOutputDirectory
in interface IGlobeServerSetup
pPath
- The pPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getVirtualOutputDirectory() throws IOException, AutomationException
getVirtualOutputDirectory
in interface IGlobeServerSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPhysicalCacheDirectory(String pPath) throws IOException, AutomationException
setPhysicalCacheDirectory
in interface IGlobeServerSetup
pPath
- The pPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getPhysicalCacheDirectory() throws IOException, AutomationException
getPhysicalCacheDirectory
in interface IGlobeServerSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSOMPhysicalCacheDirectory(String pPath) throws IOException, AutomationException
setSOMPhysicalCacheDirectory
in interface IGlobeServerSetup
pPath
- The pPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getSOMPhysicalCacheDirectory() throws IOException, AutomationException
getSOMPhysicalCacheDirectory
in interface IGlobeServerSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setVirtualCacheDirectory(String pPath) throws IOException, AutomationException
setVirtualCacheDirectory
in interface IGlobeServerSetup
pPath
- The pPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getVirtualCacheDirectory() throws IOException, AutomationException
getVirtualCacheDirectory
in interface IGlobeServerSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getSOMVirtualCacheDirectory() throws IOException, AutomationException
getSOMVirtualCacheDirectory
in interface IGlobeServerSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getConfigurationName() throws IOException, AutomationException
getConfigurationName
in interface IServerObject
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getTypeName() throws IOException, AutomationException
getTypeName
in interface IServerObject
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServerObjectExtension findExtensionByCLSID(String cLSID) throws IOException, AutomationException
findExtensionByCLSID
in interface IServerObjectExtensionManager
cLSID
- The cLSID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServerObjectExtension findExtensionByTypeName(String name) throws IOException, AutomationException
findExtensionByTypeName
in interface IServerObjectExtensionManager
name
- The name (in)
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 |