class JmxEmitterFactory
extends AbstractFactory
This class is the factory for the emitter node. This node facilitates the declaration of a JMX event emitter. The emitter is used to broadcast arbitrary event on the MBeanServer's event bus. Registered listeners are able to consume event once sent.
Supported syntax:
def jmx = JmxBuilder()
jmx.emitter(name:"Object name"|ObjectName(), event:"event type")
...
jmx.emitter.send(object)
| Constructor and description |
|---|
JmxEmitterFactory() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
isLeaf()Indicates that the emitter node is terminal. |
|
Object |
newInstance(FactoryBuilderSupport builder, Object nodeName, Object nodeParam, Map nodeAttribs)Creates and registers an event emitter. |
|
boolean |
onHandleNodeAttributes(FactoryBuilderSupport builder, Object node, Map nodeAttribs)Leaves attribute handling to newInstance(FactoryBuilderSupport, Object, Object, Map). |
|
void |
onNodeCompleted(FactoryBuilderSupport builder, Object parentNode, Object thisNode)Adds the created emitter to its parent collection when one exists. |
| Methods inherited from class | Name |
|---|---|
class AbstractFactory |
isHandlesNodeChildren, isLeaf, onFactoryRegistration, onHandleNodeAttributes, onNodeChildren, onNodeCompleted, setChild, setParent |
Indicates that the emitter node is terminal.
trueCreates and registers an event emitter.
builder - the active buildernodeName - the node namenodeParam - positional node argumentsnodeAttribs - named node attributesLeaves attribute handling to newInstance(FactoryBuilderSupport, Object, Object, Map).
builder - the active buildernode - the current nodenodeAttribs - remaining node attributesfalseAdds the created emitter to its parent collection when one exists.
builder - the active builderparentNode - the parent nodethisNode - the created emitterCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.