private static GrainId GetGrainID(string indexName)
 {
     return(GrainId.GetSystemTargetGrainId(Constants.HASH_INDEX_PARTITIONED_PER_SILO_BUCKET_SYSTEM_TARGET_TYPE_CODE,
                                           IndexUtils.GetIndexGrainID(typeof(V), indexName)));
 }
Exemplo n.º 2
0
 public static GrainId CreateIndexWorkflowQueueGrainId(Type grainInterfaceType, int queueSeqNum)
 {
     return(GrainId.GetSystemTargetGrainId(Constants.INDEX_WORKFLOW_QUEUE_SYSTEM_TARGET_TYPE_CODE,
                                           CreateIndexWorkflowQueuePrimaryKey(grainInterfaceType, queueSeqNum)));
 }
Exemplo n.º 3
0
 public static GrainId GetIndexWorkflowQueueGrainIdFromGrainHashCode(Type grainInterfaceType, int grainHashCode)
 {
     return(GrainId.GetSystemTargetGrainId(Constants.INDEX_WORKFLOW_QUEUE_SYSTEM_TARGET_TYPE_CODE,
                                           CreateIndexWorkflowQueuePrimaryKey(grainInterfaceType, StorageProviderUtils.PositiveHash(grainHashCode, NUM_AVAILABLE_INDEX_WORKFLOW_QUEUES))));
 }
Exemplo n.º 4
0
 private static GrainId GetAHashIndexPartitionedPerSiloGrainID(string indexName, Type iGrainType)
 {
     return(GrainId.GetSystemTargetGrainId(Constants.HASH_INDEX_PARTITIONED_PER_SILO_BUCKET_SYSTEM_TARGET_TYPE_CODE,
                                           IndexUtils.GetIndexGrainID(iGrainType, indexName)));
 }