|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.component.Fractive
This class is used for creating components. It acts as :
Constructor Summary | |
Fractive()
no-arg constructor (used by Fractal to get a bootstrap component) |
Method Summary | |
static ProActiveInterface |
createCollectiveClientInterface(java.lang.String itfName,
java.lang.String itfSignature)
Returns a generated interface reference, whose impl field is a group It is able to handle multiple bindings |
static ProActiveInterface |
createCollectiveClientInterface(java.lang.String itfName,
java.lang.String itfSignature,
Component owner)
Returns a generated interface reference, whose impl field is a group It is able to handle multiple bindings, and automatically adds it to an owner component |
static InterfaceType[] |
getClientInterfaceTypes(ComponentType componentType)
Helper method for extracting the types of client interfaces from the type of a component |
static ComponentParametersController |
getComponentParametersController(Component component)
Returns the ContentController interface of the given component. |
static Component |
getComponentRepresentativeOnThis()
Returns a component representative pointing to the component associated to the component whose active thread is calling this method. |
java.lang.Object |
getFcContentDesc()
|
java.lang.Object |
getFcControllerDesc()
|
Type |
getFcInstanceType()
|
java.lang.Object |
getFcInterface(java.lang.String itfName)
|
java.lang.Object[] |
getFcInterfaces()
|
Type |
getFcType()
|
static ProActiveComponentRepresentative |
lookup(java.lang.String url)
Looks-up a component object previously registered in a registry(RMI, IBIS, HTTP). |
Component |
newFcInstance()
|
Component |
newFcInstance(Type componentType,
java.lang.Object controllerDesc,
java.lang.Object contentDesc)
|
static void |
register(Component ref,
java.lang.String url)
Registers a component into a registry(RMI or IBIS or HTTP, default is RMI). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Fractive()
Method Detail |
public static ComponentParametersController getComponentParametersController(Component component) throws NoSuchInterfaceException
ContentController
interface of the given component.
component
- a component.
ContentController
interface of the given component.
NoSuchInterfaceException
- if there is no such interface.public static ProActiveInterface createCollectiveClientInterface(java.lang.String itfName, java.lang.String itfSignature, Component owner) throws ProActiveRuntimeException
itfName
- the name of the interfaceitfSignature
- the signature of the interfaceowner
- the component to which this interface belongs
ProActiveRuntimeException
- in case of a problem while creating the collective interfacepublic static ProActiveInterface createCollectiveClientInterface(java.lang.String itfName, java.lang.String itfSignature) throws ProActiveRuntimeException
itfName
- the name of the interfaceitfSignature
- the signature of the interface
ProActiveRuntimeException
- in case of a problem while creating the collective interfacepublic Component newFcInstance(Type componentType, java.lang.Object controllerDesc, java.lang.Object contentDesc) throws InstantiationException
newFcInstance
in interface GenericFactory
componentType
- Type the type of the componentcontrollerDesc
- Object a description of the controller. In this implementation, a ControllerDescription
objectcontentDesc
- Object a description of the content. In this implementation, a ContentDescription
object
InstantiationException
- if the instantiation of the component failedGenericFactory.newFcInstance(Type, Object, Object)
public java.lang.Object getFcInterface(java.lang.String itfName) throws NoSuchInterfaceException
getFcInterface
in interface Component
NoSuchInterfaceException
public java.lang.Object[] getFcInterfaces()
getFcInterfaces
in interface Component
public Type getFcType()
getFcType
in interface Component
public java.lang.Object getFcContentDesc()
getFcContentDesc
in interface Factory
public java.lang.Object getFcControllerDesc()
getFcControllerDesc
in interface Factory
public Type getFcInstanceType()
getFcInstanceType
in interface Factory
public Component newFcInstance() throws InstantiationException
newFcInstance
in interface Factory
InstantiationException
public static InterfaceType[] getClientInterfaceTypes(ComponentType componentType)
componentType
- ComponentType
public static Component getComponentRepresentativeOnThis()
public static void register(Component ref, java.lang.String url) throws java.io.IOException
ProActive.register(Object, String)
.
ref
- the component to register.url
- the url under which the component is registered. The url must point to the localhost
since registering is always a local action. The url can take the form:protocol://localhost:port/nam
or //localhost:port/name if protocol is RMI or //localhost/name if port is 1099 or only the name.
The registered component will be reachable with the following url: protocol://machine_name:port/name
using lookupActive method. Protocol and port can be removed if default
java.io.IOException
- if the remote body cannot be registeredpublic static ProActiveComponentRepresentative lookup(java.lang.String url) throws java.io.IOException, javax.naming.NamingException
ProActive.lookupActive(String, String)
method.
url
- the url under which the remote component is registered. The url takes the following form:
protocol://machine_name:port/name. Protocol and port can be ommited if respectively RMI and 1099:
//machine_name/name
java.io.IOException
- if the remote component cannot be found under the given url
javax.naming.NamingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |