Package jade.core
Class SliceProxy
- java.lang.Object
-
- jade.core.SliceProxy
-
- All Implemented Interfaces:
Service.Slice,Serializable,Serializable
- Direct Known Subclasses:
AddressNotificationProxy,AgentManagementProxy,AgentMobilityProxy,AgentReplicationProxy,MainReplicationProxy,MessagingProxy,NotificationProxy,PersistentDeliveryProxy,ResourceManagementProxy,SAMProxy,Service.SliceProxy,TopicManagementProxy,UDPNodeMonitoringProxy
public class SliceProxy extends Object implements Service.Slice
An implementation of theService.Sliceinterface, supporting routed dispatching of horizontal commands.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SliceProxy()SliceProxy(Service svc, Node n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodegetNode()Access the node where this slice resides.ServicegetService()Access the service object which this slice is a part of.VerticalCommandserve(HorizontalCommand cmd)Try to serve an incoming horizontal command, routing it to a remote slice implementation.voidsetNode(Node n)
-
-
-
Method Detail
-
getService
public Service getService()
Description copied from interface:Service.SliceAccess the service object which this slice is a part of.- Specified by:
getServicein interfaceService.Slice- Returns:
- A
Serviceobject, that hasthisas one of its slices. - See Also:
Service.getSlice(String name)
-
getNode
public Node getNode() throws ServiceException
Description copied from interface:Service.SliceAccess the node where this slice resides.- Specified by:
getNodein interfaceService.Slice- Throws:
ServiceException- If some problems occur in retrieving the local node.
-
setNode
public void setNode(Node n)
-
serve
public VerticalCommand serve(HorizontalCommand cmd)
Try to serve an incoming horizontal command, routing it to a remote slice implementation.- Specified by:
servein interfaceService.Slice- Parameters:
cmd- The command to serve, possibly through the network.- Returns:
- A vertical command, that will be processed by the
incoming filter chain of the receiving node. If
nullis returned, no filter/sink processing will happen. This feature can be used to decouple incoming horizontal interaction patterns from vertical incoming commands (e.g. no incoming vertical command is generated until a required set of horizontal commands has been received).
-
-