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

Part Number E41849-02

weblogic.j2ee.descriptor.wl
Interface DefaultSAFAgentBean

All Superinterfaces:
SettableBean

public interface DefaultSAFAgentBean
extends SettableBean

This class represents a Store-and-Forward (SAF) agent. A SAF sending agent takes care of storing messages to a persistent storage, forwarding messages to the receiving side, and re-transmitting messages when acknowledgements do not come back in time. A SAF receiving agent takes care of detecting and eliminating duplicate messages sent by the receiving agent, and deliver messages to the final endpoint.

Deprecation of MBeanHome and Type-Safe Interfaces

This is a type-safe interface for a WebLogic Server MBean, which you can import into your client classes and access through weblogic.management.MBeanHome. As of 9.0, the MBeanHome interface and all type-safe interfaces for WebLogic Server MBeans are deprecated. Instead, client classes that interact with WebLogic Server MBeans should use standard JMX design patterns in which clients use the javax.management.MBeanServerConnection interface to discover MBeans, attributes, and attribute types at runtime.

Access limited to the following security roles:
Deployer

Method Summary
 long getBytesMaximum()
          The maximum bytes quota (total amount of bytes) that can be stored in this SAF agent.
 long getDefaultRetryDelayBase()
          The amount of time, in milliseconds, between the original delivery attempt and the first retry.
 long getDefaultRetryDelayMaximum()
          The maximum amount of time, in milliseconds, between two successive delivery retry attempts.
 double getDefaultRetryDelayMultiplier()
          The factor used to multiply the previous delay time to calculate the next delay time to be used.
 long getDefaultTimeToLive()
          The default amount of time, in milliseconds, that the agent guarantees to reliably send messages.
 int getMaximumMessageSize()
          The maximum number of bytes allowed in individual messages on this SAF agent.
 long getMessageBufferSize()
          The amount of memory used to store message bodies in memory before they are paged out to disk.
 long getMessagesMaximum()
          The maximum message quota (total amount of messages) that can be stored in this SAF agent.
 String getNotes()
          Optional information that you can include to describe this named JMS descriptor bean.
 String getPagingDirectory()
           Specifies where message bodies are written when the size of the message bodies in the JMS server exceeds the message buffer size.
 long getWindowInterval()
          The default amount of time, in milliseconds, that a JMS sending agent waits before forwarding messages in a single batch.
 int getWindowSize()
          The default number of messages (batch size) that a sending agent waits to forward a message batch until the source destination message count is greater than or equal to this value.
 boolean isLoggingEnabled()
          Deprecated. since WebLogic 9.0.1 release
 void setBytesMaximum(long bytesMaximum)
          Sets the value of the BytesMaximum attribute.
 void setDefaultRetryDelayBase(long base)
          Sets the value of the DefaultRetryDelayBase attribute.
 void setDefaultRetryDelayMaximum(long maximum)
          Sets the value of the DefaultRetryDelayMaximum attribute.
 void setDefaultRetryDelayMultiplier(double multiplier)
          Sets the value of the DefaultRetryDelayMultiplier attribute.
 void setDefaultTimeToLive(long ttl)
          Sets the value of the DefaultTimeToLive attribute.
 void setLoggingEnabled(boolean loggingEnabled)
          Sets the value of the LoggingEnabled attribute.
 void setMaximumMessageSize(int maxMessageSize)
          Sets the value of the MaximumMessageSize attribute.
 void setMessageBufferSize(long bufferSize)
          Sets the value of the MessageBufferSize attribute.
 void setMessagesMaximum(long messagesMaximum)
          Sets the value of the MessagesMaximum attribute.
 void setNotes(String notes)
          Sets the notes attribute of the named JMS descriptor bean
 void setPagingDirectory(String directory)
          Sets the value of the PagingDirectory attribute.
 void setWindowInterval(long windowInterval)
          Sets the value of the WindowInterval attribute.
 void setWindowSize(int size)
          Sets the value of the WindowSize attribute.
 
Methods inherited from interface weblogic.descriptor.SettableBean
isSet, unSet
 

Method Detail

getNotes

String getNotes()

Optional information that you can include to describe this named JMS descriptor bean.

JMS module saves this note in the JMS descriptor file as XML PCDATA. All left angle brackets (<) are converted to the XML entity &lt;. Carriage returns/line feeds are preserved.

Note:

If you create or edit a note from the Administration Console, the Administration Console does not preserve carriage returns/line feeds.

Returns:
The notes value
Changes take effect after you redeploy the module or restart the server.

setNotes

void setNotes(String notes)

Sets the notes attribute of the named JMS descriptor bean

Parameters:
notes - The new notes value

getBytesMaximum

long getBytesMaximum()

The maximum bytes quota (total amount of bytes) that can be stored in this SAF agent.

Range of Values: >= BytesThresholdHigh

Returns:
The bytesMaximum value

setBytesMaximum

void setBytesMaximum(long bytesMaximum)

Sets the value of the BytesMaximum attribute.

Parameters:
bytesMaximum - The new bytesMaximum value
See Also:
DefaultSAFAgentBean.getBytesMaximum()
Default Value:
-1
Minimum Value:
-1

getMessagesMaximum

long getMessagesMaximum()

The maximum message quota (total amount of messages) that can be stored in this SAF agent.

Range of Values: >= MessagesThresholdHigh

Returns:
The messagesMaximum value

setMessagesMaximum

void setMessagesMaximum(long messagesMaximum)

Sets the value of the MessagesMaximum attribute.

Parameters:
messagesMaximum - The new messagesMaximum value
See Also:
DefaultSAFAgentBean.getMessagesMaximum()
Default Value:
-1
Minimum Value:
-1

