From 7a3ffb47e68e4a18aae31d9bf1d26d5fdcebecc0 Mon Sep 17 00:00:00 2001 From: Kelven Yang Date: Thu, 15 Nov 2012 16:15:24 -0800 Subject: [PATCH] Add pipeline concept to RPC facility, fix javelin build issue --- .../framework/messaging/RpcCallContext.java | 9 +++++++ .../com/cloud/cluster/ClusterEventBus.java | 24 ------------------- 2 files changed, 9 insertions(+), 24 deletions(-) delete mode 100644 server/src/com/cloud/cluster/ClusterEventBus.java diff --git a/framework/ipc/src/org/apache/cloudstack/framework/messaging/RpcCallContext.java b/framework/ipc/src/org/apache/cloudstack/framework/messaging/RpcCallContext.java index bdfcd453c24..2d379b3a37e 100644 --- a/framework/ipc/src/org/apache/cloudstack/framework/messaging/RpcCallContext.java +++ b/framework/ipc/src/org/apache/cloudstack/framework/messaging/RpcCallContext.java @@ -24,6 +24,7 @@ public class RpcCallContext { Map _contextMap = new HashMap(); int _timeoutMilliSeconds = DEFAULT_RPC_TIMEOUT; + String _pipeline; public RpcCallContext() { } @@ -36,6 +37,14 @@ public class RpcCallContext { _timeoutMilliSeconds = timeoutMilliseconds; } + public void setPipeline(String pipeName) { + _pipeline = pipeName; + } + + public String getPipeline() { + return _pipeline; + } + @SuppressWarnings("unchecked") public T getContextParameter(String key) { return (T)_contextMap.get(key); diff --git a/server/src/com/cloud/cluster/ClusterEventBus.java b/server/src/com/cloud/cluster/ClusterEventBus.java deleted file mode 100644 index 63ceaea6ca6..00000000000 --- a/server/src/com/cloud/cluster/ClusterEventBus.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.cloud.cluster; - -import java.io.Serializable; - -import javax.annotation.PostConstruct; - -import org.apache.cloudstack.framework.messaging.EventBusBase; -import org.apache.cloudstack.framework.messaging.PublishScope; -import org.springframework.stereotype.Component; - - -@Component -public class ClusterEventBus extends EventBusBase { - - @PostConstruct - public void init() { - } - - @Override - public void publish(String subject, PublishScope scope, Object sender, - Serializable args) { - super.publish(subject, scope, sender, args); - } -}