Package jade.core.replication
Interface MainReplicationSlice
-
- All Superinterfaces:
Serializable,Serializable,Service.Slice
- All Known Implementing Classes:
MainReplicationProxy
public interface MainReplicationSlice extends Service.Slice
The horizontal interface for the JADE kernel-level service managing the main-container replication subsystem installed in the platform.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l.
-
-
Field Summary
Fields Modifier and Type Field Description static StringH_ADDREPLICAstatic StringH_BORNAGENTstatic StringH_DEADAGENTstatic StringH_DEADMTPstatic StringH_DEADTOOLstatic StringH_FILLGADTstatic StringH_GETLABELstatic StringH_GETPLATFORMMANAGERADDRESSstatic StringH_INVOKESERVICEMETHODstatic StringH_NEWMTPstatic StringH_NEWTOOLstatic StringH_REMOVEREPLICAstatic StringH_RESUMEDAGENTstatic StringH_SUSPENDEDAGENTstatic StringLEADERSHIP_ACQUIREDThe vertical command issued on the new master main container just after leadership acquisitionstatic StringNAMEThe name of this service.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddReplica(String sliceName, String smAddr, int sliceIndex, NodeDescriptor dsc, Vector services)voidfillGADT(AID[] agents, ContainerID[] containers)intgetLabel()StringgetPlatformManagerAddress()voidnewTool(AID tool)voidremoveReplica(String smAddr, int sliceIndex)voidsuspendedAgent(AID name)-
Methods inherited from interface jade.core.Service.Slice
getNode, getService, serve
-
-
-
-
Field Detail
-
NAME
static final String NAME
The name of this service.- See Also:
- Constant Field Values
-
LEADERSHIP_ACQUIRED
static final String LEADERSHIP_ACQUIRED
The vertical command issued on the new master main container just after leadership acquisition- See Also:
- Constant Field Values
-
H_GETLABEL
static final String H_GETLABEL
- See Also:
- Constant Field Values
-
H_GETPLATFORMMANAGERADDRESS
static final String H_GETPLATFORMMANAGERADDRESS
- See Also:
- Constant Field Values
-
H_ADDREPLICA
static final String H_ADDREPLICA
- See Also:
- Constant Field Values
-
H_REMOVEREPLICA
static final String H_REMOVEREPLICA
- See Also:
- Constant Field Values
-
H_FILLGADT
static final String H_FILLGADT
- See Also:
- Constant Field Values
-
H_BORNAGENT
static final String H_BORNAGENT
- See Also:
- Constant Field Values
-
H_DEADAGENT
static final String H_DEADAGENT
- See Also:
- Constant Field Values
-
H_SUSPENDEDAGENT
static final String H_SUSPENDEDAGENT
- See Also:
- Constant Field Values
-
H_RESUMEDAGENT
static final String H_RESUMEDAGENT
- See Also:
- Constant Field Values
-
H_NEWMTP
static final String H_NEWMTP
- See Also:
- Constant Field Values
-
H_DEADMTP
static final String H_DEADMTP
- See Also:
- Constant Field Values
-
H_NEWTOOL
static final String H_NEWTOOL
- See Also:
- Constant Field Values
-
H_DEADTOOL
static final String H_DEADTOOL
- See Also:
- Constant Field Values
-
H_INVOKESERVICEMETHOD
static final String H_INVOKESERVICEMETHOD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLabel
int getLabel() throws IMTPException- Throws:
IMTPException
-
getPlatformManagerAddress
String getPlatformManagerAddress() throws IMTPException
- Throws:
IMTPException
-
addReplica
void addReplica(String sliceName, String smAddr, int sliceIndex, NodeDescriptor dsc, Vector services) throws IMTPException
- Throws:
IMTPException
-
removeReplica
void removeReplica(String smAddr, int sliceIndex) throws IMTPException
- Throws:
IMTPException
-
fillGADT
void fillGADT(AID[] agents, ContainerID[] containers) throws IMTPException
- Throws:
IMTPException
-
suspendedAgent
void suspendedAgent(AID name) throws IMTPException, NotFoundException
- Throws:
IMTPExceptionNotFoundException
-
newTool
void newTool(AID tool) throws IMTPException
- Throws:
IMTPException
-
-