jade.core
Class SliceProxy

java.lang.Object
  |
  +--jade.core.SliceProxy
All Implemented Interfaces:
Serializable, java.io.Serializable, Service.Slice

public class SliceProxy
extends java.lang.Object
implements Service.Slice

An implementation of the Service.Slice interface, supporting routed dispatching of horizontal commands.

See Also:
Serialized Form

Constructor Summary
SliceProxy()
           
SliceProxy(Service svc, Node n)
           
 
Method Summary
 Node getNode()
          Access the node where this slice resides.
 Service getService()
          Access the service object which this slice is a part of.
 VerticalCommand serve(HorizontalCommand cmd)
          Try to serve an incoming horizontal command, routing it to a remote slice implementation.
 void setNode(Node n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliceProxy

public SliceProxy()

SliceProxy

public SliceProxy(Service svc,
                  Node n)
Method Detail

getService

public Service getService()
Description copied from interface: Service.Slice
Access the service object which this slice is a part of.

Specified by:
getService in interface Service.Slice
Returns:
A Service object, that has this as one of its slices.
See Also:
Service.getSlice(String name)

getNode

public Node getNode()
             throws ServiceException
Description copied from interface: Service.Slice
Access the node where this slice resides.

Specified by:
getNode in interface Service.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:
serve in interface Service.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 null is 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).


JADE