Class TransferServerBean

java.lang.Object
ecmwf.web.dao.ModelBeanBase
ecmwf.ecpds.master.plugin.http.dao.datafile.TransferServerBean
All Implemented Interfaces:
OjbImplementedBean, TransferServer, ecmwf.web.model.ModelBean

public class TransferServerBean extends ecmwf.web.dao.ModelBeanBase implements TransferServer, OjbImplementedBean
The Class TransferServerBean.
  • Constructor Details

    • TransferServerBean

      protected TransferServerBean(TransferServer transferServer)
      Instantiates a new transfer server bean.
      Parameters:
      transferServer - the transfer server
  • Method Details

    • getBeanInterfaceName

      public String getBeanInterfaceName()
      Gets the bean interface name.
      Specified by:
      getBeanInterfaceName in interface ecmwf.web.model.ModelBean
      Specified by:
      getBeanInterfaceName in class ecmwf.web.dao.ModelBeanBase
    • getOjbImplementation

      public DataBaseObject getOjbImplementation()
      Gets the ojb implementation. Gets the ojb implementation.
      Specified by:
      getOjbImplementation in interface OjbImplementedBean
      Returns:
      the ojb implementation
    • getId

      public String getId()
      Gets the id.
      Specified by:
      getId in interface ecmwf.web.model.ModelBean
      Overrides:
      getId in class ecmwf.web.dao.ModelBeanBase
    • getActive

      public boolean getActive()
      Gets the active. Gets the active.
      Specified by:
      getActive in interface TransferServer
      Returns:
      the active
    • getCheck

      public boolean getCheck()
      Gets the check. Gets the check.
      Specified by:
      getCheck in interface TransferServer
      Returns:
      the check
    • getLastUpdate

      public long getLastUpdate()
      Gets the last update. Gets the last update.
      Specified by:
      getLastUpdate in interface TransferServer
      Returns:
      the last update
    • getLastUpdateDate

      public Date getLastUpdateDate()
      Gets the last update date. Gets the last update date.
      Specified by:
      getLastUpdateDate in interface TransferServer
      Returns:
      the last update date
    • getLastUpdateDuration

      public String getLastUpdateDuration()
      Gets the last update duration. Gets the last update duration.
      Specified by:
      getLastUpdateDuration in interface TransferServer
      Returns:
      the last update duration
    • getMaxInactivity

      public int getMaxInactivity()
      Gets the max inactivity. Gets the max inactivity.
      Specified by:
      getMaxInactivity in interface TransferServer
      Returns:
      the max inactivity
    • getMaxTransfers

      public int getMaxTransfers()
      Gets the max transfers. Gets the max transfers.
      Specified by:
      getMaxTransfers in interface TransferServer
      Returns:
      the max transfers
    • getName

      public String getName()
      Gets the name. Gets the name.
      Specified by:
      getName in interface TransferServer
      Returns:
      the name
    • getDataTransfersToday

      public Collection<DataTransfer> getDataTransfersToday() throws DataFileException
      Gets the data transfers today. Gets the data transfers today.
      Specified by:
      getDataTransfersToday in interface TransferServer
      Returns:
      the data transfers today
      Throws:
      DataFileException - the data file exception
    • setActive

      public void setActive(boolean param)
      Sets the active. Sets the active.
      Specified by:
      setActive in interface TransferServer
      Parameters:
      param - the new active
    • setCheck

      public void setCheck(boolean param)
      Sets the check. Sets the check.
      Specified by:
      setCheck in interface TransferServer
      Parameters:
      param - the new check
    • setLastUpdate

      public void setLastUpdate(int param)
      Sets the last update. Sets the last update.
      Specified by:
      setLastUpdate in interface TransferServer
      Parameters:
      param - the new last update
    • setMaxInactivity

      public void setMaxInactivity(int param)
      Sets the max inactivity. Sets the max inactivity.
      Specified by:
      setMaxInactivity in interface TransferServer
      Parameters:
      param - the new max inactivity
    • setMaxTransfers

      public void setMaxTransfers(int param)
      Sets the max transfers. Sets the max transfers.
      Specified by:
      setMaxTransfers in interface TransferServer
      Parameters:
      param - the new max transfers
    • setName

      public void setName(String param)
      Sets the name. Sets the name.
      Specified by:
      setName in interface TransferServer
      Parameters:
      param - the new name
    • getHost

      public String getHost()
      Gets the host. Gets the host.
      Specified by:
      getHost in interface TransferServer
      Returns:
      the host
    • getPort

      public int getPort()
      Gets the port. Gets the port.
      Specified by:
      getPort in interface TransferServer
      Returns:
      the port
    • setHost

      public void setHost(String param)
      Sets the host. Sets the host.
      Specified by:
      setHost in interface TransferServer
      Parameters:
      param - the new host
    • setPort

      public void setPort(int param)
      Sets the port. Sets the port.
      Specified by:
      setPort in interface TransferServer
      Parameters:
      param - the new port
    • getLoad

      public long getLoad()
      Gets the load. Gets the load.
      Specified by:
      getLoad in interface TransferServer
      Returns:
      the load
    • getTransferGroupName

      public String getTransferGroupName()
      Gets the transfer group name. Gets the transfer group name.
      Specified by:
      getTransferGroupName in interface TransferServer
      Returns:
      the transfer group name
    • setTransferGroupName

      public void setTransferGroupName(String name)
      Sets the transfer group name. Sets the transfer group name.
      Specified by:
      setTransferGroupName in interface TransferServer
      Parameters:
      name - the new transfer group name
    • getTransferGroup

      public TransferGroup getTransferGroup()
      Gets the transfer group. Gets the transfer group.
      Specified by:
      getTransferGroup in interface TransferServer
      Returns:
      the transfer group
    • getHostForReplication

      public Host getHostForReplication()
      Gets the host for replication. Gets the host for replication.
      Specified by:
      getHostForReplication in interface TransferServer
      Returns:
      the host for replication
    • getHostForReplicationName

      public String getHostForReplicationName()
      Gets the host for replication name. Gets the host for replication name.
      Specified by:
      getHostForReplicationName in interface TransferServer
      Returns:
      the host for replication name
    • setHostForReplicationName

      public void setHostForReplicationName(String name)
      Sets the host for replication name. Sets the host for replication name.
      Specified by:
      setHostForReplicationName in interface TransferServer
      Parameters:
      name - the new host for replication name
    • setReplicate

      public void setReplicate(boolean param)
      Sets the replicate. Sets the replicate.
      Specified by:
      setReplicate in interface TransferServer
      Parameters:
      param - the new replicate
    • getReplicate

      public boolean getReplicate()
      Gets the replicate. Gets the replicate.
      Specified by:
      getReplicate in interface TransferServer
      Returns:
      the replicate
    • getReport

      public String getReport(ecmwf.web.model.users.User u) throws DataFileException
      Gets the report. Gets the report.
      Specified by:
      getReport in interface TransferServer
      Parameters:
      u - the u
      Returns:
      the report
      Throws:
      DataFileException - the data file exception
    • equals

      public boolean equals(Object o)
      Equals.
      Overrides:
      equals in class Object
    • equals

      public boolean equals(TransferServerBean d)
      Equals.
      Parameters:
      d - the d
      Returns:
      true, if successful
    • hashCode

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
    • toString

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