Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.management.configuration
Interface ClusterMBean

All Superinterfaces:
ConfigurationMBean, DescriptorBean, DynamicMBean, MBeanRegistration, NotificationBroadcaster, SettableBean, TargetMBean, WebLogicMBean

public interface ClusterMBean
extends TargetMBean

This bean represents a cluster in the domain. Servers join a cluster by calling ServerMBean.setCluster with the logical name of the cluster. A configuration may define zero or more clusters. They may be looked up by logical name.

The name of a cluster denotes its logical cluster name.


Field Summary

 

Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY

 

Method Summary
abstract  int getAdditionalAutoMigrationAttempts()
          A migratable server could fail to come up on every possible configured machine.
abstract  int getAsyncSessionQueueTimeout()
          Interval in seconds until the producer thread will wait for the AsyncSessionQueue to become unblocked.
abstract  String getAutoMigrationTableName()
          Return the name of the table to be used for server migration.
abstract  MachineMBean[] getCandidateMachinesForMigratableServers()
          The set of machines (and order of preference) on which Node Manager will restart failed servers.
abstract  String getClusterAddress()
          The address that forms a portion of the URL a client uses to connect to this cluster, and that is used for generating EJB handles and entity EJB failover addresses.
abstract  String getClusterBroadcastChannel()
          Specifies the channel used to handle communications within a cluster.
abstract  String getClusterMessagingMode()
          Specifies the messaging type used in the cluster.
abstract  String getClusterType()
          Optimizes cross-cluster replication for the type of network that servers in the clusters use for administrative communication.
abstract  CoherenceClusterSystemResourceMBean getCoherenceClusterSystemResource()
          Coherence Cluster associated with this cluster.
abstract  CoherenceTierMBean getCoherenceTier()
          Coherence Tier associated with this WLS cluster.
abstract  int getDatabaseLeasingBasisConnectionRetryCount()
          The maximum number of times Database Leasing will try to obtain a valid connection from the Data Source.
abstract  long getDatabaseLeasingBasisConnectionRetryDelay()
          The length of time, in milliseconds,Database Leasing will wait before attempting to obtain a new connection from the Data Source when a connection has failed.
abstract  DatabaseLessLeasingBasisMBean getDatabaseLessLeasingBasis()
          Get attributes associated with database less leasing basis used for server migration and singleton services.
abstract  JDBCSystemResourceMBean getDataSourceForAutomaticMigration()
          The data source used by servers in the cluster during migration.
abstract  JDBCSystemResourceMBean getDataSourceForJobScheduler()
          Data source required to support persistence of jobs scheduled with the job scheduler
abstract  JDBCSystemResourceMBean getDataSourceForSessionPersistence()
          To support HTTP Session failover across data centers, a datasource is required to dump session state on disk.
abstract  String getDefaultLoadAlgorithm()
          Defines the algorithm to be used for load-balancing between replicated services if none is specified for a particular service.
abstract  DynamicServersMBean getDynamicServers()
          DynamicServers associated with this WLS cluster.
abstract  int getFencingGracePeriodMillis()
          During automatic migration, if the Cluster Master determines a server to be dead, it waits for this period of time (in milliseconds) before the Cluster Master migrates the service to another server in the cluster.
abstract  String getFrontendHost()
          The name of the host to which all redirected URLs will be sent.
abstract  int getFrontendHTTPPort()
          The name of the HTTP port to which all redirected URLs will be sent.
abstract  int getFrontendHTTPSPort()
          The name of the secure HTTP port to which all redirected URLs will be sent.
abstract  int getGreedySessionFlushInterval()
          Interval in seconds until HTTP Sessions are periodically flushed to secondary server.
abstract  int getHealthCheckIntervalMillis()
          Interval in milliseconds at which Migratable Servers and Cluster Masters prove their liveness via the database.
abstract  int getHealthCheckPeriodsUntilFencing()
          Maximum number of periods that a cluster member will wait before timing out a Cluster Master and also the maximum number of periods the Cluster Master will wait before timing out a Migratable Server.
abstract  int getIdlePeriodsUntilTimeout()
          Maximum number of periods that a cluster member will wait before timing out a member of a cluster.
abstract  int getInterClusterCommLinkHealthCheckInterval()
          If the cluster link between two clusters goes down, a trigger will run periodically to see if the link is restored.
abstract  String getJobSchedulerTableName()
          The table name to use for storing timers active with the job scheduler
abstract  JTAClusterMBean getJTACluster()
          JTA associated with this WLS cluster.
abstract  int getMemberWarmupTimeoutSeconds()
          Maximum number of seconds that a cluster member will wait to discover and synchronize with other servers in the cluster.
abstract  MigratableTargetMBean[] getMigratableTargets()
          Returns all the MigratableTargets for this cluster
abstract  String getMigrationBasis()
          Controls the mechanism used for server and service migration.
abstract  long getMillisToSleepBetweenAutoMigrationAttempts()
          Controls how long of a pause there should be between the migration attempts described in getAdditionalAutoMigrationAttempts().
abstract  String getMulticastAddress()
          The multicast address used by cluster members to communicate with each other.
abstract  int getMulticastBufferSize()
          The multicast socket send/receive buffer size (at least 64 kilobytes).
abstract  boolean getMulticastDataEncryption()
          Enables multicast data to be encrypted.
abstract  int getMulticastPort()
          The multicast port (between 1 and 65535) used by cluster members to communicate with each other.
abstract  int getMulticastSendDelay()
          The amount of time (between 0 and 250 milliseconds) to delay sending message fragments over multicast in order to avoid OS-level buffer overflow.
abstract  int getMulticastTTL()
          The number of network hops (between 1 and 255) that a cluster multicast message is allowed to travel.
abstract  String getName()
          The user-specified name of this MBean instance.
abstract  int getNumberOfServersInClusterAddress()
          Number of servers to be listed from this cluster when generating a cluster address automatically.
abstract  OverloadProtectionMBean getOverloadProtection()
          Get attributes related to server overload protection.
