com.esri.arcgis.system
Class ServerInitializer

java.lang.Object
  extended by com.esri.arcgis.system.ServerInitializer
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class ServerInitializer
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef

Title: ServerInitializer

Description: ServerInitializer initializes ArcObjects for Java for usage in ArcGIS Server

Copyright: Copyright (c) 2003

Company: ESRI

See Also:
Serialized Form

Constructor Summary
ServerInitializer()
          Constructs the EngineInitialiser with default options.
 
Method Summary
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
           
 void init()
          Initialize ArcObjects with options set previously by calling setXxx() methods.
 void initializeServer()
          Initialize ArcObjects with options optimal for usage in a ArcGIS Server
 void initializeServer(java.lang.String domain, java.lang.String user, java.lang.String password)
          Initialize ArcObjects with options optimal for usage in a ArcGIS Server, setting the authentification to be used by default if none is specified when creating or using a ArcObjects Java component.
 void release()
           
 void release(java.lang.Object anObject)
          Release a specific reference to a COM object.
 void releaseAll()
          Release all outstanding references to COM objects.
 void releaseAllInCurrentThread()
          Tell the runtime to release all objects used in the current thread since the last 'trackObjectsInCurrentThread' call.
 void setDefault(java.lang.String domain, java.lang.String user, java.lang.String password)
          Set the authentification to be used by default if none is specified when creating or using a ArcObjects Java component.
 void setServerUsage()
          Sets the default usage for using the ArcGIS server.
 void setShutdownHook(boolean shutdownHook)
          Causes the runtime to release COM references when the JVM shuts down normally like when Ctrl- C is pressed
 void setThreadDefault(java.lang.String domain, java.lang.String user, java.lang.String password)
          Set the setThreadDefault authentification.
 void trackObjectsInCurrentThread()
          Tell the runtime to remember all objects used in the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerInitializer

public ServerInitializer()
Constructs the EngineInitialiser with default options.

Method Detail

setShutdownHook

public void setShutdownHook(boolean shutdownHook)
Causes the runtime to release COM references when the JVM shuts down normally like when Ctrl- C is pressed

Parameters:
shutdownHook - set to true if shutdownHook is to be enabled.

setServerUsage

public void setServerUsage()
Sets the default usage for using the ArcGIS server. Note that this method only sets the options for initialization, but init() method should be called to actually initialize the engine with these options


init

public void init()
Initialize ArcObjects with options set previously by calling setXxx() methods.


initializeServer

public void initializeServer()
Initialize ArcObjects with options optimal for usage in a ArcGIS Server


initializeServer

public void initializeServer(java.lang.String domain,
                             java.lang.String user,
                             java.lang.String password)
Initialize ArcObjects with options optimal for usage in a ArcGIS Server, setting the authentification to be used by default if none is specified when creating or using a ArcObjects Java component.

Parameters:
domain - - the domain to be used when authenticating using default authentification
user - - the user to be used when authenticating using default authentification
password - - the password to be used when authenticating using default authentification

setDefault

public void setDefault(java.lang.String domain,
                       java.lang.String user,
                       java.lang.String password)
Set the authentification to be used by default if none is specified when creating or using a ArcObjects Java component.

Parameters:
domain - - the domain to be used when authenticating using default authentification
user - - the user to be used when authenticating using default authentification
password - - the password to be used when authenticating using default authentification

release

public void release(java.lang.Object anObject)
Release a specific reference to a COM object.


releaseAll

public void releaseAll()
Release all outstanding references to COM objects.


releaseAllInCurrentThread

public void releaseAllInCurrentThread()
Tell the runtime to release all objects used in the current thread since the last 'trackObjectsInCurrentThread' call.


trackObjectsInCurrentThread

public void trackObjectsInCurrentThread()
Tell the runtime to remember all objects used in the current thread.


setThreadDefault

public void setThreadDefault(java.lang.String domain,
                             java.lang.String user,
                             java.lang.String password)
Set the setThreadDefault authentification.

Parameters:
domain - - the domain to be used when authenticating using default authentification
user - - the user to be used when authenticating using default authentification
password - - the password to be used when authenticating using default authentification

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef