APISonar


org.apache.ignite.internal.processors.rest.GridRestCommand.LOG

> org > apache > ignite > internal > processors > rest > GridRestCommand > LOG
org APIs apache APIs ignite APIs internal APIs processors APIs rest APIs GridRestCommand APIs LOG APIs

Example 1
public void testSupportedCommands() throws Exception {
        GridLogCommandHandler cmdHandler = new GridLogCommandHandler(newContext());

        Collection<GridRestCommand> commands = cmdHandler.supportedCommands();

        assertEquals(1, commands.size());
        assertTrue(commands.contains(GridRestCommand.LOG));
    }
Example 2
public void testUnsupportedCommands() throws Exception {
        GridTestKernalContext ctx = newContext(grid().configuration());

        ctx.add(new GridTimeoutProcessor(ctx));

        QueryCommandHandler cmdHnd = new QueryCommandHandler(ctx);

        Collection<GridRestCommand> commands = cmdHnd.supportedCommands();

        assertFalse(commands.contains(GridRestCommand.LOG));
    }