[jbosscache-commits] JBoss Cache SVN: r5730 - in core/trunk/src/main/java/org/jboss/cache: buddyreplication and 8 other directories.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Mon Apr 28 12:16:57 EDT 2008
Author: manik.surtani at jboss.com
Date: 2008-04-28 12:16:56 -0400 (Mon, 28 Apr 2008)
New Revision: 5730
Modified:
core/trunk/src/main/java/org/jboss/cache/Region.java
core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyLocator.java
core/trunk/src/main/java/org/jboss/cache/config/Configuration.java
core/trunk/src/main/java/org/jboss/cache/eviction/BaseSortedEvictionAlgorithm.java
core/trunk/src/main/java/org/jboss/cache/eviction/ElementSizePolicy.java
core/trunk/src/main/java/org/jboss/cache/eviction/EvictionQueue.java
core/trunk/src/main/java/org/jboss/cache/eviction/FIFOPolicy.java
core/trunk/src/main/java/org/jboss/cache/eviction/LFUAlgorithm.java
core/trunk/src/main/java/org/jboss/cache/eviction/LFUPolicy.java
core/trunk/src/main/java/org/jboss/cache/eviction/LRUPolicy.java
core/trunk/src/main/java/org/jboss/cache/eviction/MRUPolicy.java
core/trunk/src/main/java/org/jboss/cache/eviction/SortedEvictionQueue.java
core/trunk/src/main/java/org/jboss/cache/interceptors/Interceptor.java
core/trunk/src/main/java/org/jboss/cache/jmx/CacheJmxWrapperMBean.java
core/trunk/src/main/java/org/jboss/cache/jmx/CacheNotificationBroadcaster.java
core/trunk/src/main/java/org/jboss/cache/lock/LockUtil.java
core/trunk/src/main/java/org/jboss/cache/lock/NodeLock.java
core/trunk/src/main/java/org/jboss/cache/lock/ReadWriteLockWithUpgrade.java
core/trunk/src/main/java/org/jboss/cache/notifications/event/Event.java
core/trunk/src/main/java/org/jboss/cache/optimistic/DataVersion.java
core/trunk/src/main/java/org/jboss/cache/optimistic/TransactionWorkspace.java
core/trunk/src/main/java/org/jboss/cache/statetransfer/StateTransferGenerator.java
Log:
Removed unnecessary "public" modifiers
Modified: core/trunk/src/main/java/org/jboss/cache/Region.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/Region.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/Region.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -37,7 +37,7 @@
/**
* Types of regions.
*/
- public enum Type
+ enum Type
{
EVICTION, MARSHALLING, ANY
}
@@ -45,7 +45,7 @@
/**
* Region status
*/
- public enum Status
+ enum Status
{
ACTIVATING, ACTIVE, INACTIVATING, INACTIVE
}
@@ -82,7 +82,7 @@
* either contains data or children, no state transfers take place. The region is simply marked as active in this
* case.
*/
- public void activateIfEmpty();
+ void activateIfEmpty();
/**
* Deactivates this region from being replicated.
Modified: core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyLocator.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyLocator.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyLocator.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -33,7 +33,7 @@
* returned value should be the default config for the
* given BuddyLocator implementation.
*/
- public BuddyLocatorConfig getConfig();
+ BuddyLocatorConfig getConfig();
/**
* Initialize this <code>BuddyLocator</code>.
@@ -42,7 +42,7 @@
* <code>null</code>, in which case the implementation should
* use its default configuration.
*/
- public void init(BuddyReplicationConfig.BuddyLocatorConfig config);
+ void init(BuddyReplicationConfig.BuddyLocatorConfig config);
/**
* Choose a set of buddies for the given node. Invoked when a change in
@@ -60,5 +60,5 @@
* <code>dataOwner</code>. Will not be <code>null</code>, may
* be empty.
*/
- public List<Address> locateBuddies(Map<Address, String> buddyPoolMap, List<Address> currentMembership, Address dataOwner);
+ List<Address> locateBuddies(Map<Address, String> buddyPoolMap, List<Address> currentMembership, Address dataOwner);
}
Modified: core/trunk/src/main/java/org/jboss/cache/config/Configuration.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/config/Configuration.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/config/Configuration.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -20,9 +20,7 @@
*
* @author <a href="mailto:manik at jboss.org">Manik Surtani (manik at jboss.org)</a>
*/
-public class Configuration
- extends ConfigurationComponent
- implements Cloneable
+public class Configuration extends ConfigurationComponent
{
private static final long serialVersionUID = 5553791890144997466L;
Modified: core/trunk/src/main/java/org/jboss/cache/eviction/BaseSortedEvictionAlgorithm.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/eviction/BaseSortedEvictionAlgorithm.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/eviction/BaseSortedEvictionAlgorithm.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -23,7 +23,7 @@
*
* @author Daniel Huang - dhuang at jboss.org - 10/2005
*/
-public abstract class BaseSortedEvictionAlgorithm extends BaseEvictionAlgorithm implements EvictionAlgorithm
+public abstract class BaseSortedEvictionAlgorithm extends BaseEvictionAlgorithm
{
private static final Log log = LogFactory.getLog(BaseSortedEvictionAlgorithm.class);
Modified: core/trunk/src/main/java/org/jboss/cache/eviction/ElementSizePolicy.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/eviction/ElementSizePolicy.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/eviction/ElementSizePolicy.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -10,7 +10,7 @@
* @author Daniel Huang
* @version $Revison: $
*/
-public class ElementSizePolicy extends BaseEvictionPolicy implements EvictionPolicy
+public class ElementSizePolicy extends BaseEvictionPolicy
{
private ElementSizeAlgorithm algorithm;
Modified: core/trunk/src/main/java/org/jboss/cache/eviction/EvictionQueue.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/eviction/EvictionQueue.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/eviction/EvictionQueue.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -31,7 +31,7 @@
*
* @return first NodeEntry in queue.
*/
- public NodeEntry getFirstNodeEntry();
+ NodeEntry getFirstNodeEntry();
/**
* Retrieve a node entry by Fqn.
@@ -41,9 +41,9 @@
* @param fqn Fqn of the node entry to retrieve.
* @return Node Entry object associated with given Fqn param.
*/
- public NodeEntry getNodeEntry(Fqn fqn);
+ NodeEntry getNodeEntry(Fqn fqn);
- public NodeEntry getNodeEntry(String fqn);
+ NodeEntry getNodeEntry(String fqn);
/**
* Check if queue contains the given NodeEntry.
@@ -51,7 +51,7 @@
* @param entry NodeEntry to check for existence in queue.
* @return true/false if NodeEntry exists in queue.
*/
- public boolean containsNodeEntry(NodeEntry entry);
+ boolean containsNodeEntry(NodeEntry entry);
/**
* Remove a NodeEntry from queue.
@@ -60,36 +60,36 @@
*
* @param entry The NodeEntry to remove from queue.
*/
- public void removeNodeEntry(NodeEntry entry);
+ void removeNodeEntry(NodeEntry entry);
/**
* Add a NodeEntry to the queue.
*
* @param entry The NodeEntry to add to queue.
*/
- public void addNodeEntry(NodeEntry entry);
+ void addNodeEntry(NodeEntry entry);
/**
* Get the number of nodes in the queue.
*
* @return The number of nodes in the queue.
*/
- public int getNumberOfNodes();
+ int getNumberOfNodes();
/**
* Get the number of elements in the queue.
*
* @return The number of elements in the queue.
*/
- public int getNumberOfElements();
+ int getNumberOfElements();
- public void modifyElementCount(int difference);
+ void modifyElementCount(int difference);
- public Iterator iterate();
+ Iterator iterate();
/**
* Clear the queue.
*/
- public void clear();
+ void clear();
}
Modified: core/trunk/src/main/java/org/jboss/cache/eviction/FIFOPolicy.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/eviction/FIFOPolicy.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/eviction/FIFOPolicy.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -14,7 +14,7 @@
* @author Morten Kvistgaard
* @version $Revision$
*/
-public class FIFOPolicy extends BaseEvictionPolicy implements EvictionPolicy
+public class FIFOPolicy extends BaseEvictionPolicy
{
private FIFOAlgorithm algorithm;
Modified: core/trunk/src/main/java/org/jboss/cache/eviction/LFUAlgorithm.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/eviction/LFUAlgorithm.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/eviction/LFUAlgorithm.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -32,7 +32,7 @@
* @author Daniel Huang - dhuang at jboss.org 10/2005
* @version $Revision$
*/
-public class LFUAlgorithm extends BaseSortedEvictionAlgorithm implements EvictionAlgorithm
+public class LFUAlgorithm extends BaseSortedEvictionAlgorithm
{
private static final Log log = LogFactory.getLog(LFUAlgorithm.class);
Modified: core/trunk/src/main/java/org/jboss/cache/eviction/LFUPolicy.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/eviction/LFUPolicy.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/eviction/LFUPolicy.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -12,7 +12,7 @@
* @author Daniel Huang - dhuang at jboss.org - 10/2005
* @version $Revision$
*/
-public class LFUPolicy extends BaseEvictionPolicy implements EvictionPolicy
+public class LFUPolicy extends BaseEvictionPolicy
{
private LFUAlgorithm algorithm;
Modified: core/trunk/src/main/java/org/jboss/cache/eviction/LRUPolicy.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/eviction/LRUPolicy.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/eviction/LRUPolicy.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -18,7 +18,7 @@
* @author Daniel Huang - dhuang at jboss.org
* @version $Revision$
*/
-public class LRUPolicy extends BaseEvictionPolicy implements EvictionPolicy
+public class LRUPolicy extends BaseEvictionPolicy
{
protected RegionManager regionManager_;
Modified: core/trunk/src/main/java/org/jboss/cache/eviction/MRUPolicy.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/eviction/MRUPolicy.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/eviction/MRUPolicy.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -14,7 +14,7 @@
* @author Daniel Huang (dhuang at jboss.org)
* @version $Revision$
*/
-public class MRUPolicy extends BaseEvictionPolicy implements EvictionPolicy
+public class MRUPolicy extends BaseEvictionPolicy
{
private MRUAlgorithm algorithm;
Modified: core/trunk/src/main/java/org/jboss/cache/eviction/SortedEvictionQueue.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/eviction/SortedEvictionQueue.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/eviction/SortedEvictionQueue.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -17,5 +17,5 @@
/**
* Provide contract to resort a sorted queue.
*/
- public void resortEvictionQueue();
+ void resortEvictionQueue();
}
Modified: core/trunk/src/main/java/org/jboss/cache/interceptors/Interceptor.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/interceptors/Interceptor.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/interceptors/Interceptor.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -43,7 +43,7 @@
* @deprecated this will be removed in a 3.x release. Please use {@link org.jboss.cache.interceptors.base.CommandInterceptor} instead, since it provides strongly typed callbacks which are more efficient.
*/
@Deprecated
-public abstract class Interceptor extends CommandInterceptor implements InterceptorMBean
+public abstract class Interceptor extends CommandInterceptor
{
protected CacheSPI<?, ?> cache;
protected Log log = null;
Modified: core/trunk/src/main/java/org/jboss/cache/jmx/CacheJmxWrapperMBean.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/jmx/CacheJmxWrapperMBean.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/jmx/CacheJmxWrapperMBean.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -28,25 +28,43 @@
*/
public interface CacheJmxWrapperMBean<K, V> extends LegacyConfiguration
{
- /** The lifecycle method stop has completed */
- public static final int STOPPED = 0;
- /** The lifecycle method stop has been invoked */
- public static final int STOPPING = 1;
- /** The lifecycle method start has been invoked */
- public static final int STARTING = 2;
- /** The lifecycle method start has completed */
- public static final int STARTED = 3;
- /** There has been an error during some operation */
- public static final int FAILED = 4;
- /** The lifecycle method destroy has completed */
- public static final int DESTROYED = 5;
- /** The lifecycle method create has completed */
- public static final int CREATED = 6;
- /** The MBean has been instantiated but has not completed MBeanRegistration.postRegister */
- public static final int UNREGISTERED = 7;
- /** The MBean has been instantiated and has completed MBeanRegistration.postRegister */
- public static final int REGISTERED = 8;
-
+ /**
+ * The lifecycle method stop has completed
+ */
+ int STOPPED = 0;
+ /**
+ * The lifecycle method stop has been invoked
+ */
+ int STOPPING = 1;
+ /**
+ * The lifecycle method start has been invoked
+ */
+ int STARTING = 2;
+ /**
+ * The lifecycle method start has completed
+ */
+ int STARTED = 3;
+ /**
+ * There has been an error during some operation
+ */
+ int FAILED = 4;
+ /**
+ * The lifecycle method destroy has completed
+ */
+ int DESTROYED = 5;
+ /**
+ * The lifecycle method create has completed
+ */
+ int CREATED = 6;
+ /**
+ * The MBean has been instantiated but has not completed MBeanRegistration.postRegister
+ */
+ int UNREGISTERED = 7;
+ /**
+ * The MBean has been instantiated and has completed MBeanRegistration.postRegister
+ */
+ int REGISTERED = 8;
+
void create() throws CacheException;
void start() throws CacheException;
@@ -54,20 +72,20 @@
void stop();
void destroy();
-
+
/**
* Gets where this object is in its lifecycle transitions.
- *
+ *
* @return the current status. Will not return <code>null</code>
*/
CacheStatus getCacheStatus();
-
+
/**
- * Legacy attribute to expose the {@link #getCacheStatus() cache status}
+ * Legacy attribute to expose the {@link #getCacheStatus() cache status}
* in terms of the JBoss AS ServiceMBean values. This interface does
* not extend ServiceMBean, but this attribute is retained to provide
* compatibility with the JBoss AS JSR-77 integration layer.
- *
+ *
* @return the current status, e.g. {@link #STARTED}.
*/
int getState();
Modified: core/trunk/src/main/java/org/jboss/cache/jmx/CacheNotificationBroadcaster.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/jmx/CacheNotificationBroadcaster.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/jmx/CacheNotificationBroadcaster.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -6,19 +6,19 @@
public interface CacheNotificationBroadcaster extends NotificationEmitter
{
// Notification Types
- public static final String
- NOTIF_CACHE_STARTED = "org.jboss.cache.CacheStarted",
- NOTIF_CACHE_STOPPED = "org.jboss.cache.CacheStopped",
- NOTIF_NODE_CREATED = "org.jboss.cache.NodeCreated",
- NOTIF_NODE_MODIFIED = "org.jboss.cache.NodeModified",
- NOTIF_NODE_REMOVED = "org.jboss.cache.NodeRemoved",
- NOTIF_NODE_MOVED = "org.jboss.cache.NodeMoved",
- NOTIF_NODE_VISITED = "org.jboss.cache.NodeVisited",
- NOTIF_NODE_EVICTED = "org.jboss.cache.NodeEvicted",
- NOTIF_NODE_LOADED = "org.jboss.cache.NodeLoaded",
- NOTIF_NODE_ACTIVATED = "org.jboss.cache.NodeActivated",
- NOTIF_NODE_PASSIVATED = "org.jboss.cache.NodePassivated",
- NOTIF_VIEW_CHANGED = "org.jboss.cache.ViewChanged";
+ String
+ NOTIF_CACHE_STARTED = "org.jboss.cache.CacheStarted",
+ NOTIF_CACHE_STOPPED = "org.jboss.cache.CacheStopped",
+ NOTIF_NODE_CREATED = "org.jboss.cache.NodeCreated",
+ NOTIF_NODE_MODIFIED = "org.jboss.cache.NodeModified",
+ NOTIF_NODE_REMOVED = "org.jboss.cache.NodeRemoved",
+ NOTIF_NODE_MOVED = "org.jboss.cache.NodeMoved",
+ NOTIF_NODE_VISITED = "org.jboss.cache.NodeVisited",
+ NOTIF_NODE_EVICTED = "org.jboss.cache.NodeEvicted",
+ NOTIF_NODE_LOADED = "org.jboss.cache.NodeLoaded",
+ NOTIF_NODE_ACTIVATED = "org.jboss.cache.NodeActivated",
+ NOTIF_NODE_PASSIVATED = "org.jboss.cache.NodePassivated",
+ NOTIF_VIEW_CHANGED = "org.jboss.cache.ViewChanged";
/**
* Sends a notification to any interested NotificationListener.
@@ -26,7 +26,7 @@
* @param notification the notification to send
*/
void sendNotification(Notification notification);
-
+
/**
* Gets the sequence number for the next notification.
*/
Modified: core/trunk/src/main/java/org/jboss/cache/lock/LockUtil.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/lock/LockUtil.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/lock/LockUtil.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -17,7 +17,7 @@
private static interface TransactionLockStatus extends Status
{
- public static final int STATUS_BROKEN = Integer.MIN_VALUE;
+ int STATUS_BROKEN = Integer.MIN_VALUE;
}
public static boolean breakTransactionLock(NodeLock lock,
Modified: core/trunk/src/main/java/org/jboss/cache/lock/NodeLock.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/lock/NodeLock.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/lock/NodeLock.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -11,7 +11,7 @@
*/
public interface NodeLock
{
- public enum LockType
+ enum LockType
{
NONE, READ, WRITE
}
Modified: core/trunk/src/main/java/org/jboss/cache/lock/ReadWriteLockWithUpgrade.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/lock/ReadWriteLockWithUpgrade.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/lock/ReadWriteLockWithUpgrade.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -329,7 +329,7 @@
}
- protected class ReaderLock extends LockBase implements Signaller, Lock
+ protected class ReaderLock extends LockBase implements Signaller
{
public void unlock()
@@ -397,7 +397,7 @@
}
- protected class WriterLock extends LockBase implements Signaller, Lock
+ protected class WriterLock extends LockBase implements Signaller
{
public void unlock()
Modified: core/trunk/src/main/java/org/jboss/cache/notifications/event/Event.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/notifications/event/Event.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/notifications/event/Event.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -10,7 +10,7 @@
*/
public interface Event
{
- public enum Type
+ enum Type
{
CACHE_STARTED, CACHE_STOPPED, CACHE_BLOCKED, CACHE_UNBLOCKED, NODE_ACTIVATED, NODE_PASSIVATED,
NODE_LOADED, NODE_EVICTED, NODE_CREATED, NODE_REMOVED, NODE_MODIFIED, NODE_MOVED, NODE_VISITED,
Modified: core/trunk/src/main/java/org/jboss/cache/optimistic/DataVersion.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/optimistic/DataVersion.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/optimistic/DataVersion.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -24,7 +24,7 @@
/**
* Returns true if this is a newer version than <code>other</code>. There is no guarantee that the DataVersion passed
* in is of the same implementation as the current instance. The implementation will have to check for this (if necessary)
- * and (if necessary) throw a {@link org.jboss.cache.optimistic.DataVersioningException}.
+ * and (if necessary) throw a {@link org.jboss.cache.optimistic.DataVersioningException}.
*/
- public boolean newerThan(DataVersion other);
+ boolean newerThan(DataVersion other);
}
Modified: core/trunk/src/main/java/org/jboss/cache/optimistic/TransactionWorkspace.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/optimistic/TransactionWorkspace.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/optimistic/TransactionWorkspace.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -28,45 +28,45 @@
/**
* @return Returns a map of {@link WorkspaceNode}s, keyed on {@link Fqn}
*/
- public Map<Fqn, WorkspaceNode<K, V>> getNodes();
+ Map<Fqn, WorkspaceNode<K, V>> getNodes();
/**
* @param nodes The nodes to set. Takes {@link WorkspaceNode}s.
*/
- public void setNodes(Map<Fqn, WorkspaceNode<K, V>> nodes);
+ void setNodes(Map<Fqn, WorkspaceNode<K, V>> nodes);
- public WorkspaceNode<K, V> getNode(Fqn fqn);
+ WorkspaceNode<K, V> getNode(Fqn fqn);
/**
* Is thread safe so you dont need to deal with synchronising access to this method.
*
* @param node
*/
- public void addNode(WorkspaceNode<K, V> node);
+ void addNode(WorkspaceNode<K, V> node);
/**
* Is thread safe so you dont need to deal with synchronising access to this method.
*/
- public WorkspaceNode<K, V> removeNode(Fqn fqn);
+ WorkspaceNode<K, V> removeNode(Fqn fqn);
/**
* Returns all nodes equal to or after the given node.
*/
- public SortedMap<Fqn, WorkspaceNode<K, V>> getNodesAfter(Fqn fqn);
+ SortedMap<Fqn, WorkspaceNode<K, V>> getNodesAfter(Fqn fqn);
/**
* Tests if versioning is implicit for a given tx.
* If set to true, the interceptor chain will handle versioning (implicit to JBossCache).
* If set to false, DataVersions will have to come from the caller.
*/
- public boolean isVersioningImplicit();
+ boolean isVersioningImplicit();
/**
* Sets if versioning is implicit for a given tx.
* If set to true, the interceptor chain will handle versioning (implicit to JBossCache).
* If set to false, DataVersions will have to come from the caller.
*/
- public void setVersioningImplicit(boolean versioningImplicit);
+ void setVersioningImplicit(boolean versioningImplicit);
/**
* returns true if the workspace contains a node with specified Fqn
Modified: core/trunk/src/main/java/org/jboss/cache/statetransfer/StateTransferGenerator.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/statetransfer/StateTransferGenerator.java 2008-04-28 16:10:49 UTC (rev 5729)
+++ core/trunk/src/main/java/org/jboss/cache/statetransfer/StateTransferGenerator.java 2008-04-28 16:16:56 UTC (rev 5730)
@@ -13,7 +13,7 @@
public interface StateTransferGenerator
{
- public void generateState(ObjectOutputStream stream, Node rootNode, boolean generateTransient,
- boolean generatePersistent, boolean suppressErrors) throws Throwable;
+ void generateState(ObjectOutputStream stream, Node rootNode, boolean generateTransient,
+ boolean generatePersistent, boolean suppressErrors) throws Throwable;
}
\ No newline at end of file
More information about the jbosscache-commits
mailing list