Skip to Content.
Sympa Menu

perfsonar-dev - r1451 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager

Subject: perfsonar development work

List archive

r1451 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager


Chronological Thread 
  • From:
  • To:
  • Subject: r1451 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager
  • Date: Tue, 18 Jul 2006 09:54:43 -0400

Author: mac
Date: 2006-07-18 09:54:43 -0400 (Tue, 18 Jul 2006)
New Revision: 1451

Modified:

trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager/MetadataConfigurationStorageManager.java
Log:
changes for support new storage managers.

Modified:
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager/MetadataConfigurationStorageManager.java
===================================================================
---
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager/MetadataConfigurationStorageManager.java
2006-07-18 13:46:45 UTC (rev 1450)
+++
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager/MetadataConfigurationStorageManager.java
2006-07-18 13:54:43 UTC (rev 1451)
@@ -58,7 +58,37 @@

static {

- // loading the component ExistDbXmlStorageManager
+// /* ---------------------- */
+// /* Roman, */
+// /* TRY SOMETING LIKE THIS */
+// /* ---------------------- */
+//
+// import
org.perfsonar.service.commons.storage.xmldb.XmlDbDataRepository;
+// import
org.perfsonar.service.commons.storage.xmldb.XmlDbStorageManager;
+// import
org.perfsonar.service.commons.storage.xmldb.exist.ExistDbFactory;
+//
+// protected XmlDbStorageManager getStorageManager(String type)
+// throws SystemException {
+//
+// XmlDbDataRepository dataRepository =
+// ExistDbFactory.getDataRepositoryByProperties(
+// smType,
+// "service.ma.db_uri",
+// "service.ma.db_username",
+// "service.ma.db_password");
+//
+// XmlDbStorageManager storageManager =
+// ExistDbFactory.getXMLStorageManager(
+// type, dataRepository);
+// storageManager.setResultType(
+// XmlDbStorageManager.STRING_ARRAY_RESULT_TYPE);
+//
+// return storageManager;
+//
+// }
+
+
+ // loading the component ExistDbXmlrpcXmlStorageManager
// to have xml db (eXsit) access

try {
@@ -79,13 +109,13 @@
getInstance().
loadComponent(
"ma.xmldb",
-
"org.perfsonar.service.commons.storage.xmldb.exist.ExistDbXmlStorageManager");
+
"org.perfsonar.service.commons.storage.xmldb.exist.xmlrpc.ExistDbXmlrpcXmlStorageManager");
else
AuxiliaryComponentManager.
getInstance().
loadComponent(
"ma.xmldb",
-
"org.perfsonar.service.commons.storage.xmldb.existHttp.ExistDbXmlStorageManager");
+
"org.perfsonar.service.commons.storage.xmldb.exist.rest.ExistDbHttpXmlStorageManager");


((AuxiliaryComponent)
@@ -99,7 +129,7 @@
getInstance().

getComponent(ComponentNames.LOGGER)).

debug("MetadataConfigurationStorageManager: "
- +
"ExistDbXmlStorageManager component loaded");
+ +
"ExistDbXmlrpcXmlStorageManager component loaded");

} catch (SystemException sex) {
;



  • r1451 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager, svnlog, 07/18/2006

Archive powered by MHonArc 2.6.16.

Top of Page