Class ECtransList

java.lang.Object
ecmwf.common.ectrans.ECtransList

public final class ECtransList extends Object
The Class ECtransList.
  • Constructor Details

    • ECtransList

      public ECtransList(String directory)
      Instantiates a new ectrans list.
      Parameters:
      directory - the directory
    • ECtransList

      public ECtransList(String directory, String pattern, boolean asStringArray)
      Instantiates a new ectrans list.
      Parameters:
      directory - the directory
      pattern - the pattern
      asStringArray - the asStringArray
    • ECtransList

      public ECtransList(String directory, String pattern, OutputStream out)
      Instantiates a new ectrans list.
      Parameters:
      directory - the directory
      pattern - the pattern
      out - the out
  • Method Details

    • getName

      protected String getName()
      Gets the name. Gets the name.
      Returns:
      the name
    • exec

      protected void exec(TransferModule module, boolean interruptible) throws Exception
      Exec. Exec.
      Parameters:
      module - the module
      interruptible - the interruptible
      Throws:
      Exception - the exception
    • getListAsStringArray

      public String[] getListAsStringArray() throws ECtransException
      Gets the list as a string array.
      Returns:
      the list
      Throws:
      ECtransException - the ectrans exception
    • getListAsByteArray

      public byte[] getListAsByteArray() throws ECtransException
      Gets the list as a GZIPed byte array.
      Returns:
      the list
      Throws:
      ECtransException - the ectrans exception
    • init

      public void init(RemoteProvider provider, ECtransContainer container, ECtransCallback callback, String cookie)
      Inits the.
      Parameters:
      provider - the provider
      container - the container
      callback - the callback
      cookie - the cookie
    • getECTransContainer

      protected ECtransContainer getECTransContainer()
      Gets the EC trans container.
      Returns:
      the EC trans container
    • getECtransCallback

      protected ECtransCallback getECtransCallback()
      Gets the ectrans callback.
      Returns:
      the ectrans callback
    • getRemoteProvider

      protected RemoteProvider getRemoteProvider()
      Gets the remote provider.
      Returns:
      the remote provider
    • getECtransHistory

      protected ECtransHistory getECtransHistory()
      Gets the ectrans history.
      Returns:
      the ectrans history
    • getCookie

      protected String getCookie()
      Gets the cookie.
      Returns:
      the cookie
    • getResult

      public Object getResult()
      Gets the result.
      Returns:
      the result
    • close

      protected void close(TransferModule module, long timeout, boolean asynchronous) throws IOException
      Close.
      Parameters:
      module - the module
      timeout - the timeout
      asynchronous - the asynchronous
      Throws:
      IOException - Signals that an I/O exception has occurred.