org.ow2.jasmine.jadort.api.entities.deployment
Class ServerProgressBean

java.lang.Object
  extended by org.ow2.jasmine.jadort.api.entities.deployment.ProgressBean<ServerProgressState>
      extended by org.ow2.jasmine.jadort.api.entities.deployment.ServerProgressBean
All Implemented Interfaces:
java.io.Serializable

public class ServerProgressBean
extends ProgressBean<ServerProgressState>

Bean that represents the progress of the operations a server.

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

Constructor Summary
ServerProgressBean()
          Default ServerProgressBean constructor
ServerProgressBean(ServerBean server)
          Construct a ServerProgressBean with its associated server
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 OperationStateBean.ActionState getActionState()
          Get the deployment's action state
 java.lang.Integer getId()
          Get the ServerProgressBean id
 java.lang.String getLog()
          Get the deployment log
 java.lang.String getNewDeploymentItem()
           
 java.lang.String getOldDeploymentItem()
           
 int getProgress()
          
 ServerProgressState getProgressState()
          Get the deployment's progress state
 ServerBean getServer()
          Server getter
 java.lang.String getServerName()
          Returns the name of the server associated with this ServerProgressBean
 VMImageBean getVmImage()
          Get the VM Image to deploy
 boolean hasOldDeploymentItem()
           
 void setActionState(OperationStateBean.ActionState actionState)
          Set the deployment's action state
 void setId(java.lang.Integer id)
          Set the ServerProgressBean id
 void setLog(java.lang.String log)
          Set the deployment log
 void setNewDeploymentItem(java.lang.String newDeploymentItem)
           
 void setOldDeploymentItem(java.lang.String oldDeploymentItem)
           
 void setProgress(int progressPercent)
          
 void setProgressState(ServerProgressState serverProgressState)
          Set the deployment's progress state
 void setServer(ServerBean server)
          Change the associated server
 void setVmImage(VMImageBean vmImage)
          Set the VM Image to deploy
 java.lang.String toString()
          
 
Methods inherited from class org.ow2.jasmine.jadort.api.entities.deployment.ProgressBean
appendToLog, getState, setState
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerProgressBean

public ServerProgressBean()
Default ServerProgressBean constructor


ServerProgressBean

public ServerProgressBean(ServerBean server)
Construct a ServerProgressBean with its associated server

Parameters:
server - The server associated the deployment
Method Detail

getId

public java.lang.Integer getId()
Get the ServerProgressBean id

Returns:
the ServerProgressBean id

setId

public void setId(java.lang.Integer id)
Set the ServerProgressBean id

Parameters:
id - the ServerProgressBean id

getServer

public ServerBean getServer()
Server getter

Returns:
The associated server

setServer

public void setServer(ServerBean server)
Change the associated server

Parameters:
server - New associated server

getServerName

public java.lang.String getServerName()
Returns the name of the server associated with this ServerProgressBean

Returns:
the name of the server associated with this ServerProgressBean

getLog

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

Specified by:
getLog in class ProgressBean<ServerProgressState>
Returns:
Deployment log

setLog

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

Specified by:
setLog in class ProgressBean<ServerProgressState>
Parameters:
log - Deployment log

getOldDeploymentItem

public java.lang.String getOldDeploymentItem()
Returns:
The old deployment item. Currently, it represents either:

setOldDeploymentItem

public void setOldDeploymentItem(java.lang.String oldDeploymentItem)
Parameters:
oldDeploymentItem - The old deployment item. Currently, it represents either:

getNewDeploymentItem

public java.lang.String getNewDeploymentItem()
Returns:
The new deployment item. Currently, it represents either:

setNewDeploymentItem

public void setNewDeploymentItem(java.lang.String newDeploymentItem)
Parameters:
newDeploymentItem - The new deployment item. Currently, it represents either:

hasOldDeploymentItem

public boolean hasOldDeploymentItem()
Returns:
true if oldDeploymentItem is not null and different of newDeploymentItem, false otherwise.

getVmImage

public VMImageBean getVmImage()
Get the VM Image to deploy

Returns:
the VM Image to deploy

setVmImage

public void setVmImage(VMImageBean vmImage)
Set the VM Image to deploy

Parameters:
VMImage - the VM Image to deploy

getProgressState

public ServerProgressState getProgressState()
Get the deployment's progress state

Specified by:
getProgressState in class ProgressBean<ServerProgressState>
Returns:
Deployment progress state

setProgressState

public void setProgressState(ServerProgressState serverProgressState)
Set the deployment's progress state

Specified by:
setProgressState in class ProgressBean<ServerProgressState>
Parameters:
serverProgressState - Deployment progress state

getActionState

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

Specified by:
getActionState in class ProgressBean<ServerProgressState>
Returns:
Deployment action state

setActionState

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

Specified by:
setActionState in class ProgressBean<ServerProgressState>
Parameters:
actionState - Deployment action state

getProgress

public int getProgress()

Specified by:
getProgress in class ProgressBean<ServerProgressState>
Returns:
The ProgressBean's progress (percents)

setProgress

public void setProgress(int progressPercent)

Specified by:
setProgress in class ProgressBean<ServerProgressState>
Parameters:
progressPercent - The ProgressBean's progress (percents)

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object
Returns:
true if obj is a ServerProgressBean and the getId() is the same for both objects, false otherwise.


Copyright © 2009 OW2 Consortium. All Rights Reserved.