jade.core
Interface Node

All Superinterfaces:
java.io.Serializable

public interface Node
extends Serializable

This interface represents a node of a JADE platform (i.e. a component that can host a slice of a platform-level service). Concrete nodes for a platform are created by the concrete IMTP manager.

Author:
Giovanni Rimassa - FRAMeTech s.r.l.
See Also:
jade.core.IMTPManager

Method Summary
 java.lang.Object accept(HorizontalCommand cmd)
          Accepts a command.
 void exit()
           
 void exportSlice(java.lang.String serviceName, Service.Slice localSlice)
           
 java.lang.String getName()
           
 boolean hasPlatformManager()
           
 void interrupt()
           
 boolean ping(boolean hang)
          Performs a ping operation on this node, to check whether it is still alive.
 void platformManagerDead(java.lang.String deadPmAddress, java.lang.String notifyingPmAddr)
           
 void setName(java.lang.String name)
           
 void unexportSlice(java.lang.String serviceName)
           
 

Method Detail

setName

void setName(java.lang.String name)

getName

java.lang.String getName()

hasPlatformManager

boolean hasPlatformManager()

exportSlice

void exportSlice(java.lang.String serviceName,
                 Service.Slice localSlice)

unexportSlice

void unexportSlice(java.lang.String serviceName)

accept

java.lang.Object accept(HorizontalCommand cmd)
                        throws IMTPException
Accepts a command. If this node is a proxy, the accept() method is a remote method, forwarding the command to the remote location it represents.

Parameters:
cmd - The horizontal command to process.
Returns:
The object that is the result of processing the command.
Throws:
IMTPException - If a communication error occurs while contacting the remote node.

ping

boolean ping(boolean hang)
             throws IMTPException
Performs a ping operation on this node, to check whether it is still alive.

Parameters:
hang - If true, the call hangs until the node exits or is interrupted.
Returns:
If the node is currently terminating, true is returned, else false
Throws:
IMTPException

interrupt

void interrupt()
               throws IMTPException
Throws:
IMTPException

exit

void exit()
          throws IMTPException
Throws:
IMTPException

platformManagerDead

void platformManagerDead(java.lang.String deadPmAddress,
                         java.lang.String notifyingPmAddr)
                         throws IMTPException
Throws:
IMTPException


These are the official JADE API. For these API backward compatibility is guaranteed accross JADE versions