com.sun.enterprise.connectors.work
Class WorkManagerProxy

java.lang.Object
  extended by com.sun.enterprise.connectors.work.WorkManagerProxy
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, WorkManager

public class WorkManagerProxy
extends java.lang.Object
implements WorkManager, java.io.Externalizable

Proxy for WorkManager.
This implementation is Serializable(Externalizable) such that RAR implementation can use it safely in Serialization mandated scenarios

Author:
Jagadish Ramu
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.resource.spi.work.WorkManager
IMMEDIATE, INDEFINITE, UNKNOWN
 
Constructor Summary
WorkManagerProxy()
           
WorkManagerProxy(WorkManager wm, java.lang.String moduleName)
           
 
Method Summary
 void doWork(Work work)
           
 void doWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 void readExternal(java.io.ObjectInput in)
           
 void scheduleWork(Work work)
           
 void scheduleWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener)
           
 long startWork(Work work)
           
 long startWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkManagerProxy

public WorkManagerProxy(WorkManager wm,
                        java.lang.String moduleName)

WorkManagerProxy

public WorkManagerProxy()
Method Detail

doWork

public void doWork(Work work)
            throws WorkException
Specified by:
doWork in interface WorkManager
Throws:
WorkException
See Also:
WorkManager

doWork

public void doWork(Work work,
                   long startTimeout,
                   ExecutionContext executionContext,
                   WorkListener workListener)
            throws WorkException
Specified by:
doWork in interface WorkManager
Throws:
WorkException
See Also:
WorkManager

startWork

public long startWork(Work work)
               throws WorkException
Specified by:
startWork in interface WorkManager
Throws:
WorkException
See Also:
WorkManager

startWork

public long startWork(Work work,
                      long startTimeout,
                      ExecutionContext executionContext,
                      WorkListener workListener)
               throws WorkException
Specified by:
startWork in interface WorkManager
Throws:
WorkException
See Also:
WorkManager

scheduleWork

public void scheduleWork(Work work)
                  throws WorkException
Specified by:
scheduleWork in interface WorkManager
Throws:
WorkException
See Also:
WorkManager

scheduleWork

public void scheduleWork(Work work,
                         long startTimeout,
                         ExecutionContext executionContext,
                         WorkListener workListener)
                  throws WorkException
Specified by:
scheduleWork in interface WorkManager
Throws:
WorkException
See Also:
WorkManager

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException
See Also:
Externalizable

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException
See Also:
Externalizable

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2012 GlassFish Community. All Rights Reserved.