summaryrefslogtreecommitdiff
path: root/TAO/tests/Cache_Growth_Test/Hello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Cache_Growth_Test/Hello.cpp')
-rw-r--r--TAO/tests/Cache_Growth_Test/Hello.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/TAO/tests/Cache_Growth_Test/Hello.cpp b/TAO/tests/Cache_Growth_Test/Hello.cpp
new file mode 100644
index 00000000000..8d28b7d9bc5
--- /dev/null
+++ b/TAO/tests/Cache_Growth_Test/Hello.cpp
@@ -0,0 +1,34 @@
+//
+// $Id$
+//
+#include "Hello.h"
+#include "tao/ORB_Core.h"
+#include "tao/Transport_Cache_Manager.h"
+#include "tao/Thread_Lane_Resources.h"
+
+ACE_RCSID(Hello, Hello, "$Id$")
+
+Hello::Hello (CORBA::ORB_ptr orb)
+ : orb_ (CORBA::ORB::_duplicate (orb))
+{
+}
+
+char *
+Hello::get_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ if (this->orb_->orb_core ()->lane_resources ().transport_cache ().current_size () > 1)
+ {
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) The size is growing \n"));
+ }
+
+ return CORBA::string_dup ("Hello there!");
+}
+
+void
+Hello::shutdown (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
+}