Package com.tangosol.util
Class NullImplementation.NullMemberIdentityProvider
- java.lang.Object
-
- com.tangosol.util.NullImplementation.NullMemberIdentityProvider
-
- All Implemented Interfaces:
MemberIdentityProvider
- Enclosing class:
- NullImplementation
public static class NullImplementation.NullMemberIdentityProvider extends Object implements MemberIdentityProvider
An implementation of aMemberIdentityProvider
that returnsnull
for all its methods.- Since:
- 22.06
-
-
Field Summary
Fields Modifier and Type Field Description static NullImplementation.NullMemberIdentityProvider
INSTANCE
A singleton instance of aNullImplementation.NullMemberIdentityProvider
.-
Fields inherited from interface com.tangosol.net.MemberIdentityProvider
PROPERTY
-
-
Constructor Summary
Constructors Constructor Description NullMemberIdentityProvider()
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.net.MemberIdentityProvider
setDependencies
-
-
-
-
Field Detail
-
INSTANCE
public static final NullImplementation.NullMemberIdentityProvider INSTANCE
A singleton instance of aNullImplementation.NullMemberIdentityProvider
.
-
-
Method Detail
-
getMachineName
public String getMachineName()
Description copied from interface:MemberIdentityProvider
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.- Specified by:
getMachineName
in interfaceMemberIdentityProvider
- Returns:
- the configured Machine name or
null
-
getMemberName
public String getMemberName()
Description copied from interface:MemberIdentityProvider
Return the name for the Member. This name is used for logging purposes and to differentiate among Members running within a particular process.- Specified by:
getMemberName
in interfaceMemberIdentityProvider
- Returns:
- the configured Member name or
null
-
getRackName
public String getRackName()
Description copied from interface:MemberIdentityProvider
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.- Specified by:
getRackName
in interfaceMemberIdentityProvider
- Returns:
- the configured Rack name or
null
-
getSiteName
public String getSiteName()
Description copied from interface:MemberIdentityProvider
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.- Specified by:
getSiteName
in interfaceMemberIdentityProvider
- Returns:
- the configured Site name or
null
-
getRoleName
public String getRoleName()
Description copied from interface:MemberIdentityProvider
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.- Specified by:
getRoleName
in interfaceMemberIdentityProvider
- Returns:
- the configured role name for the Member or
null
-
-