Class ShardingLogMarker

java.lang.Object
org.apache.pekko.cluster.sharding.ShardingLogMarker

public class ShardingLogMarker extends Object
This is public with the purpose to document the used markers and properties of log events. No guarantee that it will remain binary compatible, but the marker names and properties are considered public API and will not be changed without notice.
  • Constructor Details

    • ShardingLogMarker

      public ShardingLogMarker()
  • Method Details

    • shardAllocated

      public static LogMarker shardAllocated(String shardTypeName, String shardId, Address node)
      Marker "pekkoShardAllocated" of log event when ShardCoordinator allocates a shard to a region.
      Parameters:
      shardTypeName - The typeName of the shard. Included as property "pekkoShardTypeName".
      shardId - The id of the shard. Included as property "pekkoShardId".
      node - The address of the node where the shard is allocated. Included as property "pekkoRemoteAddress".
    • shardStarted

      public static LogMarker shardStarted(String shardTypeName, String shardId)
      Marker "pekkoShardStarted" of log event when ShardRegion starts a shard.
      Parameters:
      shardTypeName - The typeName of the shard. Included as property "pekkoShardTypeName".
      shardId - The id of the shard. Included as property "pekkoShardId".