Package io.split.client.jmx
Class SplitJmxMonitor
- java.lang.Object
-
- io.split.client.jmx.SplitJmxMonitor
-
- All Implemented Interfaces:
SplitJmxMonitorMBean
public class SplitJmxMonitor extends Object implements SplitJmxMonitorMBean
Created by patricioe on 1/18/16.
-
-
Constructor Summary
Constructors Constructor Description SplitJmxMonitor(SplitClient splitClient, SplitFetcher fetcher, SegmentFetcher segmentFetcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringfetchDefinition(String featureName)booleanforceSyncFeatures()booleanforceSyncSegment(String segmentName)StringgetTreatment(String key, String featureName)booleanisKeyInSegment(String key, String segmentName)
-
-
-
Constructor Detail
-
SplitJmxMonitor
public SplitJmxMonitor(SplitClient splitClient, SplitFetcher fetcher, SegmentFetcher segmentFetcher)
-
-
Method Detail
-
forceSyncFeatures
public boolean forceSyncFeatures()
- Specified by:
forceSyncFeaturesin interfaceSplitJmxMonitorMBean
-
forceSyncSegment
public boolean forceSyncSegment(String segmentName)
- Specified by:
forceSyncSegmentin interfaceSplitJmxMonitorMBean
-
getTreatment
public String getTreatment(String key, String featureName)
- Specified by:
getTreatmentin interfaceSplitJmxMonitorMBean- Parameters:
key- account of user key identifierfeatureName- the name of the feature- Returns:
- the evaluation of this feature for the identifier.
-
fetchDefinition
public String fetchDefinition(String featureName)
- Specified by:
fetchDefinitionin interfaceSplitJmxMonitorMBean- Returns:
- the feature definition
-
isKeyInSegment
public boolean isKeyInSegment(String key, String segmentName)
- Specified by:
isKeyInSegmentin interfaceSplitJmxMonitorMBean- Returns:
- TRUE if the key is in the segment
-
-