|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.beenthere.BeenThereServletBean
public class BeenThereServletBean
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.
BeenThereServlet
,
Serialized FormConstructor 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 |
---|
public BeenThereServletBean()
BeenThereServletBean
instance.
Method Detail |
---|
public void setStatisticsFlag(boolean statistics)
statistics
- a flag indicating whether statistics should be displayedpublic boolean getStatisticsFlag()
true
if statistics should be displayed,
false
otherwise.public void setWebSphereND(boolean nd)
nd
- true
if the environment is distributed,
false
otherwise.public boolean isWebSphereND()
true
if the environment is distributed,
false
otherwise.public void setServletServerNodeName(java.lang.String nodeName)
nodeName
- the servlet server node namepublic java.lang.String getServletServerNodeName()
public void setServletServerName(java.lang.String serverName)
serverName
- the servlet server namepublic java.lang.String getServletServerName()
public void setServletServerProcessId(java.lang.String processId)
processId
- the servlet server JVM process IDpublic java.lang.String getServletServerProcessId()
public void addEJBEntry(BeenThereEJBEntry entry)
BeenThereEJBEntry
object to the servlet bean.
entry
- a BeenThereEJBEntry
objectpublic java.util.ArrayList getEJBEntries()
BeenThereEJBEntry
objects.
public void setEJBTotalExecutionTime(long time)
time
- the total EJB execution time, measured in millisecondspublic long getEJBTotalExecutionTime()
long
value representing the total EJB execution time, measured in millisecondspublic void setEJBAverageExecutionTime(long time)
time
- the average EJB execution time, measured in millisecondspublic long getEJBAverageExecutionTime()
long
value representing the average EJB execution time, measured in millisecondspublic void setClusterName(java.lang.String name)
name
- the name of an EJB clusterpublic java.lang.String getClusterName()
public void addEJBMemberEntry(BeenThereEJBMemberEntry entry)
BeenThereEJBMemberEntry
object to the servlet bean.
entry
- a BeenThereEJBMemberEntry
objectpublic java.util.ArrayList getEJBMemberEntries()
BeenThereEJBMemberEntry
objects.
BeenThereEJBMemberEntry
objectspublic void addMessage(java.lang.String msg)
msg
- a servlet execution messagepublic java.util.ArrayList getMessages()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |