summaryrefslogtreecommitdiff
path: root/ACE/TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.cpp')
-rw-r--r--ACE/TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.cpp77
1 files changed, 77 insertions, 0 deletions
diff --git a/ACE/TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.cpp b/ACE/TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.cpp
new file mode 100644
index 00000000000..195be3b7c02
--- /dev/null
+++ b/ACE/TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.cpp
@@ -0,0 +1,77 @@
+// $Id$
+#include "Foo_i.h"
+#include "TestInf/AppShutdown.h"
+#include "ace/OS.h"
+#include "ace/Time_Value.h"
+
+
+
+
+Foo_i::Foo_i()
+{
+ for (unsigned i = 0; i < 5; i++)
+ {
+ this->op_count_[i] = 0;
+ }
+}
+
+
+Foo_i::~Foo_i()
+{
+}
+
+
+void
+Foo_i::op1(void)
+{
+ this->op_count_[0]++;
+}
+
+
+void
+Foo_i::op2(CORBA::Long value)
+{
+ ACE_UNUSED_ARG(value);
+ this->op_count_[1]++;
+}
+
+
+CORBA::Long
+Foo_i::op3(CORBA::Long value)
+{
+ this->op_count_[2]++;
+ return value;
+}
+
+
+void
+Foo_i::op4(CORBA::Long value)
+{
+ ACE_UNUSED_ARG(value);
+ this->op_count_[3]++;
+}
+
+
+void
+Foo_i::op5(void)
+{
+ this->op_count_[4]++;
+ throw FooException();
+}
+
+
+void
+Foo_i::done(void)
+{
+ TheAppShutdown->client_done();
+}
+
+
+void
+Foo_i::gather_stats(Foo_Statistics& stats)
+{
+ for (unsigned i = 0; i < 5; i++)
+ {
+ stats.actual(i + 1, this->op_count_[i]);
+ }
+}