File: multiplexer-xmbean.xml

package info (click to toggle)
libjgroups-java 2.12.2.Final-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 8,724 kB
  • sloc: java: 109,098; xml: 9,423; sh: 174; makefile: 4
file content (139 lines) | stat: -rw-r--r-- 4,756 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mbean PUBLIC
        "-//JBoss//DTD JBOSS XMBEAN 1.0//EN"
        "http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_0.dtd">




<!--
    An example for setting up the JChannelFactory MBean
    Author: Bela Ban
    -->
<mbean>

    <description>JGroups Multiplexer</description>
    <class>org.jgroups.jmx.JChannelFactory</class>

    <!-- Constructors -->
    <constructor>
        <description>The default constructor</description>
        <name>JChannelFactory</name>
    </constructor>

    <!-- Attributes -->
    <attribute access="read-write" getMethod="getDomain" setMethod="setDomain">
        <description>The domain which is used as prefix for all channels and protocols exposed via JMX</description>
        <name>Domain</name>
        <type>java.lang.String</type>
        <descriptors>
            <default value="jgroups.mux" />
        </descriptors>
    </attribute>

    <attribute access="read-write" getMethod="getMultiplexerConfig" setMethod="setMultiplexerConfig">
        <description>The file used for configuration. If this is not an absolute pathname, it will need to be found on the classpath</description>
        <name>MultiplexerConfig</name>
        <type>java.lang.String</type>
        <descriptors>
            <default value="stacks.xml" />
        </descriptors>
    </attribute>

    <attribute access="read-write" getMethod="isExposeChannels" setMethod="setExposeChannels">
        <description>Whether or not to expose channels via JMX</description>
        <name>ExposeChannels</name>
        <type>boolean</type>
        <descriptors>
            <default value="true" />
        </descriptors>
    </attribute>

    <attribute access="read-write" getMethod="isExposeProtocols" setMethod="setExposeProtocols">
        <description>Whether or not to expose protocols via JMX (if true, will set ExposeChannels to true too)</description>
        <name>ExposeProtocols</name>
        <type>boolean</type>
        <descriptors>
            <default value="true" />
        </descriptors>
    </attribute>


    <!-- JBoss MBean Life Cycle Operations -->
    <operation>
        <description>The create() life cycle operation</description>
        <name>create</name>
    </operation>

    <operation>
        <description>The start lifecycle operation.</description>
        <name>start</name>
    </operation>

    <operation>
        <description>The stop lifecycle operation.</description>
        <name>stop</name>
    </operation>

    <operation>
        <description>The destroy() life cycle operation</description>
        <name>destroy</name>
    </operation>

    <!-- Ordinary Operations -->
    <operation>
        <description>Dumps the channels</description>
        <name>dumpChannels</name>
        <return-type>java.lang.String</return-type>
    </operation>

    <operation>
        <description>Dumps the configuration</description>
        <name>dumpConfiguration</name>
        <return-type>java.lang.String</return-type>
    </operation>

    <operation>
        <description></description>
        <name>createMultiplexerChannel</name>
        <parameter>
            <description>The name of the stack, as defined e.g. in stacks.xml</description>
            <name>stack_name</name>
            <type>java.lang.String</type>
        </parameter>
        <parameter>
            <description>The application ID, all IDs need to be unique across a Multiplexer</description>
            <name>id</name>
            <type>java.lang.String</type>
        </parameter>
        <parameter>
            <description>Whether this application wants to register for state transfer, getState() will only return when *all* registered listeners called it</description>
            <name>register_for_state_transfer</name>
            <type>boolean</type>
        </parameter>
        <parameter>
            <description>The ID of the substate to be retrieved (or null)</description>
            <name>substate_id</name>
            <type>java.lang.String</type>
        </parameter>
        <return-type>org.jgroups.Channel</return-type>
    </operation>

    <operation>
        <description></description>
        <name>createMultiplexerChannel</name>
        <parameter>
            <description>The name of the stack, as defined e.g. in stacks.xml</description>
            <name>stack_name</name>
            <type>java.lang.String</type>
        </parameter>
        <parameter>
            <description>The application ID, all IDs need to be unique across a Multiplexer</description>
            <name>id</name>
            <type>java.lang.String</type>
        </parameter>
        <return-type>org.jgroups.Channel</return-type>
    </operation>

</mbean>