Interface Destination

All Superinterfaces:
ecmwf.web.model.ModelBean
All Known Implementing Classes:
DestinationBean

public interface Destination extends ecmwf.web.model.ModelBean
The Interface Destination.
  • Method Details

    • getActive

      boolean getActive()
      Gets the active.
      Returns:
      the active
    • getBackup

      boolean getBackup()
      Gets the backup.
      Returns:
      the backup
    • getAcquisition

      boolean getAcquisition()
      Gets the acquisition.
      Returns:
      the acquisition
    • getStatusCode

      String getStatusCode()
      Gets the status code (raw STA_CODE from the database, e.g. STOP, INIT, FAIL).
      Returns:
      the status code
    • getCompletions

      String getCompletions() throws TransferException
      Gets the completions.
      Returns:
      the completions
      Throws:
      TransferException - the transfer exception
    • getEcUser

      EcUser getEcUser() throws TransferException
      Gets the ec user.
      Returns:
      the ec user
      Throws:
      TransferException - the transfer exception
    • getTransferGroup

      TransferGroup getTransferGroup() throws DataFileException
      Gets the transfer group.
      Returns:
      the transfer group
      Throws:
      DataFileException - the data file exception
    • getTransferGroupName

      String getTransferGroupName()
      Gets the transfer group name.
      Returns:
      the transfer group name
    • getData

      String getData()
      Gets the data.
      Returns:
      the data
    • getProperties

      String getProperties()
      Gets the properties.
      Returns:
      the properties
    • getJavascript

      String getJavascript()
      Gets the javascript.
      Returns:
      the javascript
    • getDataAlias

      String getDataAlias()
      Gets the data alias.
      Returns:
      the data alias
    • setData

      void setData(String string)
      Sets the data.
      Parameters:
      string - the new data
    • getCountry

      Country getCountry() throws TransferException
      Gets the country.
      Returns:
      the country
      Throws:
      TransferException - the transfer exception
    • getEcUserName

      String getEcUserName()
      Gets the ec user name.
      Returns:
      the ec user name
    • getCountryIso

      String getCountryIso()
      Gets the country iso.
      Returns:
      the country iso
    • getHostForSource

      Host getHostForSource() throws TransferException
      Gets the host for source.
      Returns:
      the host for source
      Throws:
      TransferException - the transfer exception
    • getHostForSourceName

      String getHostForSourceName()
      Gets the host for source name.
      Returns:
      the host for source name
    • getIfTargetExist

      int getIfTargetExist()
      Gets the if target exist.
      Returns:
      the if target exist
    • getOnHostFailure

      int getOnHostFailure()
      Gets the on host failure.
      Returns:
      the on host failure
    • getKeepInSpool

      int getKeepInSpool()
      Gets the keep in spool.
      Returns:
      the keep in spool
    • getMaxStart

      int getMaxStart()
      Gets the max start.
      Returns:
      the max start
    • getStartFrequency

      int getStartFrequency()
      Gets the start frequency.
      Returns:
      the start frequency
    • getFormattedStartFrequency

      String getFormattedStartFrequency()
      Gets the formatted start frequency.
      Returns:
      the formatted start frequency
    • getMaxRequeue

      int getMaxRequeue()
      Gets the max requeue.
      Returns:
      the max requeue
    • getMaxPending

      int getMaxPending()
      Gets the max pending.
      Returns:
      the max pending
    • getMaxFileSize

      long getMaxFileSize()
      Gets the max file size.
      Returns:
      the max file size
    • getStartTime

      Date getStartTime() throws TransferException
      Gets the start time.
      Returns:
      the start time
      Throws:
      TransferException - the transfer exception
    • getResetFrequency

      long getResetFrequency()
      Gets the reset frequency.
      Returns:
      the reset frequency
    • getMaxInactivity

      int getMaxInactivity()
      Gets the max inactivity.
      Returns:
      the max inactivity
    • setMaxInactivity

      void setMaxInactivity(int i)
      Sets the max inactivity.
      Parameters:
      i - the new max inactivity
    • getFormattedMaxInactivity

      String getFormattedMaxInactivity()
      Gets the formatted max inactivity.
      Returns:
      the formatted max inactivity
    • getFormattedResetFrequency

      String getFormattedResetFrequency()
      Gets the formatted reset frequency.
      Returns:
      the formatted reset frequency
    • getIfTargetExistText

      String getIfTargetExistText()
      Gets the if target exist text.
      Returns:
      the if target exist text
    • getOnHostFailureText

      String getOnHostFailureText()
      Gets the on host failure text.
      Returns:
      the on host failure text
    • getKeepInSpoolText

      String getKeepInSpoolText()
      Gets the keep in spool text.
      Returns:
      the keep in spool text
    • getMailOnUpdate

      boolean getMailOnUpdate()
      Gets the mail on update.
      Returns:
      the mail on update
    • getMailOnEnd

      boolean getMailOnEnd()
      Gets the mail on end.
      Returns:
      the mail on end
    • getMailOnError

      boolean getMailOnError()
      Gets the mail on error.
      Returns:
      the mail on error
    • getMailOnStart

      boolean getMailOnStart()
      Gets the mail on start.
      Returns:
      the mail on start
    • getName

      String getName()
      Gets the name.
      Returns:
      the name
    • getUserMail

      String getUserMail()
      Gets the user mail.
      Returns:
      the user mail
    • getComment

      String getComment()
      Gets the comment.
      Returns:
      the comment
    • getFilterName

      String getFilterName()
      Gets the filter name.
      Returns:
      the filter name
    • getGroupByDate

      boolean getGroupByDate()
      Gets the group by date.
      Returns:
      the group by date
    • setGroupByDate

      void setGroupByDate(boolean b)
      Sets the group by date.
      Parameters:
      b - the new group by date
    • getDateFormat

      String getDateFormat()
      Gets the date format.
      Returns:
      the date format
    • setDateFormat

      void setDateFormat(String format)
      Sets the date format.
      Parameters:
      format - the new date format
    • setTransferGroup

      void setTransferGroup(TransferGroup m)
      Sets the transfer group.
      Parameters:
      m - the new transfer group
    • setTransferGroupName

      void setTransferGroupName(String s)
      Sets the transfer group name.
      Parameters:
      s - the new transfer group name
    • isDirty

      boolean isDirty()
      Checks if is dirty.
      Returns:
      True if some changes to data related to the destination need a restart to be applied.
    • getStopIfDirty

      boolean getStopIfDirty()
      Gets the stop if dirty.
      Returns:
      the stop if dirty
    • setStopIfDirty

      void setStopIfDirty(boolean b)
      Sets the stop if dirty.
      Parameters:
      b - the new stop if dirty
    • getAssociatedEcUsers

      Collection<EcUser> getAssociatedEcUsers() throws TransferException
      Gets the associated ec users.
      Returns:
      the associated ec users
      Throws:
      TransferException - the transfer exception
    • getAssociatedIncomingPolicies

      Collection<IncomingPolicy> getAssociatedIncomingPolicies() throws TransferException
      Gets the associated incoming policies.
      Returns:
      the associated incoming policies
      Throws:
      TransferException - the transfer exception
    • addAssociatedEcUser

      void addAssociatedEcUser(EcUser u)
      Adds the associated ec user.
      Parameters:
      u - the u
    • deleteAssociatedEcUser

      void deleteAssociatedEcUser(EcUser u)
      Delete associated ec user.
      Parameters:
      u - the u
    • getDataTransfersOnDate

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

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

      Collection<DataTransfer> getDataTransfersByProductAndTimeOnDate(String product, String time, Date d) throws TransferException
      Gets the data transfers by product and time on date.
      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
    • getDataTransfersIncludingRetriesOnTransmissionDate

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

      Collection<DataTransfer> getBadDataTransfers() throws TransferException
      Gets the bad data transfers.
      Returns:
      the bad data transfers
      Throws:
      TransferException - the transfer exception
    • getBadDataTransfersSize

      int getBadDataTransfersSize() throws TransferException
      Gets the bad data transfers size.
      Returns:
      the bad data transfers size
      Throws:
      TransferException - the transfer exception
    • getHostsAndPriorities

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

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

      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 exists
    • getAcquisitionHostsAndPriorities

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

      Returns:
      the aliases
      Throws:
      TransferException - the transfer exception
    • getAliasList

      Collection<Alias> getAliasList() throws TransferException
      Gets the alias list.
      Returns:
      the alias list
      Throws:
      TransferException - the transfer exception
    • getTrafficList

      Collection<Traffic> getTrafficList() throws TransferException
      Gets the traffic list.
      Returns:
      the traffic list
      Throws:
      TransferException - the transfer exception
    • getChangeLogList

      Collection<ChangeLog> getChangeLogList() throws TransferException
      Gets the change log list.
      Returns:
      the change log list
      Throws:
      TransferException - the transfer exception
    • getAliasedFrom

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

      Gets the meta data.
      Returns:
      the meta data
      Throws:
      TransferException - the transfer exception
    • getMaxConnections

      int getMaxConnections()
      Gets the max connections.
      Returns:
      the max connections
    • getRetryFrequency

      int getRetryFrequency()
      Gets the retry frequency.
      Returns:
      the retry frequency
    • getFormattedRetryFrequency

      String getFormattedRetryFrequency()
      Gets the formatted retry frequency.
      Returns:
      the formatted retry frequency
    • getRetryCount

      int getRetryCount()
      Gets the retry count.
      Returns:
      the retry count
    • getBandWidth

      long getBandWidth() throws TransferException
      Gets the band width.
      Returns:
      the band width
      Throws:
      TransferException - the transfer exception
    • getStatusMapForProducts

      Map<String, DestinationProductStatus> getStatusMapForProducts() throws TransferException
      Gets the status map for products.
      Returns:
      the status map for products
      Throws:
      TransferException - the transfer exception
    • getMonitoringStatus

      DestinationStatus getMonitoringStatus() throws TransferException
      Gets the monitoring status.
      Returns:
      the monitoring status
      Throws:
      TransferException - the transfer exception
    • getFormattedStatus

      String getFormattedStatus()
      Gets the formatted status.
      Returns:
      the formatted status
    • getLastTransfer

      DataTransfer getLastTransfer() throws TransferException
      Gets the last transfer.
      Returns:
      the last transfer
      Throws:
      TransferException - the transfer exception
    • getLastError

      DataTransfer getLastError() throws TransferException
      Gets the last error.
      Returns:
      the last error
      Throws:
      TransferException - the transfer exception
    • getQueueSize

      int getQueueSize()
      Gets the queue size.
      Returns:
      the queue size
    • clean

      void clean(ecmwf.web.model.users.User u) throws TransferException
      Clean.
      Parameters:
      u - the u
      Throws:
      TransferException - the transfer exception
    • cleanExpired

      void cleanExpired(ecmwf.web.model.users.User u) throws TransferException
      Clean expired.
      Parameters:
      u - the u
      Throws:
      TransferException - the transfer exception
    • restart

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

      void putOnHold(boolean graceful, ecmwf.web.model.users.User u) throws TransferException
      Put on hold.
      Parameters:
      graceful - the graceful
      u - the u
      Throws:
      TransferException - the transfer exception
    • addHost

      void addHost(Host h)
      Adds the host.
      Parameters:
      h - the h
    • addIncomingPolicy

      void addIncomingPolicy(IncomingPolicy h)
      Adds the incoming policy.
      Parameters:
      h - the h
    • deleteHost

      void deleteHost(Host p)
      Delete host.
      Parameters:
      p - the p
    • deleteIncomingPolicy

      void deleteIncomingPolicy(IncomingPolicy p)
      Delete incoming policy.
      Parameters:
      p - the p
    • addAlias

      void addAlias(Destination d)
      Adds the alias.
      Parameters:
      d - the d
    • deleteAlias

      void deleteAlias(Destination d)
      Delete alias.
      Parameters:
      d - the d
    • deleteMetadataFile

      void deleteMetadataFile(String fileName)
      Delete metadata file.
      Parameters:
      fileName - the file name
    • setActive

      void setActive(boolean b)
      Sets the active.
      Parameters:
      b - the new active
    • setBackup

      void setBackup(boolean b)
      Sets the backup.
      Parameters:
      b - the new backup
    • setAcquisition

      void setAcquisition(boolean b)
      Sets the acquisition.
      Parameters:
      b - the new acquisition
    • setEcUserName

      void setEcUserName(String name)
      Sets the ec user name.
      Parameters:
      name - the new ec user name
    • setCountryIso

      void setCountryIso(String iso)
      Sets the country iso.
      Parameters:
      iso - the new country iso
    • setHostForSourceName

      void setHostForSourceName(String name)
      Sets the host for source name.
      Parameters:
      name - the new host for source name
    • setIfTargetExist

      void setIfTargetExist(int i)
      Sets the if target exist.
      Parameters:
      i - the new if target exist
    • setOnHostFailure

      void setOnHostFailure(int i)
      Sets the on host failure.
      Parameters:
      i - the new on host failure
    • setKeepInSpool

      void setKeepInSpool(int i)
      Sets the keep in spool.
      Parameters:
      i - the new keep in spool
    • setMailOnUpdate

      void setMailOnUpdate(boolean b)
      Sets the mail on update.
      Parameters:
      b - the new mail on update
    • setMailOnEnd

      void setMailOnEnd(boolean b)
      Sets the mail on end.
      Parameters:
      b - the new mail on end
    • setMailOnError

      void setMailOnError(boolean b)
      Sets the mail on error.
      Parameters:
      b - the new mail on error
    • setMailOnStart

      void setMailOnStart(boolean b)
      Sets the mail on start.
      Parameters:
      b - the new mail on start
    • setName

      void setName(String name)
      Sets the name.
      Parameters:
      name - the new name
    • setUserMail

      void setUserMail(String mail)
      Sets the user mail.
      Parameters:
      mail - the new user mail
    • setComment

      void setComment(String comment)
      Sets the comment.
      Parameters:
      comment - the new comment
    • setFilterName

      void setFilterName(String filterName)
      Sets the filter name.
      Parameters:
      filterName - the new filter name
    • setMaxConnections

      void setMaxConnections(int i)
      Sets the max connections.
      Parameters:
      i - the new max connections
    • setRetryFrequency

      void setRetryFrequency(int i)
      Sets the retry frequency.
      Parameters:
      i - the new retry frequency
    • setRetryCount

      void setRetryCount(int i)
      Sets the retry count.
      Parameters:
      i - the new retry count
    • setMaxPending

      void setMaxPending(int i)
      Sets the max pending.
      Parameters:
      i - the new max pending
    • setMaxFileSize

      void setMaxFileSize(long i)
      Sets the max file size.
      Parameters:
      i - the new max file size
    • setMaxStart

      void setMaxStart(int i)
      Sets the max start.
      Parameters:
      i - the new max start
    • setMaxRequeue

      void setMaxRequeue(int i)
      Sets the max requeue.
      Parameters:
      i - the new max requeue
    • setStartFrequency

      void setStartFrequency(int i)
      Sets the start frequency.
      Parameters:
      i - the new start frequency
    • setResetFrequency

      void setResetFrequency(long l)
      Sets the reset frequency.
      Parameters:
      l - the new reset frequency
    • getShowInMonitors

      boolean getShowInMonitors()
      Gets the show in monitors.
      Returns:
      the show in monitors
    • setShowInMonitors

      void setShowInMonitors(boolean b)
      Sets the show in monitors.
      Parameters:
      b - the new show in monitors
    • getType

      int getType()
      Gets the type.
      Returns:
      the type
    • setType

      void setType(int i)
      Sets the type.
      Parameters:
      i - the new type
    • getTypeText

      String getTypeText()
      Gets the type text.
      Returns:
      the type text
    • getAllTypes

      List<ecmwf.web.util.bean.StringPair> getAllTypes()
      Gets the all types.
      Returns:
      the all types
    • getTransferContent

      ecmwf.web.services.content.Content getTransferContent(DataTransfer t, ecmwf.web.model.users.User u) throws TransferException
      Gets the transfer content.
      Parameters:
      t - the t
      u - the u
      Returns:
      the transfer content
      Throws:
      TransferException - the transfer exception