[jboss-cvs] JBossAS SVN: r107270 - in projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache: impl and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Aug 2 12:07:01 EDT 2010


Author: pferraro
Date: 2010-08-02 12:07:00 -0400 (Mon, 02 Aug 2010)
New Revision: 107270

Added:
   projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/
   projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/BatchingManagerImpl.java
   projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/IncomingDistributableSessionDataImpl.java
   projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/SessionAttributeMarshallerFactoryImpl.java
   projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/SessionAttributeMarshallerImpl.java
   projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/spi/SessionAttributeMarshaller.java
   projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/spi/SessionAttributeMarshallerFactory.java
Modified:
   projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/spi/TestDistributedCacheManagerFactory.java
Log:
Migrate SessionAttributeMarshaller here from ha-server-cache-ispn.
Add impl package for default spi implementations.

Copied: projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/BatchingManagerImpl.java (from rev 107268, projects/cluster/ha-server-cache-ispn/trunk/src/main/java/org/jboss/ha/web/tomcat/service/session/distributedcache/impl/BatchingManagerImpl.java)
===================================================================
--- projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/BatchingManagerImpl.java	                        (rev 0)
+++ projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/BatchingManagerImpl.java	2010-08-02 16:07:00 UTC (rev 107270)
@@ -0,0 +1,109 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.web.tomcat.service.session.distributedcache.impl;
+
+import javax.transaction.RollbackException;
+import javax.transaction.Status;
+import javax.transaction.TransactionManager;
+
+import org.jboss.logging.Logger;
+import org.jboss.web.tomcat.service.session.distributedcache.spi.BatchingManager;
+
+/**
+ * @author Paul Ferraro
+ */
+public class BatchingManagerImpl implements BatchingManager
+{
+   private static final Logger log = Logger.getLogger(BatchingManagerImpl.class);
+   
+   private final TransactionManager tm;
+   
+   public BatchingManagerImpl(TransactionManager tm)
+   {
+      this.tm = tm;
+   }
+   
+   /**
+    * {@inheritDoc}
+    * @see org.jboss.web.tomcat.service.session.distributedcache.spi.BatchingManager#isBatchInProgress()
+    */
+   @Override
+   public boolean isBatchInProgress() throws Exception
+   {
+      return this.tm.getTransaction() != null;
+   }
+
+   /**
+    * {@inheritDoc}
+    * @see org.jboss.web.tomcat.service.session.distributedcache.spi.BatchingManager#startBatch()
+    */
+   @Override
+   public void startBatch() throws Exception
+   {
+      this.tm.begin();
+   }
+
+   /**
+    * {@inheritDoc}
+    * @see org.jboss.web.tomcat.service.session.distributedcache.spi.BatchingManager#setBatchRollbackOnly()
+    */
+   @Override
+   public void setBatchRollbackOnly() throws Exception
+   {
+      this.tm.setRollbackOnly();
+   }
+
+   /**
+    * {@inheritDoc}
+    * @see org.jboss.web.tomcat.service.session.distributedcache.spi.BatchingManager#endBatch()
+    */
+   @Override
+   public void endBatch()
+   {
+      try
+      {
+         if (this.tm.getTransaction().getStatus() != Status.STATUS_MARKED_ROLLBACK)
+         {
+            this.tm.commit();
+         }
+         else
+         {
+            log.debug("endBatch(): rolling back batch");
+            
+            this.tm.rollback();
+         }
+      }
+      catch (RollbackException e)
+      {
+         // Do nothing here since cache may rollback automatically.
+         log.warn("endBatch(): rolling back transaction with exception", e);
+      }
+      catch (RuntimeException e)
+      {
+         throw e;
+      }
+      catch (Exception e)
+      {
+         throw new RuntimeException("endTransaction(): Caught Exception ending batch: ", e);
+      }
+   }
+}

