Package jade.core.replication
Class MainReplicationProxy
- java.lang.Object
-
- jade.core.SliceProxy
-
- jade.core.replication.MainReplicationProxy
-
- All Implemented Interfaces:
MainReplicationSlice,Service.Slice,Serializable,Serializable
public class MainReplicationProxy extends SliceProxy implements MainReplicationSlice
The remote proxy for the JADE kernel-level service managing the main-container replication subsystem installed in the platform.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface jade.core.replication.MainReplicationSlice
H_ADDREPLICA, H_BORNAGENT, H_DEADAGENT, H_DEADMTP, H_DEADTOOL, H_FILLGADT, H_GETLABEL, H_GETPLATFORMMANAGERADDRESS, H_INVOKESERVICEMETHOD, H_NEWMTP, H_NEWTOOL, H_REMOVEREPLICA, H_RESUMEDAGENT, H_SUSPENDEDAGENT, LEADERSHIP_ACQUIRED, NAME
-
-
Constructor Summary
Constructors Constructor Description MainReplicationProxy()
-
Method Summary
All Methods Instance Methods Concrete 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 class jade.core.SliceProxy
getNode, getService, serve, setNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jade.core.Service.Slice
getNode, getService, serve
-
-
-
-
Method Detail
-
getLabel
public int getLabel() throws IMTPException- Specified by:
getLabelin interfaceMainReplicationSlice- Throws:
IMTPException
-
getPlatformManagerAddress
public String getPlatformManagerAddress() throws IMTPException
- Specified by:
getPlatformManagerAddressin interfaceMainReplicationSlice- Throws:
IMTPException
-
addReplica
public void addReplica(String sliceName, String smAddr, int sliceIndex, NodeDescriptor dsc, Vector services) throws IMTPException
- Specified by:
addReplicain interfaceMainReplicationSlice- Throws:
IMTPException
-
removeReplica
public void removeReplica(String smAddr, int sliceIndex) throws IMTPException
- Specified by:
removeReplicain interfaceMainReplicationSlice- Throws:
IMTPException
-
fillGADT
public void fillGADT(AID[] agents, ContainerID[] containers) throws IMTPException
- Specified by:
fillGADTin interfaceMainReplicationSlice- Throws:
IMTPException
-
suspendedAgent
public void suspendedAgent(AID name) throws IMTPException, NotFoundException
- Specified by:
suspendedAgentin interfaceMainReplicationSlice- Throws:
IMTPExceptionNotFoundException
-
newTool
public void newTool(AID tool) throws IMTPException
- Specified by:
newToolin interfaceMainReplicationSlice- Throws:
IMTPException
-
-