public class WhiteboardUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WhiteboardUtils.ScheduleExecutionInstanceTypes |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JMX_OAK_DOMAIN
JMX Domain name under which Oak related JMX MBeans are registered
|
Constructor and Description |
---|
WhiteboardUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
getService(Whiteboard wb,
java.lang.Class<T> type)
Returns the one of the currently available services from the whiteboard of the tracked type.
|
static <T> T |
getService(Whiteboard wb,
java.lang.Class<T> type,
<any> predicate)
Returns the one of the currently available services from the whiteboard of the tracked type.
|
static <T> java.util.List<T> |
getServices(Whiteboard wb,
java.lang.Class<T> type)
Returns the currently available services from the whiteboard of the tracked type.
|
static <T> java.util.List<T> |
getServices(Whiteboard wb,
java.lang.Class<T> type,
<any> predicate)
Returns the currently available services from the whiteboard of the tracked type.
|
static <T> Registration |
registerMBean(Whiteboard whiteboard,
java.lang.Class<T> iface,
T bean,
java.lang.String type,
java.lang.String name) |
static <T> Registration |
registerMBean(Whiteboard whiteboard,
java.lang.Class<T> iface,
T bean,
java.lang.String type,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> attrs) |
static Registration |
scheduleWithFixedDelay(Whiteboard whiteboard,
java.lang.Runnable runnable,
long delayInSeconds) |
static Registration |
scheduleWithFixedDelay(Whiteboard whiteboard,
java.lang.Runnable runnable,
long delayInSeconds,
boolean runOnSingleClusterNode,
boolean useDedicatedPool) |
static Registration |
scheduleWithFixedDelay(Whiteboard whiteboard,
java.lang.Runnable runnable,
java.util.Map<java.lang.String,java.lang.Object> extraProps,
long delayInSeconds,
boolean runOnSingleClusterNode,
boolean useDedicatedPool) |
static Registration |
scheduleWithFixedDelay(Whiteboard whiteboard,
java.lang.Runnable runnable,
java.util.Map<java.lang.String,java.lang.Object> extraProps,
long delayInSeconds,
WhiteboardUtils.ScheduleExecutionInstanceTypes scheduleExecutionInstanceTypes,
boolean useDedicatedPool) |
public static final java.lang.String JMX_OAK_DOMAIN
public static Registration scheduleWithFixedDelay(Whiteboard whiteboard, java.lang.Runnable runnable, long delayInSeconds)
public static Registration scheduleWithFixedDelay(Whiteboard whiteboard, java.lang.Runnable runnable, long delayInSeconds, boolean runOnSingleClusterNode, boolean useDedicatedPool)
public static Registration scheduleWithFixedDelay(Whiteboard whiteboard, java.lang.Runnable runnable, java.util.Map<java.lang.String,java.lang.Object> extraProps, long delayInSeconds, boolean runOnSingleClusterNode, boolean useDedicatedPool)
public static Registration scheduleWithFixedDelay(Whiteboard whiteboard, java.lang.Runnable runnable, java.util.Map<java.lang.String,java.lang.Object> extraProps, long delayInSeconds, WhiteboardUtils.ScheduleExecutionInstanceTypes scheduleExecutionInstanceTypes, boolean useDedicatedPool)
public static <T> Registration registerMBean(Whiteboard whiteboard, java.lang.Class<T> iface, T bean, java.lang.String type, java.lang.String name)
public static <T> Registration registerMBean(Whiteboard whiteboard, java.lang.Class<T> iface, T bean, java.lang.String type, java.lang.String name, java.util.Map<java.lang.String,java.lang.String> attrs)
public static <T> java.util.List<T> getServices(Whiteboard wb, java.lang.Class<T> type)
wb
- the whiteboardtype
- the service typepublic static <T> T getService(Whiteboard wb, java.lang.Class<T> type)
null
public static <T> java.util.List<T> getServices(Whiteboard wb, java.lang.Class<T> type, <any> predicate)
predicate
is
not null
the returned list is limited to the ones that match the predicate.
Note that the underlying tracker is stopped automatically after the services are returned.wb
- the whiteboardtype
- the service typepredicate
- filtering predicate or null
public static <T> T getService(Whiteboard wb, java.lang.Class<T> type, <any> predicate)
predicate
is
not null
only a service that match the predicate is returned.
Note that the underlying tracker is closed automatically.wb
- the whiteboardtype
- the service typepredicate
- filtering predicate or null
null
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"