public class DistributedUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DistributedUtils.ListenerInfo |
| Constructor and Description |
|---|
DistributedUtils() |
| Modifier and Type | Method and Description |
|---|---|
static MonitorComposite |
changeInstanceName(String instanceName,
MonitorComposite monitorComposite)
change monitor composites instanceName as well as all of its monKey instanceNames and instance names in any
JAMonBufferListener's.
|
static void |
copyJamonBufferListenerData(Monitor from,
Monitor to)
Copy
|
static void |
copyJamonBufferListenerData(Monitor from,
Monitor to,
int numInstances)
Copy
|
static List<DistributedUtils.ListenerInfo> |
getAllListeners(Monitor monitor)
Get a list of listeners associated with a monitor.
|
public static List<DistributedUtils.ListenerInfo> getAllListeners(Monitor monitor)
public static void copyJamonBufferListenerData(Monitor from, Monitor to, int numInstances)
from - to - numInstances - Represents the total number of instances that will be sharing this buffer. This number is used to
determine how many rows from each instance are put into a FIFOBuffer. The amount of rows put in each
the buffer by each buffer is maxRowsInBuffer/numInstances. If maxRowsInBuffer=400 and numInstances=10 then
each instance could put a max of 40 rows in the buffer.
Note this number doesn't apply to other types of buffers such as max buffer where any server can dominate.public static void copyJamonBufferListenerData(Monitor from, Monitor to)
from - to - public static MonitorComposite changeInstanceName(String instanceName, MonitorComposite monitorComposite)
Make a copy of the local monitor composite before passing to this method if you don't want to change the instance name of the 'local' monitor which you probably don't.
Copyright © 2020. All rights reserved.