Skip to content

Commit cf38bef

Browse files
committed
handled changes in NSClient and ServiceProvider interface
1 parent b7bc4a9 commit cf38bef

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/org/mouji/ns/core/rpc/NameServerServiceProvider.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package org.mouji.ns.core.rpc;
22

33
import java.sql.SQLException;
4+
import java.util.ArrayList;
5+
import java.util.List;
46

57
import org.mouji.common.errors.ApplicationSpecificErrorException;
68
import org.mouji.common.errors.DatabaseNotSupported;
@@ -208,4 +210,28 @@ public NameServer getNameServer() {
208210
return nameServer;
209211
}
210212

213+
@Override
214+
public List<ServiceSupportInfo> listSupport() {
215+
List<ServiceSupportInfo> list = new ArrayList<ServiceSupportInfo>();
216+
list.add(new ServiceSupportInfo(NameServerServices.CHECK_PROVIDER_STATUS, spInfo,
217+
new SerializationFormat[] { SerializationFormat.defaultFotmat() }));
218+
list.add(new ServiceSupportInfo(NameServerServices.GET_ALL_PROVIDERS, spInfo,
219+
new SerializationFormat[] { SerializationFormat.defaultFotmat() }));
220+
list.add(new ServiceSupportInfo(NameServerServices.GET_PROVIDER, spInfo,
221+
new SerializationFormat[] { SerializationFormat.defaultFotmat() }));
222+
list.add(new ServiceSupportInfo(NameServerServices.GET_PROVIDERS, spInfo,
223+
new SerializationFormat[] { SerializationFormat.defaultFotmat() }));
224+
list.add(new ServiceSupportInfo(NameServerServices.GET_SERVICE_INFO_BY_ID, spInfo,
225+
new SerializationFormat[] { SerializationFormat.defaultFotmat() }));
226+
list.add(new ServiceSupportInfo(NameServerServices.GET_SERVICE_INFO_BY_NAME, spInfo,
227+
new SerializationFormat[] { SerializationFormat.defaultFotmat() }));
228+
list.add(new ServiceSupportInfo(NameServerServices.REGISTER, spInfo,
229+
new SerializationFormat[] { SerializationFormat.defaultFotmat() }));
230+
list.add(new ServiceSupportInfo(NameServerServices.UNREGISTER, spInfo,
231+
new SerializationFormat[] { SerializationFormat.defaultFotmat() }));
232+
list.add(new ServiceSupportInfo(NameServerServices.UNREGISTER_ALL, spInfo,
233+
new SerializationFormat[] { SerializationFormat.defaultFotmat() }));
234+
return list;
235+
}
236+
211237
}

0 commit comments

Comments
 (0)