abstract  boolean getPersistSessionsOnShutdown()
          When shutting down servers, sessions are not updated.
abstract  String getRemoteClusterAddress()
          Set the foreign cluster.
abstract  String getReplicationChannel()
          The channel name to be used for replication traffic.
abstract  ServerMBean[] getServers()
          The servers which have declared membership in this cluster.
abstract  int getServiceActivationRequestResponseTimeout()
          The maximum time, in milliseconds seconds, for services to wait for response from cluster members.
abstract  int getServiceAgeThresholdSeconds()
          The number of seconds (between 0 and 65534) by which the age of two conflicting services must differ before one is considered older than the other.
abstract  int getSessionFlushInterval()
          Interval in seconds until HTTP Sessions are periodically flushed to the backup cluster to dump session state on disk.
abstract  int getSessionFlushThreshold()
          When number of sessions to be flushed reaches this threshold limit, sessions will be flushed to the backup cluster before the flush interval.
abstract  int getSessionStateQueryRequestTimeout()
          The maximum time, in seconds, for session state query request to wait for response from cluster members.
abstract  boolean getTxnAffinityEnabled()
          If enabled, a server's transaction requests go to servers in the cluster that are already participating in the global transaction.
abstract  String getWANSessionPersistenceTableName()
          Return the name of the table to be used for WAN session persistence.
abstract  boolean isClientCertProxyEnabled()
          Specifies whether to honor the WL-Proxy-Client-Cert header coming with the request or not.
abstract  boolean isHttpTraceSupportEnabled()
          Returns the value of HttpTraceSupportEnabled.
abstract  boolean isMemberDeathDetectorEnabled()
          Enables faster Automatic Service Migration times with Database Leasing Basis.
abstract  boolean isOneWayRmiForReplicationEnabled()
          Indicates if one-way RMI is being used for replication.
abstract  boolean isReplicationTimeoutEnabled()
          Indicates if timeout should be applied to session replication calls.
abstract  boolean isSecureReplicationEnabled()
          Servers in a cluster replicate session data.
abstract  boolean isSessionLazyDeserializationEnabled()
          Enables increased efficiency with session replication.
abstract  boolean isSessionStateQueryProtocolEnabled()
          Indicates if session state query protocol is enabled.
abstract  boolean isWeblogicPluginEnabled()
          Specifies if this cluster will receive requests from a proxy plug-in or HttpClusterServlet.
abstract  void setAdditionalAutoMigrationAttempts(int tries)
          Sets the AdditionalAutoMigrationAttempts value.
abstract  void setAsyncSessionQueueTimeout(int asyncSessionQueueTimeout)
          When the request producer wants to add a session to the AsyncReplication queue, the queue will block the addition if it is full.
abstract  void setAutoMigrationTableName(String name)
           
abstract  void setCandidateMachinesForMigratableServers(MachineMBean[] machines)
          set getCandidateMachinesForMigratableServers
abstract  void setClientCertProxyEnabled(boolean ccp)
          A value of true causes proxy-server plugins to pass identity certificates from clients to all web applications that are deployed on all server instances in the cluster.
abstract  void setClusterAddress(String address)
          Sets the cluster's address.
abstract  void setClusterBroadcastChannel(String value)
          Configure the cluster messaging mode value
abstract  void setClusterMessagingMode(String value)
           
abstract  void setClusterType(String type)
          Sets the value of the ClusterType attribute.
abstract  void setCoherenceClusterSystemResource(CoherenceClusterSystemResourceMBean coherenceClusterSystemResource)
          Associates the WLS cluster to a Coherence Cluster
abstract  void setDatabaseLeasingBasisConnectionRetryCount(int count)
           
abstract  void setDatabaseLeasingBasisConnectionRetryDelay(long millis)
           
abstract  void setDataSourceForAutomaticMigration(JDBCSystemResourceMBean dataSource)
          Sets the DataSourceForAutomaticMigration attribute.
abstract  void setDataSourceForJobScheduler(JDBCSystemResourceMBean mbean)
          Data source required to support persistence of jobs scheduled with the job scheduler
abstract  void setDataSourceForSessionPersistence(JDBCSystemResourceMBean mbean)
          Sets the DataSourceForSessionPersistence attribute.
abstract  void setDefaultLoadAlgorithm(String value)
          Sets the default load balancing algorithm.
abstract  void setFencingGracePeriodMillis(int gracePeriod)
          Sets the value of the FencingGracePeriodMillis attribute.
abstract  void setFrontendHost(String hostName)
          Sets the FrontendHost attribute of the WebServerMBean object
abstract  void setFrontendHTTPPort(int httpPort)
          Sets the FrontendHTTPPort attribute.
abstract  void setFrontendHTTPSPort(int httpsPort)
          Sets the FrontendHTTPSPort attribute.
abstract  void setHealthCheckIntervalMillis(int healthCheckInterval)
          Sets the value of the HealthCheckIntervalMillis attribute.
abstract  void setHealthCheckPeriodsUntilFencing(int healthCheckPeriodsUntilTimeout)
          Sets the value of the HealthCheckPeriodsUntilFencing attribute.
abstract  void setHttpTraceSupportEnabled(boolean tse)
          Attackers may abuse HTTP TRACE functionality to gain access to information in HTTP headers such as cookies and authentication data.
abstract  void setIdlePeriodsUntilTimeout(int timeout)
          Sets the IdlePeriodsUntilTimeout attribute.
abstract  void setInterClusterCommLinkHealthCheckInterval(int interval)
          Sets the InterClusterCommLinkHealthCheckInterval attribute.
abstract  void setJobSchedulerTableName(String tableName)
          The data source that servers in the cluster use to persist cluster wide timers.
abstract  void setMemberWarmupTimeoutSeconds(int seconds)
          Maximum number of seconds that a cluster member will wait to discover and synchronize with other servers in the cluster.
abstract  void setMessageOrderingEnabled(boolean value)
           
abstract  void setMigrationBasis(String type)
           
