incubator-kalumet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r1187742 [2/2] - in /incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet: ./ model/ ws/client/
Date Sat, 22 Oct 2011 18:01:27 GMT
Modified: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/model/Kalumet.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/model/Kalumet.java?rev=1187742&r1=1187741&r2=1187742&view=diff
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/model/Kalumet.java (original)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/model/Kalumet.java Sat Oct 22 18:01:26 2011
@@ -399,151 +399,151 @@ public class Kalumet implements Serializ
          digester.addCallMethod("kalumet/environments/environment/notes", "setNotes", 0);
          digester.addCallMethod("kalumet/environments/environment/weblinks", "setWeblinks", 0);
 
-         // applicationservers tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers", "org.apache.kalumet.model.ApplicationServers");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers");
-
-         // applicationserver tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver", "org.apache.kalumet.model.ApplicationServer");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver");
-
-         // applicationserver startupcommand and shutdowncommand tag rules
-         digester.addCallMethod("kalumet/environments/environment/applicationservers/applicationserver/startupcommand", "setStartupcommand", 0);
-         digester.addCallMethod("kalumet/environments/environment/applicationservers/applicationserver/shutdowncommand", "setShutdowncommand", 0);
-
-         // connectionpool tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/connectionpools/connectionpool", "org.apache.kalumet.model.ConnectionPool");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/connectionpools/connectionpool");
-
-         // add connectionpool to applicationserver
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/connectionpools/connectionpool", "addConnectionPool", "org.apache.kalumet.model.ConnectionPool");
-
-         // datasource tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/datasources/datasource", "org.apache.kalumet.model.DataSource");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/datasources/datasource");
+         // j2eeapplicationservers tag rules
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers", "org.apache.kalumet.model.J2EEApplicationServers");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers");
+
+         // j2eeapplicationserver tag rules
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver", "org.apache.kalumet.model.J2EEApplicationServer");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver");
+
+         // j2eeapplicationserver startupcommand and shutdowncommand tag rules
+         digester.addCallMethod("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/startupcommand", "setStartupcommand", 0);
+         digester.addCallMethod("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/shutdowncommand", "setShutdowncommand", 0);
+
+         // jdbcconnectionpool tag rules
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jdbcconnectionpools/jdbcconnectionpool", "org.apache.kalumet.model.JDBCConnectionPool");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jdbcconnectionpools/jdbcconnectionpool");
+
+         // add jdbcconnectionpool to j2eeapplicationserver
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jdbcconnectionpools/jdbcconnectionpool", "addJDBCConnectionPool", "org.apache.kalumet.model.JDBCConnectionPool");
+
+         // jdbcdatasource tag rules
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jdbcdatasources/jdbcdatasource", "org.apache.kalumet.model.JDBCDataSource");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jdbcdatasources/jdbcdatasource");
 
-         // add datasource to applicationserver
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/datasources/datasource", "addDataSource", "org.apache.kalumet.model.DataSource");
+         // add jdbcdatasource to j2eeapplicationserver
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jdbcdatasources/jdbcdatasource", "addJDBCDataSource", "org.apache.kalumet.model.JDBCDataSource");
 
          // jmsconnectionfactory tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/jmsconnectionfactories/jmsconnectionfactory", "org.apache.kalumet.model.JMSConnectionFactory");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/jmsconnectionfactories/jmsconnectionfactory");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jmsconnectionfactories/jmsconnectionfactory", "org.apache.kalumet.model.JMSConnectionFactory");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jmsconnectionfactories/jmsconnectionfactory");
 
-         // add jmsconnectionfactory to applicationserver
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/jmsconnectionfactories/jmsconnectionfactory", "addJMSConnectionFactory", "org.apache.kalumet.model.JMSConnectionFactory");
+         // add jmsconnectionfactory to j2eeapplicationserver
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jmsconnectionfactories/jmsconnectionfactory", "addJMSConnectionFactory", "org.apache.kalumet.model.JMSConnectionFactory");
 
          // jmsserver tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/jmsservers/jmsserver", "org.apache.kalumet.model.JMSServer");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/jmsservers/jmsserver");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jmsservers/jmsserver", "org.apache.kalumet.model.JMSServer");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jmsservers/jmsserver");
 
          // jmsqueue tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/jmsservers/jmsserver/jmsqueues/jmsqueue", "org.apache.kalumet.model.JMSQueue");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/jmsservers/jmsserver/jmsqueues/jmsqueue");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jmsservers/jmsserver/jmsqueues/jmsqueue", "org.apache.kalumet.model.JMSQueue");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jmsservers/jmsserver/jmsqueues/jmsqueue");
 
          // add jmsqueue to jmsserver
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/jmsservers/jmsserver/jmsqueues/jmsqueue", "addJMSQueue", "org.apache.kalumet.model.JMSQueue");
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jmsservers/jmsserver/jmsqueues/jmsqueue", "addJMSQueue", "org.apache.kalumet.model.JMSQueue");
 
          // jmstopic tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/jmsservers/jmsserver/jmstopics/jmstopic", "org.apache.kalumet.model.JMSTopic");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/jmsservers/jmsserver/jmstopics/jmstopic");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jmsservers/jmsserver/jmstopics/jmstopic", "org.apache.kalumet.model.JMSTopic");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jmsservers/jmsserver/jmstopics/jmstopic");
 
          // add jmstopic to jmsserver
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/jmsservers/jmsserver/jmstopics/jmstopic", "addJMSTopic", "org.apache.kalumet.model.JMSTopic");
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jmsservers/jmsserver/jmstopics/jmstopic", "addJMSTopic", "org.apache.kalumet.model.JMSTopic");
 