getMaximumMessageSize

int getMaximumMessageSize()

The maximum number of bytes allowed in individual messages on this SAF agent.

Returns:
The maximumMessageSize value
Default Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
0

setMaximumMessageSize

void setMaximumMessageSize(int maxMessageSize)

Sets the value of the MaximumMessageSize attribute.

Parameters:
maxMessageSize - The new maximumMessageSize value
See Also:
DefaultSAFAgentBean.getMaximumMessageSize()
Default Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
0

getDefaultRetryDelayBase

long getDefaultRetryDelayBase()

The amount of time, in milliseconds, between the original delivery attempt and the first retry.

Range of Values: <= RetryDelayMaximum if RetryDelayMultiplier is not 1.0.

Returns:
The defaultRetryDelayBase value

setDefaultRetryDelayBase

void setDefaultRetryDelayBase(long base)

Sets the value of the DefaultRetryDelayBase attribute.

Parameters:
base - The new defaultRetryDelayBase value
See Also:
DefaultSAFAgentBean.getDefaultRetryDelayBase()
Default Value:
20000
Minimum Value:
1

getDefaultRetryDelayMaximum

long getDefaultRetryDelayMaximum()

The maximum amount of time, in milliseconds, between two successive delivery retry attempts.

Range of Values: > = RetryDelayBase if RetryDelayMultiplier is not 1.0.

Returns:
The defaultRetryDelayMaximum value

setDefaultRetryDelayMaximum

void setDefaultRetryDelayMaximum(long maximum)

Sets the value of the DefaultRetryDelayMaximum attribute.

Parameters:
maximum - The new defaultRetryDelayMaximum value
See Also:
DefaultSAFAgentBean.getDefaultRetryDelayMaximum()
Default Value:
180000
Minimum Value:
1

getDefaultRetryDelayMultiplier

double getDefaultRetryDelayMultiplier()

The factor used to multiply the previous delay time to calculate the next delay time to be used.

Range of Values: >= 1.

Returns:
The defaultRetryDelayMultiplier value

setDefaultRetryDelayMultiplier

void setDefaultRetryDelayMultiplier(double multiplier)

Sets the value of the DefaultRetryDelayMultiplier attribute.

Parameters:
multiplier - The new defaultRetryDelayMultiplier value
See Also:
DefaultSAFAgentBean.getDefaultRetryDelayMultiplier()
Default Value:
1.0
Minimum Value:
1.0

getWindowSize

int getWindowSize()

The default number of messages (batch size) that a sending agent waits to forward a message batch until the source destination message count is greater than or equal to this value. For a distributed queue or topic, WindowSize setting is ignored and always internally set to 1 message.

Updating WindowSize causes connections starting after the update to use the new value.

Returns:
The windowSize value

setWindowSize

void setWindowSize(int size)

Sets the value of the WindowSize attribute.

Parameters:
size - The new windowSize value
See Also:
DefaultSAFAgentBean.getWindowSize()
Default Value:
10
Minimum Value:
1

isLoggingEnabled

boolean isLoggingEnabled()
Deprecated. since WebLogic 9.0.1 release

Specifies whether a message is logged in the server log file when a message fails to be forwarded.

Returns:
The loggingEnabled value

setLoggingEnabled

void setLoggingEnabled(boolean loggingEnabled)

Sets the value of the LoggingEnabled attribute.

Parameters:
loggingEnabled - The new loggingEnabled value
See Also:
DefaultSAFAgentBean.isLoggingEnabled()
Default Value:
true

getDefaultTimeToLive

long getDefaultTimeToLive()

The default amount of time, in milliseconds, that the agent guarantees to reliably send messages.

Returns:
The defaultTimeTolive value
Default Value:
0
Minimum Value:
0

setDefaultTimeToLive

void setDefaultTimeToLive(long ttl)

Sets the value of the DefaultTimeToLive attribute.

Parameters:
ttl - The new defaultTimeToLive value
See Also:
DefaultSAFAgentBean.getDefaultTimeToLive()
Default Value:
0
Minimum Value:
0

getMessageBufferSize

long getMessageBufferSize()

The amount of memory used to store message bodies in memory before they are paged out to disk.

See Also:
DefaultSAFAgentBean.getPagingDirectory()

setMessageBufferSize

void setMessageBufferSize(long bufferSize)

Sets the value of the MessageBufferSize attribute.

See Also:
DefaultSAFAgentBean.getMessageBufferSize()
Default Value:
-1
Minimum Value:
-1

getPagingDirectory

String getPagingDirectory()

Specifies where message bodies are written when the size of the message bodies in the JMS server exceeds the message buffer size. If unspecified, messages are written to the tmp directory in the host WebLogic Server instance's directory. For example, domainName/servers/servername/tmp.

See Also:
DefaultSAFAgentBean.getMessageBufferSize()
Default Value:
null

setPagingDirectory

void setPagingDirectory(String directory)

Sets the value of the PagingDirectory attribute.

See Also:
DefaultSAFAgentBean.getPagingDirectory()
Default Value:
null

getWindowInterval

long getWindowInterval()

The default amount of time, in milliseconds, that a JMS sending agent waits before forwarding messages in a single batch. For a distributed queue or topic, the WindowInterval setting is ignored.

Returns:
The windowInterval value
Default Value:
0
Minimum Value:
0

setWindowInterval

void setWindowInterval(long windowInterval)

Sets the value of the WindowInterval attribute.

Parameters:
windowInterval - The new windowInterval value
See Also:
DefaultSAFAgentBean.getWindowInterval()
Default Value:
0
Minimum Value:
0

Copyright 1996, 2014, 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.1.3)

Part Number E41849-02