forked from NethermindEth/nethermind
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor enums docs (NethermindEth#7610)
- Loading branch information
Showing
14 changed files
with
166 additions
and
148 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
38 changes: 21 additions & 17 deletions
38
src/Nethermind/Nethermind.Db/FullPruningCompletionBehavior.cs
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,26 +1,30 @@ | ||
// SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
namespace Nethermind.Db | ||
using System.ComponentModel; | ||
|
||
namespace Nethermind.Db; | ||
|
||
/// <summary> | ||
/// Defines what to do when a full prune completes. | ||
/// </summary> | ||
public enum FullPruningCompletionBehavior | ||
{ | ||
[Description("No action.")] | ||
/// <summary> | ||
/// Defines what to do when a full prune completes. | ||
/// Do nothing once pruning is completed. | ||
/// </summary> | ||
public enum FullPruningCompletionBehavior | ||
{ | ||
/// <summary> | ||
/// Do nothing once pruning is completed. | ||
/// </summary> | ||
None, | ||
None, | ||
|
||
/// <summary> | ||
/// Shut Nethermind down gracefully if pruning was successful, but leave it running if it failed. | ||
/// </summary> | ||
ShutdownOnSuccess, | ||
[Description("Shuts Nethermind down when pruning succeeds but leaves it running when fails.")] | ||
/// <summary> | ||
/// Shut Nethermind down gracefully if pruning was successful, but leave it running if it failed. | ||
/// </summary> | ||
ShutdownOnSuccess, | ||
|
||
/// <summary> | ||
/// Shut Nethermind down gracefully when pruning completes, regardless of whether or not it succeeded. | ||
/// </summary> | ||
AlwaysShutdown | ||
} | ||
[Description("Shuts Nethermind down when pruning completes, regardless of its status.")] | ||
/// <summary> | ||
/// Shut Nethermind down gracefully when pruning completes, regardless of whether or not it succeeded. | ||
/// </summary> | ||
AlwaysShutdown | ||
} |
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,26 +1,30 @@ | ||
// SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
namespace Nethermind.Db | ||
using System.ComponentModel; | ||
|
||
namespace Nethermind.Db; | ||
|
||
/// <summary> | ||
/// Triggers for Full Pruning. | ||
/// </summary> | ||
public enum FullPruningTrigger | ||
{ | ||
[Description("Does not trigger. Pruning can be triggered manually.")] | ||
/// <summary> | ||
/// Triggers for Full Pruning. | ||
/// Only Manual trigger is supported. | ||
/// </summary> | ||
public enum FullPruningTrigger | ||
{ | ||
/// <summary> | ||
/// Only Manual trigger is supported. | ||
/// </summary> | ||
Manual, | ||
Manual, | ||
|
||
/// <summary> | ||
/// Automatically triggers on State DB size. | ||
/// </summary> | ||
StateDbSize, | ||
[Description("Triggers when the state DB size is above the specified threshold.")] | ||
/// <summary> | ||
/// Automatically triggers on State DB size. | ||
/// </summary> | ||
StateDbSize, | ||
|
||
/// <summary> | ||
/// Automatically triggers on Volume free space on volume with State DB. | ||
/// </summary> | ||
VolumeFreeSpace | ||
} | ||
[Description("Triggers when the free disk space where the state DB is stored is below the specified threshold.")] | ||
/// <summary> | ||
/// Automatically triggers on Volume free space on volume with State DB. | ||
/// </summary> | ||
VolumeFreeSpace | ||
} |
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.