Package com.tangosol.net
Class URLMemberIdentityProvider
java.lang.Object
com.tangosol.net.URLMemberIdentityProvider
- All Implemented Interfaces:
MemberIdentityProvider
A
MemberIdentityProvider
that retrieves identity
values from URLs, files, or class path resources.- Since:
- 22.06
- Author:
- Jonathan Knight
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.oracle.coherence.common.util.Duration
The default http connection timeout.static final com.oracle.coherence.common.util.Duration
The default retry period.static final com.oracle.coherence.common.util.Duration
The default retry timeout.protected HttpClient
The http client used to access http or https URLs.protected ClusterDependencies
The cluster dependencies.static final String
The system property to use to set the http connection timeout.static final String
The system property to use to set the URL to read the machine name from.static final String
The system property to use to set the URL to read the member name from.static final String
The system property to use to set the URL to read the rack name from.static final String
The system property to use to set the retry period.static final String
The system property to use to set the retry timeout.static final String
The system property to use to set the URL to read the role name from.static final String
The system property to use to set the URL to read the site name from.static final String
The system property to use to set the URL to read the role name from.Fields inherited from interface com.tangosol.net.MemberIdentityProvider
PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
doHttpRequest
(URI uri) protected HttpClient
Return the name for the Machine (such as a host name) in which this Member resides.Return the name for the Member.Return the name for the Rack (such as a physical rack, cage or blade frame) in which this Member resides.Return the role name for the Member.Return the name for the Site (such as a data center) in which this Member resides.void
Set the cluster dependencies.
-
Field Details
-
PROP_MACHINE
The system property to use to set the URL to read the machine name from.- See Also:
-
PROP_MEMBER
The system property to use to set the URL to read the member name from.- See Also:
-
PROP_SITE
The system property to use to set the URL to read the site name from.- See Also:
-
PROP_RACK
The system property to use to set the URL to read the rack name from.- See Also:
-
PROP_ROLE
The system property to use to set the URL to read the role name from.- See Also:
-
PROP_SOCKET_PROVIDER
The system property to use to set the URL to read the role name from.- See Also:
-
PROP_RETRY_PERIOD
The system property to use to set the retry period.- See Also:
-
DURATION_RETRY_PERIOD
public static final com.oracle.coherence.common.util.Duration DURATION_RETRY_PERIODThe default retry period. -
PROP_RETRY_TIMEOUT
The system property to use to set the retry timeout.- See Also:
-
DURATION_RETRY_TIMEOUT
public static final com.oracle.coherence.common.util.Duration DURATION_RETRY_TIMEOUTThe default retry timeout. -
PROP_HTTP_TIMEOUT
The system property to use to set the http connection timeout.- See Also:
-
DURATION_HTTP_TIMEOUT
public static final com.oracle.coherence.common.util.Duration DURATION_HTTP_TIMEOUTThe default http connection timeout. -
m_dependencies
The cluster dependencies. -
m_client
The http client used to access http or https URLs.
-
-
Constructor Details
-
URLMemberIdentityProvider
public URLMemberIdentityProvider()
-
-
Method Details
-
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
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
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
-
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
-
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
-
setDependencies
Description copied from interface:MemberIdentityProvider
Set the cluster dependencies.- Specified by:
setDependencies
in interfaceMemberIdentityProvider
- Parameters:
deps
- the cluster dependencies
-
doHttpRequest
- Throws:
IOException
-
ensureClient
-