abstract  void setMillisToSleepBetweenAutoMigrationAttempts(long millis)
          Sets the getMillisToSleepBetweenAutoMigrationAttempts value.
abstract  void setMulticastAddress(String address)
          Sets the multicast address used by cluster members to communicate with each other.
abstract  void setMulticastBufferSize(int bufSize)
          Defines the multicast socket send/receive buffer size.
abstract  void setMulticastDataEncryption(boolean value)
           
abstract  void setMulticastPort(int port)
          The multicast port used by cluster members to communicate with each other.
abstract  void setMulticastSendDelay(int delay)
          Sets the number of milliseconds to delay sending message fragments over multicast.
abstract  void setMulticastTTL(int ttl)
          Sets the time-to-live value for the cluster's multicast address.
abstract  void setNumberOfServersInClusterAddress(int numberOfServersInClusterAddress)
          Sets the NumberOfServersInClusterAddress attribute
abstract  void setOneWayRmiForReplicationEnabled(boolean enable)
          Enables one-way RMI for replication.
abstract  void setPersistSessionsOnShutdown(boolean persist)
          Sets the PersistSessionsOnShutdown attribute.
abstract  void setRemoteClusterAddress(String clusterAddress)
          Sets the RemoteClusterAddress attribute.
abstract  void setReplicationChannel(String replicationChannel)
           
abstract  void setReplicationTimeoutEnabled(boolean replicationTimeout)
          Enable or disable replication timeout.
abstract  void setSecureReplicationEnabled(boolean value)
           
abstract  void setServiceActivationRequestResponseTimeout(int timeout)
          The maximum time, in milliseconds seconds, for services to wait for response from cluster members.
abstract  void setServiceAgeThresholdSeconds(int seconds)
          Defines the number of seconds by which the age of two conflicting services must differ before one is considered older than the other.
abstract  void setSessionFlushInterval(int sessionFlushInterval)
          Sets the SessionFlushInterval attribute.
abstract  void setSessionFlushThreshold(int sessionFlushThreshold)
          Sets the SessionFlushThreshold attribute.
abstract  void setSessionStateQueryProtocolEnabled(boolean enable)
          Enables session state query protocol.
abstract  void setSessionStateQueryRequestTimeout(int timeout)
          The maxmimum number of seconds a Session State Query Request will wait for a response from the cluster.
abstract  void setTxnAffinityEnabled(boolean txAffinity)
           
abstract  void setWANSessionPersistenceTableName(String name)
           
abstract  void setWeblogicPluginEnabled(boolean wpe)
          WLS HttpRequest.getRemoteAddr() used to rely on X-Forwarded-For for its returned value.

 

Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getId, getInheritedProperties, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet

 

Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent

 

Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes

 

Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister

 

Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener

 

Methods inherited from interface weblogic.descriptor.DescriptorBean
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener

 

Method Detail

getName

String getName()

The user-specified name of this MBean instance.

This name is included as one of the key properties in the MBean's javax.management.ObjectName:

Name=user-specified-name

Specified by:
getName in interface ConfigurationMBean
Specified by:
getName in interface WebLogicMBean

getServers

ServerMBean[] getServers()

The servers which have declared membership in this cluster.

Returns:
The servers value

getClusterAddress

String getClusterAddress()

The address that forms a portion of the URL a client uses to connect to this cluster, and that is used for generating EJB handles and entity EJB failover addresses. (This address may be either a DNS host name that maps to multiple IP addresses or a comma-separated list of single address host names or IP addresses.)

Defines the address to be used by clients to connect to this cluster. This address may be either a DNS host name that maps to multiple IP addresses or a comma separated list of single address host names or IP addresses. If network channels are configured, it is possible to set the cluster address on a per channel basis.

Returns:
The clusterAddress value
See Also:
NetworkChannelMBean.getClusterAddress()

setClusterAddress

void setClusterAddress(String address)
                       throws InvalidAttributeValueException

Sets the cluster's address.

Parameters:
address - The new clusterAddress value
Throws:
InvalidAttributeValueException
IllegalArgumentException - if the address is not either a well-formed IP address or hostname.
See Also:
ClusterMBean.getMulticastAddress()

getMulticastAddress

String getMulticastAddress()

The multicast address used by cluster members to communicate with each other.

The valid range is from from 224.0.0.0 to 239.255.255.255. The default value used by WebLogic Server is 239.192.0.0. You should avoid using multicast addresses in the range x.0.0.1

This address should be unique to this cluster and should not be shared by other applications.

Returns:
The multicastAddress value
See Also:
ServerTemplateMBean.getInterfaceAddress(), ClusterMBean.getMulticastPort()

setMulticastAddress

void setMulticastAddress(String address)
                         throws InvalidAttributeValueException

Sets the multicast address used by cluster members to communicate with each other.

Parameters:
address - The new multicastAddress value
Throws:
InvalidAttributeValueException
IllegalArgumentException - if the argument is not a well-formed IP address.
See Also:
ServerTemplateMBean.getInterfaceAddress(), ClusterMBean.setMulticastPort(int)

setMulticastBufferSize

void setMulticastBufferSize(int bufSize)

Defines the multicast socket send/receive buffer size.

Parameters:
bufSize - The new multicastBufferSize value

getMulticastBufferSize

int getMulticastBufferSize()

The multicast socket send/receive buffer size (at least 64 kilobytes).

Returns the multicast socket send/receive buffer size.

Returns:
The multicastBufferSize value

getMulticastPort

int getMulticastPort()

The multicast port (between 1 and 65535) used by cluster members to communicate with each other.

Defines the multicast port used by cluster members to communicate with each other.

Returns:
The multicastPort value
Since:
7.0.0.0
See Also:
ClusterMBean.setMulticastPort(int), ClusterMBean.getMulticastAddress()

setMulticastPort

void setMulticastPort(int port)
                      throws InvalidAttributeValueException

The multicast port used by cluster members to communicate with each other.

Parameters:
port - The new multicastPort value
Throws:
InvalidAttributeValueException
See Also:
ClusterMBean.getMulticastPort(), ClusterMBean.setMulticastAddress(java.lang.String)

