|
1 | 1 | package org.mouji.ns.core.rpc;
|
2 | 2 |
|
3 | 3 | import java.sql.SQLException;
|
| 4 | +import java.util.ArrayList; |
| 5 | +import java.util.List; |
4 | 6 |
|
5 | 7 | import org.mouji.common.errors.ApplicationSpecificErrorException;
|
6 | 8 | import org.mouji.common.errors.DatabaseNotSupported;
|
@@ -208,4 +210,28 @@ public NameServer getNameServer() {
|
208 | 210 | return nameServer;
|
209 | 211 | }
|
210 | 212 |
|
| 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 | + |
211 | 237 | }
|
0 commit comments