Module: Archipelago::Disco

Defined in:
lib/archipelago/disco.rb

Defined Under Namespace

Modules: Camel, Publishable Classes: Jockey, MockValidator, Query, Record, ServiceDescription, ServiceLocker, UnPublish

Constant Summary collapse

ADDRESS =

Default address to use.

"234.2.4.2"
PORT =

Default port to use.

25242
UNIPORTS =

Default port range to use for unicast.

25243..26243
LOOKUP_TIMEOUT =

Default lookup timeout.

0
INITIAL_LOOKUP_STANDOFF =

Default initial pause between resending lookup queries. Will be doubled for each resend.

0.1
VALIDATION_INTERVAL =

Default pause between trying to validate all services we know about.

30
THRIFTY_CACHING =

Only save stuff that we KNOW we want.

true
THRIFTY_REPLYING =

Only reply to the one actually asking about a service.

true
THRIFTY_PUBLISHING =

Dont send on publish, only on query.

false
HOST =

The host we are running on.

"#{Socket::gethostbyname(Socket::gethostname)[0]}" rescue "localhost"
MC =

The default Archipelago::Disco::Jockey that is always available for lookups is Archipelago::Disco::MC.

If you really need to you can customize it by defining MC_OPTIONS before loading disco.rb, and if you REALLY need to you can disable it completely by setting MC_DISABLED to true.

Jockey.new(defined?(MC_OPTIONS) ? MC_OPTIONS : {})