getMulticastTTL

int getMulticastTTL()

The number of network hops (between 1 and 255) that a cluster multicast message is allowed to travel.

Defines the number of network hops that a cluster multicast message is allowed to travel. 1 restricts the cluster to one subnet.

Returns:
The multicastTTL value

setMulticastTTL

void setMulticastTTL(int ttl)
                     throws InvalidAttributeValueException

Sets the time-to-live value for the cluster's multicast address.

Parameters:
ttl - The new multicastTTL value
Throws:
InvalidAttributeValueException

getMulticastSendDelay

int getMulticastSendDelay()

The amount of time (between 0 and 250 milliseconds) to delay sending message fragments over multicast in order to avoid OS-level buffer overflow.

Defines the number of milliseconds to delay sending message fragments over multicast in order to avoid OS-level buffer overflow.

Returns:
The multicastSendDelay value

setMulticastSendDelay

void setMulticastSendDelay(int delay)
                           throws InvalidAttributeValueException

Sets the number of milliseconds to delay sending message fragments over multicast.

Parameters:
delay - The new multicastSendDelay value
Throws:
InvalidAttributeValueException

getDefaultLoadAlgorithm

String getDefaultLoadAlgorithm()

Defines the algorithm to be used for load-balancing between replicated services if none is specified for a particular service. The round-robin algorithm cycles through a list of WebLogic Server instances in order. Weight-based load balancing improves on the round-robin algorithm by taking into account a pre-assigned weight for each server. In random load balancing, requests are routed to servers at random.

Returns:
The defaultLoadAlgorithm value

setDefaultLoadAlgorithm

void setDefaultLoadAlgorithm(String value)
                             throws InvalidAttributeValueException

Sets the default load balancing algorithm.

Parameters:
value - The new defaultLoadAlgorithm value
Throws:
InvalidAttributeValueException
IllegalArgumentException - if the value is not a valid algorithm.

getClusterMessagingMode

String getClusterMessagingMode()

Specifies the messaging type used in the cluster.

Multicast messaging is provided for backwards compatibility.

Returns:
The cluster messaging mode value

setClusterMessagingMode

void setClusterMessagingMode(String value)
                             throws InvalidAttributeValueException
Throws:
InvalidAttributeValueException

getClusterBroadcastChannel

String getClusterBroadcastChannel()

Specifies the channel used to handle communications within a cluster. If no channel is specified the default channel is used.

ClusterBroadcastChannel is only are supported if the unicast messaging type is used.

Returns:
The cluster messaging mode value

setClusterBroadcastChannel

void setClusterBroadcastChannel(String value)
                                throws InvalidAttributeValueException
Configure the cluster messaging mode value
Throws:
InvalidAttributeValueException

getServiceAgeThresholdSeconds

int getServiceAgeThresholdSeconds()

The number of seconds (between 0 and 65534) by which the age of two conflicting services must differ before one is considered older than the other.

Defines the number of seconds by which the age of two conflicting services must differ before one is considered older than the other.

Returns:
The serviceAgeThresholdSeconds value

setServiceAgeThresholdSeconds

void setServiceAgeThresholdSeconds(int seconds)
                                   throws InvalidAttributeValueException,
                                          DistributedManagementException

Defines the number of seconds by which the age of two conflicting services must differ before one is considered older than the other.

Parameters:
seconds - The new serviceAgeThresholdSeconds value
Throws:
InvalidAttributeValueException
DistributedManagementException

setClientCertProxyEnabled

void setClientCertProxyEnabled(boolean ccp)

A value of true causes proxy-server plugins to pass identity certificates from clients to all web applications that are deployed on all server instances in the cluster.

A proxy-server plugin encodes each identify certification in the WL-Proxy-Client-Cert header and passes the header to WebLogic Server instances. Each WebLogic Server instance takes the certificate information from the header, trusting that it came from a secure source, and uses that information to authenticate the user.

If you specify true, use a ConnectionFilter to ensure that each WebLogic Server instance accepts connections only from the machine on which the proxy-server plugin is running. Specifying true without using a connection filter creates a potential security vulnerability because the WL-Proxy-Client-Cert header can be spoofed.

A value of true overrides the value that each server instance within the cluster specifies with ServerTemplateMBean.setClientCertProxyEnabled(boolean).

By default (or if you specify false):

Parameters:
ccp - The new clientCertProxyEnabled value
See Also:
WebAppContainerMBean.setClientCertProxyEnabled(boolean), ServerTemplateMBean.setClientCertProxyEnabled(boolean)

isClientCertProxyEnabled

boolean isClientCertProxyEnabled()

Specifies whether to honor the WL-Proxy-Client-Cert header coming with the request or not.

Returns:
The clientCertProxyEnabled value
See Also:
WebAppContainerMBean.isClientCertProxyEnabled(), ServerTemplateMBean.isClientCertProxyEnabled()

setWeblogicPluginEnabled

void setWeblogicPluginEnabled(boolean wpe)

WLS HttpRequest.getRemoteAddr() used to rely on X-Forwarded-For for its returned value. This is a security hole due to HTTP header can be easily mocked and we end up with returning wrong value. This is improved by introducing a proprietary header WL-Proxy-Client-IP from our plugins and this header will only be used if WLS is configured to use our plugins. This is duplicated both in ClusterMBean and ServerMBean so the attribute WeblogicPluginEnabled can be used cluster-wide. ClusterMBean overrides ServerMBean

Parameters:
wpe - The new weblogicPluginEnabled value
See Also:
WebAppContainerMBean.setWeblogicPluginEnabled(boolean), ServerTemplateMBean.setWeblogicPluginEnabled(boolean)

isWeblogicPluginEnabled

boolean isWeblogicPluginEnabled()

Specifies if this cluster will receive requests from a proxy plug-in or HttpClusterServlet.

Set this attribute to true if the cluster will receive requests from a proxy plug-in or HttpClusterServlet. A call to getRemoteAddr will return the address of the browser client from the proprietary WL-Proxy-Client-IP header instead of the Web server.

