Class Channel


  • public class Channel
    extends java.lang.Object
    Class that holds a channel reference and can be passed across the correlator EPL/Java plugin boundary. This class must only be used from an EPL Java Plugin (not from JMon).
    • Constructor Summary

      Constructors 
      Constructor Description
      Channel()
      The default constructor.
      Channel​(Channel other)
      Copy constructor
      Channel​(Context ctx)
      Create a Channel that wraps a Context
      Channel​(java.lang.String name)
      Create a Channel wrapping a channel name
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      boolean empty()
      Returns true iff this wraps an empty context i.e.
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      java.lang.String toString()
      Returns a string representation of the channel instance.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Channel

        public Channel()
        The default constructor. Corresponds to "new Channel" in EPL, creating a Channel that wraps an empty context.
      • Channel

        public Channel​(java.lang.String name)
        Create a Channel wrapping a channel name
      • Channel

        public Channel​(Context ctx)
        Create a Channel that wraps a Context
      • Channel

        public Channel​(Channel other)
        Copy constructor
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a string representation of the channel instance. This method produces an identical string to the one produced in MonitorScript.
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • empty

        public boolean empty()
        Returns true iff this wraps an empty context i.e. sending to this won't do anything
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Throws:
        java.lang.CloneNotSupportedException
        See Also:
        Object.clone()