com.esri.arcgis.addinframework
Class IThreadPoolImplProxy

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

public class IThreadPoolImplProxy
extends com.esri.arcgis.interop.Dispatch
implements IThreadPoolImpl, 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
  IThreadPoolImplProxy()
           
  IThreadPoolImplProxy(Object obj)
           
protected IThreadPoolImplProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void onExecute(IRequest request)
          Called when any worker thread in the pool needs perform to work.
 void onThreadCreate()
          Called to perform onetime initialization when a worker thread is added to the pool.
 void onThreadDestroy()
          Called to perform any specialized cleanup when a worker thread is removed from the pool.
 void onUpdate(IRequest request)
          Called on the GUI thread to update any U/I status while any worker thread in the pool is executing.
 void removeListener(String iidStr, Object theListener)
           
 
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

IThreadPoolImplProxy

public IThreadPoolImplProxy()

IThreadPoolImplProxy

public IThreadPoolImplProxy(Object obj)
                     throws IOException
Throws:
IOException

IThreadPoolImplProxy

protected IThreadPoolImplProxy(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

onThreadCreate

public void onThreadCreate()
                    throws IOException,
                           AutomationException
Called to perform onetime initialization when a worker thread is added to the pool.

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

onExecute

public void onExecute(IRequest request)
               throws IOException,
                      AutomationException
Called when any worker thread in the pool needs perform to work.

Specified by:
onExecute in interface IThreadPoolImpl
Parameters:
request - A reference to a com.esri.arcgis.addinframework.IRequest (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onUpdate

public void onUpdate(IRequest request)
              throws IOException,
                     AutomationException
Called on the GUI thread to update any U/I status while any worker thread in the pool is executing.

Specified by:
onUpdate in interface IThreadPoolImpl
Parameters:
request - A reference to a com.esri.arcgis.addinframework.IRequest (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onThreadDestroy

public void onThreadDestroy()
                     throws IOException,
                            AutomationException
Called to perform any specialized cleanup when a worker thread is removed from the pool.

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