File tree 3 files changed +23
-11
lines changed
Elastic.Elasticsearch.Ephemeral
Elastic.Elasticsearch.Managed
Elastic.Elasticsearch.Xunit 3 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 8
8
9
9
namespace Elastic . Elasticsearch . Ephemeral
10
10
{
11
- public interface IEphemeralCluster
11
+ public interface IEphemeralCluster : ICluster
12
12
{
13
13
ICollection < Uri > NodesUris ( string hostName = null ) ;
14
14
string GetCacheFolderName ( ) ;
Original file line number Diff line number Diff line change 17
17
18
18
namespace Elastic . Elasticsearch . Managed
19
19
{
20
- public interface ICluster < out TConfiguration > : IDisposable
21
- where TConfiguration : IClusterConfiguration < NodeFileSystem >
20
+ public interface ICluster
22
21
{
22
+ /// <summary>
23
+ /// Whether known proxies were detected as running during startup
24
+ /// </summary>
25
+ DetectedProxySoftware DetectedProxy { get ; }
26
+
27
+ /// <summary> A friendly name for this cluster, derived from the implementation name</summary>
23
28
string ClusterMoniker { get ; }
24
- TConfiguration ClusterConfiguration { get ; }
29
+
30
+ /// <inheritdoc cref="INodeFileSystem"/>
25
31
INodeFileSystem FileSystem { get ; }
32
+
33
+ /// <summary> Indicating if this cluster was started correctly </summary>
26
34
bool Started { get ; }
35
+
36
+ /// <summary>
37
+ /// The collection of <see cref="ElasticsearchNode"/>'s that make up the cluster
38
+ /// </summary>
27
39
ReadOnlyCollection < ElasticsearchNode > Nodes { get ; }
40
+ }
41
+
42
+ public interface ICluster < out TConfiguration > : ICluster , IDisposable
43
+ where TConfiguration : IClusterConfiguration < NodeFileSystem >
44
+ {
45
+ TConfiguration ClusterConfiguration { get ; }
28
46
IConsoleLineHandler Writer { get ; }
29
47
30
48
IDisposable Start ( ) ;
31
49
32
50
IDisposable Start ( TimeSpan waitForStarted ) ;
33
51
34
52
IDisposable Start ( IConsoleLineHandler writer , TimeSpan waitForStarted ) ;
35
-
36
- /// <summary>
37
- /// Whether known proxies were detected as running during startup
38
- /// </summary>
39
- DetectedProxySoftware DetectedProxy { get ; }
40
53
}
41
54
42
55
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ namespace Elastic.Elasticsearch.Xunit
13
13
/// </summary>
14
14
public static class XunitClusterExtensions
15
15
{
16
- private static readonly ConcurrentDictionary < IEphemeralCluster , object > Clients =
17
- new ConcurrentDictionary < IEphemeralCluster , object > ( ) ;
16
+ private static readonly ConcurrentDictionary < IEphemeralCluster , object > Clients = new ( ) ;
18
17
19
18
/// <summary>
20
19
/// Gets a client for the cluster if one exists, or creates a new client if one doesn't.
You can’t perform that action at this time.
0 commit comments