com.apama.epl.plugin
Class Channel

java.lang.Object
  extended by com.apama.epl.plugin.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
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
 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
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()


Submit a bug or feature
Copyright (c) 2013-2014 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its Subsidiaries and or/its Affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.