portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwat...@apache.org
Subject svn commit: r771461 - /portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/cluster/NodeManagerImpl.java
Date Mon, 04 May 2009 21:58:21 GMT
Author: rwatler
Date: Mon May  4 21:58:21 2009
New Revision: 771461

URL: http://svn.apache.org/viewvc?rev=771461&view=rev
Log:
JS2-986: make PAM NodeManager thread safe

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/cluster/NodeManagerImpl.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/cluster/NodeManagerImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/cluster/NodeManagerImpl.java?rev=771461&r1=771460&r2=771461&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/cluster/NodeManagerImpl.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/cluster/NodeManagerImpl.java
Mon May  4 21:58:21 2009
@@ -115,7 +115,7 @@
 //			NodeInformationImpl temp = new NodeInformationImpl();
 //			temp.setContextName("tttt");
 	}
-	public int checkNode(Long revision, String contextName)
+	public synchronized int checkNode(Long revision, String contextName)
 	{
 		if ((contextName == null) || (revision == null))
 			return NodeManager.INVALID_NODE_REQUEST;
@@ -127,7 +127,7 @@
 		return NodeManager.NODE_SAVED;
 	}
 	
-	public void addNode(Long revision, String contextName) throws Exception
+	public synchronized void addNode(Long revision, String contextName) throws Exception
 	{
 		if ((contextName == null) || (revision == null))
 			return;
@@ -142,7 +142,7 @@
 		save();
 	}
 
-	public void removeNode(String contextName) throws Exception
+	public synchronized void removeNode(String contextName) throws Exception
 	{
 		if (contextName == null)
 			return;
@@ -186,7 +186,7 @@
         this.beanFactory = beanFactory;
     }
 
-	public int getNumberOfNodes()
+	public synchronized int getNumberOfNodes()
 	{
 		return nodes.size();
 	}    



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message