Set this attribute to false to disable the weblogic-plugin-enabled parameter, weblogic-plugin-enabled=false, in the config.xmlfile.

Note: If you are using Oracle HTTP Server, the WebLogic Proxy Plug-In, or Oracle Traffic Director to distribute client requests to a Managed Server or a cluster, Oracle recommends setting this attribute to true.

Returns:
The weblogicPluginEnabled value
See Also:
WebAppContainerMBean.isWeblogicPluginEnabled(), ServerTemplateMBean.isWeblogicPluginEnabled()

getMigratableTargets

MigratableTargetMBean[] getMigratableTargets()

Returns all the MigratableTargets for this cluster

Returns:
The migratableTargets value

getMemberWarmupTimeoutSeconds

int getMemberWarmupTimeoutSeconds()

Maximum number of seconds that a cluster member will wait to discover and synchronize with other servers in the cluster. Normally, the member will be able to sync in 30 seconds. If the value of this attribute is higher, that does not necessarily mean that it will take longer for the member to warmup. Instead it defines an upper bound on the time that a server will wait to sync with the servers that it has discovered. If the value is set 0, servers will not attempt to discover other running server in the cluster during server initialization

Returns:
The memberWarmupTimeoutSeconds value

setMemberWarmupTimeoutSeconds

void setMemberWarmupTimeoutSeconds(int seconds)

Maximum number of seconds that a cluster member will wait to discover and synchronize with other servers in the cluster.

Parameters:
seconds - The new memberWarmupTimeoutSeconds value
See Also:
ClusterMBean.getMemberWarmupTimeoutSeconds()

setHttpTraceSupportEnabled

void setHttpTraceSupportEnabled(boolean tse)

Attackers may abuse HTTP TRACE functionality to gain access to information in HTTP headers such as cookies and authentication data. In the presence of other cross-domain vulnerabilities in web browsers, sensitive header information could be read from any domains that support the HTTP TRACE method.

This attribute is for disabling HTTP TRACE support. It is duplicated both in ClusterMBean and ServerMBean so the attribute HttpTraceSupportEnabled can be used cluster-wide. ClusterMBean overrides ServerMBean

See Also:
WebAppContainerMBean.setHttpTraceSupportEnabled(boolean), ServerTemplateMBean.setHttpTraceSupportEnabled(boolean)

isHttpTraceSupportEnabled

boolean isHttpTraceSupportEnabled()

Returns the value of HttpTraceSupportEnabled.

Returns:
HttpTraceSupportEnabled value
See Also:
WebAppContainerMBean.isHttpTraceSupportEnabled(), ServerTemplateMBean.isHttpTraceSupportEnabled()

getFrontendHost

String getFrontendHost()

The name of the host to which all redirected URLs will be sent.

Sets the HTTP FrontendHost for the default webserver (not virtual hosts) for all the servers in the cluster. Provides a method to ensure that the webapp will always have the correct HOST information, even when the request is coming through a firewall or a proxy. If this parameter is configured, the HOST header will be ignored and the information in this parameter will be used in its place, when constructing the absolute urls for redirects.

Returns:
The FrontendHost value
See Also:
WebServerMBean.getFrontendHost()

setFrontendHost

void setFrontendHost(String hostName)
                     throws InvalidAttributeValueException

Sets the FrontendHost attribute of the WebServerMBean object

Parameters:
hostName - The new FrontendHost value
Throws:
InvalidAttributeValueException

getFrontendHTTPPort

int getFrontendHTTPPort()

The name of the HTTP port to which all redirected URLs will be sent.

Sets the FrontendHTTPPort for the default webserver (not virtual hosts) for all the servers in the cluster. Provides a method to ensure that the webapp will always have the correct PORT information, even when the request is coming through a firewall or a proxy. If this parameter is configured, the HOST header will be ignored and the information in this parameter will be used in its place, when constructing the absolute urls for redirects.

Returns:
The FrontendHTTPPort value
See Also:
WebServerMBean.getFrontendHTTPPort()

setFrontendHTTPPort

void setFrontendHTTPPort(int httpPort)
                         throws InvalidAttributeValueException

Sets the FrontendHTTPPort attribute.

Parameters:
httpPort - The new FrontendHTTPPort value
Throws:
InvalidAttributeValueException
See Also:
ClusterMBean.getFrontendHTTPPort()

getFrontendHTTPSPort

int getFrontendHTTPSPort()

The name of the secure HTTP port to which all redirected URLs will be sent.

Sets the FrontendHTTPSPort for the default webserver (not virtual hosts) for all the servers in the cluster. Provides a method to ensure that the webapp will always have the correct PORT information, even when the request is coming through a firewall or a proxy. If this parameter is configured, the HOST header will be ignored and the information in this parameter will be used in its place, when constructing the absolute urls for redirects.

Returns:
The FrontendHTTPSPort value
See Also:
WebServerMBean.getFrontendHTTPSPort()

setFrontendHTTPSPort

void setFrontendHTTPSPort(int httpsPort)
                          throws InvalidAttributeValueException

Sets the FrontendHTTPSPort attribute.

Parameters:
httpsPort - The new FrontendHTTPSPort value
Throws:
InvalidAttributeValueException
See Also:
ClusterMBean.getFrontendHTTPSPort()

getIdlePeriodsUntilTimeout

int getIdlePeriodsUntilTimeout()

Maximum number of periods that a cluster member will wait before timing out a member of a cluster.

Maximum number of periods that a cluster member will wait before timing out a member of a cluster.

Returns:
The idlePeriodsUntilTimeout

setIdlePeriodsUntilTimeout

void setIdlePeriodsUntilTimeout(int timeout)

Sets the IdlePeriodsUntilTimeout attribute.

See Also:
ClusterMBean.getIdlePeriodsUntilTimeout()

setRemoteClusterAddress

void setRemoteClusterAddress(String clusterAddress)

Sets the RemoteClusterAddress attribute.

