Class DataFileBean

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

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

    • DataFileBean

      protected DataFileBean(DataFile datafile)
      Instantiates a new data file bean.
      Parameters:
      datafile - the datafile
  • Method Details

    • setUser

      public void setUser(ecmwf.web.model.users.User user)
      Sets the user. Sets the user.
      Specified by:
      setUser in interface DataFile
      Parameters:
      user - the new user
    • getUser

      public ecmwf.web.model.users.User getUser()
      Gets the user.
      Returns:
      the user
    • getIndex

      public int getIndex()
      Gets the index. Gets the index.
      Specified by:
      getIndex in interface DataFile
      Returns:
      the index
    • getCaller

      public String getCaller()
      Gets the caller. Gets the caller.
      Specified by:
      getCaller in interface DataFile
      Returns:
      the caller
    • getFormattedCaller

      public String getFormattedCaller()
      Gets the formatted caller. Gets the formatted caller.
      Specified by:
      getFormattedCaller in interface DataFile
      Returns:
      the formatted caller
    • getRemoteHost

      public String getRemoteHost()
      Gets the remote host. Gets the remote host.
      Specified by:
      getRemoteHost in interface DataFile
      Returns:
      the remote host
    • getGetHost

      public String getGetHost()
      Gets the gets the host. Gets the gets the host.
      Specified by:
      getGetHost in interface DataFile
      Returns:
      the gets the host
    • getGroupBy

      public String getGroupBy()
      Gets the group by.
      Returns:
      the group by
    • getChecksum

      public String getChecksum()
      Gets the checksum. Gets the checksum.
      Specified by:
      getChecksum in interface DataFile
      Returns:
      the checksum
    • getGetCompleteDuration

      public String getGetCompleteDuration()
      Gets the gets the complete duration. Gets the gets the complete duration.
      Specified by:
      getGetCompleteDuration in interface DataFile
      Returns:
      the gets the complete duration
    • getGetDuration

      public String getGetDuration()
      Gets the gets the duration. Gets the gets the duration.
      Specified by:
      getGetDuration in interface DataFile
      Returns:
      the gets the duration
    • getGetProtocolOverhead

      public String getGetProtocolOverhead()
      Gets the gets the protocol overhead. Gets the gets the protocol overhead.
      Specified by:
      getGetProtocolOverhead in interface DataFile
      Returns:
      the gets the protocol overhead
    • getEcauthHost

      public String getEcauthHost()
      Gets the ecauth host. Gets the ecauth host.
      Specified by:
      getEcauthHost in interface DataFile
      Returns:
      the ecauth host
    • getEcauthUser

      public String getEcauthUser()
      Gets the ecauth user. Gets the ecauth user.
      Specified by:
      getEcauthUser in interface DataFile
      Returns:
      the ecauth user
    • 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
    • getArrivedTime

      public Date getArrivedTime()
      Gets the arrived time. Gets the arrived time.
      Specified by:
      getArrivedTime in interface DataFile
      Returns:
      the arrived time
    • getProductTime

      public Date getProductTime()
      Gets the product time. Gets the product time.
      Specified by:
      getProductTime in interface DataFile
      Returns:
      the product time
    • getStoragePath

      public String getStoragePath()
      Gets the storage path. Gets the storage path.
      Specified by:
      getStoragePath in interface DataFile
      Returns:
      the storage path
    • getProductGenerationTime

      public Date getProductGenerationTime()
      Gets the product generation time. Gets the product generation time.
      Specified by:
      getProductGenerationTime in interface DataFile
      Returns:
      the product generation time
    • getEarliestTime

      public Date getEarliestTime()
      Gets the earliest time. Gets the earliest time.
      Specified by:
      getEarliestTime in interface DataFile
      Returns:
      the earliest time
    • getLatestTime

      public Date getLatestTime()
      Gets the latest time. Gets the latest time.
      Specified by:
      getLatestTime in interface DataFile
      Returns:
      the latest time
    • getPredictedTime

      public Date getPredictedTime()
      Gets the predicted time. Gets the predicted time.
      Specified by:
      getPredictedTime in interface DataFile
      Returns:
      the predicted time
    • getCollectionSize

      public int getCollectionSize()
      Gets the collection size. Gets the collection size.
      Specified by:
      getCollectionSize in interface CollectionSizeBean
      Returns:
      the collection size
    • getDeleted

      public boolean getDeleted()
      Gets the deleted. Gets the deleted.
      Specified by:
      getDeleted in interface DataFile
      Returns:
      the deleted
    • getDeleteOriginal

      public boolean getDeleteOriginal()
      Gets the delete original. Gets the delete original.
      Specified by:
      getDeleteOriginal in interface DataFile
      Returns:
      the delete original
    • getRemoved

      public boolean getRemoved()
      Gets the removed. Gets the removed.
      Specified by:
      getRemoved in interface DataFile
      Returns:
      the removed
    • getOriginal

      public String getOriginal()
      Gets the original. Gets the original.
      Specified by:
      getOriginal in interface DataFile
      Returns:
      the original
    • getFormattedOriginal

      public String getFormattedOriginal()
      Gets the formatted original. Gets the formatted original.
      Specified by:
      getFormattedOriginal in interface DataFile
      Returns:
      the formatted original
    • getSize

      public long getSize()
      Gets the size. Gets the size.
      Specified by:
      getSize in interface DataFile
      Returns:
      the size
    • getFormattedSize

      public String getFormattedSize()
      Gets the formatted size. Gets the formatted size.
      Specified by:
      getFormattedSize in interface DataFile
      Returns:
      the formatted size
    • getSource

      public String getSource()
      Gets the source. Gets the source.
      Specified by:
      getSource in interface DataFile
      Returns:
      the source
    • getTime

      public Date getTime()
      Gets the time.
      Returns:
      the time
    • getTimeStep

      public long getTimeStep()
      Gets the time step. Gets the time step.
      Specified by:
      getTimeStep in interface DataFile
      Returns:
      the time step
    • getMetaData

      public Collection<MetaData> getMetaData() throws DataFileException
      Gets the meta data. Gets the meta data.
      Specified by:
      getMetaData in interface DataFile
      Returns:
      the meta data
      Throws:
      DataFileException - the data file exception
    • setRemoved

      public void setRemoved(boolean b)
      Sets the removed.
      Parameters:
      b - the new removed
    • getDataTransfers

      public Collection<DataTransfer> getDataTransfers() throws DataFileException
      Gets the data transfers. Gets the data transfers.
      Specified by:
      getDataTransfers in interface DataFile
      Returns:
      the data transfers
      Throws:
      DataFileException - the data file exception
    • getMetaTime

      public String getMetaTime()
      Gets the meta time. Gets the meta time.
      Specified by:
      getMetaTime in interface DataFile
      Returns:
      The time of the product. Eg "00", "12", etc
    • getMetaStream

      public String getMetaStream()
      Gets the meta stream. Gets the meta stream.
      Specified by:
      getMetaStream in interface DataFile
      Returns:
      The stream (data stream) of the product. Eg "OPER", "WAVE", etc
    • getMetaTarget

      public String getMetaTarget()
      Gets the meta target. Gets the meta target.
      Specified by:
      getMetaTarget in interface DataFile
      Returns:
      The target (dissemination stream) of the product. Eg "IT1", "IT2", etc
    • getMetaType

      public String getMetaType()
      Gets the meta type. Gets the meta type.
      Specified by:
      getMetaType in interface DataFile
      Returns:
      The type of the product. Eg "G" for Global, "M" for Mediterranean
    • equals

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

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