Mercurial > hg > Database > Alice
diff src/alice/datasegment/DataSegment.java @ 23:54bf607118ae
change method to create RemoteDSM
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 17 Jan 2012 01:10:29 +0900 |
parents | 91057e15065f |
children | 98ab26e09a98 |
line wrap: on
line diff
--- a/src/alice/datasegment/DataSegment.java Tue Jan 17 00:40:27 2012 +0900 +++ b/src/alice/datasegment/DataSegment.java Tue Jan 17 01:10:29 2012 +0900 @@ -19,4 +19,10 @@ dataSegment.dataSegmentManageres.put(key, manager); } + public static RemoteDataSegmentManager connect(String key, String hostName, int port) { + RemoteDataSegmentManager manager = new RemoteDataSegmentManager(key, hostName, port); + regist(key, manager); + return manager; + } + }