Skip to content

Commit

Permalink
chore: remove hugegraph-server.store & jacoco jar & LicenseVerify (#2092
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zyxxoo authored Jan 16, 2023
1 parent f6018d1 commit f49b2b8
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 399 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import org.apache.hugegraph.backend.cache.CacheManager;
import org.apache.hugegraph.backend.tx.AbstractTransaction;
import org.apache.hugegraph.concurrent.LockManager;
import org.apache.hugegraph.license.LicenseVerifier;
import org.apache.hugegraph.metrics.ServerReporter;
import org.apache.hugegraph.schema.SchemaElement;
import org.apache.hugegraph.schema.SchemaManager;
Expand Down Expand Up @@ -184,8 +183,6 @@ private static void registerPrivateActions() {
Reflection.registerMethodsToFilter(CacheManager.class, "access$0", "scheduleTimer", "instance");
Reflection.registerFieldsToFilter(org.apache.hugegraph.concurrent.LockManager.class, "INSTANCE", "lockGroupMap");
Reflection.registerMethodsToFilter(org.apache.hugegraph.concurrent.LockManager.class, "instance");
Reflection.registerFieldsToFilter(LicenseVerifier.class, "LOG", "LICENSE_PARAM_PATH", "INSTANCE", "CHECK_INTERVAL", "lastCheckTime", "verifyParam", "manager");
Reflection.registerMethodsToFilter(LicenseVerifier.class, "buildVerifyParam", "initLicenseParam", "verifyPublicCert", "instance");
Reflection.registerFieldsToFilter(ServerReporter.class, "instance", "gauges", "counters", "histograms", "meters", "timers");
Reflection.registerMethodsToFilter(ServerReporter.class, "instance", "instance");
Reflection.registerFieldsToFilter(com.codahale.metrics.ScheduledReporter.class, "LOG", "FACTORY_ID", "registry", "executor", "shutdownExecutorOnStop", "disabledMetricAttributes", "scheduledFuture", "filter", "durationFactor", "durationUnit", "rateFactor", "rateUnit");
Expand Down Expand Up @@ -261,7 +258,6 @@ private static void genRegisterPrivateActions() {

registerPrivateActions(CacheManager.class);
registerPrivateActions(LockManager.class);
registerPrivateActions(LicenseVerifier.class);
registerPrivateActions(ServerReporter.class);
registerPrivateActions(JsonSerializer.class);
registerPrivateActions(HugeVertexStepStrategy.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import org.apache.hugegraph.auth.HugeFactoryAuthProxy;
import org.apache.hugegraph.auth.HugeGraphAuthProxy;
import org.apache.hugegraph.config.ServerOptions;
import org.apache.hugegraph.license.LicenseVerifier;
import org.apache.hugegraph.metrics.MetricsUtil;
import org.apache.hugegraph.metrics.ServerReporter;
import org.apache.hugegraph.serializer.JsonSerializer;
Expand Down Expand Up @@ -105,8 +104,6 @@ public void init() {

this.loadGraphs(ConfigUtil.scanGraphsDir(this.graphsDir));

// this.installLicense(conf, "");

// Start RPC-Server for raft-rpc/auth-rpc/cache-notify-rpc...
this.startRpcServer();

Expand Down Expand Up @@ -331,10 +328,6 @@ private HugeAuthenticator authenticator() {
return this.authenticator;
}

@SuppressWarnings("unused")
private void installLicense(HugeConfig config, String md5) {
LicenseVerifier.instance().install(config, this, md5);
}

private void closeTx(final Set<String> graphSourceNamesToCloseTxOn,
final Transaction.Status tx) {
Expand Down

This file was deleted.

Loading

0 comments on commit f49b2b8

Please sign in to comment.