From 0cd6378f95fe5904980576741af99bae4650accf Mon Sep 17 00:00:00 2001 From: jai Date: Thu, 22 Feb 2007 23:00:01 +0000 Subject: ChangeLogTag: Thu Feb 22 22:59:01 UTC 2007 Jaiganesh B --- CIAO/ChangeLog | 9 +++++- CIAO/docs/schema/ServerResourceUsage.txt | 54 +++++++++++++++++++++++++++----- 2 files changed, 55 insertions(+), 8 deletions(-) diff --git a/CIAO/ChangeLog b/CIAO/ChangeLog index 0e126b20bf2..22c5acf4af0 100644 --- a/CIAO/ChangeLog +++ b/CIAO/ChangeLog @@ -1,7 +1,14 @@ +Thu Feb 22 22:59:01 UTC 2007 Jaiganesh B + + * docs/schema/ServerResourceUsage.txt: + + Updated the text document with the new usage guidelines. + Thu Feb 22 22:53:52 UTC 2007 Nilabja R * DAnCE/TargetManager/CmpClient.cpp: - Changed in order to remove a warning in the build + + Changed in order to remove a warning in the build Thu Feb 22 22:22:13 UTC 2007 Jaiganesh B diff --git a/CIAO/docs/schema/ServerResourceUsage.txt b/CIAO/docs/schema/ServerResourceUsage.txt index 061e2cc4422..d8fc47ca7b3 100644 --- a/CIAO/docs/schema/ServerResourceUsage.txt +++ b/CIAO/docs/schema/ServerResourceUsage.txt @@ -1,7 +1,7 @@ How to use CIAOServerResources.xsd Assuming we store two CIAO:ServerResources documents in two XML files -called "RTLinuxServerConfig.xml" and "RTwIN32ServerConfig.xml" +called "RTLinuxServerConfig.csr" and "RTwIN32ServerConfig.csr" respectively. Two things need to happen in order to use the PolicySet's defined in these files. First, we need to tell the DnC tools what are all the CIAOServerResources files a DeploymentPlan @@ -21,7 +21,7 @@ filenames. tk_string - RTLinuxServerConfig.xml + RTLinuxServerConfig.csr @@ -31,14 +31,14 @@ filenames. tk_string - RTWin32ServerConfig.xml + RTWin32ServerConfig.csr Second, we can now use the policy sets defined in these files by associating a policy set with the entity the policy set will be -applied. Currently, only associations with component instances are +applied on. Currently, only associations with component instances are supported. A component instance in deployment plan can specify the policy set it wishes to be instantiated with. A PolicySet is referenced by its name and the CIAO:ServerResources name. @@ -47,13 +47,16 @@ referenced by its name and the CIAO:ServerResources name. .... - InstanceUsesResource - CIAO:ServerResources + CIAO:PolicySet here_we_insert_the_name_defined_in_CIAO:ServerResources - CIAO:PolicySetName +// +// name could be CIAO:InstancePolicy or CIAO:ReceptaclePolicy. +// Here we show an example of an CIAO::InstancePolicy. +// + CIAO:InstancePolicy tk_string @@ -63,6 +66,43 @@ referenced by its name and the CIAO:ServerResources name. +// Now we show an example of a CIAO:ReceptaclePolicy. +// + + InstanceUsesResource + CIAO:PolicySet + here_we_insert_the_name_defined_in_CIAO:ServerResources +// +// First we specify that we are going to define a receptacle policy. +// + +// +// Note the name of the policy. +// + CIAO:ReceptaclePolicy + + tk_string + + here_we_insert_the_PolicySet_name_defined_in_the_ServerResources + + + +// +// Now we specify the receptacle (using the receptacle name) that is going to +// be associated with this policy. +// + + receptacle name from the .ccd file + + tk_string + + here_we_insert_the_PolicySet_name_defined_in_the_ServerResources + + + + + + -- cgit v1.2.1