public class VisorTaskUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VisorTaskUtils.SortableAddress
Special wrapper over address that can be sorted in following order:
IPv4, private IPv4, IPv4 local host, IPv6.
|
| Constructor and Description |
|---|
VisorTaskUtils() |
| Modifier and Type | Method and Description |
|---|---|
static @Nullable String |
compactClass(Class cls)
Compact class names.
|
static @Nullable String |
compactClass(@Nullable Object obj)
Compact class names.
|
static @Nullable List<String> |
compactClasses(Class<?>[] clss)
Compact classes names.
|
static @Nullable String |
compactIterable(Iterable col)
Joins iterable collection elements to string.
|
static Integer |
evictionPolicyMaxSize(@Nullable javax.cache.configuration.Factory plc)
Extract max size from eviction policy if available.
|
static boolean |
isRestartingCache(IgniteEx ignite,
String cacheName)
Check whether cache restarting in progress.
|
static long |
log(@Nullable IgniteLogger log,
String msg,
Class<?> clazz,
long start)
Log message.
|
static void |
logFinish(@Nullable IgniteLogger log,
Class<?> clazz,
long start)
Log finished.
|
static void |
logMapped(@Nullable IgniteLogger log,
Class<?> clazz,
Collection<ClusterNode> nodes)
Log task mapped.
|
static void |
logStart(@Nullable IgniteLogger log,
Class<?> clazz,
long start)
Log start.
|
@Nullable public static @Nullable String compactClass(Class cls)
cls - Class object for compact.@Nullable public static @Nullable String compactClass(@Nullable @Nullable Object obj)
obj - Object for compact.@Nullable public static @Nullable List<String> compactClasses(Class<?>[] clss)
clss - Classes to compact.@Nullable public static @Nullable String compactIterable(Iterable col)
col - Iterable collection.public static Integer evictionPolicyMaxSize(@Nullable @Nullable javax.cache.configuration.Factory plc)
plc - Eviction policy.public static void logStart(@Nullable
@Nullable IgniteLogger log,
Class<?> clazz,
long start)
log - Logger.clazz - Class.start - Start time.public static void logFinish(@Nullable
@Nullable IgniteLogger log,
Class<?> clazz,
long start)
log - Logger.clazz - Class.start - Start time.public static void logMapped(@Nullable
@Nullable IgniteLogger log,
Class<?> clazz,
Collection<ClusterNode> nodes)
log - Logger.clazz - Task class.nodes - Mapped nodes.public static long log(@Nullable
@Nullable IgniteLogger log,
String msg,
Class<?> clazz,
long start)
log - Logger.msg - Message to log.clazz - class.start - start time.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023