Class ClusterNodeVerifier
- java.lang.Object
-
- org.apache.activemq.artemis.cli.commands.check.ClusterNodeVerifier
-
- All Implemented Interfaces:
AutoCloseable
public class ClusterNodeVerifier extends Object implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClusterNodeVerifier.TopologyItem
-
Constructor Summary
Constructors Constructor Description ClusterNodeVerifier(String uri, String user, String password)ClusterNodeVerifier(String uri, String user, String password, long variance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringcompareTopology(Map<String,ClusterNodeVerifier.TopologyItem> mainTopology, Map<String,ClusterNodeVerifier.TopologyItem> compareTopology)protected longfetchMainTime()protected org.apache.activemq.artemis.json.JsonArrayfetchMainTopology()protected longfetchTime(String uri)protected org.apache.activemq.artemis.json.JsonArrayfetchTopology(String uri)protected Long[]fetchTopologyTime(Map<String,ClusterNodeVerifier.TopologyItem> topologyItemMap)protected StringgetNodeID()ClusterNodeVerifieropen()booleanverify(ActionContext context)protected voidverifyTime(ActionContext context, Map<String,ClusterNodeVerifier.TopologyItem> mainTopology, AtomicBoolean verificationResult, boolean supportTime)
-
-
-
Method Detail
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
open
public ClusterNodeVerifier open() throws Exception
- Throws:
Exception
-
verify
public boolean verify(ActionContext context) throws Exception
- Throws:
Exception
-
verifyTime
protected void verifyTime(ActionContext context, Map<String,ClusterNodeVerifier.TopologyItem> mainTopology, AtomicBoolean verificationResult, boolean supportTime)
-
fetchTopologyTime
protected Long[] fetchTopologyTime(Map<String,ClusterNodeVerifier.TopologyItem> topologyItemMap)
-
compareTopology
public String compareTopology(Map<String,ClusterNodeVerifier.TopologyItem> mainTopology, Map<String,ClusterNodeVerifier.TopologyItem> compareTopology)
-
fetchMainTopology
protected org.apache.activemq.artemis.json.JsonArray fetchMainTopology() throws Exception- Throws:
Exception
-
-