Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shirly121 committed Nov 21, 2024
1 parent 3d21285 commit b272f5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ public class FrontendConfig {
Config.longConfig("query.print.threshold.ms", 200l);

public static final Config<Long> METRICS_TOOL_INTERVAL_MS =
Config.longConfig("metrics.tool.interval.ms", 5 * 60 * 1000l);
Config.longConfig("metrics.tool.interval.ms", 5 * 60 * 1000L);
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,19 @@

package com.alibaba.graphscope.common.metric;

import com.google.common.collect.ImmutableMap;

import java.util.Map;

public interface Metric<Value> {

class KeyFactory {
public static final Key MEMORY = new Key("memory");
public static final Key MEMORY = new Key("memory.usage");
public static final Key RPC_CHANNELS_EXECUTOR_QUEUE =
new Key("rpc.channels.executor.queue");
public static final Key GREMLIN_EXECUTOR_QUEUE = new Key("gremlin.executor.queue");
public static final Key GREMLIN_QPS = new Key("gremlin.qps");
}

class ValueFactory {
public static long INVALID_LONG = -1l;
public static long INVALID_LONG = -1L;
public static int INVALID_INT = -1;
public static Map INVALID_MAP = ImmutableMap.of();
}

Key getKey();
Expand Down

0 comments on commit b272f5a

Please sign in to comment.