Class DestinationStatusBean

java.lang.Object
ecmwf.web.dao.ModelBeanBase
ecmwf.ecpds.master.plugin.http.dao.monitoring.MonitoringStatusBean
ecmwf.ecpds.master.plugin.http.dao.monitoring.DestinationStatusBean
All Implemented Interfaces:
DestinationStatus, MonitoringStatus, ecmwf.web.model.ModelBean

public class DestinationStatusBean extends MonitoringStatusBean implements DestinationStatus
The Class DestinationStatusBean.
  • Constructor Details

    • DestinationStatusBean

      public DestinationStatusBean(String destination, boolean calculated)
      Instantiates a new destination status bean.
      Parameters:
      destination - the destination
      calculated - the calculated
  • Method Details

    • getMonitoringDate

      public Date getMonitoringDate()
      The day we are monitoring. Gets the monitoring date.
      Specified by:
      getMonitoringDate in interface DestinationStatus
      Returns:
      the monitoring date
    • setMonitoringDate

      public void setMonitoringDate(Date monitoringDate)
      Sets the monitoring date. Sets the monitoring date.
      Specified by:
      setMonitoringDate in interface DestinationStatus
      Parameters:
      monitoringDate - the new monitoring date
    • getCalculationDate

      public Date getCalculationDate()
      When was updated this information. Gets the calculation date.
      Specified by:
      getCalculationDate in interface DestinationStatus
      Returns:
      the calculation date
    • setCalculationDate

      public void setCalculationDate(Date calculationDate)
      Sets the calculation date. Sets the calculation date.
      Specified by:
      setCalculationDate in interface DestinationStatus
      Parameters:
      calculationDate - the new calculation date
    • getBadDataTransfersSize

      public int getBadDataTransfersSize()
      Gets the bad data transfers size. Gets the bad data transfers size.
      Specified by:
      getBadDataTransfersSize in interface DestinationStatus
      Returns:
      the bad data transfers size
    • setBadDataTransfersSize

      public void setBadDataTransfersSize(int badDataTransfersSize)
      Sets the bad data transfers size. Sets the bad data transfers size.
      Specified by:
      setBadDataTransfersSize in interface DestinationStatus
      Parameters:
      badDataTransfersSize - the new bad data transfers size
    • getLastTransfer

      public DataTransfer getLastTransfer()
      Gets the last transfer. Gets the last transfer.
      Specified by:
      getLastTransfer in interface DestinationStatus
      Returns:
      the last transfer
    • setLastTransfer

      public void setLastTransfer(DataTransfer lastTransfer)
      Sets the last transfer. Sets the last transfer.
      Specified by:
      setLastTransfer in interface DestinationStatus
      Parameters:
      lastTransfer - the new last transfer
    • getQueueSize

      public int getQueueSize()
      Gets the queue size. Gets the queue size.
      Specified by:
      getQueueSize in interface DestinationStatus
      Returns:
      the queue size
    • setQueueSize

      public void setQueueSize(int queueSize)
      Sets the queue size. Sets the queue size.
      Specified by:
      setQueueSize in interface DestinationStatus
      Parameters:
      queueSize - the new queue size
    • getStatus

      public String getStatus()
      Gets the status. Gets the status.
      Specified by:
      getStatus in interface DestinationStatus
      Returns:
      the status
    • setStatus

      public void setStatus(String status)
      Sets the status. Sets the status.
      Specified by:
      setStatus in interface DestinationStatus
      Parameters:
      status - the new status
    • getUsingInternet

      public boolean getUsingInternet()
      Gets the using internet. Gets the using internet.
      Specified by:
      getUsingInternet in interface DestinationStatus
      Returns:
      If the main host is using internet or something else.
    • getPrimaryHost

      public Host getPrimaryHost()
      Gets the primary host. Gets the primary host.
      Specified by:
      getPrimaryHost in interface DestinationStatus
      Returns:
      the primary host
    • setPrimaryHost

      public void setPrimaryHost(Host h)
      Sets the primary host. Sets the primary host.
      Specified by:
      setPrimaryHost in interface DestinationStatus
      Parameters:
      h - the new primary host
    • getCurrentlyUsedHostName

      public String getCurrentlyUsedHostName()
      Gets the currently used host name. Gets the currently used host name.
      Specified by:
      getCurrentlyUsedHostName in interface DestinationStatus
      Returns:
      the currently used host name
    • setCurrentlyUsedHostName

      public void setCurrentlyUsedHostName(String h)
      Sets the currently used host name. Sets the currently used host name.
      Specified by:
      setCurrentlyUsedHostName in interface DestinationStatus
      Parameters:
      h - the new currently used host name
    • isUsingPrimaryHost

      public boolean isUsingPrimaryHost()
      Checks if is using primary host. Checks if is using primary host.
      Specified by:
      isUsingPrimaryHost in interface DestinationStatus
      Returns:
      true, if is using primary host
    • getBigSisterStatus

      public int getBigSisterStatus()
      Gets the big sister status. Gets the big sister status.
      Specified by:
      getBigSisterStatus in interface DestinationStatus
      Returns:
      the big sister status
    • setBigSisterStatus

      public void setBigSisterStatus(int i)
      Sets the big sister status. Sets the big sister status.
      Specified by:
      setBigSisterStatus in interface DestinationStatus
      Parameters:
      i - the new big sister status
    • getBigSisterStatusComment

      public String getBigSisterStatusComment()
      Gets the big sister status comment. Gets the big sister status comment.
      Specified by:
      getBigSisterStatusComment in interface DestinationStatus
      Returns:
      the big sister status comment
    • setBigSisterStatusComment

      public void setBigSisterStatusComment(String s)
      Sets the big sister status comment. Sets the big sister status comment.
      Specified by:
      setBigSisterStatusComment in interface DestinationStatus
      Parameters:
      s - the new big sister status comment
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object