org.ow2.jasmine.jadort.api.entities.deployment
Class ProgressBean<ProgressStateType extends ProgressState>

java.lang.Object
  extended by org.ow2.jasmine.jadort.api.entities.deployment.ProgressBean<ProgressStateType>
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ServerProgressBean, WorkerProgressBean

public abstract class ProgressBean<ProgressStateType extends ProgressState>
extends java.lang.Object
implements java.io.Serializable

Common interface for all progress beans.

Author:
Malek Chahine, Remy Bresson, S. Ali Tokmen
See Also:
Serialized Form

Constructor Summary
ProgressBean()
           
 
Method Summary
 void appendToLog(java.lang.String string)
          Append to the current deployment log
abstract  OperationStateBean.ActionState getActionState()
          Get the deployment's action state
abstract  java.lang.String getLog()
          Get the deployment log
abstract  int getProgress()
           
abstract  ProgressStateType getProgressState()
          Get the deployment's progress state
 java.lang.String getState()
          Return the getActionState() in String format : OperationStateBean.ActionState.WAITING becomes "Waiting" OperationStateBean.ActionState.RUNNING becomes "Running" OperationStateBean.ActionState.FINISHED_OK becomes "Done OK" OperationStateBean.ActionState.FINISHED_ERROR becomes "Error !"
abstract  void setActionState(OperationStateBean.ActionState actionState)
          Set the deployment's action state
abstract  void setLog(java.lang.String log)
          Set the deployment log
abstract  void setProgress(int progressPercent)
           
abstract  void setProgressState(ProgressStateType progressState)
          Set the deployment's progress state
 void setState(java.lang.String state)
          Do not use this method, needs to be here to satisfy ActionScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressBean

public ProgressBean()
Method Detail

getLog

public abstract java.lang.String getLog()
Get the deployment log

Returns:
Deployment log

setLog

public abstract void setLog(java.lang.String log)
Set the deployment log

Parameters:
log - Deployment log

appendToLog

public void appendToLog(java.lang.String string)
Append to the current deployment log

Parameters:
string - Deployment log string to append to the current log

getProgressState

public abstract ProgressStateType getProgressState()
Get the deployment's progress state

Returns:
Deployment progress state

setProgressState

public abstract void setProgressState(ProgressStateType progressState)
Set the deployment's progress state

Parameters:
progressState - Deployment progress state

getActionState

public abstract OperationStateBean.ActionState getActionState()
Get the deployment's action state

Returns:
Deployment action state

setActionState

public abstract void setActionState(OperationStateBean.ActionState actionState)
Set the deployment's action state

Parameters:
actionState - Deployment action state

getState

public java.lang.String getState()
Return the getActionState() in String format :

Returns:
getActionState() in String format.

setState

public void setState(java.lang.String state)
Do not use this method, needs to be here to satisfy ActionScript

Parameters:
state -

getProgress

public abstract int getProgress()
Returns:
The ProgressBean's progress (percents)

setProgress

public abstract void setProgress(int progressPercent)
Parameters:
progressPercent - The ProgressBean's progress (percents)


Copyright © 2009 OW2 Consortium. All Rights Reserved.