Examples of UnknownChannelException


Examples of org.tsbs.manager.exceptions.UnknownChannelException

     */
    public void activateChannel( int channelId ) throws UnknownChannelException
    {
        Channel c = ApiUtils.getChannelById( getAllServerChannels(), channelId );
        if( c == null )
            throw new UnknownChannelException( "Channel with the id( " + channelId + " ) not found!" );

        activateChannel( c );
    }
View Full Code Here

Examples of org.tsbs.manager.exceptions.UnknownChannelException

     */
    public void activateChannel( Channel channel ) throws UnknownChannelException
    {
        ChannelWrapper cw = mChannelMap.get( channel.getId() );
        if( cw == null )
            throw new UnknownChannelException( "Channel with the id " + channel.getId() + " not as active found!" );

        cw.setActive();
        sfLogger.log( Level.INFO, String.format( "Activated channel with the id: %d, name: %s", cw.mfChannel.getId(),
                                                    channel.getId(), channel.getName() ), channel );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.