Class: RFlow::Configuration::Connection
- Inherits:
-
ConfigurationItem
- Object
- ActiveRecord::Base
- ConfigurationItem
- RFlow::Configuration::Connection
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/rflow/configuration/connection.rb
Overview
Represents a component-to-component connection in the SQLite database.
Direct Known Subclasses
Defined Under Namespace
Classes: ConnectionInvalid
Instance Attribute Summary collapse
-
#input_port ⇒ InputPort
The InputPort to which this Connection delivers messages.
-
#options ⇒ Hash
Open-ended Hash of component options, serialized via YAML to a single column.
-
#output_port ⇒ OutputPort
The OutputPort from which this Connection receives messages.
Class Method Summary collapse
-
.default_options ⇒ Hash
Should return a hash of default options, where the keys are the option names and the values are either default option values or Procs that take a single connection argument.
-
.required_options ⇒ Array<String>
Should return a list of require option names which will be used in validations.
Instance Method Summary collapse
-
#brokers ⇒ Array<Broker>
By default, no broker processes are required to manage a connection.
Instance Attribute Details
#input_port ⇒ InputPort
The InputPort to which this RFlow::Configuration::Connection delivers messages.
22 |
# File 'lib/rflow/configuration/connection.rb', line 22 belongs_to :input_port, :primary_key => 'uuid', :foreign_key => 'input_port_uuid' |
#options ⇒ Hash
Open-ended Hash of component options, serialized via YAML to a single column.
17 |
# File 'lib/rflow/configuration/connection.rb', line 17 serialize :options, Hash |
#output_port ⇒ OutputPort
The OutputPort from which this RFlow::Configuration::Connection receives messages.
27 |
# File 'lib/rflow/configuration/connection.rb', line 27 belongs_to :output_port,:primary_key => 'uuid', :foreign_key => 'output_port_uuid' |
Class Method Details
.default_options ⇒ Hash
Should return a hash of default options, where the keys are the option names and the values are either default option values or Procs that take a single connection argument. This allow defaults to use other parameters in the connection to construct the appropriate default value. To be overridden by subclasses.
65 |
# File 'lib/rflow/configuration/connection.rb', line 65 def self.; {}; end |
.required_options ⇒ Array<String>
Should return a list of require option names which will be used in validations. To be overridden by subclasses.
56 |
# File 'lib/rflow/configuration/connection.rb', line 56 def self.; []; end |
Instance Method Details
#brokers ⇒ Array<Broker>
By default, no broker processes are required to manage a connection. To be overridden by subclasses.
70 |
# File 'lib/rflow/configuration/connection.rb', line 70 def brokers; []; end |