Skip to content

Commit

Permalink
Add cluster label
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhiguo committed May 23, 2024
1 parent 890387a commit 553c50b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public class Application {

// Unique application identifier.
public static final String APP_ID = UUID.randomUUID().toString();

// Byte representation of the application ID.
public static final byte[] APP_ID_BYTES = APP_ID.getBytes(StandardCharsets.UTF_8);

Expand Down Expand Up @@ -150,6 +151,7 @@ public void label(BiConsumer<String, String> consumer) {
accept(consumer, Label.LABEL_CELL, location.getCell());
accept(consumer, Label.LABEL_LANESPACE_ID, location.getLaneSpaceId());
accept(consumer, Label.LABEL_LANE, location.getLane());
accept(consumer, Label.LABEL_CLUSTER, location.getCluster());
accept(consumer, Label.LABEL_APPLICATION, name);
accept(consumer, Label.LABEL_GROUP, service.getGroup());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ public interface Label {
*/
String LABEL_LANE = "lane";

/**
* Constant for the label cluster.
*/
String LABEL_CLUSTER = "cluster";

/**
* Constant for the label application.
*/
Expand Down

0 comments on commit 553c50b

Please sign in to comment.