Class MigratableChannelOutputImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addWriteFilter​(Filter filter)
      Installs a write filter defining a transformation to be applied by the write method of the channel end.
      void addWriteFilter​(Filter filter, int index)
      Installs a write filter defining a transformation to be applied by the write method of the channel end at a specific index.
      void destroyWriter()
      Destroys the channel writer end and frees all the underlying JCSP.NET resources.
      NetChannelLocation getChannelLocation()
      Returns the location of the Networked ChannelInput.
      java.lang.Class getFactoryClass()
      Returns the factory class used for constructing this channel end object.
      Filter getWriteFilter​(int index)
      Returns the write filter installed at the given index.
      int getWriteFilterCount()
      Returns the number of write filters currently installed.
      void poison​(int strength)
      Currently, network channels are unpoisonable so this method has no effect.
      void prepareToMove()
      Prepares the channel end for movement to another node.
      void recreate()
      Requests that the instance of the implementing class should reinitialize itself.
      void recreate​(NetChannelLocation newLoc)
      Requests that the instance of the implementing class should reinitialize itself with a new location.
      void removeWriteFilter​(int index)
      Removes the write filter installed at the given index.
      void removeWriteFilter​(Filter filter)
      Removes the first write filter (lowest index) matching the filter given as a parameter.
      void write​(java.lang.Object object)
      Write an Object to the channel.
      private void writeObject​(java.io.ObjectOutputStream out)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • actualOut

        private transient NetChannelOutput actualOut
        The actual networked output channel end.
      • filters

        private java.util.Vector filters
        The filters applied to the channel.
    • Constructor Detail

      • MigratableChannelOutputImpl

        public MigratableChannelOutputImpl​(NetChannelOutput out)
        MigratableChannelOutputImpl objects constructed with this constructor make use of the default channel name service.
        Parameters:
        out - the underlying networked channel output.
      • MigratableChannelOutputImpl

        public MigratableChannelOutputImpl​(OutputReconnectionManager mgr)
        Constructs a new MigratableChannelOutputImpl with the given reconnection manager.
        Parameters:
        mgr - the reconnection manager to use for the channel.