Copied: projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/IncomingDistributableSessionDataImpl.java (from rev 107268, projects/cluster/ha-server-cache-ispn/trunk/src/main/java/org/jboss/ha/web/tomcat/service/session/distributedcache/impl/IncomingDistributableSessionDataImpl.java)
===================================================================
--- projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/IncomingDistributableSessionDataImpl.java	                        (rev 0)
+++ projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/IncomingDistributableSessionDataImpl.java	2010-08-02 16:07:00 UTC (rev 107270)
@@ -0,0 +1,117 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.web.tomcat.service.session.distributedcache.impl;
+
+import java.util.Map;
+
+import org.jboss.web.tomcat.service.session.distributedcache.spi.DistributableSessionMetadata;
+import org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData;
+
+
+/**
+ * Base implementation of {@link DistributableSessionData}.
+ * 
+ * @author Brian Stansberry
+ */
+public class IncomingDistributableSessionDataImpl implements IncomingDistributableSessionData
+{
+   private final int version;
+   private final long timestamp;
+   private final DistributableSessionMetadata metadata;
+   private volatile Map<String, Object> attributes;
+   
+   public IncomingDistributableSessionDataImpl(Integer version, Long timestamp, DistributableSessionMetadata metadata)
+   {
+      assert version != null : "version is null";
+      assert timestamp != null : "timestamp is null";
+      assert metadata != null : "metadata is null";
+      
+      this.version = version.intValue();
+      this.timestamp = timestamp.longValue();
+      this.metadata = metadata;
+   }
+
+   /**
+    * {@inheritDoc}
+    * @see org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData#providesSessionAttributes()
+    */
+   @Override
+   public boolean providesSessionAttributes()
+   {
+      return this.attributes != null;
+   }
+
+   /**
+    * {@inheritDoc}
+    * @see org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData#getSessionAttributes()
+    */
+   @Override
+   public Map<String, Object> getSessionAttributes()
+   {
+      if (this.attributes == null)
+      {
+         throw new IllegalStateException("Not configured to provide session attributes");
+      }
+      
+      return attributes;
+   }   
+
+   /**
+    * Sets the session attributes.
+    * @param attributes a map of session attributes
+    */
+   public void setSessionAttributes(Map<String, Object> attributes)
+   {
+      this.attributes = attributes;
+   }
+   
+   /**
+    * {@inheritDoc}
+    * @see org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData#getMetadata()
+    */
+   @Override
+   public DistributableSessionMetadata getMetadata()
+   {
+      return metadata;
+   }
+
+   /**
+    * {@inheritDoc}
+    * @see org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData#getTimestamp()
+    */
+   @Override
+   public long getTimestamp()
+   {
+      return timestamp;
+   }
+
+   /**
+    * {@inheritDoc}
+    * @see org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData#getVersion()
+    */
+   @Override
+   public int getVersion()
+   {
+      return version;
+   }
+}

Copied: projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/SessionAttributeMarshallerFactoryImpl.java (from rev 107268, projects/cluster/ha-server-cache-ispn/trunk/src/main/java/org/jboss/ha/web/tomcat/service/session/distributedcache/impl/SessionAttributeMarshallerFactoryImpl.java)
===================================================================
--- projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/SessionAttributeMarshallerFactoryImpl.java	                        (rev 0)
+++ projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/SessionAttributeMarshallerFactoryImpl.java	2010-08-02 16:07:00 UTC (rev 107270)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.web.tomcat.service.session.distributedcache.impl;
+
+import org.jboss.ha.framework.interfaces.ObjectStreamSource;
+import org.jboss.ha.framework.server.MarshalledValueObjectStreamSource;
+import org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager;
+import org.jboss.web.tomcat.service.session.distributedcache.spi.SessionAttributeMarshaller;
+import org.jboss.web.tomcat.service.session.distributedcache.spi.SessionAttributeMarshallerFactory;
+
+/**
+ * Default factory for creating session attribute marshallers.
+ * @author Paul Ferraro
+ */
+public class SessionAttributeMarshallerFactoryImpl implements SessionAttributeMarshallerFactory
+{
+   private final ObjectStreamSource source;
+   
+   public SessionAttributeMarshallerFactoryImpl()
+   {
+      this(new MarshalledValueObjectStreamSource());
+   }
+   
+   public SessionAttributeMarshallerFactoryImpl(ObjectStreamSource source)
+   {
+      this.source = source;
+   }
+   
+   /**
+    * {@inheritDoc}
+    * @see org.jboss.web.tomcat.service.session.distributedcache.spi.SessionAttributeMarshallerFactory#createMarshaller(org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager)
+    */
+   @Override
+   public SessionAttributeMarshaller createMarshaller(LocalDistributableSessionManager manager)
+   {
+      return new SessionAttributeMarshallerImpl(manager, this.source);
+   }
+}

