org.apache.catalina.tribes.ChannelListener Java Examples

The following examples show how to use org.apache.catalina.tribes.ChannelListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GroupChannel.java    From Tomcat8-Source-Read with MIT License 5 votes vote down vote up
/**
 * Adds a channel listener to the channel.<br>
 * Channel listeners are uniquely identified using the equals(Object) method
 * @param channelListener ChannelListener
 */
@Override
public void addChannelListener(ChannelListener channelListener) {
    if (!this.channelListeners.contains(channelListener) ) {
        this.channelListeners.add(channelListener);
    } else {
        throw new IllegalArgumentException(sm.getString("groupChannel.listener.alreadyExist",
                channelListener,channelListener.getClass().getName()));
    }
}
 
Example #2
Source File: GroupChannel.java    From Tomcat7.0.67 with Apache License 2.0 5 votes vote down vote up
/**
 * Adds a channel listener to the channel.<br>
 * Channel listeners are uniquely identified using the equals(Object) method
 * @param channelListener ChannelListener
 */
@Override
public void addChannelListener(ChannelListener channelListener) {
    if (!this.channelListeners.contains(channelListener) ) {
        this.channelListeners.add(channelListener);
    } else {
        throw new IllegalArgumentException("Listener already exists:"+channelListener+"["+channelListener.getClass().getName()+"]");
    }
}
 
Example #3
Source File: GroupChannel.java    From tomcatsrc with Apache License 2.0 5 votes vote down vote up
/**
 * Adds a channel listener to the channel.<br>
 * Channel listeners are uniquely identified using the equals(Object) method
 * @param channelListener ChannelListener
 */
@Override
public void addChannelListener(ChannelListener channelListener) {
    if (!this.channelListeners.contains(channelListener) ) {
        this.channelListeners.add(channelListener);
    } else {
        throw new IllegalArgumentException("Listener already exists:"+channelListener+"["+channelListener.getClass().getName()+"]");
    }
}
 
Example #4
Source File: GroupChannel.java    From Tomcat8-Source-Read with MIT License 2 votes vote down vote up
/**
 *
 * Removes a channel listener from the channel.<br>
 * Channel listeners are uniquely identified using the equals(Object) method
 * @param channelListener ChannelListener
 */
@Override
public void removeChannelListener(ChannelListener channelListener) {
    channelListeners.remove(channelListener);
}
 
Example #5
Source File: GroupChannel.java    From Tomcat7.0.67 with Apache License 2.0 2 votes vote down vote up
/**
 *
 * Removes a channel listener from the channel.<br>
 * Channel listeners are uniquely identified using the equals(Object) method
 * @param channelListener ChannelListener
 */
@Override
public void removeChannelListener(ChannelListener channelListener) {
    channelListeners.remove(channelListener);
}
 
Example #6
Source File: GroupChannel.java    From tomcatsrc with Apache License 2.0 2 votes vote down vote up
/**
 *
 * Removes a channel listener from the channel.<br>
 * Channel listeners are uniquely identified using the equals(Object) method
 * @param channelListener ChannelListener
 */
@Override
public void removeChannelListener(ChannelListener channelListener) {
    channelListeners.remove(channelListener);
}
 
Example #7
Source File: GroupChannelMBean.java    From Tomcat8-Source-Read with MIT License votes vote down vote up
public void addChannelListener(ChannelListener listener); 
Example #8
Source File: GroupChannelMBean.java    From Tomcat8-Source-Read with MIT License votes vote down vote up
public void removeChannelListener(ChannelListener listener);