Methods Summary |
---|
public long | bench(int iterations)
InitialContext ctx = new InitialContext();
StatefulLocal local = (StatefulLocal) ctx.lookup("StatefulBean/local");
long start = System.currentTimeMillis();
for (int i = 0; i < iterations; i++)
{
local.getState();
}
long end = System.currentTimeMillis() - start;
System.out.println(iterations + " stateful iterations took: " + end);
return end;
|
public void | done()
|
public boolean | getPostActivate()
return postActivateCalled;
|
public boolean | getPrePassivate()
return prePassivateCalled;
|
public java.lang.String | getState()
return this.state;
|
public void | longRunning()
Thread.sleep(11000);
|
public void | postActivate()
postActivateCalled = true;
|
public void | prePassivate()
prePassivateCalled = true;
|
public void | reset()
state = null;
postActivateCalled = false;
prePassivateCalled = false;
|
public void | setState(java.lang.String state)
this.state = state;
|