summaryrefslogtreecommitdiff
path: root/CIAO/examples/DevGuideExamples/Messenger/descriptors
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/examples/DevGuideExamples/Messenger/descriptors')
-rw-r--r--CIAO/examples/DevGuideExamples/Messenger/descriptors/Application-flattened.cdp278
-rw-r--r--CIAO/examples/DevGuideExamples/Messenger/descriptors/ApplicationNodeMap.cdd91
-rw-r--r--CIAO/examples/DevGuideExamples/Messenger/descriptors/admin.dat7
-rwxr-xr-xCIAO/examples/DevGuideExamples/Messenger/descriptors/run_test.pl109
4 files changed, 0 insertions, 485 deletions
diff --git a/CIAO/examples/DevGuideExamples/Messenger/descriptors/Application-flattened.cdp b/CIAO/examples/DevGuideExamples/Messenger/descriptors/Application-flattened.cdp
deleted file mode 100644
index 345ae58ed0e..00000000000
--- a/CIAO/examples/DevGuideExamples/Messenger/descriptors/Application-flattened.cdp
+++ /dev/null
@@ -1,278 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
-<!-- -->
-<Deployment:DeploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <label>Messenger Deployment Plan</label>
-
- <!-- realizes -->
-
- <!-- implementation* -->
-
- <implementation xmi:id="MessengerImpl"> <!-- from Messenger.cpd -->
- <name>MessengerImpl</name>
- <source></source>
- <!-- from Messenger.cid -->
- <artifact xmi:idref="Messenger_Stub" />
- <artifact xmi:idref="Messenger_Svnt" />
- <artifact xmi:idref="Messenger_Exec" />
- </implementation>
-
- <implementation xmi:id="ReceiverImpl"> <!-- from Receiver.cpd -->
- <name>ReceiverImpl</name>
- <source></source>
- <artifact xmi:idref="Receiver_Stub" />
- <artifact xmi:idref="Receiver_Svnt" />
- <artifact xmi:idref="Receiver_Exec" />
- </implementation>
-
- <implementation xmi:id="AdministratorImpl"> <!-- from Administrator.cpd -->
- <name>AdministratorImpl</name>
- <source></source>
- <artifact xmi:idref="Administrator_Stub" />
- <artifact xmi:idref="Administrator_Svnt" />
- <artifact xmi:idref="Administrator_Exec" />
- </implementation>
-
- <!-- instance* -->
-
- <instance xmi:id="Messenger_Instance_ID">
- <name>Messenger_Instance</name>
- <node>Messenger_Node</node>
- <source></source>
- <implementation xmi:idref="MessengerImpl" />
- </instance>
- <instance xmi:id="First_Receiver_Instance_ID">
- <name>First_Receiver_Instance</name>
- <node>First_Receiver_Node</node>
- <source></source>
- <implementation xmi:idref="ReceiverImpl" />
- </instance>
- <instance xmi:id="Second_Receiver_Instance_ID">
- <name>Second_Receiver_Instance</name>
- <node>Second_Receiver_Node</node>
- <source></source>
- <implementation xmi:idref="ReceiverImpl" />
- </instance>
- <instance xmi:id="Administrator_Instance_ID">
- <name>Administrator_Instance</name>
- <node>Administrator_Node</node>
- <source></source>
- <implementation xmi:idref="AdministratorImpl" />
- </instance>
-
- <!-- connection* -->
-
- <connection>
- <name>Messenger_to_First_Receiver_Publish</name>
- <internalEndpoint>
- <portName>message_publisher</portName>
- <kind>EventPublisher</kind>
- <instance xmi:idref="Messenger_Instance_ID" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>message_consumer</portName>
- <kind>EventConsumer</kind>
- <instance xmi:idref="First_Receiver_Instance_ID" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>Messenger_to_First_Receiver_History</name>
- <internalEndpoint>
- <portName>message_history</portName>
- <kind>Facet</kind>
- <instance xmi:idref="Messenger_Instance_ID" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>message_history</portName>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="First_Receiver_Instance_ID" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>Messenger_to_Second_Receiver_Publish</name>
- <internalEndpoint>
- <portName>message_publisher</portName>
- <kind>EventPublisher</kind>
- <instance xmi:idref="Messenger_Instance_ID" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>message_consumer</portName>
- <kind>EventConsumer</kind>
- <instance xmi:idref="Second_Receiver_Instance_ID" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>Messenger_to_Second_Receiver_History</name>
- <internalEndpoint>
- <portName>message_history</portName>
- <kind>Facet</kind>
- <instance xmi:idref="Messenger_Instance_ID" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>message_history</portName>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="Second_Receiver_Instance_ID" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>Messenger_to_Administrator_Control</name>
- <internalEndpoint>
- <portName>control</portName>
- <kind>Facet</kind>
- <instance xmi:idref="Messenger_Instance_ID" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>runnables</portName>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="Administrator_Instance_ID" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>Messenger_to_Administrator_Content</name>
- <internalEndpoint>
- <portName>content</portName>
- <kind>Facet</kind>
- <instance xmi:idref="Messenger_Instance_ID" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>content</portName>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="Administrator_Instance_ID" />
- </internalEndpoint>
- </connection>
-
- <!-- artifact* (exec, svnt) -->
-
- <artifact xmi:id="Messenger_Stub">
- <name>Messenger_Stub</name>
- <source></source>
- <node></node>
- <location>Messenger_stub</location>
- </artifact>
- <artifact xmi:id="Messenger_Svnt">
- <name>Messenger_Svnt</name>
- <source></source>
- <node></node>
- <location>Messenger_svnt</location>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_MessengerHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
- <artifact xmi:id="Messenger_Exec">
- <name>Messenger_Exec</name>
- <source></source>
- <node></node>
- <location>Messenger_exec</location>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_MessengerHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact xmi:id="Receiver_Stub">
- <name>Receiver_Stub</name>
- <source></source>
- <node></node>
- <location>Receiver_stub</location>
- </artifact>
- <artifact xmi:id="Receiver_Svnt">
- <name>Receiver_Svnt</name>
- <source></source>
- <node></node>
- <location>Receiver_svnt</location>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
- <artifact xmi:id="Receiver_Exec">
- <name>Receiver_Exec</name>
- <source></source>
- <node></node>
- <location>Receiver_exec</location>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_ReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact xmi:id="Administrator_Stub">
- <name>Administrator_Stub</name>
- <source></source>
- <node></node>
- <location>Administrator_stub</location>
- </artifact>
- <artifact xmi:id="Administrator_Svnt">
- <name>Administrator_Svnt</name>
- <source></source>
- <node></node>
- <location>Administrator_svnt</location>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_AdministratorHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
- <artifact xmi:id="Administrator_Exec">
- <name>Administrator_Exec</name>
- <source></source>
- <node></node>
- <location>Administrator_exec</location>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_AdministratorHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-</Deployment:DeploymentPlan>
-
diff --git a/CIAO/examples/DevGuideExamples/Messenger/descriptors/ApplicationNodeMap.cdd b/CIAO/examples/DevGuideExamples/Messenger/descriptors/ApplicationNodeMap.cdd
deleted file mode 100644
index df1f318cff6..00000000000
--- a/CIAO/examples/DevGuideExamples/Messenger/descriptors/ApplicationNodeMap.cdd
+++ /dev/null
@@ -1,91 +0,0 @@
-<Deployment:domain xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <UUID>83D02FE2-A0BD-11DF-A038-005056C00008</UUID>
-
- <label/>
-
- <node>
- <name>Administrator_Node</name>
- <label/>
- <resource>
- <name>Node Address</name>
- <resourceType>edu.vanderbilt.dre.DAnCE.NodeAddress</resourceType>
- <property>
- <name>edu.vanderbilt.dre.DAnCE.StringIOR</name>
- <kind>Attribute</kind>
- <dynamic>false</dynamic>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>corbaloc:iiop:localhost:11000</string>
- </value>
- </value>
- </property>
- </resource>
- </node>
- <node>
- <name>First_Receiver_Node</name>
- <label/>
- <resource>
- <name>Node Address</name>
- <resourceType>edu.vanderbilt.dre.DAnCE.NodeAddress</resourceType>
- <property>
- <name>edu.vanderbilt.dre.DAnCE.StringIOR</name>
- <kind>Attribute</kind>
- <dynamic>false</dynamic>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>corbaloc:iiop:localhost:22000</string>
- </value>
- </value>
- </property>
- </resource>
- </node>
- <node>
- <name>Second_Receiver_Node</name>
- <label/>
- <resource>
- <name>Node Address</name>
- <resourceType>edu.vanderbilt.dre.DAnCE.NodeAddress</resourceType>
- <property>
- <name>edu.vanderbilt.dre.DAnCE.StringIOR</name>
- <kind>Attribute</kind>
- <dynamic>false</dynamic>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>corbaloc:iiop:localhost:33000</string>
- </value>
- </value>
- </property>
- </resource>
- </node>
- <node>
- <name>Messenger_Node</name>
- <label/>
- <resource>
- <name>Node Address</name>
- <resourceType>edu.vanderbilt.dre.DAnCE.NodeAddress</resourceType>
- <property>
- <name>edu.vanderbilt.dre.DAnCE.StringIOR</name>
- <kind>Attribute</kind>
- <dynamic>false</dynamic>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>corbaloc:iiop:localhost:44000</string>
- </value>
- </value>
- </property>
- </resource>
- </node>
-</Deployment:domain>
diff --git a/CIAO/examples/DevGuideExamples/Messenger/descriptors/admin.dat b/CIAO/examples/DevGuideExamples/Messenger/descriptors/admin.dat
deleted file mode 100644
index f5815bb1f60..00000000000
--- a/CIAO/examples/DevGuideExamples/Messenger/descriptors/admin.dat
+++ /dev/null
@@ -1,7 +0,0 @@
-1
-3
-1
-4
-Changing the publication text!
-2
-5
diff --git a/CIAO/examples/DevGuideExamples/Messenger/descriptors/run_test.pl b/CIAO/examples/DevGuideExamples/Messenger/descriptors/run_test.pl
deleted file mode 100755
index 20cb8707bc2..00000000000
--- a/CIAO/examples/DevGuideExamples/Messenger/descriptors/run_test.pl
+++ /dev/null
@@ -1,109 +0,0 @@
-
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-use Env (ACE_ROOT);
-use lib "$ACE_ROOT/bin";
-use PerlACE::TestTarget;
-
-$tg = PerlACE::TestTarget::create_target (1) || die "Create target for ns failed\n";
-
-$embase = "em.ior";
-$plbase = "pl.ior";
-
-$emior= $tg->LocalFile ($embase);
-$tg->DeleteFile ($embase);
-$plior= $tg->LocalFile ($plbase);
-$tg->DeleteFile ($plior);
-
-$CIAO_ROOT = $ENV{'CIAO_ROOT'};
-$DANCE_ROOT = $ENV{'DANCE_ROOT'};
-
-$NA_cmd = $tg->GetArchDir("$DANCE_ROOT/bin/") . "dance_locality_manager";
-
-$NA1 = $tg->CreateProcess ("$DANCE_ROOT/bin/dance_node_manager",
- "-ORBEndpoint iiop://localhost:11000 -s $NA_cmd -n Administrator_Node");
-
-$NA2 = $tg->CreateProcess ("$DANCE_ROOT/bin/dance_node_manager",
- "-ORBEndpoint iiop://localhost:22000 -s $NA_cmd -n First_Receiver_Node");
-
-$NA3 = $tg->CreateProcess ("$DANCE_ROOT/bin/dance_node_manager",
- "-ORBEndpoint iiop://localhost:33000 -s $NA_cmd -n Second_Receiver_Node");
-
-$NA4 = $tg->CreateProcess ("$DANCE_ROOT/bin/dance_node_manager",
- "-ORBEndpoint iiop://localhost:44000 -s $NA_cmd -n Messenger_Node");
-
-# Each Node Manager lauches a Node Application process.
-open(STDIN, "<admin.dat");
-$Ret1 = $NA1->Spawn ();
-if($Ret1 == -1) {
- print STDERR "ERROR: Administrator returned <$Ret1>\n"
-}
-
-$Ret2 = $NA2->Spawn ();
-if($Ret2 == -1) {
- print STDERR "ERROR: Receiver 1 returned <$Ret2>\n"
-}
-
-$Ret3 = $NA3->Spawn ();
-if($Ret3 == -1) {
- print STDERR "ERROR: Receiver 2 returned <$Ret3>\n"
-}
-
-$Ret4 = $NA4->Spawn ();
-if($Ret4 == -1) {
- print STDERR "ERROR: Messenger returned <$Ret4>\n"
-}
-
-#Start an Execution Manager
-$EM = $tg->CreateProcess ("$DANCE_ROOT/bin/dance_execution_manager", "-e$emior --cdd ApplicationNodeMap.cdd");
-
-$Ret5 = $EM->Spawn ();
-if($Ret5 == -1) {
- print STDERR "ERROR: Execution Manager returned <$Ret5>\n"
-}
-
-if ($tg->WaitForFileTimed ($embase,
- $tg->ProcessStartWaitInterval ()) == -1) {
- print STDERR "ERROR: cannot find file <$emior>\n";
- $EM->Kill();
- $tg->DeleteFile ($embase);
- exit 1;
-}
-
-sleep(5);
-#Start the plan launcher
-$EX = $tg->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher",
- "-x Application-flattened.cdp -k file://$emior ");
-
-#Stop the plan launcher
-$EX2 = $tg->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher",
- "-k file://$emior -x Application-flattened.cdp -s");
-
-$Ret6 = $EX->Spawn ();
-if($Ret6 == -1) {
- print STDERR "ERROR: plan launcher returned <$Ret6>\n"
-}
-
-sleep(10);
-
-$Ret7 = $EX2->Spawn ();
-if($Ret7 == -1) {
- print STDERR "ERROR: plan launcher (shutdown) returned <$Ret7>\n"
-}
-
-sleep(5);
-
-$NA1->Kill();
-$NA2->Kill();
-$NA3->Kill();
-$NA4->Kill();
-$EX->Kill();
-$EX2->Kill();
-$EM->Kill();
-
-$tg->DeleteFile ($embase);
-$tg->DeleteFile ($plior);
-
-exit 0;