-         // add jmsserver to applicationserver
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/jmsservers/jmsserver", "addJMSServer", "org.apache.kalumet.model.JMSServer");
+         // add jmsserver to j2eeapplicationserver
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jmsservers/jmsserver", "addJMSServer", "org.apache.kalumet.model.JMSServer");
 
-         // namespacebinding tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/namespacebindings/namespacebinding", "org.apache.kalumet.model.NameSpaceBinding");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/namespacebindings/namespacebinding");
+         // jndibinding tag rules
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jndibindings/jndibinding", "org.apache.kalumet.model.JNDIBinding");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jndibindings/jndibinding");
 
-         // add namespacebinding to applicationserver
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/namespacebindings/namespacebinding", "addNameSpaceBinding", "org.apache.kalumet.model.NameSpaceBinding");
+         // add jndibinding to j2eeapplicationserver
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/jndibindings/jndibinding", "addJNDIBinding", "org.apache.kalumet.model.JNDIBinding");
 
          // sharedlibrary tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/sharedlibrairies/sharedlibrary", "org.apache.kalumet.model.SharedLibrary");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/sharedlibrairies/sharedlibrary");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/sharedlibrairies/sharedlibrary", "org.apache.kalumet.model.SharedLibrary");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/sharedlibrairies/sharedlibrary");
 
-         // add sharedlibrary to applicationserver
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/sharedlibrairies/sharedlibrary", "addSharedLibrary", "org.apache.kalumet.model.SharedLibrary");
+         // add sharedlibrary to j2eeapplicationserver
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/sharedlibrairies/sharedlibrary", "addSharedLibrary", "org.apache.kalumet.model.SharedLibrary");
 
          // application tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/applications/application", "org.apache.kalumet.model.Application");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/applications/application");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/application", "org.apache.kalumet.model.J2EEApplication");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/application");
 
          // archive tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/applications/application/archives/archive", "org.apache.kalumet.model.Archive");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/applications/application/archives/archive");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/archives/archive", "org.apache.kalumet.model.Archive");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/archives/archive");
 
          // add archive archive to application
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/applications/application/archives/archive", "addArchive", "org.apache.kalumet.model.Archive");
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/archives/archive", "addArchive", "org.apache.kalumet.model.Archive");
 
          // contentmanager tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/applications/application/contentmanagers/contentmanager", "org.apache.kalumet.model.ContentManager");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/applications/application/contentmanagers/contentmanager");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/contentmanagers/contentmanager", "org.apache.kalumet.model.ContentManager");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/contentmanagers/contentmanager");
 
          // contentmanager property tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/applications/application/contentmanagers/contentmanager/properties/property", "org.apache.kalumet.model.Property");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/applications/application/contentmanagers/contentmanager/properties/property");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/contentmanagers/contentmanager/properties/property", "org.apache.kalumet.model.Property");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/contentmanagers/contentmanager/properties/property");
 
          // add property in contentmanager
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/applications/application/contentmanagers/contentmanager/properties/property", "addProperty", "org.apache.kalumet.model.Property");
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/contentmanagers/contentmanager/properties/property", "addProperty", "org.apache.kalumet.model.Property");
 
          // add contentmanager to application
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/applications/application/contentmanagers/contentmanager", "addContentManager", "org.apache.kalumet.model.ContentManager");
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/contentmanagers/contentmanager", "addContentManager", "org.apache.kalumet.model.ContentManager");
 
          // configurationfile tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/applications/application/configurationfiles/configurationfile", "org.apache.kalumet.model.ConfigurationFile");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/applications/application/configurationfiles/configurationfile");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/configurationfiles/configurationfile", "org.apache.kalumet.model.ConfigurationFile");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/configurationfiles/configurationfile");
 
          // mapping tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/applications/application/configurationfiles/configurationfile/mappings/mapping", "org.apache.kalumet.model.Mapping");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/applications/application/configurationfiles/configurationfile/mappings/mapping");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/configurationfiles/configurationfile/mappings/mapping", "org.apache.kalumet.model.Mapping");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/configurationfiles/configurationfile/mappings/mapping");
 
          // add mapping to configurationfile
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/applications/application/configurationfiles/configurationfile/mappings/mapping", "addMapping", "org.apache.kalumet.model.Mapping");
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/configurationfiles/configurationfile/mappings/mapping", "addMapping", "org.apache.kalumet.model.Mapping");
 
          // add configurationfile to application
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/applications/application/configurationfiles/configurationfile", "addConfigurationFile",
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/configurationfiles/configurationfile", "addConfigurationFile",
                "org.apache.kalumet.model.ConfigurationFile");
 
          // database tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/applications/application/databases/database", "org.apache.kalumet.model.Database");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/applications/application/databases/database");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/databases/database", "org.apache.kalumet.model.Database");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/databases/database");
 
          // sqlscript tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/applications/application/databases/database/sqlscripts/sqlscript", "org.apache.kalumet.model.SqlScript");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/applications/application/databases/database/sqlscripts/sqlscript");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/databases/database/sqlscripts/sqlscript", "org.apache.kalumet.model.SqlScript");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/databases/database/sqlscripts/sqlscript");
 
          // sqlscript mapping tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/applications/application/databases/database/sqlscripts/sqlscript/mappings/mapping", "org.apache.kalumet.model.Mapping");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/applications/application/databases/database/sqlscripts/sqlscript/mappings/mapping");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/databases/database/sqlscripts/sqlscript/mappings/mapping", "org.apache.kalumet.model.Mapping");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/databases/database/sqlscripts/sqlscript/mappings/mapping");
 
          // add mapping to sqlscript
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/applications/application/databases/database/sqlscripts/sqlscript/mappings/mapping", "addMapping",
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/databases/database/sqlscripts/sqlscript/mappings/mapping", "addMapping",
                "org.apache.kalumet.model.Mapping");
 
          // add sqlscript to database
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/applications/application/databases/database/sqlscripts/sqlscript", "addSqlScript", "org.apache.kalumet.model.SqlScript");
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/databases/database/sqlscripts/sqlscript", "addSqlScript", "org.apache.kalumet.model.SqlScript");
 
          // add database to application
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/applications/application/databases/database", "addDatabase", "org.apache.kalumet.model.Database");
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/j2eeapplication/databases/database", "addDatabase", "org.apache.kalumet.model.Database");
 
          // add application to applicationserver
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/applications/application", "addApplication", "org.apache.kalumet.model.Application");
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/j2eeapplications/application", "addApplication", "org.apache.kalumet.model.J2EEApplication");
 
          // cache tag rules
-         digester.addObjectCreate("kalumet/environments/environment/applicationservers/applicationserver/caches/cache", "org.apache.kalumet.model.Cache");
-         digester.addSetProperties("kalumet/environments/environment/applicationservers/applicationserver/caches/cache");
+         digester.addObjectCreate("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/caches/cache", "org.apache.kalumet.model.Cache");
+         digester.addSetProperties("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/caches/cache");
 
          // add cache to applicationserver
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver/caches/cache", "addCache", "org.apache.kalumet.model.Cache");
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver/caches/cache", "addCache", "org.apache.kalumet.model.Cache");
 
          // add applicationserver to applicationservers tag rule
-         digester.addSetNext("kalumet/environments/environment/applicationservers/applicationserver", "addApplicationServer", "org.apache.kalumet.model.ApplicationServer");
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers/j2eeapplicationserver", "addApplicationServer", "org.apache.kalumet.model.J2EEApplicationServer");
 
          // add applicationservers to environment tag rule
-         digester.addSetNext("kalumet/environments/environment/applicationservers", "setApplicationServers", "org.apache.kalumet.model.ApplicationServers");
+         digester.addSetNext("kalumet/environments/environment/j2eeapplicationservers", "setJ2EEApplicationServers", "org.apache.kalumet.model.J2EEApplicationServers");
 
          // logfile tag rules
          digester.addObjectCreate("kalumet/environments/environment/logfiles/logfile", "org.apache.kalumet.model.LogFile");

