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
Modifier and Type Method Description StringfetchDefinition(String featureName)booleanforceSyncFeatures()booleanforceSyncSegment(String segmentName)StringgetTreatment(String key, String featureName)booleanisKeyInSegment(String key, String segmentName)
-
Constructor Details
-
SplitJmxMonitor
public SplitJmxMonitor(SplitClient splitClient, SplitFetcher fetcher, SegmentFetcher segmentFetcher)
-
-
Method Details
-
forceSyncFeatures
public boolean forceSyncFeatures()- Specified by:
forceSyncFeaturesin interfaceSplitJmxMonitorMBean
-
forceSyncSegment
- Specified by:
forceSyncSegmentin interfaceSplitJmxMonitorMBean
-
getTreatment
- 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
- Specified by:
fetchDefinitionin interfaceSplitJmxMonitorMBean- Returns:
- the feature definition
-
isKeyInSegment
- Specified by:
isKeyInSegmentin interfaceSplitJmxMonitorMBean- Returns:
- TRUE if the key is in the segment
-