Class DestinationBean

java.lang.Object
ecmwf.web.dao.ModelBeanBase
ecmwf.ecpds.master.plugin.http.dao.transfer.DestinationBean
All Implemented Interfaces:
OjbImplementedBean, Destination, ecmwf.web.model.ModelBean

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

    • DestinationBean

      protected DestinationBean(Destination originalDestination, boolean aliasFrom, Destination destination)
      Instantiates a new destination bean.
      Parameters:
      originalDestination - the original destination
      aliasFrom - the alias from
      destination - the destination
    • DestinationBean

      protected DestinationBean(Destination destination)
      Instantiates a new destination bean.
      Parameters:
      destination - the destination
  • Method Details

    • getOjbImplementation

      public DataBaseObject getOjbImplementation()
      Gets the ojb implementation. Gets the ojb implementation.
      Specified by:
      getOjbImplementation in interface OjbImplementedBean
      Returns:
      the ojb implementation
    • 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
    • getId

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

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

      public String getProperties()
      Gets the properties. Gets the properties.
      Specified by:
      getProperties in interface Destination
      Returns:
      the properties
    • getJavascript

      public String getJavascript()
      Gets the javascript. Gets the javascript.
      Specified by:
      getJavascript in interface Destination
      Returns:
      the javascript
    • getData

      public String getData()
      Gets the data. Gets the data.
      Specified by:
      getData in interface Destination
      Returns:
      the data
    • getDataAlias

      public String getDataAlias()
      Gets the data alias. Gets the data alias.
      Specified by:
      getDataAlias in interface Destination
      Returns:
      the data alias
    • setData

      public void setData(String data)
      Sets the data. Sets the data.
      Specified by:
      setData in interface Destination
      Parameters:
      data - the new data
    • getActive

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

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

      public boolean getAcquisition()
      Gets the acquisition. Gets the acquisition.
      Specified by:
      getAcquisition in interface Destination
      Returns:
      the acquisition
    • getStatusCode

      public String getStatusCode()
      Gets the status code (raw STA_CODE from the database, e.g. STOP, INIT, FAIL). Gets the status code (raw STA_CODE).
      Specified by:
      getStatusCode in interface Destination
      Returns:
      the status code
    • getEcUser

      public EcUser getEcUser() throws TransferException
      Gets the ec user. Gets the ec user.
      Specified by:
      getEcUser in interface Destination
      Returns:
      the ec user
      Throws:
      TransferException - the transfer exception
    • getTransferGroup

      public TransferGroup getTransferGroup() throws DataFileException
      Gets the transfer group. Gets the transfer group.
      Specified by:
      getTransferGroup in interface Destination
      Returns:
      the transfer group
      Throws:
      DataFileException - the data file exception
    • getTransferGroupName

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

      public void setTransferGroup(TransferGroup m)
      Sets the transfer group. Sets the transfer group.
      Specified by:
      setTransferGroup in interface Destination
      Parameters:
      m - the new transfer group
    • setTransferGroupName

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

      public Collection<EcUser> getAssociatedEcUsers() throws TransferException
      Gets the associated ec users. Gets the associated ec users.
      Specified by:
      getAssociatedEcUsers in interface Destination
      Returns:
      the associated ec users
      Throws:
      TransferException - the transfer exception
    • getAssociatedIncomingPolicies

      public Collection<IncomingPolicy> getAssociatedIncomingPolicies() throws TransferException
      Gets the associated incoming policies. Gets the associated incoming policies.
      Specified by:
      getAssociatedIncomingPolicies in interface Destination
      Returns:
      the associated incoming policies
      Throws:
      TransferException - the transfer exception
    • getEcUserName

      public String getEcUserName()
      Gets the ec user name. Gets the ec user name.
      Specified by:
      getEcUserName in interface Destination
      Returns:
      the ec user name
    • getCountry

      public Country getCountry() throws TransferException
      Gets the country. Gets the country.
      Specified by:
      getCountry in interface Destination
      Returns:
      the country
      Throws:
      TransferException - the transfer exception
    • getCountryIso

      public String getCountryIso()
      Gets the country iso. Gets the country iso.
      Specified by:
      getCountryIso in interface Destination
      Returns:
      the country iso
    • getHostForSource

      public Host getHostForSource() throws TransferException
      Gets the host for source. Gets the host for source.
      Specified by:
      getHostForSource in interface Destination
      Returns:
      the host for source
      Throws:
      TransferException - the transfer exception
    • getHostForSourceName

      public String getHostForSourceName()
      Gets the host for source name. Gets the host for source name.
      Specified by:
      getHostForSourceName in interface Destination
      Returns:
      the host for source name
    • getIfTargetExist

      public int getIfTargetExist()
      Gets the if target exist. Gets the if target exist.
      Specified by:
      getIfTargetExist in interface Destination
      Returns:
      the if target exist
    • getOnHostFailure

      public int getOnHostFailure()
      Gets the on host failure. Gets the on host failure.
      Specified by:
      getOnHostFailure in interface Destination
      Returns:
      the on host failure
    • getKeepInSpool

      public int getKeepInSpool()
      Gets the keep in spool. Gets the keep in spool.
      Specified by:
      getKeepInSpool in interface Destination
      Returns:
      the keep in spool
    • getIfTargetExistText

      public String getIfTargetExistText()
      Gets the if target exist text. Gets the if target exist text.
      Specified by:
      getIfTargetExistText in interface Destination
      Returns:
      the if target exist text
    • getOnHostFailureText

      public String getOnHostFailureText()
      Gets the on host failure text. Gets the on host failure text.
      Specified by:
      getOnHostFailureText in interface Destination
      Returns:
      the on host failure text
    • getKeepInSpoolText

      public String getKeepInSpoolText()
      Gets the keep in spool text. Gets the keep in spool text.
      Specified by:
      getKeepInSpoolText in interface Destination
      Returns:
      the keep in spool text
    • getMailOnUpdate

      public boolean getMailOnUpdate()
      Gets the mail on update.
      Specified by:
      getMailOnUpdate in interface Destination
      Returns:
      the mail on update
    • getMailOnEnd

      public boolean getMailOnEnd()
      Gets the mail on end. Gets the mail on end.
      Specified by:
      getMailOnEnd in interface Destination
      Returns:
      the mail on end
    • getMailOnError

      public boolean getMailOnError()
      Gets the mail on error. Gets the mail on error.
      Specified by:
      getMailOnError in interface Destination
      Returns:
      the mail on error
    • getMailOnStart

      public boolean getMailOnStart()
      Gets the mail on start. Gets the mail on start.
      Specified by:
      getMailOnStart in interface Destination
      Returns:
      the mail on start
    • getUserMail

      public String getUserMail()
      Gets the user mail. Gets the user mail.
      Specified by:
      getUserMail in interface Destination
      Returns:
      the user mail
    • getMaxStart

      public int getMaxStart()
      Gets the max start. Gets the max start.
      Specified by:
      getMaxStart in interface Destination
      Returns:
      the max start
    • getStartFrequency

      public int getStartFrequency()
      Gets the start frequency. Gets the start frequency.
      Specified by:
      getStartFrequency in interface Destination
      Returns:
      the start frequency
    • getFormattedStartFrequency

      public String getFormattedStartFrequency()
      Gets the formatted start frequency. Gets the formatted start frequency.
      Specified by:
      getFormattedStartFrequency in interface Destination
      Returns:
      the formatted start frequency
    • getMaxInactivity

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

      public String getFormattedMaxInactivity()
      Gets the formatted max inactivity. Gets the formatted max inactivity.
      Specified by:
      getFormattedMaxInactivity in interface Destination
      Returns:
      the formatted max inactivity
    • setMaxInactivity

      public void setMaxInactivity(int i)
      Sets the max inactivity. Sets the max inactivity.
      Specified by:
      setMaxInactivity in interface Destination
      Parameters:
      i - the new max inactivity
    • getResetFrequency

      public long getResetFrequency()
      Gets the reset frequency. Gets the reset frequency.
      Specified by:
      getResetFrequency in interface Destination
      Returns:
      the reset frequency
    • setMaxFileSize

      public void setMaxFileSize(long i)
      Sets the max file size. Sets the max file size.
      Specified by:
      setMaxFileSize in interface Destination
      Parameters:
      i - the new max file size
    • getFormattedResetFrequency

      public String getFormattedResetFrequency()
      Gets the formatted reset frequency. Gets the formatted reset frequency.
      Specified by:
      getFormattedResetFrequency in interface Destination
      Returns:
      the formatted reset frequency
    • setMaxStart

      public void setMaxStart(int i)
      Sets the max start. Sets the max start.
      Specified by:
      setMaxStart in interface Destination
      Parameters:
      i - the new max start
    • setMaxRequeue

      public void setMaxRequeue(int i)
      Sets the max requeue. Sets the max requeue.
      Specified by:
      setMaxRequeue in interface Destination
      Parameters:
      i - the new max requeue
    • setStartFrequency

      public void setStartFrequency(int i)
      Sets the start frequency. Sets the start frequency.
      Specified by:
      setStartFrequency in interface Destination
      Parameters:
      i - the new start frequency
    • setResetFrequency

      public void setResetFrequency(long i)
      Sets the reset frequency. Sets the reset frequency.
      Specified by:
      setResetFrequency in interface Destination
      Parameters:
      i - the new reset frequency
    • getGroupByDate

      public boolean getGroupByDate()
      Gets the group by date. Gets the group by date.
      Specified by:
      getGroupByDate in interface Destination
      Returns:
      the group by date
    • setGroupByDate

      public void setGroupByDate(boolean b)
      Sets the group by date. Sets the group by date.
      Specified by:
      setGroupByDate in interface Destination
      Parameters:
      b - the new group by date
    • getDateFormat

      public String getDateFormat()
      Gets the date format. Gets the date format.
      Specified by:
      getDateFormat in interface Destination
      Returns:
      the date format
    • setDateFormat

      public void setDateFormat(String format)
      Sets the date format. Sets the date format.
      Specified by:
      setDateFormat in interface Destination
      Parameters:
      format - the new date format
    • getDataTransfersOnDate

      public Collection<DataTransfer> getDataTransfersOnDate(Date d) throws TransferException
      Gets the data transfers on date. Gets the data transfers on date.
      Specified by:
      getDataTransfersOnDate in interface Destination
      Parameters:
      d - the d
      Returns:
      the data transfers on date
      Throws:
      TransferException - the transfer exception
    • getDataTransfersOnTransmissionDate

      public Collection<DataTransfer> getDataTransfersOnTransmissionDate(Date d) throws TransferException
      Gets the data transfers on transmission date.
      Parameters:
      d - the d
      Returns:
      the data transfers on transmission date
      Throws:
      TransferException - the transfer exception
    • getDataTransfersIncludingRetriesOnTransmissionDate

      public Collection<DataTransfer> getDataTransfersIncludingRetriesOnTransmissionDate(Date d) throws TransferException
      Gets the data transfers including retries on transmission date. Gets the data transfers including retries on transmission date.
      Specified by:
      getDataTransfersIncludingRetriesOnTransmissionDate in interface Destination
      Parameters:
      d - the d
      Returns:
      the data transfers including retries on transmission date
      Throws:
      TransferException - the transfer exception
    • getDataTransfersByProductAndTime

      public Collection<DataTransfer> getDataTransfersByProductAndTime(String product, String time) throws TransferException
      Gets the data transfers by product and time. Gets the data transfers by product and time.
      Specified by:
      getDataTransfersByProductAndTime in interface Destination
      Parameters:
      product - the product
      time - the time
      Returns:
      the data transfers by product and time
      Throws:
      TransferException - the transfer exception
    • getDataTransfersByProductAndTimeOnDate

      public Collection<DataTransfer> getDataTransfersByProductAndTimeOnDate(String product, String time, Date d) throws TransferException
      Gets the data transfers by product and time on date. Gets the data transfers by product and time on date.
      Specified by:
      getDataTransfersByProductAndTimeOnDate in interface Destination
      Parameters:
      product - the product
      time - the time
      d - the d
      Returns:
      the data transfers by product and time on date
      Throws:
      TransferException - the transfer exception
    • getHostsAndPriorities

      public Collection<ecmwf.web.util.bean.Pair> getHostsAndPriorities() throws TransferException
      Gets the hosts and priorities. Gets the hosts and priorities.
      Specified by:
      getHostsAndPriorities in interface Destination
      Returns:
      the hosts and priorities
      Throws:
      TransferException - the transfer exception
    • getDisseminationHostsAndPriorities

      public Collection<ecmwf.web.util.bean.Pair> getDisseminationHostsAndPriorities() throws TransferException
      Gets the dissemination hosts and priorities. Gets the dissemination hosts and priorities.
      Specified by:
      getDisseminationHostsAndPriorities in interface Destination
      Returns:
      the dissemination hosts and priorities
      Throws:
      TransferException - the transfer exception
    • getHasActiveDisseminationHosts

      public boolean getHasActiveDisseminationHosts()
      Returns true if at least one active dissemination host is associated with this destination. Returns false when all dissemination hosts are inactive or when none are configured. Returns true if at least one active dissemination host is associated with this destination.
      Specified by:
      getHasActiveDisseminationHosts in interface Destination
      Returns:
      true if at least one active dissemination host exists
    • getAcquisitionHostsAndPriorities

      public Collection<ecmwf.web.util.bean.Pair> getAcquisitionHostsAndPriorities() throws TransferException
      Gets the acquisition hosts and priorities. Gets the acquisition hosts and priorities.
      Specified by:
      getAcquisitionHostsAndPriorities in interface Destination
      Returns:
      the acquisition hosts and priorities
      Throws:
      TransferException - the transfer exception
    • getProxyHostsAndPriorities

      public Collection<ecmwf.web.util.bean.Pair> getProxyHostsAndPriorities() throws TransferException
      Gets the proxy hosts and priorities.
      Returns:
      the proxy hosts and priorities
      Throws:
      TransferException - the transfer exception
    • getAliases

      public Collection<Destination> getAliases() throws TransferException
      Gets the aliases.
      Specified by:
      getAliases in interface Destination
      Returns:
      the aliases
      Throws:
      TransferException - the transfer exception
    • getAliasList

      public Collection<Alias> getAliasList() throws TransferException
      Gets the alias list. Gets the alias list.
      Specified by:
      getAliasList in interface Destination
      Returns:
      the alias list
      Throws:
      TransferException - the transfer exception
    • getTrafficList

      public Collection<Traffic> getTrafficList() throws TransferException
      Gets the traffic list. Gets the traffic list.
      Specified by:
      getTrafficList in interface Destination
      Returns:
      the traffic list
      Throws:
      TransferException - the transfer exception
    • getChangeLogList

      public Collection<ChangeLog> getChangeLogList() throws TransferException
      Gets the change log list. Gets the change log list.
      Specified by:
      getChangeLogList in interface Destination
      Returns:
      the change log list
      Throws:
      TransferException - the transfer exception
    • getAliasedFrom

      public Collection<Destination> getAliasedFrom() throws TransferException
      This destination is an alias for this ones. Gets the aliased from.
      Specified by:
      getAliasedFrom in interface Destination
      Returns:
      the aliased from
      Throws:
      TransferException - the transfer exception
    • getMetaData

      public Collection<DestinationMetaData> getMetaData() throws TransferException
      Gets the meta data. Gets the meta data.
      Specified by:
      getMetaData in interface Destination
      Returns:
      the meta data
      Throws:
      TransferException - the transfer exception
    • setActive

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

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

      public void setAcquisition(boolean param)
      Sets the acquisition. Sets the acquisition.
      Specified by:
      setAcquisition in interface Destination
      Parameters:
      param - the new acquisition
    • setCountryIso

      public void setCountryIso(String param)
      Sets the country iso. Sets the country iso.
      Specified by:
      setCountryIso in interface Destination
      Parameters:
      param - the new country iso
    • setHostForSourceName

      public void setHostForSourceName(String name)
      Sets the host for source name. Sets the host for source name.
      Specified by:
      setHostForSourceName in interface Destination
      Parameters:
      name - the new host for source name
    • setEcUserName

      public void setEcUserName(String param)
      Sets the ec user name. Sets the ec user name.
      Specified by:
      setEcUserName in interface Destination
      Parameters:
      param - the new ec user name
    • setIfTargetExist

      public void setIfTargetExist(int param)
      Sets the if target exist. Sets the if target exist.
      Specified by:
      setIfTargetExist in interface Destination
      Parameters:
      param - the new if target exist
    • setOnHostFailure

      public void setOnHostFailure(int i)
      Sets the on host failure. Sets the on host failure.
      Specified by:
      setOnHostFailure in interface Destination
      Parameters:
      i - the new on host failure
    • setKeepInSpool

      public void setKeepInSpool(int i)
      Sets the keep in spool. Sets the keep in spool.
      Specified by:
      setKeepInSpool in interface Destination
      Parameters:
      i - the new keep in spool
    • setMailOnUpdate

      public void setMailOnUpdate(boolean param)
      Sets the mail on update.
      Specified by:
      setMailOnUpdate in interface Destination
      Parameters:
      param - the new mail on update
    • setMailOnEnd

      public void setMailOnEnd(boolean param)
      Sets the mail on end. Sets the mail on end.
      Specified by:
      setMailOnEnd in interface Destination
      Parameters:
      param - the new mail on end
    • setMailOnError

      public void setMailOnError(boolean param)
      Sets the mail on error. Sets the mail on error.
      Specified by:
      setMailOnError in interface Destination
      Parameters:
      param - the new mail on error
    • setMailOnStart

      public void setMailOnStart(boolean param)
      Sets the mail on start. Sets the mail on start.
      Specified by:
      setMailOnStart in interface Destination
      Parameters:
      param - the new mail on start
    • setName

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

      public void setUserMail(String param)
      Sets the user mail. Sets the user mail.
      Specified by:
      setUserMail in interface Destination
      Parameters:
      param - the new user mail
    • addAssociatedEcUser

      public void addAssociatedEcUser(EcUser u)
      Adds the associated ec user. Adds the associated ec user.
      Specified by:
      addAssociatedEcUser in interface Destination
      Parameters:
      u - the u
    • deleteAssociatedEcUser

      public void deleteAssociatedEcUser(EcUser u)
      Delete associated ec user. Delete associated ec user.
      Specified by:
      deleteAssociatedEcUser in interface Destination
      Parameters:
      u - the u
    • addHost

      public void addHost(Host h)
      Adds the host. Adds the host.
      Specified by:
      addHost in interface Destination
      Parameters:
      h - the h
    • addIncomingPolicy

      public void addIncomingPolicy(IncomingPolicy p)
      Adds the incoming policy. Adds the incoming policy.
      Specified by:
      addIncomingPolicy in interface Destination
      Parameters:
      p - the h
    • deleteHost

      public void deleteHost(Host h)
      Delete host. Delete host.
      Specified by:
      deleteHost in interface Destination
      Parameters:
      h - the p
    • deleteIncomingPolicy

      public void deleteIncomingPolicy(IncomingPolicy p)
      Delete incoming policy. Delete incoming policy.
      Specified by:
      deleteIncomingPolicy in interface Destination
      Parameters:
      p - the p
    • addAlias

      public void addAlias(Destination d)
      Adds the alias. Adds the alias.
      Specified by:
      addAlias in interface Destination
      Parameters:
      d - the d
    • deleteAlias

      public void deleteAlias(Destination d)
      Delete alias. Delete alias.
      Specified by:
      deleteAlias in interface Destination
      Parameters:
      d - the d
    • deleteMetadataFile

      public void deleteMetadataFile(String fileName)
      Delete metadata file. Delete metadata file.
      Specified by:
      deleteMetadataFile in interface Destination
      Parameters:
      fileName - the file name
    • getFilterName

      public String getFilterName()
      Gets the filter name. Gets the filter name.
      Specified by:
      getFilterName in interface Destination
      Returns:
      the filter name
    • setFilterName

      public void setFilterName(String param)
      Sets the filter name. Sets the filter name.
      Specified by:
      setFilterName in interface Destination
      Parameters:
      param - the new filter name
    • getComment

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

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

      public boolean isDirty()
      Checks if is dirty. Checks if is dirty.
      Specified by:
      isDirty in interface Destination
      Returns:
      True if some changes to data related to the destination need a restart to be applied.
    • getMaxConnections

      public int getMaxConnections()
      Gets the max connections. Gets the max connections.
      Specified by:
      getMaxConnections in interface Destination
      Returns:
      the max connections
    • getRetryCount

      public int getRetryCount()
      Gets the retry count. Gets the retry count.
      Specified by:
      getRetryCount in interface Destination
      Returns:
      the retry count
    • getRetryFrequency

      public int getRetryFrequency()
      Gets the retry frequency. Gets the retry frequency.
      Specified by:
      getRetryFrequency in interface Destination
      Returns:
      the retry frequency
    • getFormattedRetryFrequency

      public String getFormattedRetryFrequency()
      Gets the formatted retry frequency. Gets the formatted retry frequency.
      Specified by:
      getFormattedRetryFrequency in interface Destination
      Returns:
      the formatted retry frequency
    • getFormattedStatus

      public String getFormattedStatus()
      Gets the formatted status. Gets the formatted status.
      Specified by:
      getFormattedStatus in interface Destination
      Returns:
      the formatted status
    • getLastTransfer

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

      public DataTransfer getLastError()
      Gets the last error. Gets the last error.
      Specified by:
      getLastError in interface Destination
      Returns:
      the last error
    • getQueueSize

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

      public void restart(boolean graceful, ecmwf.web.model.users.User u) throws TransferException
      Restart. Restart.
      Specified by:
      restart in interface Destination
      Parameters:
      graceful - the graceful
      u - the u
      Throws:
      TransferException - the transfer exception
    • putOnHold

      public void putOnHold(boolean graceful, ecmwf.web.model.users.User u) throws TransferException
      Put on hold. Put on hold.
      Specified by:
      putOnHold in interface Destination
      Parameters:
      graceful - the graceful
      u - the u
      Throws:
      TransferException - the transfer exception
    • clean

      public void clean(ecmwf.web.model.users.User u) throws TransferException
      Clean. Clean.
      Specified by:
      clean in interface Destination
      Parameters:
      u - the u
      Throws:
      TransferException - the transfer exception
    • cleanExpired

      public void cleanExpired(ecmwf.web.model.users.User u) throws TransferException
      Clean expired. Clean expired.
      Specified by:
      cleanExpired in interface Destination
      Parameters:
      u - the u
      Throws:
      TransferException - the transfer exception
    • setMaxConnections

      public void setMaxConnections(int i)
      Sets the max connections. Sets the max connections.
      Specified by:
      setMaxConnections in interface Destination
      Parameters:
      i - the new max connections
    • setRetryCount

      public void setRetryCount(int i)
      Sets the retry count. Sets the retry count.
      Specified by:
      setRetryCount in interface Destination
      Parameters:
      i - the new retry count
    • setRetryFrequency

      public void setRetryFrequency(int i)
      Sets the retry frequency. Sets the retry frequency.
      Specified by:
      setRetryFrequency in interface Destination
      Parameters:
      i - the new retry frequency
    • setType

      public void setType(int i)
      Sets the type. Sets the type.
      Specified by:
      setType in interface Destination
      Parameters:
      i - the new type
    • getType

      public int getType()
      Gets the type. Gets the type.
      Specified by:
      getType in interface Destination
      Returns:
      the type
    • getTypeText

      public String getTypeText()
      Gets the type text. Gets the type text.
      Specified by:
      getTypeText in interface Destination
      Returns:
      the type text
    • getStatusMapForProducts

      public Map<String, DestinationProductStatus> getStatusMapForProducts()
      Gets the status map for products. Gets the status map for products.
      Specified by:
      getStatusMapForProducts in interface Destination
      Returns:
      the status map for products
    • getMonitoringStatus

      public DestinationStatus getMonitoringStatus() throws TransferException
      Gets the monitoring status. Gets the monitoring status.
      Specified by:
      getMonitoringStatus in interface Destination
      Returns:
      the monitoring status
      Throws:
      TransferException - the transfer exception
    • getBandWidth

      public long getBandWidth() throws TransferException
      Gets the band width. Gets the band width.
      Specified by:
      getBandWidth in interface Destination
      Returns:
      the band width
      Throws:
      TransferException - the transfer exception
    • getMaxRequeue

      public int getMaxRequeue()
      Gets the max requeue. Gets the max requeue.
      Specified by:
      getMaxRequeue in interface Destination
      Returns:
      the max requeue
    • getBadDataTransfers

      public Collection<DataTransfer> getBadDataTransfers() throws TransferException
      Gets the bad data transfers. Gets the bad data transfers.
      Specified by:
      getBadDataTransfers in interface Destination
      Returns:
      the bad data transfers
      Throws:
      TransferException - the transfer exception
    • getBadDataTransfersSize

      public int getBadDataTransfersSize() throws TransferException
      Gets the bad data transfers size. Gets the bad data transfers size.
      Specified by:
      getBadDataTransfersSize in interface Destination
      Returns:
      the bad data transfers size
      Throws:
      TransferException - the transfer exception
    • getStopIfDirty

      public boolean getStopIfDirty()
      Gets the stop if dirty. Gets the stop if dirty.
      Specified by:
      getStopIfDirty in interface Destination
      Returns:
      the stop if dirty
    • setStopIfDirty

      public void setStopIfDirty(boolean b)
      Sets the stop if dirty. Sets the stop if dirty.
      Specified by:
      setStopIfDirty in interface Destination
      Parameters:
      b - the new stop if dirty
    • getMaxPending

      public int getMaxPending()
      Gets the max pending. Gets the max pending.
      Specified by:
      getMaxPending in interface Destination
      Returns:
      the max pending
    • getMaxFileSize

      public long getMaxFileSize()
      Gets the max file size. Gets the max file size.
      Specified by:
      getMaxFileSize in interface Destination
      Returns:
      the max file size
    • setMaxPending

      public void setMaxPending(int param)
      Sets the max pending. Sets the max pending.
      Specified by:
      setMaxPending in interface Destination
      Parameters:
      param - the new max pending
    • getShowInMonitors

      public boolean getShowInMonitors()
      Gets the show in monitors. Gets the show in monitors.
      Specified by:
      getShowInMonitors in interface Destination
      Returns:
      the show in monitors
    • setShowInMonitors

      public void setShowInMonitors(boolean b)
      Sets the show in monitors. Sets the show in monitors.
      Specified by:
      setShowInMonitors in interface Destination
      Parameters:
      b - the new show in monitors
    • getStartTime

      public Date getStartTime() throws TransferException
      Gets the start time. Gets the start time.
      Specified by:
      getStartTime in interface Destination
      Returns:
      the start time
      Throws:
      TransferException - the transfer exception
    • getTransferContent

      public ecmwf.web.services.content.Content getTransferContent(DataTransfer t, ecmwf.web.model.users.User u) throws TransferException
      Gets the transfer content. Gets the transfer content.
      Specified by:
      getTransferContent in interface Destination
      Parameters:
      t - the t
      u - the u
      Returns:
      the transfer content
      Throws:
      TransferException - the transfer exception
    • getAllTypes

      public List<ecmwf.web.util.bean.StringPair> getAllTypes()
      Gets the all types. Gets the all types.
      Specified by:
      getAllTypes in interface Destination
      Returns:
      the all types
    • setUpdate

      protected void setUpdate(Date d)
      Sets the update.
      Parameters:
      d - the new update
    • getAddedAssociatedEcUsers

      protected Collection<EcUser> getAddedAssociatedEcUsers()
      Gets the added associated ec users.
      Returns:
      the added associated ec users
    • getAddedHosts

      protected Collection<Host> getAddedHosts()
      Gets the added hosts.
      Returns:
      the added hosts
    • getAddedIncomingPolicies

      protected Collection<IncomingPolicy> getAddedIncomingPolicies()
      Gets the added incoming policies.
      Returns:
      the added incoming policies
    • getDeletedPolicyAssociations

      protected Collection<IncomingPolicy> getDeletedPolicyAssociations()
      Gets the deleted policy associations.
      Returns:
      the deleted policy associations
    • getDeletedAssociatedEcUsers

      protected Collection<EcUser> getDeletedAssociatedEcUsers()
      Gets the deleted associated ec users.
      Returns:
      the deleted associated ec users
    • getDeletedHosts

      protected Collection<Host> getDeletedHosts()
      Gets the deleted hosts.
      Returns:
      the deleted hosts
    • setUpdatedNow

      protected void setUpdatedNow()
      Sets the updated now.
    • getAddedAliases

      protected Collection<Destination> getAddedAliases()
      Gets the added aliases.
      Returns:
      the added aliases
    • getDeletedAliases

      protected Collection<Destination> getDeletedAliases()
      Gets the deleted aliases.
      Returns:
      the deleted aliases
    • getDeletedMetadataFiles

      protected Collection<String> getDeletedMetadataFiles()
      Gets the deleted metadata files.
      Returns:
      the deleted metadata files
    • getCompletions

      public String getCompletions() throws TransferException
      Gets the completions. Gets the completions.
      Specified by:
      getCompletions in interface Destination
      Returns:
      the completions
      Throws:
      TransferException - the transfer exception
    • equals

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

      public boolean equals(DestinationBean u)
      Equals.
      Parameters:
      u - the u
      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