Package com.tangosol.net
Interface MemberIdentityProvider
-
- All Known Implementing Classes:
NullImplementation.NullMemberIdentityProvider
,URLMemberIdentityProvider
public interface MemberIdentityProvider
A provider of values for a member's identity.- Since:
- 22.06
- Author:
- Jonathan Knight 2022.05.25
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getMachineName()
Return the name for the Machine (such as a host name) in which this Member resides.String
getMemberName()
Return the name for the Member.String
getRackName()
Return the name for the Rack (such as a physical rack, cage or blade frame) in which this Member resides.String
getRoleName()
Return the role name for the Member.String
getSiteName()
Return the name for the Site (such as a data center) in which this Member resides.default void
setDependencies(ClusterDependencies deps)
Set the cluster dependencies.
-
-
-
Field Detail
-
PROPERTY
static final String PROPERTY
The System property to use to set the name of the identity provider class to use.This will take precedence over any providers discovered by the
ServiceLoader
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMachineName
String getMachineName()
Return the name for the Machine (such as a host name) in which this Member resides. This name is used for logging purposes and to differentiate among multiple servers, and may be used as the basis for determining the MachineId property.- Returns:
- the configured Machine name or
null
-
getMemberName
String getMemberName()
Return the name for the Member. This name is used for logging purposes and to differentiate among Members running within a particular process.- Returns:
- the configured Member name or
null
-
getRackName
String getRackName()
Return the name for the Rack (such as a physical rack, cage or blade frame) in which this Member resides. This name is used for logging purposes and to differentiate among multiple racks within a particular data center, for example.- Returns:
- the configured Rack name or
null
-
getSiteName
String getSiteName()
Return the name for the Site (such as a data center) in which this Member resides. This name is used for logging purposes and to differentiate among multiple geographic sites.- Returns:
- the configured Site name or
null
-
getRoleName
String getRoleName()
Return the role name for the Member. This role is completely definable by the application, and can be used to determine what Members to use for specific purposes.- Returns:
- the configured role name for the Member or
null
-
setDependencies
default void setDependencies(ClusterDependencies deps)
Set the cluster dependencies.- Parameters:
deps
- the cluster dependencies
-
-