Class TransferGroupBean

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

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

    • TransferGroupBean

      protected TransferGroupBean(TransferGroup transferGroup)
      Instantiates a new transfer group bean.
      Parameters:
      transferGroup - the transfer group
  • Method Details

    • getHostForBackup

      public Host getHostForBackup()
      Gets the host for backup. Gets the host for backup.
      Specified by:
      getHostForBackup in interface TransferGroup
      Returns:
      the host for backup
    • getHostForBackupName

      public String getHostForBackupName()
      Gets the host for backup name. Gets the host for backup name.
      Specified by:
      getHostForBackupName in interface TransferGroup
      Returns:
      the host for backup name
    • setHostForBackupName

      public void setHostForBackupName(String name)
      Sets the host for backup name. Sets the host for backup name.
      Specified by:
      setHostForBackupName in interface TransferGroup
      Parameters:
      name - the new host for backup name
    • 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
    • getMinFilteringCount

      public int getMinFilteringCount()
      Gets the min filtering count. Gets the min filtering count.
      Specified by:
      getMinFilteringCount in interface TransferGroup
      Returns:
      the min filtering count
    • getMinReplicationCount

      public int getMinReplicationCount()
      Gets the min replication count. Gets the min replication count.
      Specified by:
      getMinReplicationCount in interface TransferGroup
      Returns:
      the min replication count
    • getClusterWeight

      public int getClusterWeight()
      Gets the cluster weight. Gets the cluster weight.
      Specified by:
      getClusterWeight in interface TransferGroup
      Returns:
      the cluster weight
    • getVolumeCount

      public int getVolumeCount()
      Gets the volume count. Gets the volume count.
      Specified by:
      getVolumeCount in interface TransferGroup
      Returns:
      the volume count
    • getActive

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

      public boolean getBackup()
      Gets the backup. Gets the backup.
      Specified by:
      getBackup in interface TransferGroup
      Returns:
      the backup
    • getReplicate

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

      public boolean getFilter()
      Gets the filter. Gets the filter.
      Specified by:
      getFilter in interface TransferGroup
      Returns:
      the filter
    • getComment

      public String getComment()
      Gets the comment. Gets the comment.
      Specified by:
      getComment in interface TransferGroup
      Returns:
      the comment
    • getName

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

      public String getClusterName()
      Gets the cluster name. Gets the cluster name.
      Specified by:
      getClusterName in interface TransferGroup
      Returns:
      the cluster name
    • getTransferServers

      public Collection<TransferServer> getTransferServers() throws DataFileException
      Gets the transfer servers. Gets the transfer servers.
      Specified by:
      getTransferServers in interface TransferGroup
      Returns:
      the transfer servers
      Throws:
      DataFileException - the data file exception
    • addTransferServer

      public void addTransferServer(TransferServer h)
      Adds the transfer server. Adds the transfer server.
      Specified by:
      addTransferServer in interface TransferGroup
      Parameters:
      h - the s
    • deleteTransferServer

      public void deleteTransferServer(TransferServer h)
      Delete transfer server. Delete transfer server.
      Specified by:
      deleteTransferServer in interface TransferGroup
      Parameters:
      h - the s
    • setMinFilteringCount

      public void setMinFilteringCount(int param)
      Sets the min filtering count. Sets the min filtering count.
      Specified by:
      setMinFilteringCount in interface TransferGroup
      Parameters:
      param - the new min filtering count
    • setVolumeCount

      public void setVolumeCount(int param)
      Sets the volume count. Sets the volume count.
      Specified by:
      setVolumeCount in interface TransferGroup
      Parameters:
      param - the new volume count
    • setMinReplicationCount

      public void setMinReplicationCount(int param)
      Sets the min replication count. Sets the min replication count.
      Specified by:
      setMinReplicationCount in interface TransferGroup
      Parameters:
      param - the new min replication count
    • setClusterWeight

      public void setClusterWeight(int param)
      Sets the cluster weight. Sets the cluster weight.
      Specified by:
      setClusterWeight in interface TransferGroup
      Parameters:
      param - the new cluster weight
    • setActive

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

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

      public void setFilter(boolean param)
      Sets the filter. Sets the filter.
      Specified by:
      setFilter in interface TransferGroup
      Parameters:
      param - the new filter
    • setBackup

      public void setBackup(boolean param)
      Sets the backup. Sets the backup.
      Specified by:
      setBackup in interface TransferGroup
      Parameters:
      param - the new backup
    • setComment

      public void setComment(String param)
      Sets the comment. Sets the comment.
      Specified by:
      setComment in interface TransferGroup
      Parameters:
      param - the new comment
    • setName

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

      public void setClusterName(String param)
      Sets the cluster name. Sets the cluster name.
      Specified by:
      setClusterName in interface TransferGroup
      Parameters:
      param - the new cluster name
    • getAddedTransferServers

      protected Collection<TransferServer> getAddedTransferServers()
      Gets the added transfer servers.
      Returns:
      the added transfer servers
    • getDeletedTransferServers

      protected Collection<TransferServer> getDeletedTransferServers()
      Gets the deleted transfer servers.
      Returns:
      the deleted transfer servers
    • equals

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

      public boolean equals(TransferGroupBean 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