Parameters:
clusterAddress - Set the foreign cluster address for WAN/MAN HTTP session failover.
See Also:
ClusterMBean.getRemoteClusterAddress()

getRemoteClusterAddress

String getRemoteClusterAddress()

Set the foreign cluster. Cluster infrastructure uses this address to connect to foreign cluster for HTTP Session WAN/MAN failover.

Returns:
Foreign cluster Address.

setWANSessionPersistenceTableName

void setWANSessionPersistenceTableName(String name)

getWANSessionPersistenceTableName

String getWANSessionPersistenceTableName()

Return the name of the table to be used for WAN session persistence.

Returns:
the name of the table to be used for WAN session persistence

getReplicationChannel

String getReplicationChannel()

The channel name to be used for replication traffic. Cluster infrastructure uses this channel to send updates for HTTP sessions and stateful session beans. If none is set then the default channel will be used.

In order for this feature to work, the named channel must exist on all members of the cluster and must be configured to use the same protocol. It is valid for the selected channel to be configured to use a secure protocol.

Returns:
Channel name to be used for replication.
See Also:
ClusterMBean.getRemoteClusterAddress()

setReplicationChannel

void setReplicationChannel(String replicationChannel)
Parameters:
replicationChannel - channel name for session replication.
See Also:
ClusterMBean.getReplicationChannel()

getInterClusterCommLinkHealthCheckInterval

int getInterClusterCommLinkHealthCheckInterval()

If the cluster link between two clusters goes down, a trigger will run periodically to see if the link is restored. The duration is specified in milliseconds.

Returns:
Inter cluster communication link health check interval

setInterClusterCommLinkHealthCheckInterval

void setInterClusterCommLinkHealthCheckInterval(int interval)

Sets the InterClusterCommLinkHealthCheckInterval attribute.

Parameters:
interval -
See Also:
ClusterMBean.getInterClusterCommLinkHealthCheckInterval()

setDataSourceForSessionPersistence

void setDataSourceForSessionPersistence(JDBCSystemResourceMBean mbean)

Sets the DataSourceForSessionPersistence attribute.

Parameters:
mbean -
See Also:
ClusterMBean.getDataSourceForSessionPersistence()

getDataSourceForSessionPersistence

JDBCSystemResourceMBean getDataSourceForSessionPersistence()

To support HTTP Session failover across data centers, a datasource is required to dump session state on disk.

Returns:
DataSource for session persistence.

setDataSourceForJobScheduler

void setDataSourceForJobScheduler(JDBCSystemResourceMBean mbean)

Data source required to support persistence of jobs scheduled with the job scheduler


getDataSourceForJobScheduler

JDBCSystemResourceMBean getDataSourceForJobScheduler()

Data source required to support persistence of jobs scheduled with the job scheduler

Returns:
DataSource for job scheduler.

getJobSchedulerTableName

String getJobSchedulerTableName()

The table name to use for storing timers active with the job scheduler

Returns:
The database table name to use for persisting job scheduler timers

setJobSchedulerTableName

void setJobSchedulerTableName(String tableName)

The data source that servers in the cluster use to persist cluster wide timers.

See Also:
ClusterMBean.getJobSchedulerTableName()

getPersistSessionsOnShutdown

boolean getPersistSessionsOnShutdown()

When shutting down servers, sessions are not updated. If the primary and secondary servers of a session are shut down with no session updates, the session will be lost. Turning on PersistSessionsOnShutdown will save any active sessions to the database specified in ClusterMBean.getDataSourceForSessionPersistence() when a server is shutdown. The sessions will not be written at any other time. (For example, they are not saved via this mechanism if there is a server crash.)

This attribute is applicable both to session persistence on server shutdown or session persistence across a WAN.

Rolling upgrade can potentially have a bad interaction with traditional in-memory session replication. As managed servers are shutdown and upgraded, in-memory servlet sessions will be lost if both primary and secondary are rebooted before a new request arrives for the session.

Returns:
whether or not session persistence on shutdown is enabled

setPersistSessionsOnShutdown

void setPersistSessionsOnShutdown(boolean persist)

Sets the PersistSessionsOnShutdown attribute.

Parameters:
persist - whether or not to persist sessions on shutdown
See Also:
ClusterMBean.getPersistSessionsOnShutdown()

setAsyncSessionQueueTimeout

void setAsyncSessionQueueTimeout(int asyncSessionQueueTimeout)

When the request producer wants to add a session to the AsyncReplication queue, the queue will block the addition if it is full. The procuder will wait for the specified time, before marking the session as dirty.

Parameters:
asyncSessionQueueTimeout - in seconds
See Also:
ClusterMBean.getAsyncSessionQueueTimeout()

getAsyncSessionQueueTimeout

int getAsyncSessionQueueTimeout()

Interval in seconds until the producer thread will wait for the AsyncSessionQueue to become unblocked. Should be similar to the RequestTimeOut as that will determine the longest that the queue should remain full.

Returns:
async-session-queue-timeout in seconds

getGreedySessionFlushInterval

int getGreedySessionFlushInterval()

Interval in seconds until HTTP Sessions are periodically flushed to secondary server.

Returns:
greedy-session-flush-interval in seconds

setSessionFlushInterval

void setSessionFlushInterval(int sessionFlushInterval)

Sets the SessionFlushInterval attribute.

Parameters:
sessionFlushInterval - in seconds
See Also:
ClusterMBean.getSessionFlushInterval()

getSessionFlushInterval

int getSessionFlushInterval()

Interval in seconds until HTTP Sessions are periodically flushed to the backup cluster to dump session state on disk.

Returns:
session-flush-interval in seconds.

setSessionFlushThreshold

void setSessionFlushThreshold(int sessionFlushThreshold)

Sets the SessionFlushThreshold attribute.

Parameters:
sessionFlushThreshold -
See Also:
ClusterMBean.getSessionFlushThreshold()

getSessionFlushThreshold

int getSessionFlushThreshold()

When number of sessions to be flushed reaches this threshold limit, sessions will be flushed to the backup cluster before the flush interval. This helps the server to flush sessions faster under load.

