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 e152da6
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 239 deletions.
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.

5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,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 e152da6

Please sign in to comment.