Class OpenGrid

java.lang.Object
net.sf.basedb.opengrid.OpenGrid

public final class OpenGrid extends Object
Global constants and utility functions for the Open Grid Scheduler service package.
Since:
1.0
  • Field Details

  • Constructor Details

    • OpenGrid

      public OpenGrid()
  • Method Details

    • close

      public static void close(Closeable closeable)
      Exception-safe method for closing closeable object. Swallows all exceptions and allows a null paramater.
    • checkValidFilename

      public static String checkValidFilename(String filename)
      Checks that a value is allowed as a file/directory name. We only allow letters, numbers, dot, hyphen and underscore. It may not contain a double dot (..).
      Returns:
      The given filename if it is valid
      Throws:
      IllegalArgumentException - If the filename is not valid