ffwd 0.1.7 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,29 +0,0 @@
1
- # $LICENSE
2
- # Copyright 2013-2014 Spotify AB. All rights reserved.
3
- #
4
- # The contents of this file are licensed under the Apache License, Version 2.0
5
- # (the "License"); you may not use this file except in compliance with the
6
- # License. You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
- # License for the specific language governing permissions and limitations under
14
- # the License.
15
-
16
- require_relative 'lifecycle'
17
- require_relative 'logging'
18
-
19
- require_relative 'statistics/collector'
20
-
21
- module FFWD
22
- module Statistics
23
- include FFWD::Logging
24
-
25
- def self.setup emitter, channel, opts={}
26
- Collector.new log, emitter, channel, opts
27
- end
28
- end
29
- end
@@ -1,27 +0,0 @@
1
- # $LICENSE
2
- # Copyright 2013-2014 Spotify AB. All rights reserved.
3
- #
4
- # The contents of this file are licensed under the Apache License, Version 2.0
5
- # (the "License"); you may not use this file except in compliance with the
6
- # License. You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
- # License for the specific language governing permissions and limitations under
14
- # the License.
15
-
16
- require_relative 'tunnel/tcp'
17
- require_relative 'tunnel/udp'
18
-
19
- module FFWD
20
- FAMILIES = {:tcp => Tunnel::TCP, :udp => Tunnel::UDP}
21
-
22
- def self.tunnel family, port, core, plugin, log, connection, args
23
- impl = FAMILIES[family]
24
- raise "Unsupported family: #{family}" if impl.nil?
25
- return impl.new port, core, plugin, log, connection, args
26
- end
27
- end