Mercurial > hg > Database > Alice
changeset 448:4840d0e2b605 dispose
add compress and serialize Flag.
author | sugi |
---|---|
date | Tue, 28 Oct 2014 00:04:04 +0900 |
parents | d30451d1882f |
children | 09a80f83c605 |
files | src/main/java/alice/datasegment/Command.java src/main/java/alice/datasegment/DataSegmentKey.java |
diffstat | 2 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; + } }
--- 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 {