Package net.sf.basedb.opengrid
Class OpenGrid
java.lang.Object
net.sf.basedb.opengrid.OpenGrid
Global constants and utility functions for the Open Grid Scheduler
service package.
- Since:
- 1.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
checkValidFilename
(String filename) Checks that a value is allowed as a file/directory name.static void
Exception-safe method for closing closeable object.
-
Field Details
-
VERSION
The current version of this package.- See Also:
-
-
Constructor Details
-
OpenGrid
public OpenGrid()
-
-
Method Details
-
close
Exception-safe method for closing closeable object. Swallows all exceptions and allows a null paramater. -
checkValidFilename
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
-