Package jade.core
Interface Node
-
- All Superinterfaces:
Serializable,Serializable
- All Known Implementing Classes:
BaseNode
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:
IMTPManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectaccept(HorizontalCommand cmd)Accepts a command.voidexit()voidexportSlice(String serviceName, Service.Slice localSlice)StringgetName()booleanhasPlatformManager()voidinterrupt()booleanping(boolean hang)Performs a ping operation on this node, to check whether it is still alive.voidplatformManagerDead(String deadPmAddress, String notifyingPmAddr)voidsetName(String name)voidunexportSlice(String serviceName)
-
-
-
Method Detail
-
setName
void setName(String name)
-
getName
String getName()
-
hasPlatformManager
boolean hasPlatformManager()
-
exportSlice
void exportSlice(String serviceName, Service.Slice localSlice)
-
unexportSlice
void unexportSlice(String serviceName)
-
accept
Object accept(HorizontalCommand cmd) throws IMTPException
Accepts a command. If this node is a proxy, theaccept()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 IMTPExceptionPerforms a ping operation on this node, to check whether it is still alive.- Parameters:
hang- Iftrue, the call hangs until the node exits or is interrupted.- Returns:
- If the node is currently terminating,
trueis returned, elsefalse - Throws:
IMTPException
-
interrupt
void interrupt() throws IMTPException- Throws:
IMTPException
-
exit
void exit() throws IMTPException
- Throws:
IMTPException
-
platformManagerDead
void platformManagerDead(String deadPmAddress, String notifyingPmAddr) throws IMTPException
- Throws:
IMTPException
-
-