Module: Eventoverse

Defined in:
lib/eventoverse.rb,
lib/eventoverse/config.rb,
lib/eventoverse/version.rb,
lib/eventoverse/udp_reporter.rb,
lib/eventoverse/base_reporter.rb,
lib/eventoverse/http_reporter.rb,
lib/eventoverse/amqp_reporter_mri.rb,
lib/eventoverse/amqp_reporter_jruby.rb

Defined Under Namespace

Modules: Config Classes: AmqpReporterJRuby, AmqpReporterMri, BaseReporter, HttpReporter, UdpReporter

Constant Summary collapse

VERSION =
"0.2.4"

Class Method Summary collapse

Class Method Details

.amqpObject



8
9
10
11
12
13
14
15
16
# File 'lib/eventoverse.rb', line 8

def self.amqp
  if RUBY_PLATFORM == 'java'
    require "eventoverse/amqp_reporter_jruby"
    AmqpReporterJRuby.instance
  else
    require "eventoverse/amqp_reporter_mri"
    AmqpReporterMri.instance
  end
end

.configObject



40
41
42
# File 'lib/eventoverse.rb', line 40

def self.config
  @config
end

.configure!(config) ⇒ Object



36
37
38
# File 'lib/eventoverse.rb', line 36

def self.configure!(config)
  @config = config
end

.httpObject



23
24
25
26
# File 'lib/eventoverse.rb', line 23

def self.http
  require "eventoverse/http_reporter"
  HttpReporter.instance
end

.reporterObject



32
33
34
# File 'lib/eventoverse.rb', line 32

def self.reporter
  @repoter || self.udp
end

.set_reporter!(reporter) ⇒ Object



28
29
30
# File 'lib/eventoverse.rb', line 28

def self.set_reporter!(reporter)
  @repoter = reporter
end

.udpObject



18
19
20
21
# File 'lib/eventoverse.rb', line 18

def self.udp
  require "eventoverse/udp_reporter"
  UdpReporter.instance
end