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 140 141 142 143 144 145 146
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server
PUBLIC "-//JBoss//DTD MBean Service 3.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss-service_3_2.dtd">
<!--
Hand generated service descriptor that allows the GossipRouter to be
deployed as a JBoss MBean. See also jboss-service target from build.xml.
-->
<server>
<mbean code="org.jgroups.stack.GossipRouter"
name="jgroups:service=GossipRouter"
xmbean-dd="">
<xmbean>
<description>JGroups GossipRouter</description>
<class>org.jgroups.stack.GossipRouter</class>
<!--
<descriptors>
<persistPolicy value="OnUpdate"/>
<persistLocation value="/tmp"/>
<persistName value="gs.test"/>
</descriptors>
-->
<!-- Constructors -->
<constructor>
<description>The default constructor</description>
<name>GossipRouter</name>
</constructor>
<!-- Attributes -->
<attribute access="read-write"
getMethod="getPort"
setMethod="setPort">
<description>The local TCP port.</description>
<name>Port</name>
<type>int</type>
<!-- the ModelMBean descriptors -->
<descriptors>
<currencyTimeLimit value="-1" />
<!-- <value value="0" /> -->
<!-- <persistPolicy value="OnUpdate"/> -->
</descriptors>
</attribute>
<attribute access="read-write"
getMethod="getBindAddress"
setMethod="setBindAddress">
<description>The local address the server will bind to.</description>
<name>BindAddress</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write"
getMethod="getExpiryTime"
setMethod="setExpiryTime">
<description>Time (msec) until a cached gossip member entry expires.</description>
<name>ExpiryTime</name>
<type>long</type>
</attribute>
<attribute access="read-write"
getMethod="getGossipRequestTimeout"
setMethod="setGossipRequestTimeout">
<description>Number of millisecs the main thread waits to receive a gossip request after connection was established; upon expiration, the router initiates the routing protocol on the connection. Don't set the interval too big, otherwise the router will appear slow in answering routing requests.</description>
<name>GossipRequestTimeout</name>
<type>long</type>
</attribute>
<attribute access="read-write"
getMethod="getRoutingClientReplyTimeout"
setMethod="setRoutingClientReplyTimeout">
<description>Time (in ms) main thread waits for a router client to send the routing request type and the group afiliation before it declares the request failed.</description>
<name>RoutingClientReplyTimeout</name>
<type>long</type>
</attribute>
<attribute access="read-only"
getMethod="isStarted">
<description>Returns true if the router is operational.</description>
<name>Started</name>
<type>boolean</type>
</attribute>
<!-- JBoss MBean Life Cycle Operations -->
<operation>
<description>Not used</description>
<name>create</name>
</operation>
<operation>
<description>The start lifecycle operation. Brings the Router in fully functional state.</description>
<name>start</name>
</operation>
<operation>
<description>The stop lifecycle operation. Close connections and frees resources.</description>
<name>stop</name>
</operation>
<operation>
<description>Not used</description>
<name>destroy</name>
</operation>
<!-- Ordinary Operations -->
<operation>
<description>Dumps the routing table.</description>
<name>dumpRoutingTable</name>
<return-type>java.lang.String</return-type>
</operation>
<operation>
<description>Dumps the gossip table.</description>
<name>dumpGossipTable</name>
<return-type>java.lang.String</return-type>
</operation>
</xmbean>
<!-- TO_DO: synchronize these values with the ones declared as defaults
in GossipRouter.
-->
<attribute name="Port">12000</attribute>
<attribute name="ExpiryTime">30000</attribute>
<attribute name="GossipRequestTimeout">1000</attribute>
<attribute name="RoutingClientReplyTimeout">120000</attribute>
</mbean>
</server>
|