Skip to content

Commit

Permalink
more info when marking
Browse files Browse the repository at this point in the history
  • Loading branch information
VGalaxies committed Apr 21, 2024
1 parent 832a9dd commit 9f1f858
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.apache.hugegraph.pd.grpc.discovery.NodeInfos;
import org.apache.hugegraph.pd.grpc.discovery.Query;

@Useless
@Useless("discovery related")
public interface Discoverable {

NodeInfos getNodeInfos(Query query);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import io.grpc.ManagedChannelBuilder;
import lombok.extern.slf4j.Slf4j;

@Useless
@Useless("discovery related")
@Slf4j
public abstract class DiscoveryClient implements Closeable, Discoverable {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.apache.hugegraph.pd.grpc.discovery.NodeInfo;
import org.apache.hugegraph.pd.grpc.discovery.RegisterType;

@Useless
@Useless("discovery related")
public class DiscoveryClientImpl extends DiscoveryClient {

private final String id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import io.grpc.stub.AbstractStub;
import lombok.extern.slf4j.Slf4j;

@Useless
@Useless("license related")
@Slf4j
public class LicenseClient extends AbstractClient {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@

import org.apache.commons.lang3.StringUtils;
import org.apache.hugegraph.pd.common.PDException;
import org.apache.hugegraph.pd.common.Useless;
import org.apache.hugegraph.pd.config.PDConfig;
import org.apache.hugegraph.pd.grpc.discovery.NodeInfo;
import org.apache.hugegraph.pd.grpc.discovery.NodeInfos;
import org.apache.hugegraph.pd.grpc.discovery.Query;

import lombok.extern.slf4j.Slf4j;

@Useless("discovery related")
@Slf4j
public class DiscoveryMetaStore extends MetadataRocksDBStore {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TODO: uncomment later - maybe useless
// TODO: uncomment later - maybe useless (license related)
///*
// * Licensed to the Apache Software Foundation (ASF) under one or more
// * contributor license agreements. See the NOTICE file distributed with this
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TODO: uncomment later - maybe useless
// TODO: uncomment later - maybe useless (license related)
///*
// * Licensed to the Apache Software Foundation (ASF) under one or more
// * contributor license agreements. See the NOTICE file distributed with this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.apache.hugegraph.pd.RegistryService;
import org.apache.hugegraph.pd.common.PDException;
import org.apache.hugegraph.pd.common.PDRuntimeException;
import org.apache.hugegraph.pd.common.Useless;
import org.apache.hugegraph.pd.config.PDConfig;
import org.apache.hugegraph.pd.grpc.Pdpb;
import org.apache.hugegraph.pd.grpc.discovery.DiscoveryServiceGrpc;
Expand All @@ -41,7 +42,7 @@
import io.grpc.ManagedChannel;
import lombok.extern.slf4j.Slf4j;

// TODO: uncomment later
@Useless("discovery related")
@Slf4j
@GRpcService
public class DiscoveryService extends DiscoveryServiceGrpc.DiscoveryServiceImplBase implements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import lombok.extern.slf4j.Slf4j;

@Useless
@Useless("upgrade related")
@Slf4j
public class UpgradeService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.apache.hugegraph.pd.upgrade.scripts.PartitionMetaUpgrade;
import org.apache.hugegraph.pd.upgrade.scripts.TaskCleanUpgrade;

@Useless
@Useless("upgrade related")
public class VersionScriptFactory {

private static final List<VersionUpgradeScript> SCRIPTS = new LinkedList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.hugegraph.pd.common.Useless;
import org.apache.hugegraph.pd.config.PDConfig;

@Useless
@Useless("upgrade related")
public interface VersionUpgradeScript {

String UNLIMITED_VERSION = "UNLIMITED_VERSION";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

import lombok.extern.slf4j.Slf4j;

@Useless
@Useless("upgrade related")
@Slf4j
public class PartitionMetaUpgrade implements VersionUpgradeScript {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import lombok.extern.slf4j.Slf4j;

@Useless
@Useless("upgrade related")
@Slf4j
public class TaskCleanUpgrade implements VersionUpgradeScript {

Expand Down

0 comments on commit 9f1f858

Please sign in to comment.