Package org.agilewiki.jactor

Examples of org.agilewiki.jactor.ExceptionHandler


        });
    }

    @Override
    public void multiply(final Multiply request, final RP rp) throws Exception {
        setExceptionHandler(new ExceptionHandler() {
            @Override
            public void process(final Throwable exception) throws Exception {
                System.out.println("* " + request.getValue() + " => "
                        + exception);
                rp.processResponse(null);
View Full Code Here


        });
    }

    @Override
    public void divide(final Divide request, final RP rp) throws Exception {
        setExceptionHandler(new ExceptionHandler() {
            @Override
            public void process(final Throwable exception) throws Exception {
                System.out.println("/ " + request.getValue() + " => "
                        + exception);
                rp.processResponse(null);
View Full Code Here

* Test code.
*/
public class Actor4 extends JLPCActor {
    protected void processRequest(final Validate1 request, final RP rp)
            throws Exception {
        setExceptionHandler(new ExceptionHandler() {
            @Override
            public void process(final Throwable exception) throws Exception {
                rp.processResponse(false);
            }
        });
View Full Code Here

    public void does(final RP rp) throws Exception {
        final String me = getActorName();
        Lock.req.send(this, this, new RP<Object>() {
            @Override
            public void processResponse(final Object response) throws Exception {
                setExceptionHandler(new ExceptionHandler() {
                    @Override
                    public void process(final Throwable exception)
                            throws Exception {
                        Unlock.req.send(Process.this, Process.this,
                                new RP<Object>() {
View Full Code Here

     *
     * @param block The block holding the list of transactions.
     * @param rp    The RP used to signal completion.
     */
    private void processBlock(final Block block, final RP rp) throws Exception {
        setExceptionHandler(new ExceptionHandler() {
            @Override
            public void process(Exception exception) throws Exception {
                System.err.println();
                System.err.println("Log file: " + block.getFileName());
                System.err.println("block position: " + block.getCurrentPosition());
View Full Code Here

        return (BytesJid) makeJid(key, JidFactories.BYTES_JID_TYPE);
    }

    public void checkpoint(long logPosition, long timestamp, String logFileName, RP rp)
            throws Exception {
        setExceptionHandler(new ExceptionHandler() {
            @Override
            public void process(Exception exception) throws Exception {
                if (!closed)
                    System.out.println("----> Checkpoint Exception: " + exception);
            }
View Full Code Here

TOP

Related Classes of org.agilewiki.jactor.ExceptionHandler

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.