Mercurial > hg > Database > Alice
view src/main/java/alice/topology/node/ReceiveCloseMessage.java @ 483:86c45738dd9e dispose
success fix topology ..... may be
author | sugi |
---|---|
date | Fri, 05 Dec 2014 21:24:37 +0900 |
parents | 8227a2fd5a55 |
children | 24e535123df7 |
line wrap: on
line source
package alice.topology.node; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.DataSegment; import alice.datasegment.Receiver; public class ReceiveCloseMessage extends CodeSegment { private Receiver info = ids.create(CommandType.TAKE); public ReceiveCloseMessage() { info.setKey("_CLOSEMESSEAGE"); } @Override public void run() { String managerKey = info.asString(); if (DataSegment.contains(managerKey)) { DataSegment.get(managerKey).setSendError(false); DataSegment.get(managerKey).shutdown(); } else { } new ReceiveCloseMessage(); } }