Class HandlerUtils
- java.lang.Object
-
- fr.gouv.vitam.worker.core.handler.HandlerUtils
-
public class HandlerUtils extends java.lang.Object
Handler Utils class
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
save(HandlerIO handlerIO, java.lang.Object object, int rank)
Save the given map as specified by the rank output argumentstatic void
save(HandlerIO handlerIO, java.lang.Object object, java.lang.String workspacePath)
Save the given map as specified by the rank output argumentstatic void
saveMap(HandlerIO handlerIO, java.util.Map<java.lang.String,?> map, int rank, boolean removeTmpFile, boolean asyncIO)
Save the given map as specified by the rank output argumentstatic void
saveSet(HandlerIO handlerIO, java.util.Set<?> set, int rank, boolean removeTmpFile, boolean asyncIO)
Save the given set as specified by the rank output argument
-
-
-
Method Detail
-
save
public static void save(HandlerIO handlerIO, java.lang.Object object, int rank) throws java.io.IOException, ProcessingException
Save the given map as specified by the rank output argument- Parameters:
handlerIO
- the handler ioobject
- the data object to writerank
- the output rank- Throws:
java.io.IOException
- if cannot write file in json formatProcessingException
- if processing exception occurred
-
save
public static void save(HandlerIO handlerIO, java.lang.Object object, java.lang.String workspacePath) throws java.io.IOException, ProcessingException
Save the given map as specified by the rank output argument- Parameters:
handlerIO
- the handler ioobject
- the data object to writeworkspacePath
- path to workspace- Throws:
java.io.IOException
- if cannot write file in json formatProcessingException
- if processing exception occurred
-
saveMap
public static void saveMap(HandlerIO handlerIO, java.util.Map<java.lang.String,?> map, int rank, boolean removeTmpFile, boolean asyncIO) throws java.io.IOException, ProcessingException
Save the given map as specified by the rank output argument- Parameters:
handlerIO
- the handler iomap
- the data map to writerank
- the output rankremoveTmpFile
- if remove temp output file- Throws:
java.io.IOException
- if cannot write file in json formatProcessingException
- if processing exception occurred
-
saveSet
public static void saveSet(HandlerIO handlerIO, java.util.Set<?> set, int rank, boolean removeTmpFile, boolean asyncIO) throws java.io.IOException, ProcessingException
Save the given set as specified by the rank output argument- Parameters:
handlerIO
- the handler ioset
- the data set to writerank
- the output rankremoveTmpFile
- if remove temp output file- Throws:
java.io.IOException
- if cannot write file in json formatProcessingException
- if processing exception occurred
-
-