|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.ProActive
public class ProActive
Provides static methods to manipulate or use Active Objects(creation, exception handling, migration,...), futures, deployment descritpors, components, groups. This class is the central point of the library.
newActive(...) turnActive(...)
Active Object Manipulation
getBodyOnThis() getActiveObjectNodeUrl(Object) getStubOnThis() migrateTo(...) lookupActive(String, String) register(Object, String) setImmediateService(...)
isAwaited(Object) waitFor(Object) waitForAll(Vector) waitForAny(Vector) waitForPotentialException() waitForTheNth(Vector, int) Previous methods provide also the ability to pass a timeout value allAwaited(Vector) getFutureValue(Object) isException(Object)
newActiveAsGroup(...)
newActiveComponent(...)
getProactiveDescriptor(String)
addNFEListenerOnAO(Object, NFEListener) addNFEListenerOnJVM(NFEListener) addNFEListenerOnProxy(Object, NFEListener) removeNFEListenerOnAO(Object, NFEListener) removeNFEListenerOnJVM(NFEListener) removeNFEListenerOnProxy(Object, NFEListener)
tryWithCatch(Class) removeTryWithCatch() endTryWithCatch() throwArrivedException()
enableAC(Object) disableAC(Object)
exposeAsWebService(Object, String, String, String[]) exposeComponentAsWebService(Component, String, String)
ProActiveDescriptor
,
ProActiveGroup
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
logger
|
static org.apache.log4j.Logger |
loggerGroup
|
Method Summary | |
---|---|
static void |
addNFEListenerOnAO(java.lang.Object ao,
NFEListener listener)
Add a listener for NFE reaching a given active object |
static void |
addNFEListenerOnGroup(java.lang.Object group,
NFEListener listener)
Add a listener for NFE regarding a group. |
static void |
addNFEListenerOnJVM(NFEListener listener)
Add a listener for NFE reaching the local JVM |
static void |
addNFEListenerOnProxy(java.lang.Object ao,
NFEListener listener)
Add a listener for NFE reaching the client side of a given active object |
static boolean |
allAwaited(java.util.Vector futures)
Return false if one object of futures is
available. |
static java.lang.Object |
createStubObject(java.lang.String className,
UniversalBody body)
|
static void |
disableAC(java.lang.Object obj)
Disable the automatic continuation mechanism for this active object. |
static void |
enableAC(java.lang.Object obj)
Enable the automatic continuation mechanism for this active object. |
void |
enableExitOnEmpty()
After this call, when the JVM has no more active objects it will be killed. |
static void |
endTryWithCatch()
This has to be called at the end of the try block. |
static void |
exitFailure()
Call this method at the end of the application if it did not complete successfully, for the launcher to be aware of it. |
static void |
exitSuccess()
Call this method at the end of the application if it completed successfully, for the launcher to be aware of it. |
static void |
exposeAsWebService(java.lang.Object o,
java.lang.String url,
java.lang.String urn,
java.lang.String[] methods)
Expose an active object as a web service |
static void |
exposeComponentAsWebService(Component component,
java.lang.String url,
java.lang.String componentName)
Deploy a component as a webservice. |
static java.lang.String |
getActiveObjectNodeUrl(java.lang.Object activeObject)
Return the URL of the remote activeObject . |
static java.util.Collection |
getAllExceptions()
Get the exceptions that have been caught in the current ProActive.tryWithCatch()/ProActive.removeTryWithCatch() block. |
static Body |
getBodyOnThis()
When an active object is created, it is associated with a Body that takes care of all non fonctionnal properties. |
static java.lang.Object |
getFutureValue(java.lang.Object future)
Return the object contains by the future (ie its target). |
static java.lang.String |
getJobId()
|
static Node |
getNode()
|
static ProActiveDescriptor |
getProactiveDescriptor()
Returns a ProActiveDescriptor that gives an object representation
of the XML document located at the url given by proactive.pad system's property. |
static ProActiveDescriptor |
getProactiveDescriptor(java.lang.String xmlDescriptorUrl)
Returns a ProActiveDescriptor that gives an object representation
of the XML document located at the given url. |
static ProActiveDescriptor |
getProactiveDescriptor(java.lang.String xmlDescriptorUrl,
VariableContract variableContract)
Returns a ProActiveDescriptor that gives an object representation
of the XML document located at the given url, and uses the given Variable Contract. |
static java.lang.String |
getProActiveVersion()
Returns the number of this version |
static StubObject |
getStubOnThis()
Returns a Stub-Proxy couple pointing to the local body associated to the active object whose active thread is calling this method. |
static boolean |
isAwaited(java.lang.Object future)
Return false if the object future is available. |
static boolean |
isException(java.lang.Object future)
Find out if the object contains an exception that should be thrown |
static java.lang.String[] |
listActive(java.lang.String url)
Looks-up all Active Objects registered on a host, using a registry(RMI or JINI or HTTP or IBIS) The registry where to look for is fully determined with the protocol included in the url. |
static java.lang.Object |
lookupActive(java.lang.String classname,
java.lang.String url)
Looks-up an active object previously registered in a registry(RMI, IBIS, HTTP). |
static VirtualNode |
lookupVirtualNode(java.lang.String url)
Looks-up a VirtualNode previously registered in a registry(RMI or JINI or HTTP or IBIS) The registry where to look for is fully determined with the protocol included in the url |
static void |
migrateTo(Body bodyToMigrate,
Node node,
boolean isNFRequest)
Migrates the body bodyToMigrate to the given node. |
static void |
migrateTo(Body bodyToMigrate,
Node node,
boolean isNFRequest,
int priority)
Migrates the body bodyToMigrate to the given node. |
static void |
migrateTo(Body bodyToMigrate,
java.lang.Object activeObject,
boolean isNFRequest)
Migrates the given body to the same location as the active object given in parameter. |
static void |
migrateTo(Body bodyToMigrate,
java.lang.String nodeURL,
boolean isNFRequest)
Migrates the given body to the node caracterized by the given url. |
static void |
migrateTo(Node node)
Migrates the active object whose active thread is calling this method to the given node. |
static void |
migrateTo(java.lang.Object activeObject)
Migrates the active object whose active thread is calling this method to the same location as the active object given in parameter. |
static void |
migrateTo(java.lang.String nodeURL)
Migrates the active object whose active thread is calling this method to the node caracterized by the given url. |
static java.lang.Object |
newActive(java.lang.String classname,
java.lang.Class[] genericParameters,
java.lang.Object[] constructorParameters)
Creates a new ActiveObject based on classname attached to a default node in the local JVM. |
static java.lang.Object |
newActive(java.lang.String classname,
java.lang.Class[] genericParameters,
java.lang.Object[] constructorParameters,
Node node)
Creates a new ActiveObject based on classname attached to the given node or on a default node in the local JVM if the given node is null. |
static java.lang.Object |
newActive(java.lang.String classname,
java.lang.Class[] genericParameters,
java.lang.Object[] constructorParameters,
Node node,
Active activity,
MetaObjectFactory factory)
Creates a new ActiveObject based on classname attached to the given node or on a default node in the local JVM if the given node is null. |
static java.lang.Object |
newActive(java.lang.String classname,
java.lang.Class[] genericParameters,
java.lang.Object[] constructorParameters,
java.lang.String nodeURL)
Creates a new ActiveObject based on classname attached to the node of the given URL. |
static java.lang.Object |
newActive(java.lang.String classname,
java.lang.Object[] constructorParameters)
Creates a new ActiveObject based on classname attached to a default node in the local JVM. |
static java.lang.Object |
newActive(java.lang.String classname,
java.lang.Object[] constructorParameters,
Node node)
Creates a new ActiveObject based on classname attached to the given node or on a default node in the local JVM if the given node is null. |
static java.lang.Object |
newActive(java.lang.String classname,
java.lang.Object[] constructorParameters,
java.lang.String nodeURL)
Creates a new ActiveObject based on classname attached to the node of the given URL. |
static java.lang.Object |
newActiveAsGroup(java.lang.String classname,
java.lang.Class[] genericParameters,
java.lang.Object[] constructorParameters,
VirtualNode virtualnode)
Creates a new group of Active Objects. |
static java.lang.Object |
newActiveAsGroup(java.lang.String classname,
java.lang.Class[] genericParameters,
java.lang.Object[] constructorParameters,
VirtualNode virtualnode,
Active activity,
MetaObjectFactory factory)
Creates a new group of Active Objects. |
static java.lang.Object |
newActiveAsGroup(java.lang.String classname,
java.lang.Object[] constructorParameters,
VirtualNode virtualnode)
Creates a new group of Active Objects. |
static java.lang.Object |
newActiveAsGroup(java.lang.String className,
java.lang.Object[] constructorParameters,
VirtualNode virtualNode,
Active activity,
MetaObjectFactory factory)
Creates a new group of Active Objects. |
static Component |
newActiveComponent(java.lang.String classname,
java.lang.Class[] genericParameters,
java.lang.Object[] constructorParameters,
Node node,
Active activity,
MetaObjectFactory factory,
ComponentParameters componentParameters)
Creates a new ProActive component over the specified base class, according to the given component parameters, and returns a reference on the component of type Component. |
static Component |
newActiveComponent(java.lang.String className,
java.lang.Class[] genericParameters,
java.lang.Object[] constructorParameters,
VirtualNode vn,
ComponentParameters componentParameters)
Creates a new ProActive component over the specified base class, according to the given component parameters, and returns a reference on the component of type Component. |
static Component |
newActiveComponent(java.lang.String className,
java.lang.Object[] constructorParameters,
Node node,
Active activity,
MetaObjectFactory factory,
ComponentParameters componentParameters)
Creates a new ProActive component over the specified base class, according to the given component parameters, and returns a reference on the component of type Component. |
static Component |
newActiveComponent(java.lang.String className,
java.lang.Object[] constructorParameters,
VirtualNode vn,
ComponentParameters componentParameters)
Creates a new ProActive component over the specified base class, according to the given component parameters, and returns a reference on the component of type Component. |
static java.lang.Object[] |
newActiveInParallel(java.lang.String className,
java.lang.Class[] genericParameters,
java.lang.Object[][] constructorParameters,
Node[] nodes)
Create a set of active objects with given construtor parameters. |
static java.lang.Object[] |
newActiveInParallel(java.lang.String className,
java.lang.Class[] genericParameters,
java.lang.Object[] constructorParameters,
VirtualNode virtualNode)
Create a set of identical active objects on a given virtual node. |
static java.lang.Object[] |
newActiveInParallel(java.lang.String className,
java.lang.Object[][] constructorParameters,
Node[] nodes)
Create a set of active objects with given construtor parameters. |
static java.lang.Object[] |
newActiveInParallel(java.lang.String className,
java.lang.Object[] constructorParameters,
VirtualNode virtualNode)
Create a set of identical active objects on a given virtual node. |
static void |
newMain(java.lang.String classname,
java.lang.String[] mainParameters,
Node node)
Launches the main method of the main class through the node node |
static void |
newRemote(java.lang.String classname,
Node node)
Creates an instance of the remote class. |
static void |
register(java.lang.Object obj,
java.lang.String url)
Registers an active object into a registry(RMI or IBIS or HTTP, default is RMI). |
static void |
registerVirtualNode(VirtualNode virtualNode,
java.lang.String registrationProtocol,
boolean replacePreviousBinding)
Registers locally the given VirtualNode in a registry such RMIRegistry or JINI Lookup Service or HTTP registry. |
static void |
removeImmediateService(java.lang.Object obj,
java.lang.String methodName,
java.lang.Class[] parametersTypes)
Removes an immmediate execution for the active object obj, i.e. requests corresponding to the name and types of parameters will be executed by the calling thread, and not added in the request queue. |
static void |
removeNFEListenerOnAO(java.lang.Object ao,
NFEListener listener)
Remove a listener for NFE reaching a given active object |
static void |
removeNFEListenerOnGroup(java.lang.Object group,
NFEListener listener)
Remove a listener for NFE regarding a group. |
static void |
removeNFEListenerOnJVM(NFEListener listener)
Remove a listener for NFE reaching the local JVM |
static void |
removeNFEListenerOnProxy(java.lang.Object ao,
NFEListener listener)
Remove a listener for NFE reaching the client side of a given active object |
static void |
removeTryWithCatch()
This has to be called at the beginning of the finally block, so it requires one. |
static void |
setImmediateService(java.lang.Object obj,
java.lang.String methodName)
Set an immediate execution for the target active object obj of the method String, ie request of name methodName will be executed right away upon arrival at the target AO context. |
static void |
setImmediateService(java.lang.Object obj,
java.lang.String methodName,
java.lang.Class[] parametersTypes)
Set an immediate execution for the target active object obj of the method String, ie request of name methodName will be executed right away upon arrival at the target AO context. |
static void |
terminateActiveObject(java.lang.Object ao,
boolean immediate)
Kill an Active Object while calling terminate() method on its body. |
static void |
throwArrivedException()
This can be used to query a potential returned exception, and throw it if it exists. |
static void |
tryWithCatch(java.lang.Class c)
This has to be called just before a try block for a single exception. |
static void |
tryWithCatch(java.lang.Class[] c)
This has to be called just before a try block for many exceptions. |
static java.lang.Object |
turnActive(java.lang.Object target)
Turns the target object into an ActiveObject attached to a default node in the local JVM. |
static java.lang.Object |
turnActive(java.lang.Object target,
java.lang.Class[] genericParameters)
Turns the target object into an ActiveObject attached to a default node in the local JVM. |
static java.lang.Object |
turnActive(java.lang.Object target,
java.lang.Class[] genericParameters,
Node node)
Turns the target object into an Active Object and send it to the given Node or to a default node in the local JVM if the given node is null. |
static java.lang.Object |
turnActive(java.lang.Object target,
java.lang.Class[] genericParameters,
Node node,
Active activity,
MetaObjectFactory factory)
Turns the target object into an Active Object and send it to the given Node or to a default node in the local JVM if the given node is null. |
static java.lang.Object |
turnActive(java.lang.Object target,
java.lang.Class[] genericParameters,
java.lang.String nodeURL)
Turns the target object into an Active Object and send it to the Node identified by the given url. |
static java.lang.Object |
turnActive(java.lang.Object target,
java.lang.Class[] genericParameters,
java.lang.String nameOfTargetType,
Node node)
Turns a Java object into an Active Object and send it to a remote Node or to a local node if the given node is null. |
static java.lang.Object |
turnActive(java.lang.Object target,
java.lang.Class[] genericParameters,
java.lang.String nameOfTargetType,
Node node,
Active activity,
MetaObjectFactory factory)
Turns a Java object into an Active Object and send it to a remote Node or to a local node if the given node is null. |
static java.lang.Object |
turnActive(java.lang.Object target,
Node node)
Turns the target object into an Active Object and send it to the given Node or to a default node in the local JVM if the given node is null. |
static java.lang.Object |
turnActive(java.lang.Object target,
Node node,
Active activity,
MetaObjectFactory factory)
Turns the target object into an Active Object and send it to the given Node or to a default node in the local JVM if the given node is null. |
static java.lang.Object |
turnActive(java.lang.Object target,
java.lang.String nodeURL)
Turns the target object into an Active Object and send it to the Node identified by the given url. |
static java.lang.Object |
turnActive(java.lang.Object target,
java.lang.String nameOfTargetType,
java.lang.Class[] genericParameters,
Node node,
Active activity,
MetaObjectFactory factory)
Turns a Java object into an Active Object and send it to a remote Node or to a local node if the given node is null. |
static java.lang.Object |
turnActive(java.lang.Object target,
java.lang.String nameOfTargetType,
Node node)
Turns a Java object into an Active Object and send it to a remote Node or to a local node if the given node is null. |
static java.lang.Object |
turnActive(java.lang.Object target,
java.lang.String nameOfTargetType,
Node node,
Active activity,
MetaObjectFactory factory)
Turns a Java object into an Active Object and send it to a remote Node or to a local node if the given node is null. |
static java.lang.Object |
turnActiveAsGroup(java.lang.Object target,
java.lang.Class[] genericParameters,
java.lang.String nameOfTargetType,
VirtualNode virtualnode)
Turns a Java object into a group of Active Objects and sends the elements of the group to remote Nodes mapped to the given virtualnode in the XML deployment descriptor. |
static java.lang.Object |
turnActiveAsGroup(java.lang.Object target,
java.lang.String nameOfTargetType,
VirtualNode virtualnode)
Turns a Java object into a group of Active Objects and sends the elements of the group to remote Nodes mapped to the given virtualnode in the XML deployment descriptor. |
static void |
unExposeAsWebService(java.lang.String urn,
java.lang.String url)
Delete the service on a web server |
static void |
unExposeComponentAsWebService(java.lang.String componentName,
java.lang.String url,
Component component)
Undeploy component interfaces on a web server |
static void |
unregister(java.lang.String url)
Unregisters an active object previously registered into a registry. |
static void |
unregisterVirtualNode(VirtualNode virtualNode)
Unregisters the virtualNode previoulsy registered in a registry such as JINI or RMI. |
static void |
waitFor(java.lang.Object future)
Blocks the calling thread until the object future
is available. |
static void |
waitFor(java.lang.Object future,
long timeout)
Blocks the calling thread until the object future
is available or until the timeout expires. |
static void |
waitForAll(java.util.Vector futures)
Blocks the calling thread until all futures in the vector are available. |
static void |
waitForAll(java.util.Vector futures,
long timeout)
Blocks the calling thread until all futures in the vector are available or until the timeout expires. |
static int |
waitForAny(java.util.Vector futures)
Blocks the calling thread until one of the futures in the vector is available. |
static int |
waitForAny(java.util.Vector futures,
long timeout)
Blocks the calling thread until one of the futures in the vector is available or until the timeout expires. |
static void |
waitForPotentialException()
This is used to wait for the return of every call, so that we know the execution can continue safely with no pending exception. |
static void |
waitForTheNth(java.util.Vector futures,
int n)
Blocks the calling thread until the N-th of the futures in the vector is available. |
static void |
waitForTheNth(java.util.Vector futures,
int n,
long timeout)
Blocks the calling thread until the N-th of the futures in the vector is available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
public static final org.apache.log4j.Logger loggerGroup
Method Detail |
---|
public static void newMain(java.lang.String classname, java.lang.String[] mainParameters, Node node) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, ProActiveException
classname
- classname of the main method to launchmainParameters
- parametersnode
- node in which launch the main method
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
ProActiveException
public static void newRemote(java.lang.String classname, Node node) throws java.lang.ClassNotFoundException, ProActiveException
classname
- node
-
java.lang.ClassNotFoundException
ProActiveException
public static java.lang.Object newActive(java.lang.String classname, java.lang.Object[] constructorParameters) throws ActiveObjectCreationException, NodeException
classname
- the name of the class to instanciate as activeconstructorParameters
- the parameters of the constructor.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the DefaultNode cannot be createdpublic static java.lang.Object newActive(java.lang.String classname, java.lang.Object[] constructorParameters, java.lang.String nodeURL) throws ActiveObjectCreationException, NodeException
classname
- the name of the class to instanciate as activeconstructorParameters
- the parameters of the constructor.nodeURL
- the URL of the node where to create the active object. If null, the active object
is created localy on a default node
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node URL cannot be resolved as an existing Nodepublic static java.lang.Object newActive(java.lang.String classname, java.lang.Object[] constructorParameters, Node node) throws ActiveObjectCreationException, NodeException
classname
- the name of the class to instanciate as activeconstructorParameters
- the parameters of the constructor.node
- the possibly null node where to create the active object.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object[] newActiveInParallel(java.lang.String className, java.lang.Object[][] constructorParameters, Node[] nodes) throws java.lang.ClassNotFoundException
Create a set of active objects with given construtor parameters. The object activation is optimized by a thread pool.
The total of active objects created is equal to the number of nodes and to the total of constructor paramaters also.
The condition to use this method is that: constructorParameters.length == nodes.length
className
- the name of the class to instanciate as active.constructorParameters
- the array that contains the parameters used
to build the active objects. All active objects have the same constructor
parameters.nodes
- the array of nodes where the active objects are created.
java.lang.ClassNotFoundException
- in the case of className is not a class.public static java.lang.Object[] newActiveInParallel(java.lang.String className, java.lang.Object[] constructorParameters, VirtualNode virtualNode) throws NodeException, java.lang.ClassNotFoundException
Create a set of identical active objects on a given virtual node. The object activation is optimized by a thread pool.
When the given virtual node is not previously activated, this method employ the node creation event producer/listerner mechanism joined to the thread pool. That aims to create an active object just after the node deploying.
className
- the name of the class to instanciate as active.constructorParameters
- the array that contains the parameters used
to build the active objects. All active objects have the same constructor
parameters.virtualNode
- the virtual node where the active objects are created.
NodeException
- happens when the given virtualNode is already
activated and throws an exception.
java.lang.ClassNotFoundException
- in the case of className is not a class.public static java.lang.Object newActiveAsGroup(java.lang.String classname, java.lang.Object[] constructorParameters, VirtualNode virtualnode) throws ActiveObjectCreationException, NodeException
classname
- classname the name of the class to instanciate as activeconstructorParameters
- constructorParameters the parameters of the constructor.virtualnode
- The virtualnode where to create active objects. Active objects will be created
on each node mapped to the given virtualnode in XML deployment descriptor.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the virtualnode was nullpublic static java.lang.Object newActiveAsGroup(java.lang.String className, java.lang.Object[] constructorParameters, VirtualNode virtualNode, Active activity, MetaObjectFactory factory) throws ActiveObjectCreationException, NodeException
className
- classname the name of the class to instanciate as activeconstructorParameters
- constructorParameters the parameters of the constructor.virtualNode
- The virtualnode where to create active objects. Active objects will be created
on each node mapped to the given virtualnode in XML deployment descriptor.activity
- the possibly null activity object defining the different step in the activity of the object.
see the definition of the activity in the javadoc of this classe for more information.factory
- the possibly null meta factory giving all factories for creating the meta-objects part of the
body associated to the reified object. If null the default ProActive MataObject factory is used.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the virtualnode was nullpublic static Component newActiveComponent(java.lang.String className, java.lang.Object[] constructorParameters, Node node, Active activity, MetaObjectFactory factory, ComponentParameters componentParameters) throws ActiveObjectCreationException, NodeException
className
- the name of the base class. "Composite" if the component is a composite,
"ParallelComposite" if the component is a parallel composite componentconstructorParameters
- the parameters of the constructor of the object
to instantiate as active. If some parameters are primitive types, the wrapper
class types should be given here. null can be used to specify that no parameter
are passed to the constructor.node
- the possibly null node where to create the active object. If null, the active object
is created localy on a default nodeactivity
- the possibly null activity object defining the different step in the activity of the object.
see the definition of the activity in the javadoc of this classe for more information.factory
- should be null for components (automatically created)componentParameters
- the parameters of the component
ActiveObjectCreationException
- if a problem occurs while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static Component newActiveComponent(java.lang.String className, java.lang.Object[] constructorParameters, VirtualNode vn, ComponentParameters componentParameters) throws ActiveObjectCreationException, NodeException
className
- the name of the base class. "Composite" if the component is a composite,
"ParallelComposite" if the component is a parallel composite componentconstructorParameters
- the parameters of the constructor of the object
to instantiate as active. If some parameters are primitive types, the wrapper
class types should be given here. null can be used to specify that no parameter
are passed to the constructor.vn
- the possibly null node where to create the active object. If null, the active object
is created localy on a default nodecomponentParameters
- the parameters of the component
ActiveObjectCreationException
- if a problem occurs while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object turnActive(java.lang.Object target) throws ActiveObjectCreationException, NodeException
target
- The object to turn active
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the DefaultNode cannot be createdpublic static java.lang.Object turnActive(java.lang.Object target, java.lang.String nodeURL) throws ActiveObjectCreationException, NodeException
target
- The object to turn activenodeURL
- the URL of the node where to create the active object on. If null, the active object
is created localy on a default node
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object turnActive(java.lang.Object target, Node node) throws ActiveObjectCreationException, NodeException
target
- The object to turn activenode
- The Node the object should be sent to or null to create the active
object in the local JVM
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object turnActive(java.lang.Object target, Node node, Active activity, MetaObjectFactory factory) throws ActiveObjectCreationException, NodeException
target
- The object to turn activenode
- The Node the object should be sent to or null to create the active
object in the local JVMactivity
- the possibly null activity object defining the different step in the activity of the object.
see the definition of the activity in the javadoc of this classe for more information.factory
- the possibly null meta factory giving all factories for creating the meta-objects part of the
body associated to the reified object. If null the default ProActive MataObject factory is used.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object turnActive(java.lang.Object target, java.lang.String nameOfTargetType, Node node) throws ActiveObjectCreationException, NodeException
nameOfTargetType
.
target
- The object to turn activenameOfTargetType
- the fully qualified name of the type the stub class should
inherit from. That type can be less specific than the type of the target object.node
- The Node the object should be sent to or null to create the active
object in the local JVM
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object turnActive(java.lang.Object target, java.lang.String nameOfTargetType, Node node, Active activity, MetaObjectFactory factory) throws ActiveObjectCreationException, NodeException
nameOfTargetType
.
A Stub is dynamically generated for the existing object. The result of the call
will be an instance of the Stub class pointing to the proxy object pointing
to the body object pointing to the existing object. The body can be remote
or local depending if the existing is sent remotely or not.
target
- The object to turn activenameOfTargetType
- the fully qualified name of the type the stub class should
inherit from. That type can be less specific than the type of the target object.node
- The Node the object should be sent to or null to create the active
object in the local JVMactivity
- the possibly null activity object defining the different step in the activity of the object.
see the definition of the activity in the javadoc of this classe for more information.factory
- the possibly null meta factory giving all factories for creating the meta-objects part of the
body associated to the reified object. If null the default ProActive MataObject factory is used.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object turnActiveAsGroup(java.lang.Object target, java.lang.String nameOfTargetType, VirtualNode virtualnode) throws ActiveObjectCreationException, NodeException
nameOfTargetType
.
target
- The object to turn activenameOfTargetType
- the fully qualified name of the type the stub class should
inherit from. That type can be less specific than the type of the target object.virtualnode
- The VirtualNode where the target object will be turn into an Active Object
Target object will be turned into an Active Object on each node mapped to the given virtualnode in XML deployment descriptor.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object newActive(java.lang.String classname, java.lang.Class[] genericParameters, java.lang.Object[] constructorParameters) throws ActiveObjectCreationException, NodeException
classname
- the name of the class to instanciate as activegenericParameters
- parameterizing types (of class @param classname)constructorParameters
- the parameters of the constructor.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the DefaultNode cannot be createdpublic static java.lang.Object newActive(java.lang.String classname, java.lang.Class[] genericParameters, java.lang.Object[] constructorParameters, java.lang.String nodeURL) throws ActiveObjectCreationException, NodeException
classname
- the name of the class to instanciate as activegenericParameters
- parameterizing types (of class @param classname)constructorParameters
- the parameters of the constructor.nodeURL
- the URL of the node where to create the active object. If null, the active object
is created localy on a default node
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node URL cannot be resolved as an existing Nodepublic static java.lang.Object newActive(java.lang.String classname, java.lang.Class[] genericParameters, java.lang.Object[] constructorParameters, Node node) throws ActiveObjectCreationException, NodeException
classname
- the name of the class to instanciate as activegenericParameters
- parameterizing types (of class @param classname)constructorParameters
- the parameters of the constructor.node
- the possibly null node where to create the active object.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object newActive(java.lang.String classname, java.lang.Class[] genericParameters, java.lang.Object[] constructorParameters, Node node, Active activity, MetaObjectFactory factory) throws ActiveObjectCreationException, NodeException
classname
- the name of the class to instanciate as activegenericParameters
- parameterizing types (of class @param classname)constructorParameters
- the parameters of the constructor of the object
to instantiate as active. If some parameters are primitive types, the wrapper
class types should be given here. null can be used to specify that no parameter
are passed to the constructor.node
- the possibly null node where to create the active object. If null, the active object
is created localy on a default nodeactivity
- the possibly null activity object defining the different step in the activity of the object.
see the definition of the activity in the javadoc of this classe for more information.factory
- the possibly null meta factory giving all factories for creating the meta-objects part of the
body associated to the reified object. If null the default ProActive MetaObject factory is used.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object[] newActiveInParallel(java.lang.String className, java.lang.Class[] genericParameters, java.lang.Object[][] constructorParameters, Node[] nodes) throws java.lang.ClassNotFoundException
Create a set of active objects with given construtor parameters. The object activation is optimized by a thread pool.
The total of active objects created is equal to the number of nodes and to the total of constructor paramaters also.
The condition to use this method is that: constructorParameters.length == nodes.length
className
- the name of the class to instanciate as active.genericParameters
- genericParameters parameterizing typesconstructorParameters
- the array that contains the parameters used
to build the active objects. All active objects have the same constructor
parameters.nodes
- the array of nodes where the active objects are created.
java.lang.ClassNotFoundException
- in the case of className is not a class.public static java.lang.Object[] newActiveInParallel(java.lang.String className, java.lang.Class[] genericParameters, java.lang.Object[] constructorParameters, VirtualNode virtualNode) throws NodeException, java.lang.ClassNotFoundException
Create a set of identical active objects on a given virtual node. The object activation is optimized by a thread pool.
className
- the name of the class to instanciate as active.genericParameters
- genericParameters parameterizing typesconstructorParameters
- the array that contains the parameters used
to build the active objects. All active objects have the same constructor
parameters.virtualNode
- the virtual node where the active objects are created.
NodeException
- happens when the given virtualNode is already
activated and throws an exception.
java.lang.ClassNotFoundException
- in the case of className is not a class.public static java.lang.Object newActiveAsGroup(java.lang.String classname, java.lang.Class[] genericParameters, java.lang.Object[] constructorParameters, VirtualNode virtualnode) throws ActiveObjectCreationException, NodeException
classname
- classname the name of the class to instanciate as activegenericParameters
- genericParameters parameterizing typesconstructorParameters
- constructorParameters the parameters of the constructor.virtualnode
- The virtualnode where to create active objects. Active objects will be created
on each node mapped to the given virtualnode in XML deployment descriptor.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the virtualnode was nullpublic static java.lang.Object newActiveAsGroup(java.lang.String classname, java.lang.Class[] genericParameters, java.lang.Object[] constructorParameters, VirtualNode virtualnode, Active activity, MetaObjectFactory factory) throws ActiveObjectCreationException, NodeException
classname
- classname the name of the class to instanciate as activegenericParameters
- genericParameters parameterizing typesconstructorParameters
- constructorParameters the parameters of the constructor.virtualnode
- The virtualnode where to create active objects. Active objects will be created
on each node mapped to the given virtualnode in XML deployment descriptor.activity
- the possibly null activity object defining the different step in the activity of the object.
see the definition of the activity in the javadoc of this classe for more information.factory
- the possibly null meta factory giving all factories for creating the meta-objects part of the
body associated to the reified object. If null the default ProActive MataObject factory is used.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the virtualnode was nullpublic static java.lang.Object turnActive(java.lang.Object target, java.lang.String nameOfTargetType, java.lang.Class[] genericParameters, Node node, Active activity, MetaObjectFactory factory) throws ActiveObjectCreationException, NodeException
nameOfTargetType
.
A Stub is dynamically generated for the existing object. The result of the call
will be an instance of the Stub class pointing to the proxy object pointing
to the body object pointing to the existing object. The body can be remote
or local depending if the existing is sent remotely or not.
target
- The object to turn activegenericParameters
- parameterizing types (of class @param classname)nameOfTargetType
- the fully qualified name of the type the stub class should
inherit from. That type can be less specific than the type of the target object.node
- The Node the object should be sent to or null to create the active
object in the local JVMactivity
- the possibly null activity object defining the different step in the activity of the object.
see the definition of the activity in the javadoc of this classe for more information.factory
- the possibly null meta factory giving all factories for creating the meta-objects part of the
body associated to the reified object. If null the default ProActive MataObject factory is used.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static Component newActiveComponent(java.lang.String classname, java.lang.Class[] genericParameters, java.lang.Object[] constructorParameters, Node node, Active activity, MetaObjectFactory factory, ComponentParameters componentParameters) throws ActiveObjectCreationException, NodeException
classname
- the name of the base class. "Composite" if the component is a composite,
"ParallelComposite" if the component is a parallel composite componentgenericParameters
- genericParameters parameterizing typesconstructorParameters
- the parameters of the constructor of the object
to instantiate as active. If some parameters are primitive types, the wrapper
class types should be given here. null can be used to specify that no parameter
are passed to the constructor.node
- the possibly null node where to create the active object. If null, the active object
is created localy on a default nodeactivity
- the possibly null activity object defining the different step in the activity of the object.
see the definition of the activity in the javadoc of this classe for more information.factory
- should be null for components (automatically created)componentParameters
- the parameters of the component
ActiveObjectCreationException
- if a problem occurs while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static Component newActiveComponent(java.lang.String className, java.lang.Class[] genericParameters, java.lang.Object[] constructorParameters, VirtualNode vn, ComponentParameters componentParameters) throws ActiveObjectCreationException, NodeException
className
- the name of the base class. "Composite" if the component is a composite,
"ParallelComposite" if the component is a parallel composite componentgenericParameters
- genericParameters parameterizing typesconstructorParameters
- the parameters of the constructor of the object
to instantiate as active. If some parameters are primitive types, the wrapper
class types should be given here. null can be used to specify that no parameter
are passed to the constructor.vn
- the possibly null node where to create the active object. If null, the active object
is created localy on a default nodecomponentParameters
- the parameters of the component
ActiveObjectCreationException
- if a problem occurs while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object turnActive(java.lang.Object target, java.lang.Class[] genericParameters) throws ActiveObjectCreationException, NodeException
target
- The object to turn activegenericParameters
- genericParameters parameterizing types
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the DefaultNode cannot be createdpublic static java.lang.Object turnActive(java.lang.Object target, java.lang.Class[] genericParameters, java.lang.String nodeURL) throws ActiveObjectCreationException, NodeException
target
- The object to turn activegenericParameters
- genericParameters parameterizing typesnodeURL
- the URL of the node where to create the active object on. If null, the active object
is created localy on a default node
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object turnActive(java.lang.Object target, java.lang.Class[] genericParameters, Node node) throws ActiveObjectCreationException, NodeException
target
- The object to turn activegenericParameters
- genericParameters parameterizing typesnode
- The Node the object should be sent to or null to create the active
object in the local JVM
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object turnActive(java.lang.Object target, java.lang.Class[] genericParameters, Node node, Active activity, MetaObjectFactory factory) throws ActiveObjectCreationException, NodeException
target
- The object to turn activegenericParameters
- genericParameters parameterizing typesnode
- The Node the object should be sent to or null to create the active
object in the local JVMactivity
- the possibly null activity object defining the different step in the activity of the object.
see the definition of the activity in the javadoc of this classe for more information.factory
- the possibly null meta factory giving all factories for creating the meta-objects part of the
body associated to the reified object. If null the default ProActive MataObject factory is used.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object turnActive(java.lang.Object target, java.lang.Class[] genericParameters, java.lang.String nameOfTargetType, Node node) throws ActiveObjectCreationException, NodeException
nameOfTargetType
.
target
- The object to turn activegenericParameters
- genericParameters parameterizing typesnameOfTargetType
- the fully qualified name of the type the stub class should
inherit from. That type can be less specific than the type of the target object.node
- The Node the object should be sent to or null to create the active
object in the local JVM
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object turnActive(java.lang.Object target, java.lang.Class[] genericParameters, java.lang.String nameOfTargetType, Node node, Active activity, MetaObjectFactory factory) throws ActiveObjectCreationException, NodeException
nameOfTargetType
.
A Stub is dynamically generated for the existing object. The result of the call
will be an instance of the Stub class pointing to the proxy object pointing
to the body object pointing to the existing object. The body can be remote
or local depending if the existing is sent remotely or not.
target
- The object to turn activegenericParameters
- genericParameters parameterizing typesnameOfTargetType
- the fully qualified name of the type the stub class should
inherit from. That type can be less specific than the type of the target object.node
- The Node the object should be sent to or null to create the active
object in the local JVMactivity
- the possibly null activity object defining the different step in the activity of the object.
see the definition of the activity in the javadoc of this classe for more information.factory
- the possibly null meta factory giving all factories for creating the meta-objects part of the
body associated to the reified object. If null the default ProActive MataObject factory is used.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object turnActiveAsGroup(java.lang.Object target, java.lang.Class[] genericParameters, java.lang.String nameOfTargetType, VirtualNode virtualnode) throws ActiveObjectCreationException, NodeException
nameOfTargetType
.
target
- The object to turn activegenericParameters
- parameterizing types (of class @param classname)nameOfTargetType
- the fully qualified name of the type the stub class should
inherit from. That type can be less specific than the type of the target object.virtualnode
- The VirtualNode where the target object will be turn into an Active Object
Target object will be turned into an Active Object on each node mapped to the given virtualnode in XML deployment descriptor.
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static void register(java.lang.Object obj, java.lang.String url) throws java.io.IOException
obj
- the active object to register.url
- the url under which the remote body 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 object 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 void unregister(java.lang.String url) throws java.io.IOException
url
- the url under which the active object is registered.
java.io.IOException
- if the remote object cannot be removed from the registrypublic static java.lang.Object lookupActive(java.lang.String classname, java.lang.String url) throws ActiveObjectCreationException, java.io.IOException
classname
- the fully qualified name of the class the stub should inherit from.url
- the url under which the remote body 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
classname
pointing to the
remote body found
java.io.IOException
- if the remote body cannot be found under the given url
or if the object found is not of type RmiRemoteBody
ActiveObjectCreationException
- if the stub-proxy couple cannot be createdpublic static java.lang.String[] listActive(java.lang.String url) throws java.io.IOException
url
- The url where to perform the lookup. The url takes the following form:
protocol://machine_name:port. Protocol and port can be ommited if respectively RMI and 1099:
//machine_name
java.io.IOException
- If the given url does not map to a physical host, or if the connection is refused.public static java.lang.String getActiveObjectNodeUrl(java.lang.Object activeObject)
activeObject
.
activeObject
- the remote active object.
activeObject
.public static boolean isException(java.lang.Object future)
future
- the future object that is examinated
public static void waitFor(java.lang.Object future)
future
is available. future
must be the result object of an
asynchronous call. Usually the the wait by necessity model take care
of blocking the caller thread asking for a result not yet available.
This method allows to block before the result is first used.
future
- object to wait forpublic static void waitFor(java.lang.Object future, long timeout) throws ProActiveException
future
is available or until the timeout expires. future
must be the result object of an
asynchronous call. Usually the the wait by necessity model take care
of blocking the caller thread asking for a result not yet available.
This method allows to block before the result is first used.
future
- object to wait fortimeout
- to wait in ms
ProActiveException
- if the timeout expirepublic static ProActiveDescriptor getProactiveDescriptor() throws ProActiveException, java.io.IOException
ProActiveDescriptor
that gives an object representation
of the XML document located at the url given by proactive.pad system's property.
ProActiveException
ibis.rmi.RemoteException
java.io.IOException
public static ProActiveDescriptor getProactiveDescriptor(java.lang.String xmlDescriptorUrl) throws ProActiveException
ProActiveDescriptor
that gives an object representation
of the XML document located at the given url.
xmlDescriptorUrl
- The url of the XML document
ProActiveException
- if a problem occurs during the creation of the objectProActiveDescriptor
,
VirtualNode
,
VirtualMachine
public static ProActiveDescriptor getProactiveDescriptor(java.lang.String xmlDescriptorUrl, VariableContract variableContract) throws ProActiveException
ProActiveDescriptor
that gives an object representation
of the XML document located at the given url, and uses the given Variable Contract.
xmlDescriptorUrl
- The url of the XML document
ProActiveException
- if a problem occurs during the creation of the objectProActiveDescriptor
,
VirtualNode
,
VirtualMachine
public static void registerVirtualNode(VirtualNode virtualNode, java.lang.String registrationProtocol, boolean replacePreviousBinding) throws ProActiveException, java.rmi.AlreadyBoundException
virtualNode
- the VirtualNode to register.registrationProtocol
- The protocol used for registration or null in order to use the protocol used to start the jvm.
At this time RMI, JINI, HTTP, IBIS are supported. If set to null, the registration protocol will be set to the system property:
proactive.communication.protocolreplacePreviousBinding
-
ProActiveException
- If the VirtualNode with the given name has not been yet activated or does not exist on the local runtime
java.rmi.AlreadyBoundException
public static VirtualNode lookupVirtualNode(java.lang.String url) throws ProActiveException
url
- The url where to perform the lookup. 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
ProActiveException
- If no objects are bound with the given urlpublic static void unregisterVirtualNode(VirtualNode virtualNode) throws ProActiveException
virtualNode
- The VirtualNode to unregister
ProActiveException
- if a problem occurs whle unregistering the VirtualNodepublic static Body getBodyOnThis()
public static StubObject getStubOnThis()
getBodyOnThis()
public static void migrateTo(java.lang.Object activeObject) throws MigrationException
activeObject
- the active object indicating the destination of the migration.
MigrationException
- if the migration failsgetBodyOnThis()
public static void migrateTo(java.lang.String nodeURL) throws MigrationException
nodeURL
- the url of an existing where to migrate to.
MigrationException
- if the migration failsgetBodyOnThis()
public static void migrateTo(Node node) throws MigrationException
node
- an existing node where to migrate to.
MigrationException
- if the migration failsgetBodyOnThis()
public static void migrateTo(Body bodyToMigrate, java.lang.Object activeObject, boolean isNFRequest) throws MigrationException
bodyToMigrate
- the body to migrate.activeObject
- the active object indicating the destination of the migration.isNFRequest
- a boolean indicating that the request is not functional i.e it does not modify the application's computation
MigrationException
- if the migration failspublic static void migrateTo(Body bodyToMigrate, java.lang.String nodeURL, boolean isNFRequest) throws MigrationException
bodyToMigrate
- the body to migrate.nodeURL
- the url of an existing where to migrate to.isNFRequest
- a boolean indicating that the request is not functional i.e it does not modify the application's computation
MigrationException
- if the migration failspublic static void migrateTo(Body bodyToMigrate, Node node, boolean isNFRequest) throws MigrationException
bodyToMigrate
to the given node.
This method can be called from any object and does not perform the migration.
Instead it generates a migration request that is sent to the targeted body.
The object given as destination must be an active object.
bodyToMigrate
- the body to migrate.node
- an existing node where to migrate to.isNFRequest
- a boolean indicating that the request is not functional i.e it does not modify the application's computation
MigrationException
- if the migration failspublic static void migrateTo(Body bodyToMigrate, Node node, boolean isNFRequest, int priority) throws MigrationException
bodyToMigrate
to the given node.
This method can be called from any object and does not perform the migration.
Instead it generates a migration request that is sent to the targeted body.
The object given as destination must be an active object.
bodyToMigrate
- the body to migrate.node
- an existing node where to migrate to.isNFRequest
- a boolean indicating that the request is not functional i.e it does not modify the application's computationpriority
- the level of priority of the non functional request. Levels are defined in Request interface of ProActive.
MigrationException
- if the migration failspublic static int waitForAny(java.util.Vector futures)
futures
- vector of futures
public static int waitForAny(java.util.Vector futures, long timeout) throws ProActiveException
futures
- vector of futurestimeout
- to wait in ms
ProActiveException
- if the timeout expirespublic static void waitForAll(java.util.Vector futures)
futures
- vector of futurespublic static void waitForAll(java.util.Vector futures, long timeout) throws ProActiveException
futures
- vector of futurestimeout
- to wait in ms
ProActiveException
- if the timeout expirespublic static void waitForTheNth(java.util.Vector futures, int n)
futures
- vector of futurespublic static void waitForTheNth(java.util.Vector futures, int n, long timeout) throws ProActiveException
futures
- vector of futuresn
- timeout
- to wait in ms
ProActiveException
- if the timeout expirespublic static boolean allAwaited(java.util.Vector futures)
false
if one object of futures
is
available.
futures
- a table with futures.
true
if all futures are awaited, else false
.public static boolean isAwaited(java.lang.Object future)
future
is available.
This method is recursive, i.e. if result of future is a future too,
isAwaited
is called again on this result, and so on.
public static java.lang.Object getFutureValue(java.lang.Object future)
getFutureValue
is called again on this result, and so on.
public static void enableAC(java.lang.Object obj) throws java.io.IOException
java.io.IOException
public static void disableAC(java.lang.Object obj) throws java.io.IOException
java.io.IOException
public static void terminateActiveObject(java.lang.Object ao, boolean immediate)
ao
- the active object to killimmediate
- if this boolean is true, this method is served as an immediate service.
The active object dies immediatly. Else, the kill request is served as a normal request, it
is put on the request queue.public static void setImmediateService(java.lang.Object obj, java.lang.String methodName) throws java.io.IOException
obj
- the object on which to set this immediate servicemethodName
- the name of the method
java.io.IOException
public static void setImmediateService(java.lang.Object obj, java.lang.String methodName, java.lang.Class[] parametersTypes) throws java.io.IOException
obj
- the object on which to set this immediate servicemethodName
- the name of the methodparametersTypes
- the types of the parameters of the method
java.io.IOException
public static void removeImmediateService(java.lang.Object obj, java.lang.String methodName, java.lang.Class[] parametersTypes) throws java.io.IOException
obj
- the object from which to remove this immediate servicemethodName
- the name of the methodparametersTypes
- the types of the parameters of the method
java.io.IOException
public static java.lang.String getJobId()
public static void exposeAsWebService(java.lang.Object o, java.lang.String url, java.lang.String urn, java.lang.String[] methods)
o
- The object to expose as a web serviceurl
- The url of the host where the object will be seployed (typically http://localhost:8080)urn
- The name of the objectmethods
- The methods that will be exposed as web services functionnalitiespublic static void unExposeAsWebService(java.lang.String urn, java.lang.String url)
urn
- The name of the objecturl
- The url of the web serverpublic static void exposeComponentAsWebService(Component component, java.lang.String url, java.lang.String componentName)
componentName
- The name of the componenturl
- The web server url where to deploy the service - typically "http://localhost:8080"component
- The component owning the interfaces that will be deployed as web services.public static void unExposeComponentAsWebService(java.lang.String componentName, java.lang.String url, Component component)
componentName
- The name of the componenturl
- The url of the web servercomponent
- The component owning the services interfacespublic static java.lang.Object createStubObject(java.lang.String className, UniversalBody body) throws MOPException
MOPException
public static void tryWithCatch(java.lang.Class c)
c
- the caught exception type in the catch blockpublic static void tryWithCatch(java.lang.Class[] c)
c
- the caught exception types in the catch blockpublic static void endTryWithCatch()
public static void removeTryWithCatch()
public static void throwArrivedException()
public static void waitForPotentialException()
public static void addNFEListenerOnJVM(NFEListener listener)
listener
- The listener to addpublic static void removeNFEListenerOnJVM(NFEListener listener)
listener
- The listener to removepublic static void addNFEListenerOnAO(java.lang.Object ao, NFEListener listener)
ao
- The active object receiving the NFElistener
- The listener to addpublic static void removeNFEListenerOnAO(java.lang.Object ao, NFEListener listener)
ao
- The active object receiving the NFElistener
- The listener to removepublic static void addNFEListenerOnProxy(java.lang.Object ao, NFEListener listener)
ao
- The active object receiving the NFElistener
- The listener to addpublic static void removeNFEListenerOnProxy(java.lang.Object ao, NFEListener listener)
ao
- The active object receiving the NFElistener
- The listener to removepublic static void addNFEListenerOnGroup(java.lang.Object group, NFEListener listener)
group
- The group receiving the NFElistener
- The listener to addpublic static void removeNFEListenerOnGroup(java.lang.Object group, NFEListener listener)
group
- The group receiving the NFElistener
- The listener to removepublic static java.util.Collection getAllExceptions()
public static Node getNode() throws NodeException
NodeException
- problem with the node.public static void exitSuccess()
public static void exitFailure()
public void enableExitOnEmpty()
public static java.lang.String getProActiveVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |