|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.xmlBlaster.test.qos.TestCorbaThreads
public class TestCorbaThreads
This client tests the number of threads opened and cleaned up by JacORB corba library.
Invoke examples:
java junit.textui.TestRunner -noloading org.xmlBlaster.test.qos.TestCorbaThreads java junit.swingui.TestRunner -noloading org.xmlBlaster.test.qos.TestCorbaThreads
Field Summary | |
---|---|
private java.lang.String[] |
args
|
private I_CallbackServer |
cbServer
|
private CorbaConnection |
corbaConnection
|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
loginName
|
private EmbeddedXmlBlaster |
serverThread
|
Constructor Summary | |
---|---|
TestCorbaThreads(Global glob,
java.lang.String testName)
Constructs the TestCorbaThreads object. |
Method Summary | |
---|---|
private void |
login()
Login. |
private void |
logout()
cleaning up .... |
void |
lostConnection(XmlBlasterException xmlBlasterException)
For example called by socket layer on EOF |
static void |
main(java.lang.String[] args)
Deprecated. Use the TestRunner from the testsuite to run it: java -Djava.compiler= junit.textui.TestRunner org.xmlBlaster.test.qos.TestCorbaThreads |
protected void |
setUp()
|
static junit.framework.Test |
suite()
Method is used by TestRunner to load these tests |
protected void |
tearDown()
|
void |
testJacORB()
Test ORB and POA creation and orb.shutdown() |
void |
testThread()
TEST: Send a message to one destination The returned subscribeOid is checked |
java.lang.String[] |
update(java.lang.String cbSessionId,
MsgUnitRaw[] msgUnitArr)
This is the callback method invoked from xmlBlaster server informing the client in an asynchronous mode about a new message. |
java.lang.String |
update(java.lang.String cbSessionId,
java.lang.String updateKeyLiteral,
byte[] content,
java.lang.String updateQosLiteral)
This is the callback method invoked when using certain callback protocols (for example xml-rpc) which informs the client in an asynchronous mode about a new message. |
java.lang.String |
update(java.lang.String cbSessionId,
UpdateKey updateKey,
byte[] content,
UpdateQos updateQos)
These update() methods are enforced by I_CallbackExtended. |
void |
updateOneway(java.lang.String cbSessionId,
MsgUnitRaw[] msgUnitArr)
The oneway variant without a return value or exception |
void |
updateOneway(java.lang.String cbSessionId,
java.lang.String updateKeyLiteral,
byte[] content,
java.lang.String updateQosLiteral)
The oneway variant without a return value or exception |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Global glob
private static java.util.logging.Logger log
private EmbeddedXmlBlaster serverThread
private final java.lang.String loginName
private CorbaConnection corbaConnection
private I_CallbackServer cbServer
private java.lang.String[] args
Constructor Detail |
---|
public TestCorbaThreads(Global glob, java.lang.String testName)
testName
- The name used in the test suiteMethod Detail |
---|
public void testJacORB()
protected void setUp()
setUp
in class junit.framework.TestCase
private void login()
protected void tearDown()
tearDown
in class junit.framework.TestCase
private void logout()
public void testThread()
public java.lang.String update(java.lang.String cbSessionId, UpdateKey updateKey, byte[] content, UpdateQos updateQos)
update
in interface I_Callback
cbSessionId
- The session ID specified by the client which registered the callback.
You can specify a cbSessionId during connection (with ConnectQos)
and this is bounced back here so you can authenticate the message.updateKey
- The arrived key containing the topic namecontent
- The arrived message content. This is your payload.I_XmlBlasterAccess
public java.lang.String update(java.lang.String cbSessionId, java.lang.String updateKeyLiteral, byte[] content, java.lang.String updateQosLiteral)
I_CallbackExtended
update
in interface I_CallbackExtended
cbSessionId
- The session ID specified by the client which registered the callbackupdateKeyLiteral
- The arrived key (as an xml-string)content
- The arrived message contentupdateQosLiteral
- Quality of Service of the MsgUnitRaw
(as an xml-string)I_Callback
,
AbstractCallbackExtended
public java.lang.String[] update(java.lang.String cbSessionId, MsgUnitRaw[] msgUnitArr)
I_CallbackRaw
update
in interface I_CallbackRaw
msgUnitArr
- Array of MsgUnitRaw, containing xmlKey,content,qos
public void updateOneway(java.lang.String cbSessionId, java.lang.String updateKeyLiteral, byte[] content, java.lang.String updateQosLiteral)
I_CallbackExtended
updateOneway
in interface I_CallbackExtended
public void updateOneway(java.lang.String cbSessionId, MsgUnitRaw[] msgUnitArr)
I_CallbackRaw
updateOneway
in interface I_CallbackRaw
public void lostConnection(XmlBlasterException xmlBlasterException)
I_CallbackExtended
lostConnection
in interface I_CallbackExtended
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
java -Djava.compiler= junit.textui.TestRunner org.xmlBlaster.test.qos.TestCorbaThreads
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |