|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl
org.smartfrog.sfcore.prim.PrimImpl
org.smartfrog.examples.dynamicwebserver.stresstest.StressTesterImpl
public class StressTesterImpl
Description of the Class
| Field Summary |
|---|
| Fields inherited from class org.smartfrog.sfcore.prim.PrimImpl |
|---|
refLivenessDelay, refLivenessFactor, sfCompleteName, sfContext, sfDeployHooks, sfDeployWithHooks, sfExportRef, sfIsDeployed, sfIsStarted, sfIsTerminated, sfIsTerminating, sfLivenessCount, sfLivenessDelay, sfLivenessFactor, sfLivenessSender, sfParent, sfStartHooks, sfTerminateWithHooks, termLock |
| Fields inherited from interface org.smartfrog.examples.dynamicwebserver.stresstest.StressTester |
|---|
CONTROLGUI, FACTOR, FREQUENCY, HOST, HOSTS, LOGTO, NUMHITS, PAGE, PORT |
| Constructor Summary | |
|---|---|
StressTesterImpl()
Constructor for the StressTesterImpl object |
|
| Method Summary | |
|---|---|
java.net.Socket |
connect(java.lang.String host,
int port)
Establishes the connection, then passes the socket to handleConnection. |
int |
getData()
Gets the data attribute of the StressTesterImpl object |
java.lang.String |
getHost()
The hostname of the server we're contacting. |
protected java.util.Vector |
getHosts()
get the hosts that should be tested |
int |
getPort()
The port connection will be made on. |
static java.io.BufferedReader |
getReader(java.net.Socket s)
Make a BufferedReader to get incoming data. |
static java.io.PrintWriter |
getWriter(java.net.Socket s)
Make a PrintWriter to send outgoing data. |
void |
run()
Main processing method for the StressTesterImpl object |
void |
setFrequency(int newFrequency)
Sets the frequency attribute of the StressTesterImpl object |
void |
setHits(int s)
Sets the hits attribute of the StressTesterImpl object |
void |
setPage(java.lang.String newPage)
Sets the page attribute of the StressTesterImpl object |
void |
sfDeploy()
Standard sfDeploy() |
void |
sfStart()
Standard sfStart() |
void |
sfTerminateWith(TerminationRecord tr)
Standard sfTerminateWith() |
void |
stop()
Description of the Method |
java.lang.String |
toString()
Description of the Method |
| Methods inherited from class org.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl |
|---|
sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolveWithParser |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.smartfrog.sfcore.prim.Prim |
|---|
sfAddAttribute, sfAttributeKeyFor, sfAttributes, sfCompleteName, sfContainsAttribute, sfContainsValue, sfContext, sfDeployedHost, sfDeployedProcessName, sfDeployWith, sfDetach, sfDetachAndTerminate, sfDumpState, sfIsDeployed, sfIsStarted, sfIsTerminated, sfIsTerminating, sfParent, sfParentageChanged, sfRemoveAttribute, sfReplaceAttribute, sfTerminate, sfTerminatedWith, sfTerminateQuietlyWith, sfValues |
| Methods inherited from interface org.smartfrog.sfcore.prim.Liveness |
|---|
sfPing |
| Methods inherited from interface org.smartfrog.sfcore.reference.RemoteReferenceResolver |
|---|
sfResolve, sfResolve, sfResolveHere, sfResolveHere, sfResolveParent |
| Methods inherited from interface org.smartfrog.sfcore.reference.RemoteReferenceResolverHelper |
|---|
sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolveWithParser |
| Methods inherited from interface org.smartfrog.sfcore.prim.Diagnostics |
|---|
sfDiagnosticsReport |
| Constructor Detail |
|---|
public StressTesterImpl()
throws java.rmi.RemoteException
java.rmi.RemoteException - Description of the Exception| Method Detail |
|---|
public java.lang.String toString()
toString in class PrimImplpublic void stop()
stop in interface StressTesterpublic void setHits(int s)
s - The new hits value
public void sfDeploy()
throws SmartFrogException,
java.rmi.RemoteException
sfDeploy in interface PrimsfDeploy in class PrimImplSmartFrogException - Description of the Exception
java.rmi.RemoteException - DOCUMENT ME!
public void sfStart()
throws SmartFrogException,
java.rmi.RemoteException
sfStart in interface PrimsfStart in class PrimImplSmartFrogException - Description of the Exception
java.rmi.RemoteException - DOCUMENT ME!public void sfTerminateWith(TerminationRecord tr)
sfTerminateWith in class PrimImpltr - Description of the Parameterprotected java.util.Vector getHosts()
public void run()
run in interface java.lang.Runnable
public java.net.Socket connect(java.lang.String host,
int port)
host - Description of the Parameterport - Description of the Parameter
public java.lang.String getHost()
public int getPort()
public static java.io.BufferedReader getReader(java.net.Socket s)
throws java.io.IOException
s - Description of the Parameter
java.io.IOException - Description of the Exception
public static java.io.PrintWriter getWriter(java.net.Socket s)
throws java.io.IOException
s - Description of the Parameter
java.io.IOException - Description of the Exception
public void setPage(java.lang.String newPage)
throws java.rmi.RemoteException
setPage in interface StressTesternewPage - The new page value
java.rmi.RemoteException - Description of the Exception
public void setFrequency(int newFrequency)
throws java.rmi.RemoteException
setFrequency in interface StressTesternewFrequency - The new frequency value
java.rmi.RemoteException - Description of the Exceptionpublic int getData()
getData in interface DataSource
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||