This repository has been archived by the owner on Feb 9, 2021. It is now read-only.
-
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.
- Loading branch information
Dariusz Lenartowicz
committed
Nov 7, 2016
1 parent
8d6aa0a
commit 8f665e7
Showing
10 changed files
with
117 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
|
||
namespace Ses.Subscriptions | ||
{ | ||
public class PollerInfo | ||
{ | ||
public RunnerInfo Runner { get; } | ||
public Type PollerType { get; } | ||
public string PollerContractName { get; } | ||
public SourcePollerState[] SourceSequenceInfo { get; } | ||
|
||
internal PollerInfo(RunnerInfo runner, Type pollerType, string pollerContractName, SourcePollerState[] sourceSequenceInfo) | ||
{ | ||
Runner = runner; | ||
PollerType = pollerType; | ||
PollerContractName = pollerContractName; | ||
SourceSequenceInfo = sourceSequenceInfo; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return $"Poller {PollerContractName} Locked:{Runner.IsLockedByPolicy}/Running:{Runner.IsRunning}"; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
|
||
namespace Ses.Subscriptions | ||
{ | ||
public class RunnerInfo | ||
{ | ||
public DateTime StartedAt { get; } | ||
public bool IsLockedByPolicy { get; } | ||
public bool IsRunning { get; } | ||
|
||
internal RunnerInfo(DateTime startedAt, bool isLockedByPolicy, bool isRunning) | ||
{ | ||
StartedAt = startedAt; | ||
IsLockedByPolicy = isLockedByPolicy; | ||
IsRunning = isRunning; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Ses.Subscriptions | ||
{ | ||
public class SourcePollerState | ||
{ | ||
public SourcePollerState(string pollerContractName, string sourceContractName) | ||
{ | ||
PollerContractName = pollerContractName; | ||
SourceContractName = sourceContractName; | ||
} | ||
|
||
public string PollerContractName { get; } | ||
public string SourceContractName { get; } | ||
public long EventSequenceId { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return $"{PollerContractName}/{SourceContractName} = {EventSequenceId}"; | ||
} | ||
} | ||
} |
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