Skip to content

Commit

Permalink
Remove 'defibus' related un-used usages
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia committed Apr 14, 2024
1 parent a027e86 commit 0b1050a
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 40 deletions.
2 changes: 0 additions & 2 deletions eventmesh-operator/config/samples/eventmesh_v1_runtime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ data:
eventMesh.server.retry.async.pushRetryDelayInMills=500
eventMesh.server.retry.sync.pushRetryDelayInMills=500
eventMesh.server.retry.pushRetryQueueSize=10000
#auto-ack
#eventMesh.server.defibus.client.comsumeTimeoutInMin=5
#sleep interval between closing client of different group in server graceful shutdown
eventMesh.server.gracefulShutdown.sleepIntervalInMills=1000
Expand Down
3 changes: 0 additions & 3 deletions eventmesh-runtime/conf/eventmesh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ eventMesh.server.retry.sync.pushRetryDelayInMills=500
eventMesh.server.retry.pushRetryQueueSize=10000
eventMesh.server.retry.plugin.type=default

# auto-ack
#eventMesh.server.defibus.client.comsumeTimeoutInMin=5

# sleep interval between closing client of different group in server graceful shutdown
eventMesh.server.gracefulShutdown.sleepIntervalInMills=1000
eventMesh.server.rebalanceRedirect.sleepIntervalInMills=200
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.apache.eventmesh.common.utils.ConfigurationContextUtil;
import org.apache.eventmesh.runtime.acl.Acl;
import org.apache.eventmesh.runtime.common.ServiceState;
import org.apache.eventmesh.runtime.constants.EventMeshConstants;
import org.apache.eventmesh.runtime.core.protocol.http.producer.ProducerTopicManager;
import org.apache.eventmesh.runtime.meta.MetaStorage;
import org.apache.eventmesh.runtime.storage.StorageResource;
Expand Down Expand Up @@ -139,13 +138,10 @@ public void init() throws Exception {
adminBootstrap.init();
}

final String eventStore = System.getProperty(EventMeshConstants.EVENT_STORE_PROPERTIES, System.getenv(EventMeshConstants.EVENT_STORE_ENV));

log.info("eventStore : {}", eventStore);
producerTopicManager = new ProducerTopicManager(this);
producerTopicManager.init();
serviceState = ServiceState.INITED;

serviceState = ServiceState.INITED;
log.info(SERVER_STATE_MSG, serviceState);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@

public class EventMeshConstants {

public static final String EVENT_STORE_PROPERTIES = "eventstore";

public static final String EVENT_STORE_ENV = "EVENT_STORE";

public static final String PROTOCOL_HTTP = "http";

public static final String PROTOCOL_TCP = "tcp";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,4 @@ public boolean reply(final CloudEvent cloudEvent, final SendCallback sendCallbac
public Producer getMeshMQProducer() {
return meshMQProducer;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,11 @@

package org.apache.eventmesh.runtime.core.plugin;

import org.apache.eventmesh.runtime.constants.EventMeshConstants;

import org.apache.commons.lang3.StringUtils;

import java.util.concurrent.atomic.AtomicBoolean;

public abstract class MQWrapper {

public static final String EVENT_STORE_DEFIBUS = "defibus";

public static String CURRENT_EVENT_STORE = EVENT_STORE_DEFIBUS;

public static final String EVENT_STORE_CONF = System.getProperty(EventMeshConstants.EVENT_STORE_PROPERTIES,
System.getenv(EventMeshConstants.EVENT_STORE_ENV));

static {
if (StringUtils.isNotBlank(EVENT_STORE_CONF)) {
CURRENT_EVENT_STORE = EVENT_STORE_CONF;
}
}

public AtomicBoolean started = new AtomicBoolean(Boolean.FALSE);

public AtomicBoolean inited = new AtomicBoolean(Boolean.FALSE);

}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public synchronized void init(CommonConfiguration configuration,
keyValue.put(EventMeshConstants.INSTANCE_NAME, EventMeshUtil.buildMeshClientID(
producerGroupConfig.getGroupName(), configuration.getEventMeshCluster()));

// TODO for defibus
keyValue.put(EventMeshConstants.EVENT_MESH_IDC, configuration.getEventMeshIDC());
mqProducerWrapper = new MQProducerWrapper(
configuration.getEventMeshStoragePluginType());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ public synchronized void startClientGroupProducer() throws Exception {
.buildMeshTcpClientID(sysId, EventMeshConstants.PURPOSE_PUB_UPPER_CASE,
eventMeshTCPConfiguration.getEventMeshCluster()));

// TODO for defibus
keyValue.put(EventMeshConstants.EVENT_MESH_IDC, eventMeshTCPConfiguration.getEventMeshIDC());

mqProducerWrapper.init(keyValue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ public static UserAgent createPubUserAgent() {
public static UserAgent createUserAgent() {
UserAgent userAgent = new UserAgent();
userAgent.setSubsystem("5123");
// userAgent.setPid(UtilAll.getPid());
// userAgent.setHost(RemotingUtil.getLocalAddress());
userAgent.setVersion("2.0.8");
userAgent.setUsername("username");
userAgent.setPassword("1234");
Expand All @@ -54,13 +52,11 @@ public static UserAgent createUserAgent() {
public static UserAgent createSubUserAgent() {
UserAgent userAgent = new UserAgent();
userAgent.setSubsystem("5243");
// userAgent.setPid(UtilAll.getPid());
// userAgent.setHost(RemotingUtil.getLocalAddress());
userAgent.setPort(8888);
userAgent.setVersion("2.0.8");
userAgent.setUsername("username");
userAgent.setPassword("1234");
userAgent.setPath("/data/app/defibus-acl/");
userAgent.setPath("/data/app/acl/");
userAgent.setPurpose(EventMeshConstants.PURPOSE_SUB);
return userAgent;
}
Expand Down

0 comments on commit 0b1050a

Please sign in to comment.