Package org.asteriskjava.manager.action

Examples of org.asteriskjava.manager.action.PingAction


    {
        assertTrue(mc.isShowVersionCommandAction(new CommandAction("show version")));
        assertTrue(mc.isShowVersionCommandAction(new CommandAction("core show version")));
        assertTrue(mc.isShowVersionCommandAction(new CommandAction("core show version foo bar")));
        assertFalse(mc.isShowVersionCommandAction(new CommandAction("foo show version")));
        assertFalse(mc.isShowVersionCommandAction(new PingAction()));
    }
View Full Code Here


    {
        try
        {
            if (timeout <= 0)
            {
                c.sendAction(new PingAction(), null);
            }
            else
            {
                final ManagerResponse response;

                response = c.sendAction(new PingAction(), timeout);
                logger.debug("Ping response '" + response + "' for " + c.toString());
            }
        }
        catch (Exception e)
        {
View Full Code Here

    {
        try
        {
            if (timeout <= 0)
            {
                c.sendAction(new PingAction(), null);
            }
            else
            {
                final ManagerResponse response;

                response = c.sendAction(new PingAction(), timeout);
                logger.debug("Ping response '" + response + "' for " + c.toString());
            }
        }
        catch (Exception e)
        {
View Full Code Here

TOP

Related Classes of org.asteriskjava.manager.action.PingAction

Copyright © 2018 www.massapicom. 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.