org.objectweb.proactive.core.component
Class Bindings

java.lang.Object
  |
  +--org.objectweb.proactive.core.component.Bindings
All Implemented Interfaces:
java.io.Serializable

public class Bindings
extends java.lang.Object
implements java.io.Serializable

A bindings container. This class stores the following bindings for a given component : - thisComponent.clientInterface --> serverComponent.serverInterface (it also takes in charge collective bindings, ie 1 client to serveral servers) - thisParallelComponent.serverInterface --> serverComponents.serverInterface (in the case of a parallel component, requests on a server port are forwarded to the inner components)

Author:
Matthieu Morel
See Also:
Serialized Form

Constructor Summary
Bindings()
           
 
Method Summary
 void add(Binding binding)
           
 boolean containsBindingOn(java.lang.String clientItfName)
          tests if binding exists on the given interface
 java.lang.Object get(java.lang.String clientItfName)
           
 java.lang.String[] getExternalClientBindings()
          Returns the names of the external client bindings for this component.
 java.lang.Object remove(java.lang.String clientItfName)
          removes the binding on the given client interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bindings

public Bindings()
Method Detail

add

public void add(Binding binding)
Parameters:
binding - the binding to add

remove

public java.lang.Object remove(java.lang.String clientItfName)
removes the binding on the given client interface


get

public java.lang.Object get(java.lang.String clientItfName)

containsBindingOn

public boolean containsBindingOn(java.lang.String clientItfName)
tests if binding exists on the given interface

Parameters:
clientItfName - the client inteface to check
Returns:
true if binding exists

getExternalClientBindings

public java.lang.String[] getExternalClientBindings()
Returns the names of the external client bindings for this component. In case of a collective interface, the names of each of its constituing interfaces are not returned ; only the name of the collective interface is returned.



Copyright © April 2004 INRIA All Rights Reserved.