Copied: projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/SessionAttributeMarshallerImpl.java (from rev 107268, projects/cluster/ha-server-cache-ispn/trunk/src/main/java/org/jboss/ha/web/tomcat/service/session/distributedcache/impl/SessionAttributeMarshallerImpl.java)
===================================================================
--- projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/SessionAttributeMarshallerImpl.java	                        (rev 0)
+++ projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/SessionAttributeMarshallerImpl.java	2010-08-02 16:07:00 UTC (rev 107270)
@@ -0,0 +1,96 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.web.tomcat.service.session.distributedcache.impl;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.security.AccessController;
+
+import org.jboss.ha.framework.interfaces.ObjectStreamSource;
+import org.jboss.ha.framework.server.MarshalledValueHelper;
+import org.jboss.ha.framework.server.SimpleCachableMarshalledValue;
+import org.jboss.util.loading.ContextClassLoaderSwitcher;
+import org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager;
+import org.jboss.web.tomcat.service.session.distributedcache.spi.SessionAttributeMarshaller;
+
+/**
+ * Session attribute marshaller that marshals attribute values using a {@link SimpleCachableMarshalledValue}.
+ * @author Paul Ferraro
+ */
+public class SessionAttributeMarshallerImpl implements SessionAttributeMarshaller
+{
+   @SuppressWarnings("unchecked")
+   // Need to cast since ContextClassLoaderSwitcher.NewInstance does not generically implement PrivilegedAction<ContextClassLoaderSwitcher>
+   private final ContextClassLoaderSwitcher switcher = (ContextClassLoaderSwitcher) AccessController.doPrivileged(ContextClassLoaderSwitcher.INSTANTIATOR);
+   
+   private final LocalDistributableSessionManager manager;
+   private final ObjectStreamSource source;
+   
+   public SessionAttributeMarshallerImpl(LocalDistributableSessionManager manager, ObjectStreamSource source)
+   {
+      this.manager = manager;
+      this.source = source;
+   }
+   
+   /**
+    * {@inheritDoc}
+    * @see org.jboss.web.tomcat.service.session.distributedcache.spi.SessionAttributeMarshaller#marshal(java.lang.Object)
+    */
+   @Override
+   public Object marshal(Object value)
+   {
+      if ((value == null) || MarshalledValueHelper.isTypeExcluded(value.getClass())) return value;
+
+      if (!(value instanceof Serializable))
+      {
+         throw new IllegalArgumentException(String.format("%s does not implement %s", value, Serializable.class.getName()));
+      }
+      
+      return new SimpleCachableMarshalledValue((Serializable) value, this.source, true);
+   }
+
+   /**
+    * {@inheritDoc}
+    * @see org.jboss.web.tomcat.service.session.distributedcache.spi.SessionAttributeMarshaller#unmarshal(java.lang.Object)
+    */
+   @Override
+   public Object unmarshal(Object object) throws IOException, ClassNotFoundException
+   {
+      if ((object == null) || !(object instanceof SimpleCachableMarshalledValue)) return object;
+
+      SimpleCachableMarshalledValue value = (SimpleCachableMarshalledValue) object;
+      
+      // Swap in/out the class loader for this web app. Needed only for unmarshalling.
+      ContextClassLoaderSwitcher.SwitchContext switchContext = this.switcher.getSwitchContext(this.manager.getApplicationClassLoader());
+      
+      try
+      {
+         value.setObjectStreamSource(this.source);
+         
+         return value.get();
+      }
+      finally
+      {
+         switchContext.reset();
+      }
+   }
+}

Copied: projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/spi/SessionAttributeMarshaller.java (from rev 107268, projects/cluster/ha-server-cache-ispn/trunk/src/main/java/org/jboss/ha/web/tomcat/service/session/distributedcache/impl/SessionAttributeMarshaller.java)
===================================================================
--- projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/spi/SessionAttributeMarshaller.java	                        (rev 0)
+++ projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/spi/SessionAttributeMarshaller.java	2010-08-02 16:07:00 UTC (rev 107270)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.web.tomcat.service.session.distributedcache.spi;
+
+import java.io.IOException;
+
+/**
+ * @author Paul Ferraro
+ *
+ */
+public interface SessionAttributeMarshaller
+{
+   Object marshal(Object object);
+   
+   Object unmarshal(Object object) throws IOException, ClassNotFoundException;
+}

Copied: projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/spi/SessionAttributeMarshallerFactory.java (from rev 107268, projects/cluster/ha-server-cache-ispn/trunk/src/main/java/org/jboss/ha/web/tomcat/service/session/distributedcache/impl/SessionAttributeMarshallerFactory.java)
===================================================================
--- projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/spi/SessionAttributeMarshallerFactory.java	                        (rev 0)
+++ projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/spi/SessionAttributeMarshallerFactory.java	2010-08-02 16:07:00 UTC (rev 107270)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.web.tomcat.service.session.distributedcache.spi;
+
+
+/**
+ * Factory for creating session attribute marshallers.
+ * @author Paul Ferraro
+ */
+public interface SessionAttributeMarshallerFactory
+{
+   /**
+    * Create a session attribute marshaller using the specified distributable session manager.
+    * @param manager a distributable session manager
+    * @return a session attribute marshaller
+    */
+   SessionAttributeMarshaller createMarshaller(LocalDistributableSessionManager manager);
+}

Modified: projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/spi/TestDistributedCacheManagerFactory.java
===================================================================
--- projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/spi/TestDistributedCacheManagerFactory.java	2010-08-02 16:03:45 UTC (rev 107269)
+++ projects/cluster/ha-server-cache-spi/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/spi/TestDistributedCacheManagerFactory.java	2010-08-02 16:07:00 UTC (rev 107270)
@@ -1,7 +1,6 @@
 package org.jboss.web.tomcat.service.session.distributedcache.spi;
 
 import java.util.List;
-import java.util.Set;
 
 /*
  * JBoss, Home of Professional Open Source.
@@ -34,8 +33,7 @@
  */
 public interface TestDistributedCacheManagerFactory extends DistributedCacheManagerFactory
 {
-   void configure(boolean local, String passivationDir, 
-         boolean totalReplication, boolean marshalling, boolean purgeCacheLoader);
+   void configure(boolean local, String passivationDir, boolean totalReplication, boolean marshalling, boolean purgeCacheLoader);
    
    List<Object> getMembers();
    



More information about the jboss-cvs-commits mailing list