public class MarshallerUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLS_NAMES_FILE
Class names file.
|
static String |
JDK_CLS_NAMES_FILE
Jdk class names file.
|
Modifier and Type | Method and Description |
---|---|
static IgnitePredicate<String> |
classNameFilter(ClassLoader clsLdr)
Returns class name filter for marshaller.
|
static JdkMarshaller |
jdkMarshaller(@Nullable String nodeName)
Create JDK marshaller with provided node name.
|
static IgniteProductVersion |
jobReceiverVersion()
Returns thread local job receiver node version.
|
static void |
jobReceiverVersion(IgniteProductVersion ver)
Sets thread local job receiver node version.
|
static IgniteProductVersion |
jobSenderVersion()
Returns thread local job sender node version.
|
static void |
jobSenderVersion(IgniteProductVersion ver)
Sets thread local job sender node version.
|
static void |
processSystemClasses(ClassLoader ldr,
@Nullable Collection<PluginProvider> plugins,
Consumer<String> proc)
Find all system class names (for JDK or Ignite classes) and process them with a given consumer.
|
static void |
setNodeName(Marshaller marsh,
@Nullable String nodeName)
Set node name to marshaller context if possible.
|
public static final String JDK_CLS_NAMES_FILE
public static final String CLS_NAMES_FILE
public static void setNodeName(Marshaller marsh, @Nullable @Nullable String nodeName)
marsh
- Marshaller instance.nodeName
- Node name.public static JdkMarshaller jdkMarshaller(@Nullable @Nullable String nodeName)
nodeName
- Node name.public static void jobSenderVersion(IgniteProductVersion ver)
ver
- Thread local job sender node version.public static IgniteProductVersion jobSenderVersion()
public static void jobReceiverVersion(IgniteProductVersion ver)
ver
- Thread local job receiver node version.public static IgniteProductVersion jobReceiverVersion()
public static IgnitePredicate<String> classNameFilter(ClassLoader clsLdr) throws IgniteCheckedException
IgniteCheckedException
public static void processSystemClasses(ClassLoader ldr, @Nullable @Nullable Collection<PluginProvider> plugins, Consumer<String> proc) throws IOException
ldr
- Class loader.plugins
- Plugins.proc
- Class processor (class name consumer).IOException
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024