Skip to content

Commit

Permalink
remove lookout dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
hui-cha committed Sep 23, 2024
1 parent 632e0d6 commit 38ce2f9
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 246 deletions.
6 changes: 0 additions & 6 deletions client/all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bolt.version>1.6.2</bolt.version>
<hessian.version>3.3.8</hessian.version>
<lookout.version>1.5.2</lookout.version>
<sofa.common.tools.version>1.0.12</sofa.common.tools.version>
<netty.version>4.1.42.Final</netty.version>
<slf4j.version>1.7.21</slf4j.version>
Expand Down Expand Up @@ -97,11 +96,6 @@
<artifactId>sofa-common-tools</artifactId>
<version>${sofa.common.tools.version}</version>
</dependency>
<dependency>
<groupId>com.alipay.sofa.lookout</groupId>
<artifactId>lookout-api</artifactId>
<version>${lookout.version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions client/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@
<groupId>com.alipay.sofa.common</groupId>
<artifactId>sofa-common-tools</artifactId>
</dependency>
<dependency>
<groupId>com.alipay.sofa.lookout</groupId>
<artifactId>lookout-api</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@
import com.alipay.sofa.registry.client.api.registration.SubscriberRegistration;
import com.alipay.sofa.registry.client.auth.AuthManager;
import com.alipay.sofa.registry.client.auth.NoopAuthManager;
import com.alipay.sofa.registry.client.event.ConfiguratorProcessEvent;
import com.alipay.sofa.registry.client.event.DefaultEventBus;
import com.alipay.sofa.registry.client.event.LookoutSubscriber;
import com.alipay.sofa.registry.client.event.SubscriberProcessEvent;
import com.alipay.sofa.registry.client.log.LoggerFactory;
import com.alipay.sofa.registry.client.remoting.ClientConnection;
import com.alipay.sofa.registry.client.remoting.ClientConnectionCloseEventProcessor;
Expand Down Expand Up @@ -101,8 +98,6 @@ public class DefaultRegistryClient implements RegistryClient {

private EventBus eventBus;

private LookoutSubscriber lookoutSubscriber;

private AtomicBoolean init = new AtomicBoolean(false);

/**
Expand Down Expand Up @@ -155,16 +150,9 @@ public void init() {
return;
}

// init lookout subscriber
if (null == lookoutSubscriber) {
this.lookoutSubscriber = new LookoutSubscriber();
}

// init event bus
if (null == eventBus) {
this.eventBus = new DefaultEventBus(registryClientConfig);
this.eventBus.register(SubscriberProcessEvent.class, lookoutSubscriber);
this.eventBus.register(ConfiguratorProcessEvent.class, lookoutSubscriber);
}

// init server manager
Expand Down Expand Up @@ -538,15 +526,6 @@ public void setAuthManager(AuthManager authManager) {
this.authManager = authManager;
}

/**
* Setter method for property <tt>lookoutSubscriber</tt>.
*
* @param lookoutSubscriber value to be assigned to property lookoutSubscriber
*/
public void setLookoutSubscriber(LookoutSubscriber lookoutSubscriber) {
this.lookoutSubscriber = lookoutSubscriber;
}

/**
* Setter method for property <tt>eventBus</tt>.
*
Expand Down

This file was deleted.

6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
<jersey.version>2.26</jersey.version>
<protobuf.version>3.17.3</protobuf.version>
<slf4j.version>1.7.21</slf4j.version>
<lookout.version>1.5.2</lookout.version>
<mockito.version>1.10.19</mockito.version>
<powermock.version>1.6.6</powermock.version>
<jraft.version>1.3.5</jraft.version>
Expand Down Expand Up @@ -305,11 +304,6 @@
<artifactId>log4j-api</artifactId>
<version>${log4j2.version}</version>
</dependency>
<dependency>
<groupId>com.alipay.sofa.lookout</groupId>
<artifactId>lookout-api</artifactId>
<version>${lookout.version}</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
Expand Down

0 comments on commit 38ce2f9

Please sign in to comment.