wt.feedback
Class ProgressCountFeedback

java.lang.Object
  extended bywt.feedback.ProgressCountFeedback
All Implemented Interfaces:
Externalizable, MethodFeedback, Serializable

public class ProgressCountFeedback
extends Object
implements MethodFeedback, Externalizable

Feedback object to carry progress count values to client. This class can be used by server-side methods to push progress count values to a client while an operation is being performed.

This class implements Externalizable as a performance improvement over Serializable.

Supported API: true
Extendable: true

See Also:
Serialized Form

Field Summary
private  int progressCount
           
(package private) static long serialVersionUID
           
private static String versionID
           
 
Constructor Summary
ProgressCountFeedback()
          Public no-arg constructor required by Externalizable.
ProgressCountFeedback(int progressCount)
          Construct a new StatusFeedback object to carry the given status string.
 
Method Summary
 void execute()
          Perform feedback operation in client.
 void readExternal(ObjectInput input_stream)
          Called during marshaling on the client side.
 void writeExternal(ObjectOutput output_stream)
          Called during marshaling on the server side.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

progressCount

private int progressCount
Constructor Detail

ProgressCountFeedback

public ProgressCountFeedback()
Public no-arg constructor required by Externalizable. This constructor is only used on the client-side when receiving the object.

Supported API: true


ProgressCountFeedback

public ProgressCountFeedback(int progressCount)
Construct a new StatusFeedback object to carry the given status string.

Supported API: true

Method Detail

execute

public void execute()
Perform feedback operation in client. This method is automatically invoked when the feedback is received in the client's RMI reply marshalling stream. If the calling thread is an instance of WTThread, the thread's progress counter property is set to this objects counter value.

Supported API: true

Specified by:
execute in interface MethodFeedback

readExternal

public void readExternal(ObjectInput input_stream)
                  throws IOException
Called during marshaling on the client side.

Supported API: true

Specified by:
readExternal in interface Externalizable
Throws:
IOException

writeExternal

public void writeExternal(ObjectOutput output_stream)
                   throws IOException
Called during marshaling on the server side.

Supported API: true

Specified by:
writeExternal in interface Externalizable
Throws:
IOException