Package jade.core
Interface PlatformManager
-
- All Known Implementing Classes:
PlatformManagerImpl
public interface PlatformManager- Author:
- Giovanni Caire - TILAB
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUX_NODE_NAMEstatic StringNO_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringaddNode(NodeDescriptor dsc, Vector nodeServices, boolean propagated)voidaddReplica(String newAddr, boolean propagated)voidaddSlice(ServiceDescriptor service, NodeDescriptor dsc, boolean propagated)voidadopt(Node n, Node[] children)VectorfindAllSlices(String serviceKey)Service.SlicefindSlice(String serviceKey, String sliceKey)StringgetLocalAddress()StringgetPlatformName()voidping()voidremoveNode(NodeDescriptor dsc, boolean propagated)voidremoveReplica(String address, boolean propagated)voidremoveSlice(String serviceKey, String sliceKey, boolean propagated)voidsetLocalAddress(String addr)
-
-
-
Field Detail
-
NO_NAME
static final String NO_NAME
- See Also:
- Constant Field Values
-
AUX_NODE_NAME
static final String AUX_NODE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPlatformName
String getPlatformName() throws IMTPException
- Throws:
IMTPException
-
getLocalAddress
String getLocalAddress()
-
setLocalAddress
void setLocalAddress(String addr)
-
addNode
String addNode(NodeDescriptor dsc, Vector nodeServices, boolean propagated) throws IMTPException, ServiceException, JADESecurityException
- Parameters:
dsc- The Descriptor of the new Nodeservices- The services currently installed on the new Nodepropagated- Flag indicating whether the new-node event was a propagated event within the replication mechanism- Throws:
IMTPExceptionServiceExceptionJADESecurityException
-
removeNode
void removeNode(NodeDescriptor dsc, boolean propagated) throws IMTPException, ServiceException
- Throws:
IMTPExceptionServiceException
-
addSlice
void addSlice(ServiceDescriptor service, NodeDescriptor dsc, boolean propagated) throws IMTPException, ServiceException
- Throws:
IMTPExceptionServiceException
-
removeSlice
void removeSlice(String serviceKey, String sliceKey, boolean propagated) throws IMTPException, ServiceException
- Throws:
IMTPExceptionServiceException
-
addReplica
void addReplica(String newAddr, boolean propagated) throws IMTPException, ServiceException
- Throws:
IMTPExceptionServiceException
-
removeReplica
void removeReplica(String address, boolean propagated) throws IMTPException, ServiceException
- Throws:
IMTPExceptionServiceException
-
findSlice
Service.Slice findSlice(String serviceKey, String sliceKey) throws IMTPException, ServiceException
- Throws:
IMTPExceptionServiceException
-
findAllSlices
Vector findAllSlices(String serviceKey) throws IMTPException, ServiceException
- Throws:
IMTPExceptionServiceException
-
adopt
void adopt(Node n, Node[] children) throws IMTPException
- Throws:
IMTPException
-
ping
void ping() throws IMTPException
- Throws:
IMTPException
-
-