Examples of addPair()


Examples of org.apache.camel.component.splunk.event.SplunkEvent.addPair()

    @Test
    public void testTcpWriter() throws Exception {
        MockEndpoint mock = getMockEndpoint("mock:tcpresult");
        mock.setExpectedMessageCount(1);
        SplunkEvent splunkEvent = new SplunkEvent();
        splunkEvent.addPair("key1", "value1");
        splunkEvent.addPair("key2", "value2");
        splunkEvent.addPair("key3", "value3");
        template.sendBody("direct:tcp", splunkEvent);
        assertMockEndpointsSatisfied();
        Producer tcpProducer = tcpEndpoint.createProducer();
View Full Code Here

Examples of org.apache.camel.component.splunk.event.SplunkEvent.addPair()

    @Test
    public void testTcpWriter() throws Exception {
        MockEndpoint mock = getMockEndpoint("mock:tcpresult");
        mock.expectedMinimumMessageCount(1);
        SplunkEvent splunkEvent = new SplunkEvent();
        splunkEvent.addPair("key1", "value1");
        splunkEvent.addPair("key2", "value2");
        splunkEvent.addPair("key3", "value3");
        template.sendBody("direct:tcp", splunkEvent);
        assertMockEndpointsSatisfied();
    }
View Full Code Here

Examples of org.apache.camel.component.splunk.event.SplunkEvent.addPair()

    public void testTcpWriter() throws Exception {
        MockEndpoint mock = getMockEndpoint("mock:tcpresult");
        mock.setExpectedMessageCount(1);
        SplunkEvent splunkEvent = new SplunkEvent();
        splunkEvent.addPair("key1", "value1");
        splunkEvent.addPair("key2", "value2");
        splunkEvent.addPair("key3", "value3");
        template.sendBody("direct:tcp", splunkEvent);
        assertMockEndpointsSatisfied();
        Producer tcpProducer = tcpEndpoint.createProducer();
        assertIsInstanceOf(TcpDataWriter.class, ((SplunkProducer) tcpProducer).getDataWriter());
View Full Code Here

Examples of org.apache.camel.component.splunk.event.SplunkEvent.addPair()

    public void testTcpWriter() throws Exception {
        MockEndpoint mock = getMockEndpoint("mock:tcpresult");
        mock.expectedMinimumMessageCount(1);
        SplunkEvent splunkEvent = new SplunkEvent();
        splunkEvent.addPair("key1", "value1");
        splunkEvent.addPair("key2", "value2");
        splunkEvent.addPair("key3", "value3");
        template.sendBody("direct:tcp", splunkEvent);
        assertMockEndpointsSatisfied();
    }
View Full Code Here

Examples of org.apache.camel.component.splunk.event.SplunkEvent.addPair()

        MockEndpoint mock = getMockEndpoint("mock:tcpresult");
        mock.setExpectedMessageCount(1);
        SplunkEvent splunkEvent = new SplunkEvent();
        splunkEvent.addPair("key1", "value1");
        splunkEvent.addPair("key2", "value2");
        splunkEvent.addPair("key3", "value3");
        template.sendBody("direct:tcp", splunkEvent);
        assertMockEndpointsSatisfied();
        Producer tcpProducer = tcpEndpoint.createProducer();
        assertIsInstanceOf(TcpDataWriter.class, ((SplunkProducer) tcpProducer).getDataWriter());
    }
View Full Code Here

Examples of org.apache.camel.component.splunk.event.SplunkEvent.addPair()

        MockEndpoint mock = getMockEndpoint("mock:tcpresult");
        mock.expectedMinimumMessageCount(1);
        SplunkEvent splunkEvent = new SplunkEvent();
        splunkEvent.addPair("key1", "value1");
        splunkEvent.addPair("key2", "value2");
        splunkEvent.addPair("key3", "value3");
        template.sendBody("direct:tcp", splunkEvent);
        assertMockEndpointsSatisfied();
    }

    @Override
View Full Code Here

Examples of org.noos.xing.yasaf.plaf.component.MatrixPanel.addPair()

                    );
                    valueChanging = false;
                }
            }
        });
        panel.addPair(0, 0, "Tab Placement : ", tabPlaces);

        // Tab Layout
        tabLayouts = new JComboBox(new Object[]{
                TabbedContentManagerUI.TabLayout.SCROLL,
                TabbedContentManagerUI.TabLayout.WRAP
View Full Code Here

Examples of org.noos.xing.yasaf.plaf.component.MatrixPanel.addPair()

            }
        });
        tabLayouts.setSelectedIndex(
                ((TabbedContentManagerUI) toolWindowManager.getContentManager().getContentManagerUI()).getTabLayout().ordinal()
        );
        panel.addPair(0, 1, "Tab Layout : ", tabLayouts);

        // isShowAlwaysTab
        isShowAlwaysTab = new JCheckBox();
        isShowAlwaysTab.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
View Full Code Here

Examples of org.noos.xing.yasaf.plaf.component.MatrixPanel.addPair()

                ((TabbedContentManagerUI) toolWindowManager.getContentManager().getContentManagerUI()).setShowAlwaysTab(
                        isShowAlwaysTab.isSelected()
                );
            }
        });
        panel.addPair(0, 2, "IsShowAlwaysTab : ", isShowAlwaysTab);

        return panel;
    }

    public void contextChange(ViewContextChangeEvent evt) {
View Full Code Here

Examples of org.noos.xing.yasaf.plaf.component.MatrixPanel.addPair()

        protected Component initComponent() {
            MatrixPanel panel = new MatrixPanel(2, 4);
            panel.setBorder(new TitledBorder("ToolWindowManagerDescriptor Preference"));

            // Right
            panel.addPair(0, 0, "numberingEnabled : ", numberingEnabled = new JCheckBox());
            numberingEnabled.setAction(new DynamicAction(ToolWindowManagerDescriptor.class,
                                                         "numberingEnabled",
                                                         new ViewContextSource(viewContext, ToolWindowManagerDescriptor.class),
                                                         new ChecBoxSelectionSource(numberingEnabled)));
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.