[jboss-cvs] JBoss Messaging SVN: r3801 - in trunk: src/main/org/jboss/messaging/core/version and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Feb 26 12:02:27 EST 2008


Author: timfox
Date: 2008-02-26 12:02:27 -0500 (Tue, 26 Feb 2008)
New Revision: 3801

Added:
   trunk/src/main/org/jboss/messaging/core/config/Configuration.java
   trunk/src/main/org/jboss/messaging/core/version/Version.java
   trunk/tests/src/org/jboss/messaging/core/server/impl/test/unit/fakes/FakeQueueFactory.java
Log:
Addded missing files


Added: trunk/src/main/org/jboss/messaging/core/config/Configuration.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/config/Configuration.java	                        (rev 0)
+++ trunk/src/main/org/jboss/messaging/core/config/Configuration.java	2008-02-26 17:02:27 UTC (rev 3801)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.messaging.core.config;
+
+import java.util.List;
+
+/**
+ * 
+ * A Configuration
+ * 
+ * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ *
+ */
+public interface Configuration
+{
+	//TODO - finish this class
+	
+   int getMessagingServerID();
+      
+   String getSecurityDomain();
+   
+   List<String> getDefaultInterceptors();
+
+   long getMessageCounterSamplePeriod();   
+
+   int getDefaultMessageCounterHistoryDayLimit();
+  
+   boolean isStrictTck();
+   
+   boolean isClustered();
+   
+   int getScheduledThreadPoolMaxSize();
+        
+   long getSecurityInvalidationInterval();
+
+   int getRemotingBindAddress();   
+}

Added: trunk/src/main/org/jboss/messaging/core/version/Version.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/version/Version.java	                        (rev 0)
+++ trunk/src/main/org/jboss/messaging/core/version/Version.java	2008-02-26 17:02:27 UTC (rev 3801)
@@ -0,0 +1,31 @@
+/**
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package org.jboss.messaging.core.version;
+
+/**
+ * 
+ * A VersionImpl
+ * 
+ * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ *
+ */
+public interface Version
+{
+	String getFullVersion();
+	
+	String getVersionName();
+	
+	int getMajorVersion();
+	
+	int getMinorVersion();
+	
+	int getMicroVersion();
+	
+	String getVersionSuffix();
+	
+	int getIncrementingVersion();
+}

Added: trunk/tests/src/org/jboss/messaging/core/server/impl/test/unit/fakes/FakeQueueFactory.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/core/server/impl/test/unit/fakes/FakeQueueFactory.java	                        (rev 0)
+++ trunk/tests/src/org/jboss/messaging/core/server/impl/test/unit/fakes/FakeQueueFactory.java	2008-02-26 17:02:27 UTC (rev 3801)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.messaging.core.server.impl.test.unit.fakes;
+
+import java.util.concurrent.Executors;
+import java.util.concurrent.ScheduledExecutorService;
+
+import org.jboss.messaging.core.server.Filter;
+import org.jboss.messaging.core.server.Queue;
+import org.jboss.messaging.core.server.QueueFactory;
+import org.jboss.messaging.core.server.impl.QueueImpl;
+import org.jboss.messaging.core.settings.HierarchicalRepository;
+import org.jboss.messaging.core.settings.impl.HierarchicalObjectRepository;
+import org.jboss.messaging.core.settings.impl.QueueSettings;
+
+/**
+ * 
+ * A FakeQueueFactory
+ * 
+ * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ *
+ */
+public class FakeQueueFactory implements QueueFactory
+{
+	private final ScheduledExecutorService scheduledExecutor = Executors.newSingleThreadScheduledExecutor();
+
+   private final HierarchicalRepository<QueueSettings> queueSettings = 
+   	new HierarchicalObjectRepository<QueueSettings>();
+	
+	public Queue createQueue(long persistenceID, String name, Filter filter,
+			                   boolean durable, boolean temporary)
+	{
+		return new QueueImpl(persistenceID, name, filter, false, durable, temporary, -1,
+				scheduledExecutor, queueSettings);
+	}
+
+}




More information about the jboss-cvs-commits mailing list