class Cylons::RemoteRegistry
Attributes
loaded_remotes[RW]
remotes[RW]
Public Class Methods
clear_registry()
click to toggle source
# File lib/cylons/remote_registry.rb, line 14 def self.clear_registry ::DCell.registry.instance_variable_get("@global_registry").clear end
get_remote_schema(name)
click to toggle source
# File lib/cylons/remote_registry.rb, line 42 def self.get_remote_schema(name) ::DCell::Global["#{name}_schema".to_sym] end
register(klass)
click to toggle source
# File lib/cylons/remote_registry.rb, line 18 def self.register(klass) ::Cylons::Connection.connect unless ::Cylons::Connection.connected? @remotes << klass end
register_remote_schema(klass)
click to toggle source
# File lib/cylons/remote_registry.rb, line 34 def self.register_remote_schema(klass) ::DCell::Global["#{klass.name.downcase}_schema".to_sym] = ::Cylons::RemoteSchema.new(klass) end
register_schemas()
click to toggle source
# File lib/cylons/remote_registry.rb, line 23 def self.register_schemas @remotes.each do |remote| ::Cylons.logger.info remote register_remote_schema(remote) end end
remote_schema?(name)
click to toggle source
# File lib/cylons/remote_registry.rb, line 38 def self.remote_schema?(name) ::DCell::Global.keys.include? "#{name}_schema".to_sym end
remote_schemas()
click to toggle source
# File lib/cylons/remote_registry.rb, line 30 def self.remote_schemas ::DCell::Global.keys end