# HG changeset patch # User sugi # Date 1414422244 -32400 # Node ID 4840d0e2b605a070cfed962b8218406cb5b14330 # Parent d30451d1882f3f8be21cea0890998386dff87d75 add compress and serialize Flag. diff -r d30451d1882f -r 4840d0e2b605 src/main/java/alice/datasegment/Command.java --- a/src/main/java/alice/datasegment/Command.java Mon Oct 27 01:29:32 2014 +0900 +++ b/src/main/java/alice/datasegment/Command.java Tue Oct 28 00:04:04 2014 +0900 @@ -22,7 +22,7 @@ public CodeSegment cs; public String reverseKey; public Object obj; - public boolean quickFlag = false; + private boolean quickFlag = false; private boolean serializeFlag = true; private boolean compressFlag = true; @@ -129,11 +129,23 @@ quickFlag = flag; } + public boolean getQuickFlag(){ + return quickFlag; + } + public void setSerializeFlag(boolean flag){ serializeFlag = flag; } + public boolean getSerializeFlag(){ + return serializeFlag; + } + public void setCompressFlag(boolean flag){ compressFlag = flag; } + + public boolean getCompressFlag(){ + return compressFlag; + } } diff -r d30451d1882f -r 4840d0e2b605 src/main/java/alice/datasegment/DataSegmentKey.java --- a/src/main/java/alice/datasegment/DataSegmentKey.java Mon Oct 27 01:29:32 2014 +0900 +++ b/src/main/java/alice/datasegment/DataSegmentKey.java Tue Oct 28 00:04:04 2014 +0900 @@ -87,7 +87,7 @@ cmd.cs.ids.reply(cmd.receiver, new Command(CommandType.REPLY, null, null, data.val, data.obj, data.index, cmd.seq, null, null, data.from)); } else { try { - if (!cmd.quickFlag){ + if (!cmd.getQuickFlag()){ cmd.connection.sendQueue.put(new Command(CommandType.REPLY, null, null, data.val, data.obj, data.index, cmd.seq, null, null, data.from)); } else {