view src/main/java/alice/topology/fix/ReceiveDisconnectMessage.java @ 584:8f765e3eed24 dispose

add Topology Manager Number to Topology Node Key
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Wed, 27 Jan 2016 18:10:50 +0900
parents cf345b10a21a
children
line wrap: on
line source

package alice.topology.fix;

import alice.codesegment.CodeSegment;
import alice.datasegment.CommandType;
import alice.datasegment.Receiver;

/**
 * This class call FixTopology when connection closed
 */
public class ReceiveDisconnectMessage extends CodeSegment {
    private Receiver info = ids.create(CommandType.PEEK);

    public ReceiveDisconnectMessage() {
        info.setKey("_DISCONNECTNODE");
    }

    @Override
    public void run() {
        new FixTopology();
        new ReceiveDisconnectMessage();
    }
}