jade.core
Interface Node

All Superinterfaces:
Serializable, 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

public void setName(java.lang.String name)

getName

public java.lang.String getName()

hasPlatformManager

public boolean hasPlatformManager()

exportSlice

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

unexportSlice

public void unexportSlice(java.lang.String serviceName)

accept

public 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

public 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
IMTPException

interrupt

public void interrupt()
               throws IMTPException
IMTPException

exit

public void exit()
          throws IMTPException
IMTPException

platformManagerDead

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


JADE