Package com.opencloud.sentinel.providers
Interface PlmnIdAnalyser
-
public interface PlmnIdAnalyser
An interface for a provider that can be used by features to determine if a PLMN ID (combination of MCC and MNC) is a home PLMN ID, or classify it as a Home PLMN ID, an MCC-only match, or no match. This analyser can be looked up using its JNDI name.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PlmnIdAnalyser.PlmnIdMatch
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
jndiName
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PlmnIdAnalyser.PlmnIdMatch
classifyMccMnc(MccMnc mccMnc, com.opencloud.sentinel.common.SentinelSelectionKey sentinelSelectionKey)
Classify an MccMncboolean
isHomePlmnId(MccMnc mccMnc, com.opencloud.sentinel.common.SentinelSelectionKey sentinelSelectionKey)
Determine if an MccMnc is a home PLMN ID
-
-
-
Field Detail
-
jndiName
static final java.lang.String jndiName
- See Also:
- Constant Field Values
-
-
Method Detail
-
classifyMccMnc
PlmnIdAnalyser.PlmnIdMatch classifyMccMnc(MccMnc mccMnc, com.opencloud.sentinel.common.SentinelSelectionKey sentinelSelectionKey)
Classify an MccMnc- Parameters:
mccMnc
- the MccMnc object to classifysentinelSelectionKey
- the Selection Key to use for looking up configuration- Returns:
- PlmnIdMatch.HOME_PLMN_ID if mccMnc is a home PLMN ID, PlmnIdMatch.MCC_ONLY if the MCC is a home MCC but the MNC was not matched, and PlmnIdMatch.NO_MATCH otherwise
-
isHomePlmnId
boolean isHomePlmnId(MccMnc mccMnc, com.opencloud.sentinel.common.SentinelSelectionKey sentinelSelectionKey)
Determine if an MccMnc is a home PLMN ID- Parameters:
mccMnc
- the MccMnc object to classifysentinelSelectionKey
- the Selection Key to use for looking up configuration- Returns:
- true if mccMnc is a home PLMN ID, false otherwise
-
-