diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2002-07-26 13:10:22 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2002-07-26 13:10:22 +0000 |
commit | 1f8b022f2727fb09c7f8760e27b2cf4629e0c839 (patch) | |
tree | a1a1985da63b39c3bc7cb1ce2865af5811e19884 /TAO/performance-tests/Cubit | |
parent | 2940d24dc951cc8296f547deb15145372dd298a4 (diff) | |
download | ATCD-1f8b022f2727fb09c7f8760e27b2cf4629e0c839.tar.gz |
ChangeLogTag: Fri Jul 26 08:08:47 2002 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'TAO/performance-tests/Cubit')
4 files changed, 102 insertions, 17 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/DII_Cubit/DII_Cubit.mpc b/TAO/performance-tests/Cubit/TAO/DII_Cubit/DII_Cubit.mpc new file mode 100644 index 00000000000..8a27e3234a3 --- /dev/null +++ b/TAO/performance-tests/Cubit/TAO/DII_Cubit/DII_Cubit.mpc @@ -0,0 +1,11 @@ +project(client): server, strategies { + exename = client + depends += "IDL Cubit Server" DynamicInterface + libs += TAO_DynamicInterface + idlflags += -Gd + + Source_Files { + cubitC.cpp + client.cpp + } +} diff --git a/TAO/performance-tests/Cubit/TAO/DII_Cubit/cubit.idl b/TAO/performance-tests/Cubit/TAO/DII_Cubit/cubit.idl index 7f6e87ea8d8..92b4d12154a 100644 --- a/TAO/performance-tests/Cubit/TAO/DII_Cubit/cubit.idl +++ b/TAO/performance-tests/Cubit/TAO/DII_Cubit/cubit.idl @@ -17,25 +17,29 @@ interface Cubit void cube_void (); // Test the basic latency of a nil operation. - octet cube_octet (in octet o); + octet cube_octet (in octet o); // cube an octet - short cube_short (in short s); + short cube_short (in short s); // cube a short - long cube_long (in long l); + long cube_long (in long l); // cube a long struct Many { - octet o; // + 3 bytes padding (normally) ... + octet o; // + 3 bytes padding (normally) ... long l; - short s; // + 2 bytes padding (normally) ... + short s; // + 2 bytes padding (normally) ... }; Many cube_struct (in Many values); // Cube a struct + any cube_any(in any value); + + any cube_any_struct(in any value); + enum discrim { e_0th, @@ -63,25 +67,28 @@ interface Cubit }; // Union of different types. - oneof cube_union (in oneof values); + oneof cube_union (in oneof values); // cube a union. typedef sequence<long> long_seq; - void cube_long_sequence (in long_seq input, - out long_seq output); + out long_seq output); // Cube several longs. - typedef sequence<octet> octet_seq; void cube_octet_sequence (in octet_seq input, out octet_seq output); // Cube an octet sequence. + typedef sequence<Many> many_seq; + void cube_many_sequence (in many_seq input, + out many_seq output); + // Cube several manys. + oneway void shutdown (); // shutdown the application. // = The following types provide a torture-test for structs. - struct RtiPacketHeader + struct RtiPacketHeader { unsigned long packetLength; // this is probably redundant unsigned short federationHandle; @@ -89,13 +96,13 @@ interface Cubit unsigned long packetColor; }; - struct HandleValuePair + struct HandleValuePair { unsigned short handle; octet_seq data; }; - enum MessageHeaderTypes + enum MessageHeaderTypes { objectUpdate, interaction @@ -103,7 +110,7 @@ interface Cubit }; typedef sequence<HandleValuePair> HandleValuePairSeq; - struct RtiObjectUpdateMessageHeader + struct RtiObjectUpdateMessageHeader { unsigned long updateLength; // probably redundant unsigned long updateTag; @@ -119,13 +126,13 @@ interface Cubit HandleValuePairSeq messagePayload; }; - struct RtiInteractionMessageHeader + struct RtiInteractionMessageHeader { unsigned long updateLength; // similar to object update }; - union MessageUnion switch(MessageHeaderTypes) + union MessageUnion switch(MessageHeaderTypes) { case objectUpdate: RtiObjectUpdateMessageHeader oumh; @@ -134,14 +141,18 @@ interface Cubit }; typedef sequence <MessageUnion> MessageUnionSeq; - struct RtiPacket + struct RtiPacket { RtiPacketHeader packetHeader; MessageUnionSeq msgs; }; void cube_rti_data (in RtiPacket input, - out RtiPacket output); + out RtiPacket output); + + // A work around for problems with SHMIOP since this test uses + // this. + void ping (); }; interface Cubit_Factory diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.mpc b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.mpc new file mode 100644 index 00000000000..4b122cd44f5 --- /dev/null +++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.mpc @@ -0,0 +1,38 @@ +project(IDL Cubit Server): server, strategies { + idlflags += -Gd + + Source_Files { + tmplinst.cpp + RTI_IO.cpp + Cubit_i.cpp + Cubit_Client.cpp + Cubit_Server.cpp + server.cpp + } +} + +project(client): server, strategies { + exename = client + idlflags += -Gd + + Source_Files { + tmplinst.cpp + RTI_IO.cpp + Cubit_Client.cpp + client.cpp + } +} + +project(collocation): server, strategies { + exename = collocation/collocation_test + idlflags += -Gd + + Source_Files { + tmplinst.cpp + RTI_IO.cpp + collocation_test.cpp + Cubit_i.cpp + Cubit_Client.cpp + Cubit_Server.cpp + } +} diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit.mpc b/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit.mpc new file mode 100644 index 00000000000..95c692c616f --- /dev/null +++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit.mpc @@ -0,0 +1,25 @@ +project: server, strategies { + Source_Files { + tmplinst.cpp + Timer.cpp + Cubit_Task.cpp + Globals.cpp + cubit_i.cpp + server.cpp + } +} + +project(client): server, strategies { + exename = client + + Source_Files { + tmplinst.cpp + Timer.cpp + Globals.cpp + cubit_i.cpp + Cubit_Task.cpp + Util_Thread.cpp + Task_Client.cpp + client.cpp + } +} |