[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/ha/framework/interfaces DistributedState.java
User: slaboure Date: 01/12/31 07:15:11 Modified:src/main/org/jboss/ha/framework/interfaces DistributedState.java Log: New set/remove methods to mimic optional parameter to indicate if the cluster call must be made (a-)synchronous. Revision ChangesPath 1.6 +16 -2 jbossmx/src/main/org/jboss/ha/framework/interfaces/DistributedState.java Index: DistributedState.java === RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/interfaces/DistributedState.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- DistributedState.java 2001/12/29 16:09:41 1.5 +++ DistributedState.java 2001/12/31 15:15:11 1.6 @@ -27,9 +27,13 @@ * modified/removed/added in a particular category. * * @author a href=mailto:[EMAIL PROTECTED];Sacha Labourey/a. - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * * pbRevisions:/bbr + * pb2001/12/31: Sacha Labourey/b + * ol + * liAllow caller to select if cluster call is synchronous or asynchronous/li + * /ol * @see HAPartition */ public interface DistributedState @@ -81,6 +85,11 @@ * @throws Exception If a network communication occurs */ public void set (String category, String key, Serializable value) throws Exception; + /** +* Same as set(String, String) but caller can choose if the call is made +* synchronously or asynchronously. By default, calls are asynchronous. +*/ + public void set (String category, String key, Serializable value, boolean asynchronousCall) throws Exception; /** * Read in a value associated to a key in the given category. Read is performed locally. @@ -88,7 +97,7 @@ * @param key The key of the value to read * @return The value of the key in the given category */ - public Serializable get (String category, String key); + public Serializable get (String category, String key); /** * Return a list of all categories. Call managed locally: no network access. @@ -117,4 +126,9 @@ * @throws Exception if a network exception occurs while removing the entry. */ public Serializable remove (String category, String key) throws Exception; + /** +* Same as remove(String, String) but caller can choose if the call is made +* synchronously or asynchronously. By default, calls are asynchronous. +*/ + public Serializable remove (String category, String key, boolean asynchronousCall) throws Exception; } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/ha/framework/interfaces DistributedState.java
User: slaboure Date: 01/12/29 08:09:41 Modified:src/main/org/jboss/ha/framework/interfaces DistributedState.java Log: - possibility to know if a modification has been done locally or initiated from another node - remove now returns the old value Revision ChangesPath 1.5 +4 -4 jbossmx/src/main/org/jboss/ha/framework/interfaces/DistributedState.java Index: DistributedState.java === RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/interfaces/DistributedState.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- DistributedState.java 2001/11/26 14:58:26 1.4 +++ DistributedState.java 2001/12/29 16:09:41 1.5 @@ -27,7 +27,7 @@ * modified/removed/added in a particular category. * * @author a href=mailto:[EMAIL PROTECTED];Sacha Labourey/a. - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * * pbRevisions:/bbr * @see HAPartition @@ -47,7 +47,7 @@ * @param key The key that has been added or its value modified * @param value The new value of the key */ - public void valueHasChanged (String category, String key, Serializable value); + public void valueHasChanged (String category, String key, Serializable value, boolean locallyModified); /** * Called whenever a key has been removed from a category the called object had * subscribed in. @@ -55,7 +55,7 @@ * @param key The key that has been removed * @param previousContent The previous content of the key that has been removed */ - public void keyHasBeenRemoved (String category, String key, Serializable previousContent); + public void keyHasBeenRemoved (String category, String key, Serializable previousContent, boolean locallyModified); } /** @@ -116,5 +116,5 @@ * @param key Key to be removed * @throws Exception if a network exception occurs while removing the entry. */ - public void remove (String category, String key) throws Exception; + public Serializable remove (String category, String key) throws Exception; } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/ha/framework/interfaces DistributedState.java
User: slaboure Date: 01/11/26 06:58:26 Modified:src/main/org/jboss/ha/framework/interfaces DistributedState.java Log: No more Remote. Revision ChangesPath 1.4 +1 -2 jbossmx/src/main/org/jboss/ha/framework/interfaces/DistributedState.java Index: DistributedState.java === RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/interfaces/DistributedState.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- DistributedState.java 2001/11/26 14:43:21 1.3 +++ DistributedState.java 2001/11/26 14:58:26 1.4 @@ -27,13 +27,12 @@ * modified/removed/added in a particular category. * * @author a href=mailto:[EMAIL PROTECTED];Sacha Labourey/a. - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ * * pbRevisions:/bbr * @see HAPartition */ public interface DistributedState - extends java.rmi.Remote { /** * When a particular key in a category of the DistributedState service gets modified, ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development