Package org.apache.activeio.journal.active

Examples of org.apache.activeio.journal.active.Location


            messageContainer.put(id.toString(), messageReference);
        }
    }
   
    static protected String toString(RecordLocation location) {
        Location l = (Location) location;
        return l.getLogFileId()+":"+l.getLogFileOffset();
    }
View Full Code Here


    static protected RecordLocation toRecordLocation(String t) {
        String[] strings = t.split(":");
        if( strings.length!=2 )
            throw new IllegalArgumentException("Invalid location: "+t);
        return new Location(Integer.parseInt(strings[0]),Integer.parseInt(strings[1]));
    }
View Full Code Here

            messages.put(id, message);
        }
    }
   
    static protected String toString(RecordLocation location) {
        Location l = (Location) location;
        return l.getLogFileId()+":"+l.getLogFileOffset();
    }
View Full Code Here

    static protected RecordLocation toRecordLocation(String t) {
        String[] strings = t.split(":");
        if( strings.length!=2 )
            throw new IllegalArgumentException("Invalid location: "+t);
        return new Location(Integer.parseInt(strings[0]),Integer.parseInt(strings[1]));
    }
View Full Code Here

TOP

Related Classes of org.apache.activeio.journal.active.Location

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.