Skip to content

Commit

Permalink
removed hazelcast because it is phoning home, see also:
Browse files Browse the repository at this point in the history
  • Loading branch information
Orbiter committed Sep 28, 2022
1 parent fc98ca7 commit 9c1bc53
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 124 deletions.
93 changes: 0 additions & 93 deletions htroot/api/localpeers.java

This file was deleted.

6 changes: 0 additions & 6 deletions htroot/api/localpeers.json

This file was deleted.

1 change: 0 additions & 1 deletion ivy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<dependency org="com.drewnoakes" name="metadata-extractor" rev="2.11.0" />
<dependency org="com.fasterxml.jackson.core" name="jackson-databind" rev="2.11.2"/>
<dependency org="com.google.guava" name="guava" rev="25.1-jre" conf="compile->master"/>
<dependency org="com.hazelcast" name="hazelcast" rev="4.2" />
<dependency org="com.ibm.icu" name="icu4j" rev="63.1"/>
<dependency org="com.jcraft" name="jsch" rev="0.1.54" />
<dependency org="com.twelvemonkeys.imageio" name="imageio-core" rev="3.3.2"/>
Expand Down
24 changes: 0 additions & 24 deletions source/net/yacy/search/Switchboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@
import com.cybozu.labs.langdetect.DetectorFactory;
import com.cybozu.labs.langdetect.LangDetectException;
import com.google.common.io.Files;
import com.hazelcast.config.Config;
import com.hazelcast.config.InterfacesConfig;
import com.hazelcast.config.JoinConfig;
import com.hazelcast.config.NetworkConfig;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;

import net.yacy.cora.date.AbstractFormatter;
import net.yacy.cora.date.GenericFormatter;
Expand Down Expand Up @@ -311,7 +305,6 @@ public final class Switchboard extends serverSwitch {
public LinkedBlockingQueue<String> trail; // connect infos from cytag servlet
public SeedDB peers;
public Set<String> localcluster_scan;
public HazelcastInstance localcluster_hazelcast;
public WorkTables tables;
public Tray tray;
private long lastStats = 0; // time when the last row was written to the stats table
Expand Down Expand Up @@ -653,23 +646,6 @@ public boolean jobImpl() throws Exception {
}.start();
}

// initialize hazelcast
final InterfacesConfig interfacesConfig = new InterfacesConfig();
Domains.myIntranetIPs().forEach(ip -> interfacesConfig.addInterface(ip.getHostAddress()));
final NetworkConfig networkConfig = new NetworkConfig().setInterfaces(interfacesConfig);
final JoinConfig join = networkConfig.getJoin();
join.getMulticastConfig().setEnabled(true);
final Config config = new Config().setClusterName("YaCyP2P").setInstanceName("Peer").setNetworkConfig(networkConfig);
config.getCPSubsystemConfig().setCPMemberCount(3);
try {
this.localcluster_hazelcast = Hazelcast.newHazelcastInstance(config);
final String uuid = this.localcluster_hazelcast.getCluster().getLocalMember().getUuid().toString();
this.localcluster_hazelcast.getMap("status").put(uuid, Memory.status());
} catch (final Exception e) {
this.log.warn(e);
this.localcluster_hazelcast = null;
}

// load domainList
try {
this.domainList = null;
Expand Down

1 comment on commit 9c1bc53

@smokingwheels
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers

Please sign in to comment.