Skip to Content.
Sympa Menu

perfsonar-dev - r2125 - in trunk/perfsonar/ant/sqlma: ibatis-l2pathstatus-domain-jdbc-config ibatis-l2pathstatus-interdomain-jdbc-config ibatis-utilization-jdbc-config

Subject: perfsonar development work

List archive

r2125 - in trunk/perfsonar/ant/sqlma: ibatis-l2pathstatus-domain-jdbc-config ibatis-l2pathstatus-interdomain-jdbc-config ibatis-utilization-jdbc-config


Chronological Thread 
  • From:
  • To:
  • Subject: r2125 - in trunk/perfsonar/ant/sqlma: ibatis-l2pathstatus-domain-jdbc-config ibatis-l2pathstatus-interdomain-jdbc-config ibatis-utilization-jdbc-config
  • Date: Thu, 22 Feb 2007 08:48:39 -0500

Author: roman
Date: 2007-02-22 08:48:37 -0500 (Thu, 22 Feb 2007)
New Revision: 2125

Modified:

trunk/perfsonar/ant/sqlma/ibatis-l2pathstatus-domain-jdbc-config/ibatis-jdbc-config-targets.xml

trunk/perfsonar/ant/sqlma/ibatis-l2pathstatus-interdomain-jdbc-config/ibatis-jdbc-config-targets.xml

trunk/perfsonar/ant/sqlma/ibatis-utilization-jdbc-config/ibatis-jdbc-config-targets.xml
Log:

User may now choose which metric should be used in the service and configured
in ibatis configuration files with jdbc parameters.





Modified:
trunk/perfsonar/ant/sqlma/ibatis-l2pathstatus-domain-jdbc-config/ibatis-jdbc-config-targets.xml
===================================================================
---
trunk/perfsonar/ant/sqlma/ibatis-l2pathstatus-domain-jdbc-config/ibatis-jdbc-config-targets.xml
2007-02-22 13:04:38 UTC (rev 2124)
+++
trunk/perfsonar/ant/sqlma/ibatis-l2pathstatus-domain-jdbc-config/ibatis-jdbc-config-targets.xml
2007-02-22 13:48:37 UTC (rev 2125)
@@ -21,21 +21,47 @@
<import file="../sqlma-ibatis-jdbc-config-targets.xml"/>


+ <target name="metric-question">
+
+ <echo></echo>
+ <input message="Do you want to use data of L2 path status metric
in domain scope which are or will be stored in your relational database? "
+ addproperty="_metric.decision"
+ validargs="y,n"
+ defaultvalue="y"/>
+
+ <condition property="metric.decision">
+ <equals arg1="y" arg2="${_metric.decision}"/>
+ </condition>
+
+ </target>
+
+
<target name="jdbc-config-message">

<echo></echo>
<echo>Provide correct jdbc connection parameters</echo>
- <echo>for relational database where data of L2 path status
(domain) metric</echo>
+ <echo>for relational database where data of L2 path status
metric - domain scope</echo>
<echo>are stored.</echo>
<echo></echo>

</target>


- <target name="ibatis-jdbc-config" depends="jdbc-config-message,
get-ibatis-jdbc-config">
+ <target name="ibatis-jdbc-config"
+ depends="metric-question"
+ if="metric.decision">

+ <antcall target="_ibatis-jdbc-config"/>
+
+ </target>
+
+
+ <target name="_ibatis-jdbc-config"
+ depends="jdbc-config-message, get-ibatis-jdbc-config">
+
<delete
file="../../../conf/ibatis-SqlMapConfig-L2-status-domain.xml"/>
<copy
file="../../../conf/ibatis-SqlMapConfig-L2-status-domain.template.xml"
tofile="../../../conf/ibatis-SqlMapConfig-L2-status-domain.xml"/>
+
<replace
file="../../../conf/ibatis-SqlMapConfig-L2-status-domain.xml"
token="_DRIVER_" value="${rel.db.name}"/>
<replace
file="../../../conf/ibatis-SqlMapConfig-L2-status-domain.xml"
token="_URL_" value="${rel.db.url}"/>
<replace
file="../../../conf/ibatis-SqlMapConfig-L2-status-domain.xml"
token="_USERNAME_" value="${rel.db.username}"/>

