Package org.jpos.q2.cli

Examples of org.jpos.q2.cli.TAIL


    public DailyTaskAdaptor () {
        super ();
    }

    protected void initService () throws Exception {
        QFactory factory = getServer().getFactory();
        Element e = getPersist ();
        task = (Runnable) factory.newInstance (e.getChildTextTrim ("class"));
        factory.setLogger (task, e);
    }
View Full Code Here


        factory.setLogger (task, e);
    }
    protected void startService () throws Exception {
        if (task instanceof Configurable) {
            Element e = getPersist ();
            QFactory factory = getServer().getFactory();
            ((Configurable)task).setConfiguration (
                factory.getConfiguration (e)
            );
        }
        (thisThread = new Thread(this)).start();
    }
View Full Code Here

    public SMAdaptor () {
        super ();
    }
    protected void initService () throws Exception {
        Element e = getPersist ();
        QFactory factory = getServer().getFactory();
        sm = (SMAdapter) factory.newInstance (getImpl ());
        factory.setLogger  (sm, e);
        factory.setConfiguration (sm, e);
    }
View Full Code Here

        super ();
        clazz = DEFAULT_IMPL;
    }
    protected void initService () throws Exception {
        Element e = getPersist ();
        QFactory factory = getServer().getFactory();
        ks = (SecureKeyStore) factory.newInstance (getImpl ());
        factory.setLogger  (ks, e);
        factory.setConfiguration (ks, e);
        NameRegistrar.register (getName (), ks);
    }
View Full Code Here

        return ready;
    }
    private void addListeners ()
        throws ConfigurationException
    {
        QFactory factory = getFactory ();
        Iterator iter = getPersist().getChildren (
            "request-listener"
        ).iterator();
        while (iter.hasNext()) {
            Element l = (Element) iter.next();
            ISORequestListener listener = (ISORequestListener)
                factory.newInstance (l.getAttributeValue ("class"));
            factory.setLogger        (listener, l);
            factory.setConfiguration (listener, l);
            addISORequestListener (listener);
        }
    }
View Full Code Here

    public TaskAdaptor () {
        super ();
    }

    protected void initService () throws Exception {
        QFactory factory = getServer().getFactory();
        Element e = getPersist ();
        task = factory.newInstance (e.getChildTextTrim ("class"));
        factory.setLogger (task, e);
    }
View Full Code Here

        super ();
    }
    protected void startService () throws Exception {
        Object obj = getObject();
        if (obj instanceof Configurable) {
            QFactory factory = getServer().getFactory();
            Element e = getPersist ();
            ((Configurable)obj).setConfiguration (
                factory.getConfiguration (e)
            );
        }
        CardAgentLookup.add ((CardAgent) getObject ());
    }
View Full Code Here

        String[] args = new String[0];
        Hashtable<String, String> hashtable = new Hashtable<String, String>(100, 100.0F);
        hashtable.put("testString", "testString");
        try {
            new QFactory(ObjectName.getInstance("testQFactoryParam1", hashtable), null).destroyQBean(new Q2(args), new ObjectName(
                    "testQFactoryParam1", "testQFactoryParam2", "testQFactoryParam3"), new ChannelAdaptor());
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
        }
    }
View Full Code Here

    @Test
    public void testQEntryIsQBean1() throws Throwable {
        Q2.QEntry qEntry = new Q2.QEntry(100L, new ObjectInstance(new ObjectName("testQEntryParam1", "testQEntryParam2",
                "testQEntryParam3"), "testQEntryParam2"));
        qEntry.setObject(new SystemMonitor());
        boolean result = qEntry.isQBean();
        assertTrue("result", result);
    }
View Full Code Here

TOP

Related Classes of org.jpos.q2.cli.TAIL

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.