[jboss-svn-commits] JBoss Common SVN: r4203 - invokablecontainer/trunk/api/src/main/java/org/jboss/invokable.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Mar 29 15:16:21 EDT 2010
Author: david.lloyd at jboss.com
Date: 2010-03-29 15:16:21 -0400 (Mon, 29 Mar 2010)
New Revision: 4203
Modified:
invokablecontainer/trunk/api/src/main/java/org/jboss/invokable/NodeAssociation.java
Log:
Zeroing in
Modified: invokablecontainer/trunk/api/src/main/java/org/jboss/invokable/NodeAssociation.java
===================================================================
--- invokablecontainer/trunk/api/src/main/java/org/jboss/invokable/NodeAssociation.java 2010-03-29 18:48:06 UTC (rev 4202)
+++ invokablecontainer/trunk/api/src/main/java/org/jboss/invokable/NodeAssociation.java 2010-03-29 19:16:21 UTC (rev 4203)
@@ -22,22 +22,18 @@
package org.jboss.invokable;
-import java.net.URI;
-
/**
- * An association with a node. This should be an active or "live" association.
+ * An association with a node.
*
* @author <a href="mailto:david.lloyd at redhat.com">David M. Lloyd</a>
*/
-public class NodeAssociation {
+public abstract class NodeAssociation {
private final InvocationTransport transport;
private final NodeLocation nodeLocation;
- private final URI peerURI;
- public NodeAssociation(final InvocationTransport transport, final NodeLocation nodeLocation, final URI peerURI) {
+ protected NodeAssociation(final InvocationTransport transport, final NodeLocation nodeLocation) {
this.transport = transport;
this.nodeLocation = nodeLocation;
- this.peerURI = peerURI;
}
public InvocationTransport getTransport() {
@@ -48,7 +44,12 @@
return nodeLocation;
}
- public URI getPeerURI() {
- return peerURI;
- }
+ /**
+ * Get a dispatcher for the given identifier. The returned dispatcher should (block? throw an exception?) if the
+ * association is temporarily unavailable.
+ *
+ * @param identifier the identifier of the dispatcher on the remote node
+ * @return a dispatcher which traverses the node association
+ */
+ public abstract InvocationDispatcher getInvocationDispatcher(DispatcherIdentifier identifier);
}
More information about the jboss-svn-commits
mailing list