@@ -231,15 +231,15 @@ public ICacheElement getGAN( GroupAttrName key, boolean invocation )
231231
232232 Object obj = null ;
233233 // not necessary?, stops at getaux
234- readLock ( key .groupId );
234+ readLock ( key .groupId . toString () );
235235 try
236236 {
237237 obj = super .get ( key , invocation );
238238 //p( "got obj" );
239239 }
240240 finally
241241 {
242- locker .done ( key .groupId );
242+ locker .done ( key .groupId . toString () );
243243 }
244244 return ( ICacheElement ) obj ;
245245 }
@@ -279,18 +279,18 @@ public ICacheElement getGI( GroupId gid, boolean invocation )
279279 }
280280 }
281281 Object obj = null ;
282- readLock ( gid .key );
282+ readLock ( gid .toString () );
283283 try
284284 {
285285 if ( invocation )
286286 {
287287 // Invocation is NOT local
288- obj = systemGroupIdCache .localGet ( gid .key );
288+ obj = systemGroupIdCache .localGet ( gid .toString () );
289289 }
290290 else
291291 {
292292 // Invocation is local
293- obj = systemGroupIdCache .get ( gid .key );
293+ obj = systemGroupIdCache .get ( gid .toString () );
294294 }
295295
296296 if ( log .isDebugEnabled () )
@@ -300,7 +300,7 @@ public ICacheElement getGI( GroupId gid, boolean invocation )
300300 }
301301 finally
302302 {
303- locker .done ( gid .key );
303+ locker .done ( gid .toString () );
304304 }
305305
306306 return ( ICacheElement ) obj ;
@@ -581,7 +581,7 @@ public void putGAN( GroupAttrName key, Serializable val,
581581 log .debug ( "in putGAN( gan,val,attr,boolean invocation) " );
582582 }
583583
584- writeLock ( key .groupId );
584+ writeLock ( key .toString () );
585585 try
586586 {
587587
@@ -598,9 +598,9 @@ public void putGAN( GroupAttrName key, Serializable val,
598598 super .update ( ce , localOnly );
599599
600600 // UPDATE THE ATTRIBUTENAME LIST, get it first
601- GroupId groupId = new GroupId ( this . getCacheName (), key .groupId ) ;
601+ GroupId groupId = key .groupId ;
602602 HashSet attrNameSet = null ;
603- attrNameSet = ( HashSet ) systemGroupIdCache .get ( groupId .key );
603+ attrNameSet = (HashSet ) systemGroupIdCache .get (groupId .toString () );
604604
605605 if ( attrNameSet == null )
606606 {
@@ -613,7 +613,7 @@ public void putGAN( GroupAttrName key, Serializable val,
613613 log .debug ( "putGAN( gan,val,attr,boolean invocation) > attrNameSet.size() = " + attrNameSet .size () );
614614 }
615615
616- CacheElement ceID = new CacheElement ( this .getCacheName (), groupId . key , attrNameSet );
616+ CacheElement ceID = new CacheElement ( this .getCacheName (), groupId , attrNameSet );
617617 ceID .setElementAttributes ( attrE );
618618
619619 // DO NOT SEND THE UPDATE LIST REMOTELY
@@ -623,7 +623,7 @@ public void putGAN( GroupAttrName key, Serializable val,
623623 }
624624 finally
625625 {
626- locker .done ( key .groupId );
626+ locker .done ( key .toString () );
627627 }
628628 }
629629
@@ -642,7 +642,7 @@ protected void createGroup( String group, IElementAttributes attrE )
642642 GroupId groupId = new GroupId ( this .getCacheName (), group );
643643 HashSet attrNameSet = null ;
644644
645- attrNameSet = ( HashSet ) systemGroupIdCache .get ( groupId .key );
645+ attrNameSet = ( HashSet ) systemGroupIdCache .get ( groupId .toString () );
646646
647647 if ( attrNameSet == null )
648648 {
@@ -654,7 +654,7 @@ protected void createGroup( String group, IElementAttributes attrE )
654654 }
655655 try
656656 {
657- CacheElement ceID = new CacheElement ( this .getCacheName (), groupId . key , attrNameSet );
657+ CacheElement ceID = new CacheElement ( this .getCacheName (), groupId , attrNameSet );
658658 ceID .setElementAttributes ( attrE );
659659 //updateCaches(groupId.key, attrNameSet, attrE );
660660 //super.update( ceID, EXCLUDE_REMOTE_CACHE );
@@ -807,19 +807,19 @@ public void updateGroupAttrNameSet( GroupAttrName key,
807807
808808 // update the attribute name set.
809809 // Note: necessary to use super.get to avoid read lock within the current write lock.
810- GroupId groupId = new GroupId ( this . getCacheName (), key .groupId ) ;
810+ GroupId groupId = key .groupId ;
811811 HashSet attrNameSet = null ;
812812 CacheElement ce = null ;
813813
814814 if ( invocation )
815815 {
816816 // Invocation is NOT local
817- ce = ( CacheElement ) systemGroupIdCache .localGet ( groupId .key );
817+ ce = ( CacheElement ) systemGroupIdCache .localGet ( groupId .toString () );
818818 }
819819 else
820820 {
821821 // Invocation is local
822- ce = ( CacheElement ) systemGroupIdCache .get ( groupId .key );
822+ ce = ( CacheElement ) systemGroupIdCache .get ( groupId .toString () );
823823 }
824824
825825 // IF THE NAME SET IS FOUND
@@ -854,7 +854,7 @@ public void updateGroupAttrNameSet( GroupAttrName key,
854854
855855 CacheElement ceID
856856 = new CacheElement ( this .getCacheName (),
857- groupId . key ,
857+ groupId ,
858858 attrNameSet );
859859
860860 ceID .setElementAttributes ( ce .attr );
@@ -888,11 +888,11 @@ else if ( remove )
888888 // unlike insertion, removal should go remote if locally invoked
889889 if ( invocation )
890890 {
891- systemGroupIdCache .localRemove ( groupId .key );
891+ systemGroupIdCache .localRemove ( groupId .toString () );
892892 }
893893 else
894894 {
895- systemGroupIdCache .remove ( groupId .key );
895+ systemGroupIdCache .remove ( groupId .toString () );
896896 }
897897 }
898898 }
@@ -936,24 +936,24 @@ protected boolean removeGI( GroupId groupId, boolean invocation, boolean skipLoc
936936
937937 if ( !skipLock )
938938 {
939- writeLock ( groupId .key );
939+ writeLock ( groupId .toString () );
940940 }
941941 try
942942 {
943943 if ( invocation )
944944 {
945- ok = systemGroupIdCache .localRemove ( groupId .key );
945+ ok = systemGroupIdCache .localRemove ( groupId .toString () );
946946 }
947947 else
948948 {
949- ok = systemGroupIdCache .remove ( groupId .key );
949+ ok = systemGroupIdCache .remove ( groupId .toString () );
950950 }
951951 }
952952 finally
953953 {
954954 if ( !skipLock )
955955 {
956- locker .done ( groupId .key );
956+ locker .done ( groupId .toString () );
957957 }
958958 }
959959 return ok ;
0 commit comments