Class ObjectRepository

java.lang.Object
ecmwf.common.technical.ObjectRepository

public abstract class ObjectRepository extends Object
The Class ObjectRepository.
  • Constructor Details

    • ObjectRepository

      public ObjectRepository()
      Instantiates a new object repository.
  • Method Details

    • getNewKey

      public static String getNewKey()
      Gets the new key.
      Returns:
      the new key
    • clear

      public void clear()
      Clear.
    • elements

      public Object[] elements()
      Elements.
      Returns:
      the object[]
    • get

      public Object get(String key) throws IOException, ClassNotFoundException
      Gets the.
      Parameters:
      key - the key
      Returns:
      the object
      Throws:
      IOException - Signals that an I/O exception has occurred.
      ClassNotFoundException - the class not found exception
    • getDir

      public abstract File getDir()
      Gets the dir.
      Returns:
      the dir
    • getElement

      public Object getElement(File file) throws IOException, ClassNotFoundException
      Gets the element.
      Parameters:
      file - the file
      Returns:
      the element
      Throws:
      IOException - Signals that an I/O exception has occurred.
      ClassNotFoundException - the class not found exception
    • getExt

      public abstract String getExt()
      Gets the ext.
      Returns:
      the ext
    • keys

      public String[] keys()
      Keys.
      Returns:
      the string[]
    • lastModified

      public long lastModified(String key) throws IOException
      Last modified.
      Parameters:
      key - the key
      Returns:
      the long
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • put

      public void put(String key, Object obj) throws IOException
      Puts the.
      Parameters:
      key - the key
      obj - the obj
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • remove

      public boolean remove(String key)
      Removes the.
      Parameters:
      key - the key
      Returns:
      true, if successful