Modified:
trunk/perfsonar/ant/sqlma/ibatis-l2pathstatus-interdomain-jdbc-config/ibatis-jdbc-config-targets.xml
===================================================================
---
trunk/perfsonar/ant/sqlma/ibatis-l2pathstatus-interdomain-jdbc-config/ibatis-jdbc-config-targets.xml
2007-02-22 13:04:38 UTC (rev 2124)
+++
trunk/perfsonar/ant/sqlma/ibatis-l2pathstatus-interdomain-jdbc-config/ibatis-jdbc-config-targets.xml
2007-02-22 13:48:37 UTC (rev 2125)
@@ -21,19 +21,44 @@
<import file="../sqlma-ibatis-jdbc-config-targets.xml"/>


+ <target name="metric-question">
+
+ <echo></echo>
+ <input message="Do you want to use data of L2 path status metric
in interdomain scope which are or will be stored in your relational database?
"
+ addproperty="_metric.decision"
+ validargs="y,n"
+ defaultvalue="y"/>
+
+ <condition property="metric.decision">
+ <equals arg1="y" arg2="${_metric.decision}"/>
+ </condition>
+
+ </target>
+
+
<target name="jdbc-config-message">

<echo></echo>
<echo>Provide correct jdbc connection parameters</echo>
- <echo>for relational database where data of L2 path status
(interdomain) metric</echo>
+ <echo>for relational database where data of L2 path status
metric - interdomain scope</echo>
<echo>are stored.</echo>
<echo></echo>

</target>


- <target name="ibatis-jdbc-config" depends="jdbc-config-message,
get-ibatis-jdbc-config">
+ <target name="ibatis-jdbc-config"
+ depends="metric-question"
+ if="metric.decision">

+ <antcall target="_ibatis-jdbc-config"/>
+
+ </target>
+
+
+ <target name="_ibatis-jdbc-config"
+ depends="jdbc-config-message, get-ibatis-jdbc-config">
+
<delete
file="../../../conf/ibatis-SqlMapConfig-L2-status-interdomain.xml"/>
<copy
file="../../../conf/ibatis-SqlMapConfig-L2-status-interdomain.template.xml"
tofile="../../../conf/ibatis-SqlMapConfig-L2-status-interdomain.xml"/>


Modified:
trunk/perfsonar/ant/sqlma/ibatis-utilization-jdbc-config/ibatis-jdbc-config-targets.xml
===================================================================
---
trunk/perfsonar/ant/sqlma/ibatis-utilization-jdbc-config/ibatis-jdbc-config-targets.xml
2007-02-22 13:04:38 UTC (rev 2124)
+++
trunk/perfsonar/ant/sqlma/ibatis-utilization-jdbc-config/ibatis-jdbc-config-targets.xml
2007-02-22 13:48:37 UTC (rev 2125)
@@ -21,6 +21,21 @@
<import file="../sqlma-ibatis-jdbc-config-targets.xml"/>


+ <target name="metric-question">
+
+ <echo></echo>
+ <input message="Do you want to use data of utilization metric
which are or will be stored in your relational database? "
+ addproperty="_metric.decision"
+ validargs="y,n"
+ defaultvalue="y"/>
+
+ <condition property="metric.decision">
+ <equals arg1="y" arg2="${_metric.decision}"/>
+ </condition>
+
+ </target>
+
+
<target name="jdbc-config-message">

<echo></echo>
@@ -32,8 +47,18 @@
</target>


- <target name="ibatis-jdbc-config" depends="jdbc-config-message,
get-ibatis-jdbc-config">
+ <target name="ibatis-jdbc-config"
+ depends="metric-question"
+ if="metric.decision">

+ <antcall target="_ibatis-jdbc-config"/>
+
+ </target>
+
+
+ <target name="_ibatis-jdbc-config"
+ depends="jdbc-config-message, get-ibatis-jdbc-config">
+
<delete file="../../../conf/ibatis-SqlMapConfig-utilization.xml"/>
<copy
file="../../../conf/ibatis-SqlMapConfig-utilization.template.xml"
tofile="../../../conf/ibatis-SqlMapConfig-utilization.xml"/>




  • r2125 - in trunk/perfsonar/ant/sqlma: ibatis-l2pathstatus-domain-jdbc-config ibatis-l2pathstatus-interdomain-jdbc-config ibatis-utilization-jdbc-config, svnlog, 02/22/2007

Archive powered by MHonArc 2.6.16.

Top of Page