Showing
1 changed file
with
28 additions
and
0 deletions
1 | +package org.onlab.onos.store.impl; | ||
2 | + | ||
3 | +import org.apache.felix.scr.annotations.Activate; | ||
4 | +import org.apache.felix.scr.annotations.Component; | ||
5 | +import org.apache.felix.scr.annotations.Deactivate; | ||
6 | +import org.slf4j.Logger; | ||
7 | + | ||
8 | +import static org.slf4j.LoggerFactory.getLogger; | ||
9 | + | ||
10 | +/** | ||
11 | + * Component responsible for initializing a shared Hazelcast instance. | ||
12 | + */ | ||
13 | +@Component(immediate = true) | ||
14 | +public class HazelcastBootstrap { | ||
15 | + | ||
16 | + private final Logger log = getLogger(getClass()); | ||
17 | + | ||
18 | + @Activate | ||
19 | + public void activate() { | ||
20 | + log.info("Started"); | ||
21 | + } | ||
22 | + | ||
23 | + @Deactivate | ||
24 | + public void deactivate() { | ||
25 | + log.info("Stopped"); | ||
26 | + } | ||
27 | + | ||
28 | +} |
-
Please register or login to post a comment