Modified: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/ApplicationClient.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/ApplicationClient.java?rev=1187742&r1=1187741&r2=1187742&view=diff
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/ApplicationClient.java (original)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/ApplicationClient.java Sat Oct 22 18:01:26 2011
@@ -20,7 +20,7 @@ package org.apache.kalumet.ws.client;
 
 
 /**
- * Application WS client.
+ * J2EEApplication WS client.
  */
 public class ApplicationClient extends AbstractClient {
 

Added: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/EnvironmentClient.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/EnvironmentClient.java?rev=1187742&view=auto
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/EnvironmentClient.java (added)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/EnvironmentClient.java Sat Oct 22 18:01:26 2011
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.kalumet.ws.client;
+
+/**
+ * Environment WS client.
+ */
+public class EnvironmentClient extends AbstractClient {
+
+    /**
+     * Default constructor.
+     *
+     * @param host the hostname or IP address of the Kalumet agent WS server.
+     * @param port the port number of the Kalumet agent WS server.
+     * @throws AbstractClient in case of communication failure.
+     */
+    public EnvironmentClient(String host, int port) throws ClientException {
+        super("http://" + host + ":" + port + "/axis/services/EnvironmentService");
+    }
+
+    /**
+     * Wrapper method to update an environment.
+     *
+     * @param environmentName the target environment name.
+     * @throws ClientException in case of update failure.
+     */
+    public void update(String environmentName) throws ClientException {
+        try {
+            call.invoke("update", new Object[]{ environmentName });
+        } catch (Exception e) {
+            throw new ClientException("Environment " + environmentName + " update failed", e);
+        }
+    }
+
+}

Added: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/FileClient.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/FileClient.java?rev=1187742&view=auto
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/FileClient.java (added)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/FileClient.java Sat Oct 22 18:01:26 2011
@@ -0,0 +1,70 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.kalumet.ws.client;
+
+import org.apache.axis.encoding.ser.BeanDeserializerFactory;
+import org.apache.axis.encoding.ser.BeanSerializerFactory;
+
+import javax.xml.namespace.QName;
+
+/**
+ * File WS client.
+ */
+public class FileClient extends AbstractClient {
+
+    /**
+     * Default constructor.
+     *
+     * @param host the hostname or IP address of the Kalumet agent WS server.
+     * @param port the port number of the Kalumet agent WS server.
+     * @throws ClientException in case of communication failure.
+     */
+    public FileClient(String host, int port) throws ClientException {
+        super("http://" + host + ":" + port + "/axis/services/FileService");
+    }
+
+    /**
+     * Wrapper method to view the content of a VFS file.
+     *
+     * @param path the VFS path.
+     * @return the file content.
+     * @throws ClientException in case of viewing failure.
+     */
+    public String view(String path) throws ClientException {
+        String content = null;
+        try {
+            content = ((String) call.invoke("view", new Object[]{ path }));
+        } catch (Exception e) {
+            throw new ClientException("Can't view the file " + path + " content", e);
+        }
+        return content;
+    }
+
+    public SimplifiedFileObject[] browse(String path) throws ClientException {
+        call.registerTypeMapping(SimplifiedFileObject.class, new QName("http://kalumet.apache.org", "SimplifiedFileObject"), BeanSerializerFactory.class, BeanDeserializerFactory.class);
+        SimplifiedFileObject[] children = null;
+        try {
+            children = ((SimplifiedFileObject[]) call.invoke("browse", new Object[]{ path }));
+        } catch (Exception e) {
+            throw new ClientException("Can't browse " + path, e);
+        }
+        return children;
+    }
+
+}

Added: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/J2EEApplicationServerClient.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/J2EEApplicationServerClient.java?rev=1187742&view=auto
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/J2EEApplicationServerClient.java (added)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/J2EEApplicationServerClient.java Sat Oct 22 18:01:26 2011
@@ -0,0 +1,101 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.kalumet.ws.client;
+
+/**
+ * J2EE application server WS client.
+ */
+public class J2EEApplicationServerClient extends AbstractClient {
+
+    /**
+     * Default constructor.
+     *
+     * @param host the hostname or IP address of the Kalumet agent WS server.
+     * @param port the port number of the Kalumet agent WS server.
+     * @throws ClientException in case of communication failure.
+     */
+    public J2EEApplicationServerClient(String host, int port) throws ClientException {
+        super("http://" + host + ":" + port + "/axis/services/J2EEApplicationServerService");
+    }
+
+    /**
+     * Wrapper method to stop a J2EE application server.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @throws ClientException in case of stop failure.
+     */
+    public void stop(String environmentName, String applicationServerName) throws ClientException {
+        try {
+            call.invoke("stop", new Object[]{ environmentName, applicationServerName });
+        } catch (Exception e) {
+            throw new ClientException("J2EE application server " + applicationServerName + " stop failed", e);
+        }
+    }
+
+    /**
+     * Wrapper method to start a J2EE application server.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @throws ClientException in case of stop failure.
+     */
+    public void start(String environmentName, String applicationServerName) throws ClientException {
+        try {
+            call.invoke("start", new Object[]{ environmentName, applicationServerName });
+        } catch (Exception e) {
+            throw new ClientException("J2EE application server " + applicationServerName + " start failed", e);
+        }
+    }
+
+    /**
+     * Wrapper method to check the status of a J2EE application server.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @return the current status of the J2EE application server.
+     * @throws ClientException in case of status check failure.
+     */
+    public String status(String environmentName, String applicationServerName) throws ClientException {
+        String status = null;
+        try {
+            status = (String) call.invoke("status", new Object[]{ environmentName, applicationServerName });
+        } catch (Exception e) {
+            throw new ClientException("J2EE application server " + applicationServerName + " status check failed", e);
+        }
+        return status;
+    }
+
+    /**
+     * Wrapper method to update a J2EE application server.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @param delegation if true, the call is a delegation from another agent, false else.
+     * @throws ClientException in case of update failure.
+     */
+    public void update(String environmentName, String applicationServerName, boolean delegation) throws ClientException {
+        try {
+            call.invoke("update", new Object[]{ environmentName, applicationServerName, new Boolean(delegation) });
+        } catch (Exception e) {
+            throw new ClientException("J2EE application server " + applicationServerName + " update failed", e);
+        }
+    }
+
+}

Copied: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JDBCConnectionPoolClient.java (from r1187715, incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/ConnectionPoolClient.java)
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JDBCConnectionPoolClient.java?p2=incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JDBCConnectionPoolClient.java&p1=incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/ConnectionPoolClient.java&r1=1187715&r2=1187742&rev=1187742&view=diff
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/ConnectionPoolClient.java (original)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JDBCConnectionPoolClient.java Sat Oct 22 18:01:26 2011
@@ -19,9 +19,9 @@
 package org.apache.kalumet.ws.client;
 
 /**
- * J2EE application server Connection pool WS client.
+ * J2EE application server JDBC connection pool WS client.
  */
-public class ConnectionPoolClient extends AbstractClient {
+public class JDBCConnectionPoolClient extends AbstractClient {
 
     /**
      * Default constructor.
@@ -30,12 +30,12 @@ public class ConnectionPoolClient extend
      * @param port port number of the Kalumet agent WS server.
      * @throws ClientException in case of communication failure.
      */
-    public ConnectionPoolClient(String host, int port) throws ClientException {
-        super("http://" + host + ":" + port + "/axis/services/J2EEApplicationServerConnectionPoolService");
+    public JDBCConnectionPoolClient(String host, int port) throws ClientException {
+        super("http://" + host + ":" + port + "/axis/services/JDBCConnectionPoolService");
     }
 
     /**
-     * Wrapper method to update a connection pool in the J2EE application server.
+     * Wrapper method to update a JDBC connection pool.
      *
      * @param environmentName the target environment name.
      * @param applicationServerName the target J2EE application server name.
@@ -46,12 +46,12 @@ public class ConnectionPoolClient extend
         try {
             call.invoke("update", new Object[]{ environmentName, applicationServerName, connectionPoolName });
         } catch (Exception e) {
-            throw new ClientException("Connection pool " + connectionPoolName + " update failed", e);
+            throw new ClientException("JDBC connection pool " + connectionPoolName + " update failed", e);
         }
     }
 
     /**
-     * Wrapper method to check if a connection pool is up to date or not.
+     * Wrapper method to check if a JDBC connection pool is up to date or not.
      *
      * @param environmentName the target environment name.
      * @param applicationServerName the target J2EE application server name.
@@ -64,7 +64,7 @@ public class ConnectionPoolClient extend
         try {
             upToDate = ((Boolean) call.invoke("check", new Object[]{ environmentName, applicationServerName, connectionPoolName })).booleanValue();
         } catch (Exception e) {
-            throw new ClientException("Connection pool " + connectionPoolName + " status check failed", e);
+            throw new ClientException("JDBC connection pool " + connectionPoolName + " status check failed", e);
         }
         return upToDate;
     }

Added: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JDBCDataSourceClient.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JDBCDataSourceClient.java?rev=1187742&view=auto
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JDBCDataSourceClient.java (added)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JDBCDataSourceClient.java Sat Oct 22 18:01:26 2011
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.kalumet.ws.client;
+
+/**
+ * JDBCDataSource WS client.
+ */
+public class JDBCDataSourceClient extends AbstractClient {
+
+    /**
+     * Default constructor.
+     *
+     * @param host the hostname or IP address of the Kalumet agent WS server.
+     * @param port the port number of the Kalumet agent WS server.
+     * @throws ClientException in case of communication failure.
+     */
+    public JDBCDataSourceClient(String host, int port) throws ClientException {
+        super("http://" + host + ":" + port + "/axis/services/JDBCDataSourceService");
+    }
+
+    /**
+     * Wrapper method to update a JDBC data source.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @param dataSourceName the target data source name.
+     * @throws ClientException in case of update failure.
+     */
+    public void update(String environmentName, String applicationServerName, String dataSourceName) throws ClientException {
+        try {
+            call.invoke("update", new Object[]{ environmentName, applicationServerName, dataSourceName });
+        } catch (Exception e) {
+            throw new ClientException("JDBC data source " + dataSourceName + " update failed", e);
+        }
+    }
+
+    /**
+     * Wrapper method to check if a JDBC data source is up to date or not.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @param dataSourceName the target data source name.
+     * @return true if the data source is up to date, false else.
+     * @throws ClientException in case of check failure.
+     */
+    public boolean check(String environmentName, String applicationServerName, String dataSourceName) throws ClientException {
+        boolean upToDate = false;
+        try {
+            upToDate = ((Boolean) call.invoke("check", new Object[]{ environmentName, applicationServerName, dataSourceName })).booleanValue();
+        } catch (Exception e) {
+            throw new ClientException("JDBC data source " + dataSourceName + " status check failed", e);
+        }
+        return upToDate;
+    }
+
+}

Added: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JMSConnectionFactoryClient.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JMSConnectionFactoryClient.java?rev=1187742&view=auto
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JMSConnectionFactoryClient.java (added)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JMSConnectionFactoryClient.java Sat Oct 22 18:01:26 2011
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.kalumet.ws.client;
+
+/**
+ * JMS connection factory WS client.
+ */
+public class JMSConnectionFactoryClient extends AbstractClient {
+
+    /**
+     * Default constructor.
+     *
+     * @param host the hostname or IP address of the Kalumet agent WS server.
+     * @param port the port number of the Kalumet agent WS server.
+     * @throws ClientException in case of communication failure.
+     */
+    public JMSConnectionFactoryClient(String host, int port) throws ClientException {
+        super("http://" + host + ":" + port + "/axis/services/JMSConnectionFactoryService");
+    }
+
+    /**
+     * Wrapper method to update a JMS connection factory.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @param connectionFactoryName the target JMS connection factory.
+     * @throws ClientException in case of update failure.
+     */
+    public void update(String environmentName, String applicationServerName, String connectionFactoryName) throws ClientException {
+        try {
+            call.invoke("update", new Object[]{ environmentName, applicationServerName, connectionFactoryName });
+        } catch (Exception e) {
+            throw new ClientException("JMS connection factory " + connectionFactoryName + " update failed", e);
+        }
+    }
+
+    /**
+     * Wrapper method to check if a JMS connection factory is up to date or not.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @param connectionFactoryName the target JMS connection factory name.
+     * @return true if the JMS connection factory is up to date, false else.
+     * @throws ClientException in case of status check failure.
+     */
+    public boolean check(String environmentName, String applicationServerName, String connectionFactoryName) throws ClientException {
+        boolean upToDate = false;
+        try {
+            upToDate = ((Boolean) call.invoke("check", new Object[]{ environmentName, applicationServerName, connectionFactoryName })).booleanValue();
+        } catch (Exception e) {
+            throw new ClientException("JMS connection factory " + connectionFactoryName + " status check failed", e);
+        }
+        return upToDate;
+    }
+
+}

Added: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JMSServerClient.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JMSServerClient.java?rev=1187742&view=auto
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JMSServerClient.java (added)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JMSServerClient.java Sat Oct 22 18:01:26 2011
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.kalumet.ws.client;
+
+/**
+ * JMS server WS client.
+ */
+public class JMSServerClient extends AbstractClient {
+
+    /**
+     * Default constructor.
+     *
+     * @param host the hostname or IP address of the Kalumet agent WS server.
+     * @param port the port number of the Kalumet agent WS server.
+     * @throws ClientException in case of communication failure.
+     */
+    public JMSServerClient(String host, int port) throws ClientException {
+        super("http://" + host + ":" + port + "/axis/services/JMSServerService");
+    }
+
+    /**
+     * Wrapper method to update a JMS server.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @param jmsServerName the target JMS server name.
+     * @throws ClientException in case of update failure.
+     */
+    public void update(String environmentName, String applicationServerName, String jmsServerName) throws ClientException {
+        try {
+            call.invoke("update", new Object[]{ environmentName, applicationServerName, jmsServerName });
+        } catch (Exception e) {
+            throw new ClientException("JMS server " + jmsServerName + " update failed", e);
+        }
+    }
+
+    /**
+     * Wrapper method to check if a JMS server is up to date or not.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @param jmsServerName the target JMS server name.
+     * @return true if the JMS server is up to date, false else.
+     * @throws ClientException in case of status check failure.
+     */
+    public boolean check(String environmentName, String applicationServerName, String jmsServerName) throws ClientException {
+        boolean upToDate = false;
+        try {
+            upToDate = ((Boolean) call.invoke("check", new Object[]{ environmentName, applicationServerName, jmsServerName })).booleanValue();
+        } catch (Exception e) {
+            throw new ClientException("JMS server " + jmsServerName + " status check failed", e);
+        }
+        return upToDate;
+    }
+
+}

Added: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JNDIBindingClient.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JNDIBindingClient.java?rev=1187742&view=auto
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JNDIBindingClient.java (added)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/JNDIBindingClient.java Sat Oct 22 18:01:26 2011
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.kalumet.ws.client;
+
+/**
+ * JNDI binding WS client.
+ */
+public class JNDIBindingClient extends AbstractClient {
+
+    /**
+     * Default constructor.
+     *
+     * @param host the hostname or IP address of the Kalumet agent WS server.
+     * @param port the port number of the Kalumet agent WS server.
+     * @throws ClientException in case of communication failure.
+     */
+    public JNDIBindingClient(String host, int port) throws ClientException {
+        super("http://" + host + ":" + port + "/axis/services/JNDIBindingService");
+    }
+
+    /**
+     * Wrapper method to update a JNDI binding.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @param jndiBindingName the target JNDI binding name.
+     * @throws ClientException in case of update failure.
+     */
+    public void update(String environmentName, String applicationServerName, String jndiBindingName) throws ClientException {
+        try {
+            call.invoke("update", new Object[]{ environmentName, applicationServerName, jndiBindingName });
+        } catch (Exception e) {
+            throw new ClientException("JNDI binding " + jndiBindingName + " update failed", e);
+        }
+    }
+
+    /**
+     * Wrapper method to check if a JNDI binding is up to date or not.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @param jndiBindingName the target JNDI binding name.
+     * @return true of the JNDI binding is up to date, false else.
+     * @throws ClientException in case of status check failure.
+     */
+    public boolean check(String environmentName, String applicationServerName, String jndiBindingName) throws ClientException {
+        boolean upToDate = false;
+        try {
+            upToDate = ((Boolean) call.invoke("check", new Object[]{ environmentName, applicationServerName, jndiBindingName })).booleanValue();
+        } catch (Exception e) {
+            throw new ClientException("JNDI binding " + jndiBindingName + " status check failed", e);
+        }
+        return upToDate;
+    }
+
+}

Added: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/SharedLibraryClient.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/SharedLibraryClient.java?rev=1187742&view=auto
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/SharedLibraryClient.java (added)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/SharedLibraryClient.java Sat Oct 22 18:01:26 2011
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.kalumet.ws.client;
+
+/**
+ * Shared library WS client.
+ */
+public class SharedLibraryClient extends AbstractClient {
+
+    /**
+     * Default constructor.
+     *
+     * @param host the hostname or IP address of the Kalumet agent WS server.
+     * @param port the port number of the Kalumet agent WS server.
+     * @throws ClientException in case of communication failure.
+     */
+    public SharedLibraryClient(String host, int port) throws ClientException {
+        super("http://" + host + ":" + port + "/axis/services/SharedLibraryService");
+    }
+
+    /**
+     * Wrapper method to update a shared library.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @param sharedLibraryName the target shared library name.
+     * @throws ClientException in case of update failure.
+     */
+    public void update(String environmentName, String applicationServerName, String sharedLibraryName) throws ClientException {
+        try {
+            call.invoke("update", new Object[]{ environmentName, applicationServerName, sharedLibraryName });
+        } catch (Exception e) {
+            throw new ClientException("Shared library " + sharedLibraryName + " update failed", e);
+        }
+    }
+
+    /**
+     * Wrapper method to check if a shared library is up to date or not.
+     *
+     * @param environmentName the target environment name.
+     * @param applicationServerName the target J2EE application server name.
+     * @param sharedLibraryName the target shared library name.
+     * @return true if the shared library is up to date, false else.
+     * @throws ClientException in case of status check failure.
+     */
+    public boolean check(String environmentName, String applicationServerName, String sharedLibraryName) throws ClientException {
+        boolean upToDate = false;
+        try {
+            upToDate = ((Boolean) call.invoke("check", new Object[]{ environmentName, applicationServerName, sharedLibraryName })).booleanValue();
+        } catch (Exception e) {
+            throw new ClientException("Shared library " + sharedLibraryName + " status check failed", e);
+        }
+        return upToDate;
+    }
+
+}

Added: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/SimplifiedFileObject.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/SimplifiedFileObject.java?rev=1187742&view=auto
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/SimplifiedFileObject.java (added)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/SimplifiedFileObject.java Sat Oct 22 18:01:26 2011
@@ -0,0 +1,75 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.kalumet.ws.client;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * Simplified VFS file object to be used via WS.
+ */
+public class SimplifiedFileObject implements Serializable {
+
+    private String name;
+    private String path;
+    private boolean file;
+    private long size;
+    private Date lastModificationDate;
+
+    public String getName() {
+        return this.name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getPath() {
+        return this.path;
+    }
+
+    public void setPath(String path) {
+        this.path = path;
+    }
+
+    public boolean isFile() {
+        return this.file;
+    }
+
+    public void setFile(boolean file) {
+        this.file = file;
+    }
+
+    public Date getLastModificationDate() {
+        return this.lastModificationDate;
+    }
+
+    public void setLastModificationDate(Date lastModificationDate) {
+        this.lastModificationDate = lastModificationDate;
+    }
+
+    public long getSize() {
+        return this.size;
+    }
+
+    public void setSize(long size) {
+        this.size = size;
+    }
+
+}

Added: incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/SoftwareClient.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/SoftwareClient.java?rev=1187742&view=auto
==============================================================================
--- incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/SoftwareClient.java (added)
+++ incubator/kalumet/trunk/common/src/main/java/org/apache/kalumet/ws/client/SoftwareClient.java Sat Oct 22 18:01:26 2011
@@ -0,0 +1,120 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.kalumet.ws.client;
+
+/**
+ * Software WS client.
+ */
+public class SoftwareClient extends AbstractClient {
+
+    /**
+     * Default constructor.
+     *
+     * @param host the hostname or IP address of the Kalumet agent WS server.
+     * @param port the port number of the Kalumet agent WS server.
+     * @throws ClientException in case of communication failure.
+     */
+    public SoftwareClient(String host, int port) throws ClientException {
+        super("http://" + host + ":" + port + "/axis/services/SoftwareService");
+    }
+
+    /**
+     * Wrapper method to update a software.
+     *
+     * @param environmentName the target environment name.
+     * @param softwareName the target software name.
+     * @param delegation true if the call is performed by another agent, false else.
+     * @throws ClientException in case of update failure.
+     */
+    public void update(String environmentName, String softwareName, boolean delegation) throws ClientException {
+        try {
+            call.invoke("update", new Object[]{ environmentName, softwareName, new Boolean(delegation) });
+        } catch (Exception e) {
+            throw new ClientException("Software " + softwareName + " update failed", e);
+        }
+    }
+
+    /**
+     * Wrapper method to execute a command.
+     *
+     * @param environmentName the target environment name.
+     * @param softwareName the target software name.
+     * @param commandName the target command name.
+     * @param delegation true if the call is performed by another agent, false else.
+     * @throws ClientException in case of command execution failure.
+     */
+    public void executeCommand(String environmentName, String softwareName, String commandName, boolean delegation) throws ClientException {
+        try {
+            call.invoke("executeCommand", new Object[]{ environmentName, softwareName, commandName, new Boolean(delegation) });
+        } catch (Exception e) {
+            throw new ClientException("Command " + commandName + " execution failed", e);
+        }
+    }
+
+    /**
+     * Wrapper method to update a location.
+     *
+     * @param environmentName the target environment name.
+     * @param softwareName the target software name.
+     * @param locationName the target location name.
+     * @param delegation true if the call is performed by another agent, false else.
+     * @throws ClientException in case of location update failure.
+     */
+    public void updateLocation(String environmentName, String softwareName, String locationName, boolean delegation) throws ClientException {
+        try {
+            call.invoke("updateLocation", new Object[]{ environmentName, softwareName, locationName, new Boolean(delegation) });
+        } catch (Exception e) {
+            throw new ClientException("Location " + locationName + " update failed", e);
+        }
+    }
+
+    /**
+     * Wrapper method to update a configuration file.
+     *
+     * @param environmentName the target environment name.
+     * @param softwareName the target software name.
+     * @param configurationFileName the target configuration file name.
+     * @param delegation true if the call is performed by another agent, false else.
+     * @throws ClientException in case of configuration file update failure.
+     */
+    public void updateConfigurationFile(String environmentName, String softwareName, String configurationFileName, boolean delegation) throws ClientException {
+        try {
+            call.invoke("updateConfigurationFile", new Object[]{ environmentName, softwareName, configurationFileName, new Boolean(delegation) });
+        } catch (Exception e) {
+            throw new ClientException("Configuration file " + configurationFileName + " update failed", e);
+        }
+    }
+
+    /**
+     * Wrapper method to update a database.
+     * @param environmentName the target environment name.
+     * @param softwareName the target software name.
+     * @param databaseName the target database name.
+     * @param delegation true if the call is performed by another agent, false else.
+     * @throws ClientException in case of database update failure.
+     */
+    public void updateDatabase(String environmentName, String softwareName, String databaseName, boolean delegation) throws ClientException {
+        try {
+            call.invoke("updateDatabase", new Object[]{ environmentName, softwareName, databaseName, new Boolean(delegation) });
+        } catch (Exception e) {
+            throw new ClientException("Database " + databaseName + " update failed", e);
+        }
+    }
+
+}



Mime
View raw message