File: tcp.xml

package info (click to toggle)
libswarmcache-java 1.0RC2%2Bcvs20071027-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 304 kB
  • ctags: 249
  • sloc: java: 1,062; xml: 429; sh: 14; makefile: 10
file content (87 lines) | stat: -rw-r--r-- 3,972 bytes parent folder | download | duplicates (6)
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
	<protocol-stack name="Definition of a TCP-based protocol stack" version="1.0.0">
		<protocol>
			<protocol-name>TCP Protocol</protocol-name>
			<description>Sends and receives messages using TCP</description>
			<class-name>org.javagroups.protocols.TCP</class-name>
			<protocol-params>
				<protocol-param name="start_port" value="7800"/>
				<protocol-param name="bind_addr"  value="localhost"/>
                                <protocol-param name="loopback"   value="true"/>
			</protocol-params>
		</protocol>
		<protocol>
			<protocol-name>TCP Ping Protocol</protocol-name>
			<description>Find the initial membership</description>
			<class-name>org.javagroups.protocols.TCPPING</class-name>
			<protocol-params>
				<protocol-param name="initial_hosts" value="localhost[7800]"/>
				<protocol-param name="port_range" value="3"/>
				<protocol-param name="timeout" value="3000"/>
				<protocol-param name="num_initial_members" value="3"/>
			</protocol-params>
		</protocol>
		<protocol>
			<protocol-name>Failure Detection Socket</protocol-name>
			<description>Failure detection based on sockets</description>
			<class-name>org.javagroups.protocols.FD</class-name>
			<protocol-params>
				<protocol-param name="timeout" value="2000"/>
				<protocol-param name="max_tries" value="4"/>
			</protocol-params>
		</protocol>
		<protocol>
			<protocol-name>Verify Suspect</protocol-name>
			<description>Double-checks that a suspected member is really dead</description>
			<class-name>org.javagroups.protocols.VERIFY_SUSPECT</class-name>
			<protocol-params>
				<protocol-param name="timeout" value="1500"/>
				<protocol-param name="up_thread" value="false"/>
				<protocol-param name="down_thread" value="false"/>
			</protocol-params>
		</protocol>
		<protocol>
			<protocol-name>Reliable mcast message transission</protocol-name>
			<description>Uses a negative acknowledgement protocol for retransmissions</description>
			<class-name>org.javagroups.protocols.pbcast.NAKACK</class-name>
			<protocol-params>
				<protocol-param name="gc_lag" value="100"/>
				<protocol-param name="retransmit_timeout" value="600,1200,2400,4800"/>
			</protocol-params>
		</protocol>
        <protocol>
            <protocol-name>Stable protocol</protocol-name>
            <description>Distributed message garbage collection protocol. Deletes messages
                seen by all group members</description>
            <class-name>org.javagroups.protocols.pbcast.STABLE</class-name>
            <protocol-params>
                <!-- Periodically sends STABLE messages around. 0 disables this -->
                <protocol-param name="desired_avg_gossip" value="20000"/>

                <!--
                Max number of bytes received from anyone until a STABLE message is sent. Use either this or
                desired_avg_gossip, but not both ! 0 disables it.
                -->
                <protocol-param name="max_bytes" value="0"/>
                <!--
                Range (number of milliseconds) that we wait until sending a STABILITY message. This prevents
                STABILITY multicast storms. If max_bytes is used, this should be set to a low value (> 0 though !).
                -->
                <protocol-param name="stability_delay" value="1000"/>
                <protocol-param name="up_thread" value="false"/>
                <protocol-param name="down_thread" value="false"/>
            </protocol-params>
        </protocol>
		<protocol>
			<protocol-name>PB Cast Group Membership Protocol</protocol-name>
			<description>Maintains the member ship view</description>
			<class-name>org.javagroups.protocols.pbcast.GMS</class-name>
			<protocol-params>
				<protocol-param name="join_timeout" value="5000"/>
				<protocol-param name="join_retry_timeout" value="2000"/>
				<protocol-param name="shun" value="true"/>
				<protocol-param name="print_local_addr" value="true"/>
			</protocol-params>
		</protocol>
	</protocol-stack>