com.esri.arcgis.addinframework
Class IThreadingServicesProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.addinframework.IThreadingServicesProxy
All Implemented Interfaces:
IThreadingServices, Externalizable, Serializable

public class IThreadingServicesProxy
extends com.esri.arcgis.interop.Dispatch
implements IThreadingServices, Serializable

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IThreadingServicesProxy()
           
  IThreadingServicesProxy(Object obj)
           
protected IThreadingServicesProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 IThreadPool createPool(IThreadPoolImpl pWorker, int minThreads, int maxThreads, int priority)
          Creates a worker thread pool.
 IThreadPool createPoolEx(IThreadPoolImpl pWorker, int minThreads, int maxThreads, int priority, int flags)
          Creates a worker thread pool.
 int getGUIThreadID()
          Returns the GUI thread ID.
 void getShutdownComplete()
          Returns an event which will be signaled when the threading services have completely uninitialized.
 int getTLSValue(String valueName)
          Get user defined thread local value for the calling thread.
 void isCanceled()
          Get thread local cancellation state.
 void removeListener(String iidStr, Object theListener)
           
 void setTLSValue(String valueName, int pValue)
          Set user defined thread local value for the calling thread.
 void shutdown()
          Signals the threading services to cancel all requests and terminate.
 void updateStatus(String status)
          Update thread local status.
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IThreadingServicesProxy

public IThreadingServicesProxy()

IThreadingServicesProxy

public IThreadingServicesProxy(Object obj)
                        throws IOException
Throws:
IOException

IThreadingServicesProxy

protected IThreadingServicesProxy(Object obj,
                                  String iid)
                           throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

createPool

public IThreadPool createPool(IThreadPoolImpl pWorker,
                              int minThreads,
                              int maxThreads,
                              int priority)
                       throws IOException,
                              AutomationException
Creates a worker thread pool.

Specified by:
createPool in interface IThreadingServices
Parameters:
pWorker - A reference to a com.esri.arcgis.addinframework.IThreadPoolImpl (in)
minThreads - The minThreads (in)
maxThreads - The maxThreads (in)
priority - A com.esri.arcgis.addinframework.esriThreadPoolPriority constant (in)
Returns:
A reference to a com.esri.arcgis.addinframework.IThreadPool
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGUIThreadID

public int getGUIThreadID()
                   throws IOException,
                          AutomationException
Returns the GUI thread ID.

Specified by:
getGUIThreadID in interface IThreadingServices
Returns:
The pThreadID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isCanceled

public void isCanceled()
                throws IOException,
                       AutomationException
Get thread local cancellation state.

Specified by:
isCanceled in interface IThreadingServices
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

updateStatus

public void updateStatus(String status)
                  throws IOException,
                         AutomationException
Update thread local status.

Specified by:
updateStatus in interface IThreadingServices
Parameters:
status - The status (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTLSValue

public int getTLSValue(String valueName)
                throws IOException,
                       AutomationException
Get user defined thread local value for the calling thread.

Specified by:
getTLSValue in interface IThreadingServices
Parameters:
valueName - The valueName (in)
Returns:
The ppValue (A COM typedef)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTLSValue

public void setTLSValue(String valueName,
                        int pValue)
                 throws IOException,
                        AutomationException
Set user defined thread local value for the calling thread.

Specified by:
setTLSValue in interface IThreadingServices
Parameters:
valueName - The valueName (in)
pValue - The pValue (A COM typedef) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

shutdown

public void shutdown()
              throws IOException,
                     AutomationException
Signals the threading services to cancel all requests and terminate.

Specified by:
shutdown in interface IThreadingServices
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getShutdownComplete

public void getShutdownComplete()
                         throws IOException,
                                AutomationException
Returns an event which will be signaled when the threading services have completely uninitialized.

Specified by:
getShutdownComplete in interface IThreadingServices
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createPoolEx

public IThreadPool createPoolEx(IThreadPoolImpl pWorker,
                                int minThreads,
                                int maxThreads,
                                int priority,
                                int flags)
                         throws IOException,
                                AutomationException
Creates a worker thread pool.

Specified by:
createPoolEx in interface IThreadingServices
Parameters:
pWorker - A reference to a com.esri.arcgis.addinframework.IThreadPoolImpl (in)
minThreads - The minThreads (in)
maxThreads - The maxThreads (in)
priority - A com.esri.arcgis.addinframework.esriThreadPoolPriority constant (in)
flags - A com.esri.arcgis.addinframework.esriThreadPoolFlags constant (in)
Returns:
A reference to a com.esri.arcgis.addinframework.IThreadPool
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.