Package wt.feedback

Class ProgressCountFeedback

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

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:
  • Constructor Details

    • 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
      Parameters:
      status - the status message
  • Method Details

    • 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