Package io.joynr.arbitration
Enum DiscoveryScope
- java.lang.Object
-
- java.lang.Enum<DiscoveryScope>
-
- io.joynr.arbitration.DiscoveryScope
-
- All Implemented Interfaces:
Serializable,Comparable<DiscoveryScope>
public enum DiscoveryScope extends Enum<DiscoveryScope>
DiscoveryScope indicates whther only locally registered capabilities are to be used in discovery, or if the global registry is also to be used.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GLOBAL_ONLYOnly the global registry will be queried during discoveryLOCAL_AND_GLOBALlocal capabilities and capabilities from the global registry will be combined and returnedLOCAL_ONLYOnly capabilities registered locally will be discoveredLOCAL_THEN_GLOBALlocal capabilities will be discovered if available; otherwise the global registry will be queried
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DiscoveryScopevalueOf(String name)Returns the enum constant of this type with the specified name.static DiscoveryScope[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCAL_ONLY
public static final DiscoveryScope LOCAL_ONLY
Only capabilities registered locally will be discovered
-
LOCAL_THEN_GLOBAL
public static final DiscoveryScope LOCAL_THEN_GLOBAL
local capabilities will be discovered if available; otherwise the global registry will be queried
-
LOCAL_AND_GLOBAL
public static final DiscoveryScope LOCAL_AND_GLOBAL
local capabilities and capabilities from the global registry will be combined and returned
-
GLOBAL_ONLY
public static final DiscoveryScope GLOBAL_ONLY
Only the global registry will be queried during discovery
-
-
Method Detail
-
values
public static DiscoveryScope[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DiscoveryScope c : DiscoveryScope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DiscoveryScope valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-