You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"Function name: ${FUNCNAME} expects at least 3 parameters:"
100
+
echo"first parameter is the string id of the proxy"
101
+
echo"second parameter is the type of connection (input/output)"
102
+
exit 1
103
+
fi
104
+
105
+
# setting the port
106
+
if [[ $1=="barrel" ]];then
107
+
local PORT=$PORT_BARREL
108
+
elif [[ $1=="calo" ]];then
109
+
local PORT=$PORT_CALO
110
+
else
111
+
echo"parameter 1 should be either 'barrel' or 'calo'"
112
+
exit 3
113
+
fi
114
+
115
+
# setting the type of connection
116
+
if [[ $2=="input" ]];then
117
+
local CONNECTION="method=bind,type=pull"
118
+
elif [[ $2=="output" ]];then
119
+
local CONNECTION="method=connect,type=push"
120
+
else
121
+
echo"parameter 2 should be either 'input' or 'output'"
122
+
exit 2
123
+
fi
124
+
125
+
local PROXY_CONN="--proxy-channel-name aggregator-proxy-$1 --channel-config \"name=aggregator-proxy-$1,$CONNECTION,rateLogging=1,transport=zeromq,address=tcp://localhost:$PORT\""
0 commit comments