com.caucho.j2ee.deployclient
Class ProgressObjectImpl

java.lang.Object
  extended by com.caucho.j2ee.deployclient.ProgressObjectImpl
All Implemented Interfaces:
java.io.Serializable

public class ProgressObjectImpl
extends java.lang.Object
implements java.io.Serializable

Status of the progress.

See Also:
Serialized Form

Constructor Summary
ProgressObjectImpl(TargetModuleID[] targetModuleIDs)
           
 
Method Summary
 void addProgressListener(ProgressListener listener)
          Adds a listener.
 void cancel()
          Cancels the operation.
 void completed(java.lang.String message)
          Change to the running state.
 void failed(java.lang.String message)
          Change to the failed state.
 ClientConfiguration getClientConfiguration(TargetModuleID id)
          Returns the client configuration.
 DeploymentStatus getDeploymentStatus()
          Returns the status.
 TargetModuleID[] getResultTargetModuleIDs()
          Returns the target ids.
 boolean isCancelSupported()
          Returns true if cancel is supported.
 boolean isStopSupported()
          Returns true if stop is supported.
 void removeProgressListener(ProgressListener listener)
          Removes a listener.
 void stop()
          Stops the operation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProgressObjectImpl

public ProgressObjectImpl(TargetModuleID[] targetModuleIDs)
Method Detail

getDeploymentStatus

public DeploymentStatus getDeploymentStatus()
Returns the status.


getResultTargetModuleIDs

public TargetModuleID[] getResultTargetModuleIDs()
Returns the target ids.


getClientConfiguration

public ClientConfiguration getClientConfiguration(TargetModuleID id)
Returns the client configuration.


isCancelSupported

public boolean isCancelSupported()
Returns true if cancel is supported.


cancel

public void cancel()
            throws OperationUnsupportedException
Cancels the operation.

Throws:
OperationUnsupportedException

isStopSupported

public boolean isStopSupported()
Returns true if stop is supported.


stop

public void stop()
          throws OperationUnsupportedException
Stops the operation.

Throws:
OperationUnsupportedException

addProgressListener

public void addProgressListener(ProgressListener listener)
Adds a listener.


removeProgressListener

public void removeProgressListener(ProgressListener listener)
Removes a listener.


failed

public void failed(java.lang.String message)
Change to the failed state.


completed

public void completed(java.lang.String message)
Change to the running state.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object