forked from hazelcast/hazelcast-code-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.html
executable file
·179 lines (153 loc) · 10.1 KB
/
readme.html
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Hazelcast Code Samples Readme</title>
<link rel="shortcut icon"
href="data:image/vnd.microsoft.icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAADu7en/e3NX/15UM/9eVDP/XlQz/15UM/+uqZj//////7+7rv9eVDP/XlQz/15UM/9eVDP/XlQz/15UM/+AeF7/jIZu/zYqAP82KgD/NioA/zYqAP82KgD/mZN+//////+vqpr/NioA/zYqAP82KgD/NioA/zYqAP82KgD/YFc2/3x0Wf82KgD/NioA/zYqAP82KgD/NioA/5mTfv//////r6qa/zYqAP82KgD/NioA/zYqAP82KgD/NioA/2BXNv98dFn/NioA/zYqAP82KgD/NioA/zYqAP+Zk37//////6+qmv82KgD/NioA/zYqAP82KgD/NioA/zYqAP9gVzb/fHRZ/zYqAP82KgD/NioA/zYqAP82KgD/mZN+//////+vqpr/NioA/zYqAP82KgD/NioA/zYqAP82KgD/YFc2/3x0Wf82KgD/NioA/zYqAP82KgD/NioA/5mTfv//////tLCh/zYqAP82KgD/NioA/zYqAP82KgD/NioA/2VcPP98dFn/NioA/zYqAP82KgD/NioA/zYqAP+Zk37///////Hw7f9dUzH/NioA/zYqAP82KgD/NioA/0A0DP/AvK//fHRZ/zYqAP82KgD/NioA/zYqAP82KgD/mZN+/////////////v7+//Lx7//x8O3/8fDt//Hw7f/5+fj//////3x0Wf82KgD/NioA/zYqAP82KgD/NioA/5mTfv//////8/b//+Hp///h6f//4en//+Hp///h6f//4en//+ft//98dFn/NioA/zYqAP82KgD/NioA/zYqAP+Zk37//////5q1//8ARv//AEb//wBG//8ARv//AEb//wBG//82bf//fHRZ/zYqAP82KgD/NioA/zYqAP82KgD/mZN+//////+atf//AEb//wBG//8ARv//AEb//wBG//8ARv//Nm3//3x0Wf82KgD/NioA/zYqAP82KgD/NioA/5mTfv//////mrX//wBG//8ARv//AEb//wBG//8ARv//AEb//zZt//98dFn/NioA/zYqAP82KgD/NioA/zYqAP+Zk37//////5q1//8ARv//AEb//wBG//8ARv//AEb//wBG//82bf//fHRZ/zYqAP82KgD/NioA/zYqAP82KgD/mZN+//////+atf//AEb//wBG//8ARv//AEb//wBG//8ARv//Nm3//5CJcv82KgD/NioA/zYqAP82KgD/NioA/5mTfv//////mrX//wBG//8ARv//AEb//wBG//8ARv//AEb//01+///x8O7/hX5k/2hfQP9oX0D/aF9A/2hfQP+zrp///////7PI//9AdP//QHT//0B0//9AdP//QHT//1eF///e5///AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==">
<link rel="stylesheet" id="open-sans-css"
href="//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=3.9.1"
type="text/css" media="all" data-inprogress="">
<style>
body {
font-family: 'Open Sans', sans-serif;
color: #666;
border-top: 6px solid #ff5f00;
width: 100%;
background: #f8f8f8;
margin: 0;
padding: 0;
}
.content {
width: 800px;
background: #fff;
margin: 40px auto;
border: 1px solid #ccc;
padding: 30px 40px;
}
.logo {
width: 45px;
display: block;
margin: 0 auto;
}
h1 {
font-size: 40px;
font-weight: 300;
margin-top: 10px;
text-align: center;
}
h2 {
margin-top: 30px;
margin-bottom: 5px;
font-size: 20px;
}
h2 + p, h2 + ul {
margin-top: 5px;
}
a {
color: #ff5f00;
text-decoration: none;
font-weight: bold;
}
ul > li {
margin-bottom: 10px;
}
ul.included {
list-style-type: none;
padding-left: 0px;
}
ul.included ul {
margin-bottom: 12px;
padding-left: 35px;
list-style-type: disc;
}
ul.included ul li {
margin-bottom: 3px;
}
h2:target {
border-left: 5px solid #6ce26c;
padding-left: 35px;
margin-left: -40px;
}
</style>
</head>
<body>
<div class="content">
<img class="logo" alt="Hazelcast Logo"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABpCAYAAADMfIaKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAnBJREFUeNrs3TFSwkAUxvElQ0fDDYwtFRb2eAO9gMIJ0BOgJ0BPEPQE3sD0FqayBW9AY+v4Fp9OhgHBwuTt5v/N7IQijLv7Y7PBmTxabo90esepHHwbuOoze399XvzlDR/nq37W0ddt8f0vkgdX7DqxvQNiKIextH6Ng8l1QH+Jx5g4Y5EPih/HvbRbwVluOifZAtGXNpeXWc0YsSXVD8pccC73AtFV8aJvJv+TrrSpoGS/gihGxnxVluE6SrK2cU+Zo1pQTjetkEyXEqk+maB0f0D8Jm7sNrGJe8qwvELGzEntuSiDsDrqT99ftpLS/TExgJIwB7YCCCAEEEAIIIAQQAAhgABCACGAAEIAAYQAAggBBBACCAEEEAIIIAQQQAgggBBACCCAEEAAIYDEm3ak48oD7fciSpDkYQUSJAqXLEAIIIAQQAAhgABCAAGEWEq7iYPu9I4H7qto24GrplaYr2j9Ju1xV5XudsMgrt1XKb204j890ONU+pDL8UZg8saCaJFPK1W6V6tT+vQox5HALBu1hyjGk7NXMt3X6n2S/nUbA1LCsFqP+Lt/jVkhIRSH7uveFjeI1rEP5ZcdJlrqPeoVMgmsv+NoQXTvSAPr9mnMK2QQYJ9Tf9mKFSTUX3lI+V+WsQACCAEEEAIIIAQQQAgggBBACCCAEEAAIYAAQgABhABCAAGEAAIIAaQRIAVTYQskZypsgdwxFYZA9NnpGdNha1O/krZgSoyA6PPSZ9KWTIuR215B8XdbJ6AY+h6iKIfsKYa+GPrLl7SRvDxSGPaWitLa90QtAVHHc9/Fej2QPfqauvCewl2N9VOAAQDt+HTADrWVDQAAAABJRU5ErkJggg=="/>
<h1>Hazelcast Code Samples Readme</h1>
<p>The folder <strong>/code-samples</strong> in your package contains an extensive collection of code samples which you can
use to learn how to use Hazelcast features. From distributed primitives to Service Provider Interface (SPI), you can see
Hazelcast in action readily.</p>
<h2>How to run</h2>
<p>If the sample has a README file, follow the instructions. A lot of samples have shell scripts like "start.sh", "start-member.sh" or "start-client.sh", use them to run the sample. If none of
the previous options apply, use <i>java -cp target/classes:target/lib/* <fully qualified name of the main class></i> to run the sample.</p>
<h2>Included sample folders</h2>
<ul class="included">
<li><strong>/clients</strong> — Includes sample code that shows how to create a Hazelcast client, put a message on a
queue by this client and receive that message by a Hazelcast node. Further how to set up client's near cache, deploy user code to member, communicate via REST or populate client statistics to member.
</li>
<li><strong>/cluster</strong> — cluster state managements and shutdown</li>
<li><strong>/cluster-quorum</strong> — setting up cluster quorum programatically</li>
<li><strong>/cluster-quorum-xml</strong> — setting up cluster quorum via XML configuration</li>
<li><strong>/cluster-state</strong> — managing cluster state to frozen, passive and shutdown.</li>
<li><strong>/demo</strong> — You can start multiple nodes and operate usual map operations using the code samples here.</li>
<li><strong>/distributed-collections</strong> — Includes Distributed Queue, Bounded Queue, Listeners, Set, List, Queue store, Ringbuffer and Ringbuffer store code samples.</li>
<li><strong>/distributed-executor</strong> — examples of distributed task execution e.g. executing on all member, just key owner, only lite nodes only, on specific member. Also examples
of usage of futures and scheduled executions.
</li>
<li><strong>/distributed-map</strong> — An extensive code samples folder that includes many features of the
Hazelcast distributed map in action.
</li>
<li><strong>/distributed-primitives</strong> — Includes Distributed AtomicLong, AtomicReference, CountDownLatch,
IdGenerator, ReliableIdGenerator, CardinalityEstimator, Condition, Semaphore and Lock code samples.
</li>
<li><strong>/distributed-topic</strong> — Code samples to see publish/subscriber messaging model.</li>
<li><strong>/enterprise</strong> — Includes socket and security interceptor, HD store and hot restart code samples.</li>
<li><strong>/hazelcast-integration</strong> — Code samples to show how you can integrate Hazelcast with Hibernate
2nd Level Cache and Spring. It also includes code samples for web session replication and resource adapter
implementation.
</li>
<li><strong>/jcache</strong> — An extensive code samples folder for operations including creating a cache and
writing entries to it, creating listeners and clients.
</li>
<li><strong>/jmx</strong> — example of connecting to Hazelcast member via JMX.
</li>
<li><strong>/learning-basics</strong> — Code samples to show some Hazelcast basics like creating, configuring and
destroying Hazelcast instances, configuring logging and Hazelcast configuration.
</li>
<li><strong>/mapreduce</strong> — Includes tutorials and a sample word count application.</li>
<li><strong>/monitoring</strong> — Includes code samples that show how to check if a Hazelcast cluster is safe to be
shutdown.
</li>
<li><strong>/near-cache</strong> — Shows the benefits of Near Caches, local subsets of data that track the master copy in the grid. Further extends the <i>/clients</i> examples.
</li>
<li><strong>/network-configuration</strong> — Shows what options Hazelcast configuration has regarding to network
(e.g. partition grouping, multicast, ports, outbound ports, etc.)
</li>
<li><strong>/osgi</strong> — Demonstrates how to use Hazelcast's OSGI support
</li>
<li><strong>/replicated-map</strong> — Code samples to show how to get a replicated map and create an entry
listener.
</li>
<li><strong>/serialization</strong> — Includes code samples that implement various serialization interfaces like
DataSerializable, IdentifiedDataSerializable, Externalizable and Portable. It also has code samples to show how to
plug a custom serializer using StreamSerializer and ByteArraySerializer interfaces and usage of Kryo and Protobuf serializers.
</li>
<li><strong>/spi</strong> — Includes code samples that create a simple counter application using Hazelcast’s Service
Provider Interface (SPI).
</li>
<li><strong>/transactions</strong> — Code samples showing how to use the TransactionalMap and TransactionalTask
interfaces.
</li>
</ul>
<h2>Included helper folders</h2>
<ul class="included">
<li><strong>/checkstyle</strong> — Java code style configuration
</li>
<li><strong>/helper</strong> — Shared utility classes and methods for samples
</li>
</ul>
</div>
</body>
</html>