com.ibm.websphere.samples.beenthere
Class BeenThereServletBean

java.lang.Object
  extended by com.ibm.websphere.samples.beenthere.BeenThereServletBean
All Implemented Interfaces:
java.io.Serializable

public class BeenThereServletBean
extends java.lang.Object
implements java.io.Serializable

This class represents the execution environment information for the servlet and all execution instances of the BeenThere EJB.

BeenThereServlet passes this information to the BeenThere JSP to then display all the values obtained and calculated.

See Also:
BeenThereServlet, Serialized Form

Constructor Summary
BeenThereServletBean()
          Creates a new BeenThereServletBean instance.
 
Method Summary
 void addEJBEntry(BeenThereEJBEntry entry)
          Adds a BeenThereEJBEntry object to the servlet bean.
 void addEJBMemberEntry(BeenThereEJBMemberEntry entry)
          Adds a BeenThereEJBMemberEntry object to the servlet bean.
 void addMessage(java.lang.String msg)
          Adds a message issued during the execution of the servlet.
 java.lang.String getClusterName()
          Gets the name of the cluster executing the BeenThere EJB.
 long getEJBAverageExecutionTime()
          Gets the average execution time of the BeenThere EJB.
 java.util.ArrayList getEJBEntries()
          Gets the BeenThereEJBEntry objects.
 java.util.ArrayList getEJBMemberEntries()
          Gets the BeenThereEJBMemberEntry objects.
 long getEJBTotalExecutionTime()
          Gets the total execution time of the BeenThere EJB.
 java.util.ArrayList getMessages()
          Gets the messages issued during the execution of the servlet.
 java.lang.String getServletServerName()
          Gets the name of the servlet server that executed the BeenThere servlet.
 java.lang.String getServletServerNodeName()
          Gets the node name of the servlet server that executed the BeenThere servlet.
 java.lang.String getServletServerProcessId()
          Gets the JVM process ID of the servlet server that executed the BeenThere servlet.
 boolean getStatisticsFlag()
          Gets the statistics flag.
 boolean isWebSphereND()
          Determines if the environment is distributed.
 void setClusterName(java.lang.String name)
          Sets the name of the cluster executing the BeenThere EJB.
 void setEJBAverageExecutionTime(long time)
          Sets the average execution time of the BeenThere EJB.
 void setEJBTotalExecutionTime(long time)
          Sets the total execution time of the BeenThere EJB.
 void setServletServerName(java.lang.String serverName)
          Sets the name of the servlet server that executed the BeenThere servlet.
 void setServletServerNodeName(java.lang.String nodeName)
          Sets the node name of servlet server that executed the BeenThere servlet.
 void setServletServerProcessId(java.lang.String processId)
          Sets the JVM process ID of the servlet server that executed the BeenThere servlet.
 void setStatisticsFlag(boolean statistics)
          Sets the flag indicating whether statistics should be displayed.
 void setWebSphereND(boolean nd)
          Sets the WebSphereND flag indicating whether the environment is distributed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeenThereServletBean

public BeenThereServletBean()
Creates a new BeenThereServletBean instance.

Method Detail

setStatisticsFlag

public void setStatisticsFlag(boolean statistics)
Sets the flag indicating whether statistics should be displayed.

Parameters:
statistics - a flag indicating whether statistics should be displayed

getStatisticsFlag

public boolean getStatisticsFlag()
Gets the statistics flag.

Returns:
true if statistics should be displayed, false otherwise.

setWebSphereND

public void setWebSphereND(boolean nd)
Sets the WebSphereND flag indicating whether the environment is distributed.

Parameters:
nd - true if the environment is distributed, false otherwise.

isWebSphereND

public boolean isWebSphereND()
Determines if the environment is distributed.

Returns:
true if the environment is distributed, false otherwise.

setServletServerNodeName

public void setServletServerNodeName(java.lang.String nodeName)
Sets the node name of servlet server that executed the BeenThere servlet.

Parameters:
nodeName - the servlet server node name

getServletServerNodeName

public java.lang.String getServletServerNodeName()
Gets the node name of the servlet server that executed the BeenThere servlet.

Returns:
the servlet server node name

setServletServerName

public void setServletServerName(java.lang.String serverName)
Sets the name of the servlet server that executed the BeenThere servlet.

Parameters:
serverName - the servlet server name

getServletServerName

public java.lang.String getServletServerName()
Gets the name of the servlet server that executed the BeenThere servlet.

Returns:
the servlet server name

setServletServerProcessId

public void setServletServerProcessId(java.lang.String processId)
Sets the JVM process ID of the servlet server that executed the BeenThere servlet.

Parameters:
processId - the servlet server JVM process ID

getServletServerProcessId

public java.lang.String getServletServerProcessId()
Gets the JVM process ID of the servlet server that executed the BeenThere servlet.

Returns:
the servlet server JVM process ID

addEJBEntry

public void addEJBEntry(BeenThereEJBEntry entry)
Adds a BeenThereEJBEntry object to the servlet bean.

Parameters:
entry - a BeenThereEJBEntry object

getEJBEntries

public java.util.ArrayList getEJBEntries()
Gets the BeenThereEJBEntry objects.

Returns:
a list of BeenThereEJBEntry objects

setEJBTotalExecutionTime

public void setEJBTotalExecutionTime(long time)
Sets the total execution time of the BeenThere EJB.

Parameters:
time - the total EJB execution time, measured in milliseconds

getEJBTotalExecutionTime

public long getEJBTotalExecutionTime()
Gets the total execution time of the BeenThere EJB.

Returns:
a long value representing the total EJB execution time, measured in milliseconds

setEJBAverageExecutionTime

public void setEJBAverageExecutionTime(long time)
Sets the average execution time of the BeenThere EJB.

Parameters:
time - the average EJB execution time, measured in milliseconds

getEJBAverageExecutionTime

public long getEJBAverageExecutionTime()
Gets the average execution time of the BeenThere EJB.

Returns:
a long value representing the average EJB execution time, measured in milliseconds

setClusterName

public void setClusterName(java.lang.String name)
Sets the name of the cluster executing the BeenThere EJB.

Parameters:
name - the name of an EJB cluster

getClusterName

public java.lang.String getClusterName()
Gets the name of the cluster executing the BeenThere EJB.

Returns:
the name of an EJB cluster

addEJBMemberEntry

public void addEJBMemberEntry(BeenThereEJBMemberEntry entry)
Adds a BeenThereEJBMemberEntry object to the servlet bean.

Parameters:
entry - a BeenThereEJBMemberEntry object

getEJBMemberEntries

public java.util.ArrayList getEJBMemberEntries()
Gets the BeenThereEJBMemberEntry objects.

Returns:
a list of BeenThereEJBMemberEntry objects

addMessage

public void addMessage(java.lang.String msg)
Adds a message issued during the execution of the servlet.

Parameters:
msg - a servlet execution message

getMessages

public java.util.ArrayList getMessages()
Gets the messages issued during the execution of the servlet.

Returns:
a list of servlet execution messages