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

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

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

Bean that represents the progress of the operations a server.

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

Nested Class Summary
static class ServerProgressBean.ServerProgressState
          Different possible progress states of a serverProgress.
 
Constructor Summary
ServerProgressBean()
          Default ServerProgressBean constructor
ServerProgressBean(ServerBean server)
          Construct a ServerProgressBean with its associated server
 
Method Summary
 void appendToLog(java.lang.String string)
          Add log to the serverProgress log.
 boolean equals(java.lang.Object obj)
          
 OperationStateBean.ActionState getActionState()
          Get serverProgress state.
 java.lang.Integer getId()
          Get the serverProgress id
 java.lang.String getLog()
          Get the serverProgress log
 java.lang.String getNewApplication()
          New application name getter.
 java.lang.String getOldApplication()
          Old application name getter
 int getProgress()
          Percent of progress getter
 ServerBean getServer()
          Server getter
 java.lang.String getServerName()
          Returns the name of the server associated with this serverProgress
 ServerProgressBean.ServerProgressState getServerProgressState()
          Get the serverProgress progress state
 java.lang.String getState()
          Return the serverProgress state in String format : WAITING --> "Waiting" RUNNING --> "Running" FINISHED_OK -- > "Done OK" FINISHED_ERROR --> "Error !"
 boolean hasOldVersion()
           
 void setActionState(OperationStateBean.ActionState actionState)
          Set serverProgress state.
 void setId(java.lang.Integer id)
          Set the serverProgress id
 void setLog(java.lang.String log)
          Set the serverProgress log
 void setNewApplication(java.lang.String newApplication)
          New application name setter.
 void setOldApplication(java.lang.String oldApplication)
          Old application name setter.
 void setProgress(int progress)
          Deployment progress setter.
 void setServer(ServerBean server)
          Change the associated server
 void setServerProgressState(ServerProgressBean.ServerProgressState serverProgressState)
          Set the serverProgress progress state
 void setState(java.lang.String state)
          Do not use this method, needs to be here to satisfy ActionScript
 java.lang.String toString()
          
 
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 ti the depoyment
Method Detail

getId

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

Returns:
the serverProgress id

setId

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

Parameters:
id - the serverProgress 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 serverProgress

Returns:
the name of the server associated with this serverProgress

getState

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

Returns:
Deployment state 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 -

getOldApplication

public java.lang.String getOldApplication()
Old application name getter

Returns:
Old application name

setOldApplication

public void setOldApplication(java.lang.String oldApplication)
Old application name setter.

Parameters:
oldApplication - Old application name

hasOldVersion

public boolean hasOldVersion()
Returns:
true if there's an old application version present and the old application is not the same as the new one.

getNewApplication

public java.lang.String getNewApplication()
New application name getter.

Returns:
New application name

setNewApplication

public void setNewApplication(java.lang.String newApplication)
New application name setter.

Parameters:
newApplication - New application name

getProgress

public int getProgress()
Percent of progress getter

Returns:
The serverProgress progress (percents)

setProgress

public void setProgress(int progress)
Deployment progress setter.

Parameters:
progress - The progress percent to set.

getLog

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

Returns:
Deployment log

setLog

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

Parameters:
log - The log to set for this serverProgress

appendToLog

public void appendToLog(java.lang.String string)
Add log to the serverProgress log.

Parameters:
string - The log to add for this serverProgress

getServerProgressState

public ServerProgressBean.ServerProgressState getServerProgressState()
Get the serverProgress progress state

Returns:
Deployment progress state

setServerProgressState

public void setServerProgressState(ServerProgressBean.ServerProgressState serverProgressState)
Set the serverProgress progress state

Parameters:
serverProgressState - the serverProgress progress state to set

getActionState

public OperationStateBean.ActionState getActionState()
Get serverProgress state.

Returns:
Deployment state.

setActionState

public void setActionState(OperationStateBean.ActionState actionState)
Set serverProgress state.

Parameters:
actionState - Deployment state to set.

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.