Package jade.core
Class BaseNode
- java.lang.Object
-
- jade.core.BaseNode
-
- All Implemented Interfaces:
Node,Serializable,Serializable
public abstract class BaseNode extends Object implements Node, Serializable
This class provides a partial implementation of theNodeinterface. Concrete IMTPs will have to provide a full implementation of theNodeinterface, possibly by subclassing this class.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceManagermyServiceManager
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexportSlice(String serviceName, Service.Slice localSlice)StringgetName()protected Service.SlicegetSlice(String serviceName)booleanhasPlatformManager()voidplatformManagerDead(String deadPMAddr, String notifyingPMAddr)ObjectserveHorizontalCommand(HorizontalCommand cmd)Provides an IMTP independent implementation for the horizontal command serving mechanism.voidsetCommandProcessor(jade.core.CommandProcessor cp)voidsetName(String name)voidsetServiceManager(ServiceManager mgr)StringtoString()voidunexportSlice(String serviceName)
-
-
-
Field Detail
-
myServiceManager
protected transient ServiceManager myServiceManager
-
-
Constructor Detail
-
BaseNode
public BaseNode(String name, boolean hasPM)
-
-
Method Detail
-
hasPlatformManager
public boolean hasPlatformManager()
- Specified by:
hasPlatformManagerin interfaceNode
-
exportSlice
public void exportSlice(String serviceName, Service.Slice localSlice)
- Specified by:
exportSlicein interfaceNode
-
unexportSlice
public void unexportSlice(String serviceName)
- Specified by:
unexportSlicein interfaceNode
-
getSlice
protected Service.Slice getSlice(String serviceName)
-
serveHorizontalCommand
public Object serveHorizontalCommand(HorizontalCommand cmd) throws ServiceException
Provides an IMTP independent implementation for the horizontal command serving mechanism. IMTP dependent implementations of the accept() method should invoke this method.- Parameters:
cmd- The horizontal command to process.- Returns:
- The object that is the result of processing the command.
- Throws:
ServiceException- If the service the command belongs to is not present on this node.
-
setCommandProcessor
public void setCommandProcessor(jade.core.CommandProcessor cp)
-
setServiceManager
public void setServiceManager(ServiceManager mgr)
-
platformManagerDead
public void platformManagerDead(String deadPMAddr, String notifyingPMAddr) throws IMTPException
- Specified by:
platformManagerDeadin interfaceNode- Throws:
IMTPException
-
-