Returns:
session-flush-threshold

getCandidateMachinesForMigratableServers

MachineMBean[] getCandidateMachinesForMigratableServers()

The set of machines (and order of preference) on which Node Manager will restart failed servers. (Requires you to enable each server for automatic migration.)

Each server can specify a subset of these cluster-wide candidates, which limits the machines on which the server can be restarted. Servers can also specify their own order of preference.

See Also:
ServerTemplateMBean.getCandidateMachines()

setCandidateMachinesForMigratableServers

void setCandidateMachinesForMigratableServers(MachineMBean[] machines)

set getCandidateMachinesForMigratableServers


getDataSourceForAutomaticMigration

JDBCSystemResourceMBean getDataSourceForAutomaticMigration()

The data source used by servers in the cluster during migration. (You must configure each Migratable Server within the cluster to use this data source.)

Returns:
JDBC connection pool to be used by the HABasis module.

setDataSourceForAutomaticMigration

void setDataSourceForAutomaticMigration(JDBCSystemResourceMBean dataSource)

Sets the DataSourceForAutomaticMigration attribute.

See Also:
ClusterMBean.getDataSourceForAutomaticMigration()

getHealthCheckIntervalMillis

int getHealthCheckIntervalMillis()

Interval in milliseconds at which Migratable Servers and Cluster Masters prove their liveness via the database.

Returns:
health-check-interval in milli seconds.

setHealthCheckIntervalMillis

void setHealthCheckIntervalMillis(int healthCheckInterval)

Sets the value of the HealthCheckIntervalMillis attribute.

Parameters:
healthCheckInterval - in milli seconds.
See Also:
ClusterMBean.getHealthCheckIntervalMillis()

getHealthCheckPeriodsUntilFencing

int getHealthCheckPeriodsUntilFencing()

Maximum number of periods that a cluster member will wait before timing out a Cluster Master and also the maximum number of periods the Cluster Master will wait before timing out a Migratable Server.

Returns:
fencing-period

setHealthCheckPeriodsUntilFencing

void setHealthCheckPeriodsUntilFencing(int healthCheckPeriodsUntilTimeout)

Sets the value of the HealthCheckPeriodsUntilFencing attribute.

Parameters:
healthCheckPeriodsUntilTimeout - health check periods until time out.
See Also:
ClusterMBean.getHealthCheckPeriodsUntilFencing()

getFencingGracePeriodMillis

int getFencingGracePeriodMillis()

During automatic migration, if the Cluster Master determines a server to be dead, it waits for this period of time (in milliseconds) before the Cluster Master migrates the service to another server in the cluster.

Returns:
fencing-grace-period in milli seconds.

setFencingGracePeriodMillis

void setFencingGracePeriodMillis(int gracePeriod)

Sets the value of the FencingGracePeriodMillis attribute.

See Also:
ClusterMBean.getFencingGracePeriodMillis()

getNumberOfServersInClusterAddress

int getNumberOfServersInClusterAddress()

Number of servers to be listed from this cluster when generating a cluster address automatically. This setting has no effect if Cluster Address is explicitly set.

Returns:
number of server to be listed in this cluster
See Also:
ClusterMBean.getClusterAddress()

setNumberOfServersInClusterAddress

void setNumberOfServersInClusterAddress(int numberOfServersInClusterAddress)

Sets the NumberOfServersInClusterAddress attribute

See Also:
ClusterMBean.getNumberOfServersInClusterAddress()

setClusterType

void setClusterType(String type)

Sets the value of the ClusterType attribute.


getClusterType

String getClusterType()

Optimizes cross-cluster replication for the type of network that servers in the clusters use for administrative communication.

To enhance the reliability of HTTP sessions, you can configure servers in one cluster to replicate the session data to servers in a different cluster. In such an environment, configure the clusters to be one of the following types:


setMulticastDataEncryption

void setMulticastDataEncryption(boolean value)

getMulticastDataEncryption

boolean getMulticastDataEncryption()

Enables multicast data to be encrypted. Only the multicast data is encrypted. Multicast header information is not encrypted.

Returns:
true if encryption is enabled, false otherwise

setAutoMigrationTableName

void setAutoMigrationTableName(String name)

getAutoMigrationTableName

String getAutoMigrationTableName()

Return the name of the table to be used for server migration.

Returns:
the name of the table to be used for server migration

getAdditionalAutoMigrationAttempts

int getAdditionalAutoMigrationAttempts()

A migratable server could fail to come up on every possible configured machine. This attribute controls how many further attempts, after the first one, should be tried.

Note that each attempt specified here indicates another full circuit of migrations amongst all the configured machines. So for a 3-server cluster, and the default value of 3, a total of 9 migrations will be attempted.

If it is set to -1, migrations will go on forever until the server starts.


setAdditionalAutoMigrationAttempts

void setAdditionalAutoMigrationAttempts(int tries)

Sets the AdditionalAutoMigrationAttempts value.

If it is set to -1, migrations will go on forever until the server starts.

Parameters:
tries - number of additional times to loop through all the machines
See Also:
ClusterMBean.getAdditionalAutoMigrationAttempts()

getMillisToSleepBetweenAutoMigrationAttempts

long getMillisToSleepBetweenAutoMigrationAttempts()

Controls how long of a pause there should be between the migration attempts described in getAdditionalAutoMigrationAttempts(). Note that this delay only happens when the server has failed to come up on every machine.

See Also:
ClusterMBean.getAdditionalAutoMigrationAttempts()

setMillisToSleepBetweenAutoMigrationAttempts

void setMillisToSleepBetweenAutoMigrationAttempts(long millis)

Sets the getMillisToSleepBetweenAutoMigrationAttempts value.

Parameters:
millis - number of milliseconds to wait
See Also:
ClusterMBean.getMillisToSleepBetweenAutoMigrationAttempts()

setReplicationTimeoutEnabled

void setReplicationTimeoutEnabled(boolean replicationTimeout)

Enable or disable replication timeout.


getMigrationBasis

