Mercurial > hg > Database > Alice
diff src/test/java/alice/daemon/ReceiveString.java @ 508:b7d02ea79850 dispose
change multicast Data Segment API
author | sugi |
---|---|
date | Sun, 04 Jan 2015 13:51:01 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/test/java/alice/daemon/ReceiveString.java Sun Jan 04 13:51:01 2015 +0900 @@ -0,0 +1,17 @@ +package alice.daemon; + +import alice.codesegment.CodeSegment; +import alice.datasegment.CommandType; +import alice.datasegment.Receiver; + +public class ReceiveString extends CodeSegment { + + public Receiver str = ids.create(CommandType.TAKE); + + @Override + public void run() { + System.out.println(str.asString()); + System.exit(0); + } + +}