aboutsummaryrefslogtreecommitdiff
path: root/lib/VNLib.Data.Caching.Extensions/src/ActiveServer.cs
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-07-13 13:20:25 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-07-13 13:20:25 -0400
commit2f674e79d42e7d36225fa9ac7ecefbc5bc62d325 (patch)
treec58999489f5391bc044e7a9bb3e557afe2860415 /lib/VNLib.Data.Caching.Extensions/src/ActiveServer.cs
parent1a8ab1457244d15b19ddcc94958f645f5ec2abc7 (diff)
Checkpoint, kind of working clustering
Diffstat (limited to 'lib/VNLib.Data.Caching.Extensions/src/ActiveServer.cs')
-rw-r--r--lib/VNLib.Data.Caching.Extensions/src/ActiveServer.cs51
1 files changed, 0 insertions, 51 deletions
diff --git a/lib/VNLib.Data.Caching.Extensions/src/ActiveServer.cs b/lib/VNLib.Data.Caching.Extensions/src/ActiveServer.cs
deleted file mode 100644
index 3020376..0000000
--- a/lib/VNLib.Data.Caching.Extensions/src/ActiveServer.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
-* Copyright (c) 2023 Vaughn Nugent
-*
-* Library: VNLib
-* Package: VNLib.Data.Caching.Extensions
-* File: ActiveServer.cs
-*
-* ActiveServer.cs is part of VNLib.Data.Caching.Extensions which is part of the larger
-* VNLib collection of libraries and utilities.
-*
-* VNLib.Data.Caching.Extensions is free software: you can redistribute it and/or modify
-* it under the terms of the GNU Affero General Public License as
-* published by the Free Software Foundation, either version 3 of the
-* License, or (at your option) any later version.
-*
-* VNLib.Data.Caching.Extensions is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU Affero General Public License for more details.
-*
-* You should have received a copy of the GNU Affero General Public License
-* along with this program. If not, see https://www.gnu.org/licenses/.
-*/
-
-using System;
-using System.Text.Json.Serialization;
-
-namespace VNLib.Data.Caching.Extensions
-{
- public class ActiveServer : ICacheNodeAdvertisment
- {
- [JsonPropertyName("address")]
- public string? HostName { get; set; }
-
- public string? ServerId { get; set; }
- [JsonPropertyName("ip_address")]
- public string? Ip { get; set; }
-
- public Uri ConnectEndpoint { get; }
-
- public Uri? DiscoveryEndpoint { get; }
-
- [JsonPropertyName("server_id")]
- public string NodeId { get; }
-
- ///<inheritdoc/>
- public override int GetHashCode() => ServerId!.GetHashCode(StringComparison.OrdinalIgnoreCase);
- ///<inheritdoc/>
- public override bool Equals(object? obj) => obj is ActiveServer s && GetHashCode() == s.GetHashCode();
- }
-}