org.openware.loadsim.simulation
Interface ISimulation

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
Simulation

public interface ISimulation
extends java.rmi.Remote

Interface to support running a Simulation remotely. The methods specified here will be the ones that can be accessed remotely.

Author:
Vincent Sheffer.

Method Summary
 java.lang.String fetchResults()
           
 java.lang.String getHostname()
          Get the hostname of the machine that this simulation is runing on.
 int getNumRunning()
           
 java.lang.String getResultsFileName()
           
 int getTotalVirtualUsers()
           
 boolean isRunning()
           
 void startSimulation()
          Start the simulation.
 void stopSimulation()
          Stop the simulation.
 

Method Detail

startSimulation

public void startSimulation()
Start the simulation. This will iterate through each virtual user and start them running. Once all of the VirtualUsers are running in their own threads this method exits.

If you want to stop the simulation call the stopSimulation method.


stopSimulation

public void stopSimulation()
Stop the simulation. This will iterate through each VirtualUser and set their alive attribute to false. The next iteration will cause the simulation to stop because all of the virutal users are dead.

getHostname

public java.lang.String getHostname()
Get the hostname of the machine that this simulation is runing on.

getNumRunning

public int getNumRunning()

getTotalVirtualUsers

public int getTotalVirtualUsers()

isRunning

public boolean isRunning()

getResultsFileName

public java.lang.String getResultsFileName()

fetchResults

public java.lang.String fetchResults()
                              throws java.io.IOException


Copyright © 2000, 2001 Openware, Spin Software. All Rights Reserved.