java.lang.Object
com.norconex.crawler.core.cluster.impl.hazelcast.CacheKeys

public final class CacheKeys extends Object
  • Method Details

    • pipelineKey

      public static String pipelineKey(@NonNull @NonNull HazelcastCluster cluster, @NonNull @NonNull Pipeline pipeline)
    • pipelineWorkerNodeKey

      public static String pipelineWorkerNodeKey(@NonNull @NonNull HazelcastCluster cluster, @NonNull @NonNull Pipeline pipeline)
    • pipelineWorkerKeyPrefix

      public static String pipelineWorkerKeyPrefix(@NonNull @NonNull HazelcastCluster cluster, @NonNull @NonNull Pipeline pipeline)

      The worker key without the node information, constructed as:

      crawlSessionId:pipelineId:crawlRunId:

      Can be used to get all worker entries for a given session and run.

      Parameters:
      cluster - the cluster
      pipeline - the pipeline
      Returns:
      the key prefix