Package jade.core
Interface Service.Slice
-
- All Superinterfaces:
Serializable,Serializable
- All Known Subinterfaces:
AddressNotificationSlice,AgentManagementSlice,AgentMobilitySlice,AgentReplicationSlice,MainReplicationSlice,MessagingSlice,NotificationSlice,PersistentDeliverySlice,ResourceManagementSlice,SAMSlice,TopicManagementSlice,UDPNodeMonitoringSlice
- All Known Implementing Classes:
AddressNotificationProxy,AgentManagementProxy,AgentMobilityProxy,AgentReplicationProxy,MainReplicationProxy,MessagingProxy,NotificationProxy,PersistentDeliveryProxy,ResourceManagementProxy,SAMProxy,Service.SliceProxy,SliceProxy,TopicManagementProxy,UDPNodeMonitoringProxy
- Enclosing interface:
- Service
public static interface Service.Slice extends Serializable
TheSlicenested interface represents that part of a service that is deployed at a given network node.
-
-
Method Summary
All Methods Instance Methods Abstract 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)Serves an incoming horizontal command, performing any required immediate processing, before turning it into a vertical command to be processed by the incoming filter chain.
-
-
-
Method Detail
-
getService
Service getService()
Access the service object which this slice is a part of.- Returns:
- A
Serviceobject, that hasthisas one of its slices. - See Also:
Service.getSlice(String name)
-
getNode
Node getNode() throws ServiceException
Access the node where this slice resides.- Throws:
ServiceException- If some problems occur in retrieving the local node.
-
serve
VerticalCommand serve(HorizontalCommand cmd)
Serves an incoming horizontal command, performing any required immediate processing, before turning it into a vertical command to be processed by the incoming filter chain.- Parameters:
cmd- The command that is to be served.- 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).
-
-