-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jdom/geograindirstruct-code-normalization
Code normalization of geo-graindirstruct branch
- Loading branch information
Showing
15 changed files
with
85 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Orleans.GrainDirectory | ||
namespace Orleans.GrainDirectory | ||
{ | ||
/// <summary> | ||
/// Status of a directory entry with respect to multi-cluster registration | ||
/// </summary> | ||
internal enum MultiClusterStatus | ||
{ | ||
OWNED, // Registration is owned by this cluster. | ||
DOUBTFUL, // Failed to contact one or more clusters while registering, so may be a duplicate. | ||
/// <summary> | ||
/// Registration is owned by this cluster. | ||
/// </summary> | ||
Owned, | ||
|
||
CACHED, // Cached reference to a registration owned by a remote cluster. | ||
/// <summary> | ||
/// Failed to contact one or more clusters while registering, so may be a duplicate. | ||
/// </summary> | ||
Doubtful, | ||
|
||
REQUESTED_OWNERSHIP, // The cluster is in the process of checking remote clusters for existing registrations. | ||
RACE_LOSER, // The cluster lost a race condition. | ||
} | ||
/// <summary> | ||
/// Cached reference to a registration owned by a remote cluster. | ||
/// </summary> | ||
Cached, | ||
|
||
/// <summary> | ||
/// The cluster is in the process of checking remote clusters for existing registrations. | ||
/// </summary> | ||
RequestedOwnership, | ||
|
||
/// <summary> | ||
/// The cluster lost a race condition. | ||
/// </summary> | ||
RaceLoser, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.