|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.server.ServerObjectManager
The ServerObjectManager object which creates ServerContext, ServerObjectConfigurationInfo and ServerObjectTypeInfo objects.
The ServerObjectManager object provides access to information about the GIS server to non-administrators, and creates ServerContexts for use by applications. Any application that runs as a user account in the agsusers user group on the ArcGIS Server can use the IGISServerConnection interface to connect to the ArcGIS Server and to get a reference to the ServerObjectManager.
A ServerContext is a reserved space within the server dedicated to a set of running objects. GIS server objects also live in a server context. When developing applications with ArcGIS server, all ArcObjects that your application creates and uses live within a server context.
IServerObjectManager,
ServerContext,
ServerObjectAdmin,
Serialized Form| Constructor Summary | |
ServerObjectManager(java.lang.Object obj)
Construct a ServerObjectManager using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
IServerContext |
createServerContext(java.lang.String configName,
java.lang.String typeName)
Gets a reference to a server context. |
boolean |
equals(java.lang.Object o)
Compare this object with another |
IServerObjectManager |
getAsIServerObjectManager()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IServerObjectManager2 |
getAsIServerObjectManager2()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IServerObjectConfigurationInfo |
getConfigurationInfo(java.lang.String name,
java.lang.String typeName)
Gets the ServerObjectConfigurationInfo for the specified Name and TypeName. |
IEnumServerObjectConfigurationInfo |
getConfigurationInfos()
An enumerator over all the GIS server's ServerObjectConfigurationInfos. |
IEnumServerObjectConfigurationInfo |
getConfigurationInfosEx(java.lang.String folderName)
An enumerator over all the ArcGIS server's ServerObjectExtensionInfos in a given folder. |
IServerObjectConfigurationStatus |
getConfigurationStatus(java.lang.String name,
java.lang.String typeName)
Get the configuration status for a server object configuration with the specified Name and TypeName. |
IEnumServerObjectExtensionTypeInfo |
getExtensionTypeInfos(java.lang.String sOTypeName)
An enumerator over all the ArcGIS server's ServerObjectExtensionTypeInfos. |
IPropertySet |
getFolderInfo(java.lang.String folderName)
Properties associated with a server configuration folder. |
IEnumBSTR |
getFolders(java.lang.String folderName)
An array of folder names in the server configuration folder. |
IEnumServerDirectoryInfo |
getServerDirectoryInfos()
An enumerator over all the GIS server's ServerDirectoryInfos. |
IPropertySet |
getSystemInfo()
The properties of the underlying system hardware and software. |
IEnumServerObjectTypeInfo |
getTypeInfos()
An enumerator over all the GIS server's ServerObjectTypeInfos. |
int |
hashCode()
the hashcode for this object |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServerObjectManager(java.lang.Object obj)
throws java.io.IOException
obj to ServerObjectManager. *
ServerObjectManager o = (ServerObjectManager)obj; // will not work
ServerObjectManager o = new ServerObjectManager(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
ServerObjectManager theServerObjectManager = (ServerObjectManager) obj;
java.io.IOException - if there are interop problems| Method Detail |
public IServerObjectManager getAsIServerObjectManager()
public IServerObjectManager2 getAsIServerObjectManager2()
public boolean equals(java.lang.Object o)
public int hashCode()
public IServerContext createServerContext(java.lang.String configName,
java.lang.String typeName)
throws java.io.IOException,
AutomationException
IServerObjectManagerThe CreateServerContext method on IServerObjectManager is used to get a reference to a context on the server. A context is a process managed by the server within which a server object runs. You can use CreateServerContext to create a context based on a server object configuration, or you can create empty contexts soley for the purpose of creating ArcObjects on the fly within the server.
When using CreateServerContext to create a context based on a server object configuration, if the server object configuration is pooled, you may get a reference to a context that is already created and running in the server. When you have completed using that context, it is important to released it explicitly by calling the ReleaseContext method on IServerContext to return it to the pool. When using CreateServerContext to create a context based on a non-pooled server object configuration, or when creating an empty context, a new context is created on the server. You still need to call ReleaseContext when you are finished using it, and the context is destroyed on the server.
As of 9.2 some of the possible values for typeName are:
createServerContext in interface IServerObjectManagerconfigName - The configName (in)typeName - The typeName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IServerObjectConfigurationInfo getConfigurationInfo(java.lang.String name,
java.lang.String typeName)
throws java.io.IOException,
AutomationException
IServerObjectManagerReturns the server configuration with the specified Name and Type as an ServerObjectConfigurationInfo object. The Info object provides information about the server object configuration required to make use of them in an application. This method will only return a ServerObjectConfigurationInfo for configurations which are started. If you call this method and specify a configuration which is not started, it will return an error.
Additional information about started server object configurations, and configurations that are not started can be accessed using the IServerObjectAdmin interface.
getConfigurationInfo in interface IServerObjectManagername - The name (in)typeName - The typeName (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumServerObjectConfigurationInfo getConfigurationInfos()
throws java.io.IOException,
AutomationException
IServerObjectManagerReturns and enumeration of the started server object configurations configured in the server as ServerObjectConfigurationInfo objects. These Info objects provide information about the server object configurations and types required to make use of them in an application.
Additional information about started server object configurations, and configurations that are not started can be accessed using the IServerObjectAdmin interface.
getConfigurationInfos in interface IServerObjectManagerjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumServerObjectTypeInfo getTypeInfos()
throws java.io.IOException,
AutomationException
IServerObjectManagerReturns and enumeration of server object types in the server as ServerObjectTypeInfo objects. These Info objects provide information about the server object types required to make use of them in an application. Additional information about server object types in the server can be accessed using the IServerObjectAdmin interface.
getTypeInfos in interface IServerObjectManagerjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumServerDirectoryInfo getServerDirectoryInfos()
throws java.io.IOException,
AutomationException
IServerObjectManagerReturns an enumeration of server directories configured in the server as ServerDirectoryInfo objects. These Info objects provide information about the server directories required to make use of them in an application. Additional information about server directories configured in the server can be accessed using the IServerObjectAdmin interface.
getServerDirectoryInfos in interface IServerObjectManagerAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IPropertySet getSystemInfo()
throws java.io.IOException,
AutomationException
IServerObjectManager2The SystemInfo property returns a PropertySet containing properties indicating the operating system name and messaeg version of the GIS server.
getSystemInfo in interface IServerObjectManager2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumServerObjectExtensionTypeInfo getExtensionTypeInfos(java.lang.String sOTypeName)
throws java.io.IOException,
AutomationException
IServerObjectManager2Retrieves an enumeration of IServerObjectTypeInfos from the ArcGIS Server system configuration (Server.cfg). The IServerObjectTypeInfo interface provides the name and description of a server object type.
getExtensionTypeInfos in interface IServerObjectManager2sOTypeName - The sOTypeName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumServerObjectConfigurationInfo getConfigurationInfosEx(java.lang.String folderName)
throws java.io.IOException,
AutomationException
IServerObjectManager2
getConfigurationInfosEx in interface IServerObjectManager2folderName - The folderName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumBSTR getFolders(java.lang.String folderName)
throws java.io.IOException,
AutomationException
IServerObjectManager2
getFolders in interface IServerObjectManager2folderName - The folderName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IPropertySet getFolderInfo(java.lang.String folderName)
throws java.io.IOException,
AutomationException
IServerObjectManager2
getFolderInfo in interface IServerObjectManager2folderName - The folderName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IServerObjectConfigurationStatus getConfigurationStatus(java.lang.String name,
java.lang.String typeName)
throws java.io.IOException,
AutomationException
IServerObjectManager2
getConfigurationStatus in interface IServerObjectManager2name - The name (in)typeName - The typeName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||