User: starksm
Date: 02/02/16 13:14:56
Added: src/main/org/jboss/test/perf/interfaces PerfTestSession.java
PerfTestSessionHome.java ProbeLocal.java
ProbeLocalHome.java
Log:
Add standard unit test of in-VM remote vs local interface overhead
Revision Changes Path
1.1
jbosstest/src/main/org/jboss/test/perf/interfaces/PerfTestSession.java
Index: PerfTestSession.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.perf.interfaces;
/** A session bean that tests intra-VM EJB call invocation overhead.
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
*/
public interface PerfTestSession extends javax.ejb.EJBObject
{
/** Run the unit tests using Probe and return a report as a string
*/
public String runProbeTests(int iterationCount);
/** Run the unit tests using ProbeLocal and return a report as a string
*/
public String runProbeLocalTests(int iterationCount);
}
1.1
jbosstest/src/main/org/jboss/test/perf/interfaces/PerfTestSessionHome.java
Index: PerfTestSessionHome.java
===================================================================
package org.jboss.test.perf.interfaces;
public interface PerfTestSessionHome extends javax.ejb.EJBHome
{
PerfTestSession create() throws java.rmi.RemoteException,
javax.ejb.CreateException;
}
1.1
jbosstest/src/main/org/jboss/test/perf/interfaces/ProbeLocal.java
Index: ProbeLocal.java
===================================================================
package org.jboss.test.perf.interfaces;
import javax.ejb.EJBException;
import javax.ejb.EJBLocalObject;
/** A trivial stateless session bean for testing round trip call
throughput.
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
*/
public interface ProbeLocal extends EJBLocalObject
{
/** Basic test that has no arguments or return values to test the
bare call invocation overhead without any data serialize.
*/
public void noop() throws EJBException;
/** Basic test that has argument serialization.
*/
public void ping(String arg) throws EJBException;
/** Basic test that has both argument serialization and return
value serialization.
*/
public String echo(String arg) throws EJBException;
}
1.1
jbosstest/src/main/org/jboss/test/perf/interfaces/ProbeLocalHome.java
Index: ProbeLocalHome.java
===================================================================
package org.jboss.test.perf.interfaces;
import javax.ejb.EJBException;
import javax.ejb.EJBLocalHome;
import javax.ejb.CreateException;
/** A trivial stateless session bean for testing round trip call
throughput.
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
*/
public interface ProbeLocalHome extends EJBLocalHome
{
ProbeLocal create() throws CreateException, EJBException;
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development