Package com.taobao.metamorphosis.utils.codec.impl

Examples of com.taobao.metamorphosis.utils.codec.impl.JavaDeserializer



    public HeuristicTransactionJournal(final String path) throws IOException {
        FileUtils.makesureDir(new File(path));
        this.serializer = new JavaSerializer();
        this.deserializer = new JavaDeserializer();
        final File transactionsDir = new File(path + File.separator + "transactions");
        FileUtils.makesureDir(transactionsDir);
        this.fc = new RandomAccessFile(new File(transactionsDir + File.separator + FILE_NAME), "rw").getChannel();
    }
View Full Code Here


        this.META_LOCALMESSAGE_PATH = StringUtils.isNotBlank(path) ? path : DEFAULT_META_LOCALMESSAGE_PATH;
        this.messageRecoverer = messageRecoverer;

        if (this.META_LOCALMESSAGE_CODEC_TYPE.equals("java")) {
            this.serializer = new JavaSerializer();
            this.deserializer = new JavaDeserializer();
        }
        else if (this.META_LOCALMESSAGE_CODEC_TYPE.equals("hessian1")) {
            this.serializer = new Hessian1Serializer();
            this.deserializer = new Hessian1Deserializer();
        }
View Full Code Here


    public AbstractRecoverManager() {
        if (this.META_RECOVER_CODEC_TYPE.equals("java")) {
            this.serializer = new JavaSerializer();
            this.deserializer = new JavaDeserializer();
        }
        else if (this.META_RECOVER_CODEC_TYPE.equals("hessian1")) {
            this.serializer = new Hessian1Serializer();
            this.deserializer = new Hessian1Deserializer();
        }
View Full Code Here

TOP

Related Classes of com.taobao.metamorphosis.utils.codec.impl.JavaDeserializer

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.