All Examples  All Cluster Examples

Class examples.cluster.utils.ClusterUtils

java.lang.Object
   |
   +----examples.cluster.utils.ClusterUtils

public class ClusterUtils
extends Object
Utility class to keep track of clustered actions. Uniquely associating the action with a cluster member.

It expects messages in the format [message : weblogic.system.name]. Example: addClusterMessage("Hello : cluster1");

It keeps track of the unique system names and tabulates the results.


Constructor Index

 o ClusterUtils()
Constructor
 o ClusterUtils(int)
Constructor Deprecated.

Method Index

 o addClusterMessage(String)
Default expectation for format [message : weblogic.system.name].
 o getExceptionCount()
 o getIterations()
 o incrementExceptionCount()
 o processStatistics()
Prepares report of results from statistics.
 o setToken(String)
Allow someone to overide the default token used ":".

Constructors

 o ClusterUtils
 public ClusterUtils()
Constructor

 o ClusterUtils
 public ClusterUtils(int iterations)
Note: ClusterUtils(int iterations) is deprecated. Use ClusterUtils() instead as size is now dynamically allocated.

Constructor

Parameters:
iterations - int Number of iterations

Methods

 o addClusterMessage
 public void addClusterMessage(String message)
Default expectation for format [message : weblogic.system.name]. Example: addClusterMessage("Hello : cluster1");

Parameters:
message - String Message
 o setToken
 public void setToken(String token)
Allow someone to overide the default token used ":".

Parameters:
token - String New token for dividing message
 o getIterations
 public int getIterations()
 o getExceptionCount
 public int getExceptionCount()
 o incrementExceptionCount
 public void incrementExceptionCount()
 o processStatistics
 public String processStatistics()
Prepares report of results from statistics.


All Examples  All Cluster Examples