String getMigrationBasis()

Controls the mechanism used for server and service migration.

Note: Within a WebLogic Server installation, you can only use one type of leasing. Although it is possible to implement multiple features that use leasing within your environment, each must use the same kind of leasing.


setMigrationBasis

void setMigrationBasis(String type)
Parameters:
type - of basis used for migration

isReplicationTimeoutEnabled

boolean isReplicationTimeoutEnabled()

Indicates if timeout should be applied to session replication calls.


getOverloadProtection

OverloadProtectionMBean getOverloadProtection()

Get attributes related to server overload protection. The default values for all cluster members are set here. Individual servers can override them as needed.


getDatabaseLessLeasingBasis

DatabaseLessLeasingBasisMBean getDatabaseLessLeasingBasis()

Get attributes associated with database less leasing basis used for server migration and singleton services.


isSecureReplicationEnabled

boolean isSecureReplicationEnabled()

Servers in a cluster replicate session data. If a replication channel is defined then the session data will be sent using the replication channel protocol and secured replication settings will be ignored. If no replication channel is defined and secured replication is enabled then session data for in-memory replication will be sent over SSL using the default secured channel. However, this added security for replication traffic comes with a significant cluster performance degradation. It should only be enabled if security is of greater concern than performance degradation.

Returns:
true if secure replication is enabled, false otherwise
Since:
7.0.8.0

setSecureReplicationEnabled

void setSecureReplicationEnabled(boolean value)
Since:
7.0.8.0

setMessageOrderingEnabled

void setMessageOrderingEnabled(boolean value)
Since:
10.3.3.0

setOneWayRmiForReplicationEnabled

void setOneWayRmiForReplicationEnabled(boolean enable)

Enables one-way RMI for replication.

Since:
10.3.4.0

isOneWayRmiForReplicationEnabled

boolean isOneWayRmiForReplicationEnabled()

Indicates if one-way RMI is being used for replication. One-way RMI also requires configuring replication ports on each server in the cluster.

Since:
10.3.4.0
See Also:
ServerTemplateMBean.getReplicationPorts()

isSessionLazyDeserializationEnabled

boolean isSessionLazyDeserializationEnabled()

Enables increased efficiency with session replication. Enabling this attribute should be used only when configuring a WebLogic domain for Oracle Exalogic.

Since:
10.3.4.0

isMemberDeathDetectorEnabled

boolean isMemberDeathDetectorEnabled()
Enables faster Automatic Service Migration times with Database Leasing Basis.
Since:

getCoherenceClusterSystemResource

CoherenceClusterSystemResourceMBean getCoherenceClusterSystemResource()
Coherence Cluster associated with this cluster.
Returns:
CoherenceClusterSystemResourceMBean

setCoherenceClusterSystemResource

void setCoherenceClusterSystemResource(CoherenceClusterSystemResourceMBean coherenceClusterSystemResource)
Associates the WLS cluster to a Coherence Cluster
Parameters:
coherenceClusterSystemResource -

getCoherenceTier

CoherenceTierMBean getCoherenceTier()
Coherence Tier associated with this WLS cluster.
Returns:
CoherenceTierMBean

getJTACluster

JTAClusterMBean getJTACluster()
JTA associated with this WLS cluster.
Returns:
JTAClusterMBean

getDynamicServers

DynamicServersMBean getDynamicServers()
DynamicServers associated with this WLS cluster.
Returns:
DynamicServersMBean

getTxnAffinityEnabled

boolean getTxnAffinityEnabled()
If enabled, a server's transaction requests go to servers in the cluster that are already participating in the global transaction.
Returns:
true if transaction affinity is required, false otherwise
Since:
12.1.3.0

setTxnAffinityEnabled

void setTxnAffinityEnabled(boolean txAffinity)
Since:
12.1.3.0

getDatabaseLeasingBasisConnectionRetryCount

int getDatabaseLeasingBasisConnectionRetryCount()
The maximum number of times Database Leasing will try to obtain a valid connection from the Data Source.
Returns:
The number of times the Data Source will try the connection

setDatabaseLeasingBasisConnectionRetryCount

void setDatabaseLeasingBasisConnectionRetryCount(int count)
Parameters:
count -

getDatabaseLeasingBasisConnectionRetryDelay

long getDatabaseLeasingBasisConnectionRetryDelay()
The length of time, in milliseconds,Database Leasing will wait before attempting to obtain a new connection from the Data Source when a connection has failed.
Returns:
Delay time in milliseconds.

setDatabaseLeasingBasisConnectionRetryDelay

void setDatabaseLeasingBasisConnectionRetryDelay(long millis)

setSessionStateQueryProtocolEnabled

void setSessionStateQueryProtocolEnabled(boolean enable)
Enables session state query protocol. The Session State Query protocol will query the local cluster for the location of a session state instance if a request arrives at a server that is neither the primary or secondary server.
Since:
12.2.1.0

isSessionStateQueryProtocolEnabled

boolean isSessionStateQueryProtocolEnabled()
Indicates if session state query protocol is enabled. The Session State Query protocol will query the local cluster for the location of a session state instance if a request arrives at a server that is neither the primary or secondary server.
Since:
12.2.1.0

getSessionStateQueryRequestTimeout

int getSessionStateQueryRequestTimeout()
The maximum time, in seconds, for session state query request to wait for response from cluster members.

setSessionStateQueryRequestTimeout

void setSessionStateQueryRequestTimeout(int timeout)
The maxmimum number of seconds a Session State Query Request will wait for a response from the cluster.
See Also:
ClusterMBean.getSessionStateQueryRequestTimeout()

getServiceActivationRequestResponseTimeout

int getServiceActivationRequestResponseTimeout()
The maximum time, in milliseconds seconds, for services to wait for response from cluster members.

setServiceActivationRequestResponseTimeout

void setServiceActivationRequestResponseTimeout(int timeout)
The maximum time, in milliseconds seconds, for services to wait for response from cluster members.
See Also:
ClusterMBean.getServiceActivationRequestResponseTimeout()

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09