[savara-commits] savara SVN: r595 - in branches/experimental/2.0.x/bundles: org.savara.monitor.sstore.rdbms and 11 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Jan 18 15:59:28 EST 2011
Author: objectiser
Date: 2011-01-18 15:59:27 -0500 (Tue, 18 Jan 2011)
New Revision: 595
Added:
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.classpath
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.project
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.settings/
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.settings/org.eclipse.jdt.core.prefs
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.settings/org.eclipse.pde.core.prefs
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/Copyright.txt
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/META-INF/
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/META-INF/MANIFEST.MF
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/build.properties
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/pom.xml
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/monitor/
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/monitor/sstore/
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/monitor/sstore/rdbms/
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/monitor/sstore/rdbms/RDBMSSessionStore.java
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/monitor/sstore/rdbms/osgi/
branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/monitor/sstore/rdbms/osgi/Activator.java
Modified:
branches/experimental/2.0.x/bundles/pom.xml
Log:
Added OSGi bundle skeleton for RDBMS implementation of the monitor's SessionStore interface.
Added: branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.classpath
===================================================================
--- branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.classpath (rev 0)
+++ branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.classpath 2011-01-18 20:59:27 UTC (rev 595)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.project
===================================================================
--- branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.project (rev 0)
+++ branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.project 2011-01-18 20:59:27 UTC (rev 595)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.savara.monitor.sstore.rdbms</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.settings/org.eclipse.jdt.core.prefs 2011-01-18 20:59:27 UTC (rev 595)
@@ -0,0 +1,8 @@
+#Tue Jan 18 20:30:57 GMT 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Added: branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.settings/org.eclipse.pde.core.prefs
===================================================================
--- branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.settings/org.eclipse.pde.core.prefs (rev 0)
+++ branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/.settings/org.eclipse.pde.core.prefs 2011-01-18 20:59:27 UTC (rev 595)
@@ -0,0 +1,5 @@
+#Tue Jan 18 20:30:57 GMT 2011
+eclipse.preferences.version=1
+pluginProject.equinox=false
+pluginProject.extensions=false
+resolve.requirebundle=false
Added: branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/Copyright.txt
===================================================================
--- branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/Copyright.txt (rev 0)
+++ branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/Copyright.txt 2011-01-18 20:59:27 UTC (rev 595)
@@ -0,0 +1,17 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
Added: branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/META-INF/MANIFEST.MF
===================================================================
--- branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/META-INF/MANIFEST.MF (rev 0)
+++ branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/META-INF/MANIFEST.MF 2011-01-18 20:59:27 UTC (rev 595)
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: SAVARA Monitor SessionStore RDBMS
+Bundle-SymbolicName: org.savara.monitor.sstore.rdbms
+Bundle-Version: 2.0.0.SNAPSHOT
+Bundle-Activator: org.savara.monitor.sstore.rdbms.osgi.Activator
+Bundle-Vendor: www.savara.org
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Import-Package: org.osgi.framework;version="1.3.0"
+Require-Bundle: org.savara.common,
+ org.savara.monitor
Added: branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/build.properties
===================================================================
--- branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/build.properties (rev 0)
+++ branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/build.properties 2011-01-18 20:59:27 UTC (rev 595)
@@ -0,0 +1,4 @@
+source.. = src/main/java/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Added: branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/pom.xml
===================================================================
--- branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/pom.xml (rev 0)
+++ branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/pom.xml 2011-01-18 20:59:27 UTC (rev 595)
@@ -0,0 +1,39 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.savara.bundles</groupId>
+ <artifactId>org.savara.monitor.sstore.rdbms</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>Savara::Bundles::Monitor-SessionStore-RDBMS</name>
+
+ <parent>
+ <groupId>org.savara</groupId>
+ <artifactId>bundles</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ </parent>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.savara.bundles</groupId>
+ <artifactId>org.savara.common</artifactId>
+ <version>${savara.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.savara.bundles</groupId>
+ <artifactId>org.savara.monitor</artifactId>
+ <version>${savara.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ <version>${osgi.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Added: branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/monitor/sstore/rdbms/RDBMSSessionStore.java
===================================================================
--- branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/monitor/sstore/rdbms/RDBMSSessionStore.java (rev 0)
+++ branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/monitor/sstore/rdbms/RDBMSSessionStore.java 2011-01-18 20:59:27 UTC (rev 595)
@@ -0,0 +1,107 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+package org.savara.monitor.sstore.rdbms;
+
+import org.savara.common.config.Configuration;
+import org.savara.monitor.ConversationInstanceId;
+import org.savara.monitor.ProtocolId;
+import org.savara.monitor.SessionStore;
+
+/**
+ * This class defines the RDBMS implementation of the SessionStore
+ * interface.
+ *
+ */
+public class RDBMSSessionStore implements SessionStore {
+
+ /**
+ * This method sets the configuration for use by the session
+ * store.
+ *
+ * @param config The configuration
+ * @throws IOException Failed to initialize session store
+ */
+ public void initialize(Configuration config) throws java.io.IOException {
+ }
+
+ /**
+ * This method returns a new session associated with
+ * the supplied protocol and conversation instance id.
+ *
+ * @param pid The protocol id
+ * @param cid The conversation instance id
+ * @return The session
+ * @throws IllegalArgumentException Protocol or conversation instance id is invalid
+ * @throws IOException Failed to create new session
+ */
+ public java.io.Serializable create(ProtocolId pid, ConversationInstanceId cid)
+ throws IllegalArgumentException, java.io.IOException {
+ return(null);
+ }
+
+ /**
+ * This method returns an existing session associated with
+ * the supplied protocol and conversation instance id.
+ *
+ * @param pid The protocol id
+ * @param cid The conversation instance id
+ * @return The session
+ * @throws IllegalArgumentException Protocol or conversation instance id is invalid
+ * @throws IOException Failed to retrieve session
+ */
+ public java.io.Serializable find(ProtocolId pid, ConversationInstanceId cid)
+ throws IllegalArgumentException, java.io.IOException {
+ return(null);
+ }
+
+ /**
+ * This method removes an existing session associated
+ * with the supplied protocol and conversation instance id.
+ *
+ * @param pid The protocol id
+ * @param cid The conversation instance id
+ * @throws IllegalArgumentException Conversation instance id is invalid or unknown
+ * @throws java.io.IOException Failed to remove existing session
+ */
+ public void remove(ProtocolId pid, ConversationInstanceId cid)
+ throws IllegalArgumentException, java.io.IOException {
+ }
+
+ /**
+ * This method updates an existing session associated
+ * with the supplied protocol and conversation instance id.
+ *
+ * @param pid The protocol id
+ * @param cid The conversation instance id
+ * @param session The session
+ * @throws IllegalArgumentException Conversation instance id is invalid or unknown
+ * @throws java.io.IOException Failed to update existing session
+ */
+ public void update(ProtocolId pid, ConversationInstanceId cid,
+ java.io.Serializable session) throws IllegalArgumentException,
+ java.io.IOException {
+ }
+
+ /**
+ * This method closes the session store.
+ *
+ * @throws java.io.IOException Failed to close the session store
+ */
+ public void close() throws java.io.IOException {
+ }
+}
Added: branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/monitor/sstore/rdbms/osgi/Activator.java
===================================================================
--- branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/monitor/sstore/rdbms/osgi/Activator.java (rev 0)
+++ branches/experimental/2.0.x/bundles/org.savara.monitor.sstore.rdbms/src/main/java/org/savara/monitor/sstore/rdbms/osgi/Activator.java 2011-01-18 20:59:27 UTC (rev 595)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+package org.savara.monitor.sstore.rdbms.osgi;
+
+import java.util.Properties;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+import org.savara.monitor.SessionStore;
+import org.savara.monitor.sstore.rdbms.RDBMSSessionStore;
+
+public class Activator implements BundleActivator {
+
+ private static BundleContext context;
+
+ private ServiceRegistration m_serviceRegistration=null;
+
+ static BundleContext getContext() {
+ return context;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext bundleContext) throws Exception {
+ Activator.context = bundleContext;
+
+ // Register the SessionStore implementation
+ Properties props = new Properties();
+
+ SessionStore ss=new RDBMSSessionStore();
+
+ m_serviceRegistration = context.registerService(SessionStore.class.getName(),
+ ss, props);
+}
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext bundleContext) throws Exception {
+ Activator.context = null;
+
+ m_serviceRegistration.unregister();
+ }
+
+}
Modified: branches/experimental/2.0.x/bundles/pom.xml
===================================================================
--- branches/experimental/2.0.x/bundles/pom.xml 2011-01-18 20:27:34 UTC (rev 594)
+++ branches/experimental/2.0.x/bundles/pom.xml 2011-01-18 20:59:27 UTC (rev 595)
@@ -25,6 +25,7 @@
<module>org.savara.common</module>
<module>org.savara.contract</module>
<module>org.savara.monitor</module>
+ <module>org.savara.monitor.sstore.rdbms</module>
<module>org.savara.pi4soa.cdm</module>
<module>org.savara.scenario</module>
<module>org.savara.wsdl</module>
More information about the savara-commits
mailing list