Search in sources :

Example 21 with InstancePublishInfo

use of com.alibaba.nacos.naming.core.v2.pojo.InstancePublishInfo in project nacos by alibaba.

the class IpPortBasedClientTest method setUp.

@Before
public void setUp() throws Exception {
    ipPortBasedClient = new IpPortBasedClient(clientId, true);
    ipPortBasedClient.init();
    instancePublishInfo = new InstancePublishInfo();
}
Also used : InstancePublishInfo(com.alibaba.nacos.naming.core.v2.pojo.InstancePublishInfo) Before(org.junit.Before)

Aggregations

InstancePublishInfo (com.alibaba.nacos.naming.core.v2.pojo.InstancePublishInfo)17 Service (com.alibaba.nacos.naming.core.v2.pojo.Service)9 Instance (com.alibaba.nacos.api.naming.pojo.Instance)5 Client (com.alibaba.nacos.naming.core.v2.client.Client)5 ClientOperationService (com.alibaba.nacos.naming.core.v2.service.ClientOperationService)5 Test (org.junit.Test)5 ClientOperationEvent (com.alibaba.nacos.naming.core.v2.event.client.ClientOperationEvent)4 ClusterMetadata (com.alibaba.nacos.naming.core.v2.metadata.ClusterMetadata)4 InstanceMetadata (com.alibaba.nacos.naming.core.v2.metadata.InstanceMetadata)4 IpPortBasedClient (com.alibaba.nacos.naming.core.v2.client.impl.IpPortBasedClient)3 ServiceMetadata (com.alibaba.nacos.naming.core.v2.metadata.ServiceMetadata)3 HealthCheckInstancePublishInfo (com.alibaba.nacos.naming.core.v2.pojo.HealthCheckInstancePublishInfo)3 MetadataEvent (com.alibaba.nacos.naming.core.v2.event.metadata.MetadataEvent)2 HashSet (java.util.HashSet)2 Before (org.junit.Before)2 NacosException (com.alibaba.nacos.api.exception.NacosException)1 NacosRuntimeException (com.alibaba.nacos.api.exception.runtime.NacosRuntimeException)1 ClientAttributes (com.alibaba.nacos.naming.core.v2.client.ClientAttributes)1 ConnectionBasedClient (com.alibaba.nacos.naming.core.v2.client.impl.ConnectionBasedClient)1 ClientEvent (com.alibaba.nacos.naming.core.v2.event.client.ClientEvent)1