Package lumis.portal.filesystem
Class FileSystemUtil
- java.lang.Object
-
- lumis.portal.filesystem.FileSystemUtil
-
public class FileSystemUtil extends Object
Utility class that provides methods for use internally in the lumis.portal.filesystem package.- Since:
- 4.1.0
- Version:
- $Revision: 22700 $ $Date: 2019-05-02 16:44:42 -0300 (Thu, 02 May 2019) $
-
-
Constructor Summary
Constructors Constructor Description FileSystemUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
deleteLocalFile(File file)
Deletes a file locally.static boolean
isStandardFileSystem()
Returns whether the used file system is a LumisPortal standard one.static void
sendClusterCommand(Runnable runnable)
Utility method that sends the given runnable as a durable, total order cluster command.static <T extends Serializable>
TsendClusterCommand(IClusterCallable<T> callable)
Utility method that sends the given callable as a durable, total order cluster command.
-
-
-
Method Detail
-
deleteLocalFile
public static boolean deleteLocalFile(File file)
Deletes a file locally.- Parameters:
file
- the file.- Returns:
- true if the file was successfully deleted, false otherwise.
- Since:
- 4.1.0
-
sendClusterCommand
public static void sendClusterCommand(Runnable runnable)
Utility method that sends the given runnable as a durable, total order cluster command.- Parameters:
runnable
- the runnable.- Since:
- 4.1.0
-
sendClusterCommand
public static <T extends Serializable> T sendClusterCommand(IClusterCallable<T> callable) throws Exception
Utility method that sends the given callable as a durable, total order cluster command.- Parameters:
callable
- the callable.- Returns:
- the local execution result (if any).
- Throws:
Exception
- Since:
- 8.0.0
-
isStandardFileSystem
public static boolean isStandardFileSystem()
Returns whether the used file system is a LumisPortal standard one.- Returns:
- whether the used file system is a LumisPortal standard one.
- Since:
- 8.0.0
-
-