Search in sources :

Example 1 with ServiceRegistryMetadata

use of com.alibaba.rsocket.metadata.ServiceRegistryMetadata in project alibaba-rsocket-broker by alibaba.

the class RawRSocketTest method testService.

@Test
public void testService() throws Exception {
    ServiceRegistryMetadata serviceRegistryMetadata = new ServiceRegistryMetadata();
    serviceRegistryMetadata.addPublishedService(new ServiceLocator(null, "com.alibaba.user.UserService", null));
    System.out.println(JsonUtils.toJsonText(serviceRegistryMetadata));
}
Also used : ServiceLocator(com.alibaba.rsocket.ServiceLocator) ServiceRegistryMetadata(com.alibaba.rsocket.metadata.ServiceRegistryMetadata) Test(org.junit.jupiter.api.Test)

Aggregations

ServiceLocator (com.alibaba.rsocket.ServiceLocator)1 ServiceRegistryMetadata (com.alibaba.rsocket.metadata.ServiceRegistryMetadata)1 Test (org.junit.jupiter.api.Test)1