Class: RubyAemAws::Component::AuthorPublishDispatcher
- Inherits:
-
Object
- Object
- RubyAemAws::Component::AuthorPublishDispatcher
- Includes:
- AbstractSingleComponent, AbstractSnapshot, HealthyStateVerifier, MetricVerifier, SnapshotVerifier
- Defined in:
- lib/ruby_aem_aws/component/author_publish_dispatcher.rb
Overview
Interface to a single AWS instance running all three AEM components as a consolidated stack.
Constant Summary collapse
- EC2_COMPONENT =
'author-publish-dispatcher'.freeze
- EC2_NAME =
'AuthorPublishDispatcher'.freeze
Instance Attribute Summary collapse
-
#cloud_watch_client ⇒ Object
readonly
Returns the value of attribute cloud_watch_client.
-
#cloud_watch_log_client ⇒ Object
readonly
Returns the value of attribute cloud_watch_log_client.
-
#descriptor ⇒ Object
readonly
Returns the value of attribute descriptor.
-
#ec2_resource ⇒ Object
readonly
Returns the value of attribute ec2_resource.
Instance Method Summary collapse
- #get_tags ⇒ Object
-
#initialize(stack_prefix, params) ⇒ Object
constructor
-
CloudWatchClient: AWS Cloudwatch Client.
-
Methods included from SnapshotVerifier
Methods included from MetricVerifier
#alarm?, #component_alarm?, #component_ec2_metric?, #component_log_event?, #component_log_stream?, #component_loggroup?, #component_metric?, #log_event?, #log_stream?, #loggroup?, #metric?
Methods included from RubyAemAws::CloudwatchClient
#get_alarm, #get_log_event, #get_log_streams, #get_metrics
Methods included from HealthyStateVerifier
#healthy?, #wait_until_healthy
Methods included from AbstractSnapshot
#get_snapshot_by_id, #get_snapshots_by_type
Methods included from AbstractComponent
Methods included from InstanceDescriber
#describe_instance, #describe_instances
Methods included from AbstractSingleComponent
#get_all_instances, #get_instance
Constructor Details
#initialize(stack_prefix, params) ⇒ Object
-
CloudWatchClient: AWS Cloudwatch Client.
-
CloudWatchLogsClient: AWS Cloudwatch Logs Client.
-
Ec2Resource: AWS EC2 Resource connection.
43 44 45 46 47 48 49 |
# File 'lib/ruby_aem_aws/component/author_publish_dispatcher.rb', line 43 def initialize(stack_prefix, params) @descriptor = ComponentDescriptor.new(stack_prefix, EC2Descriptor.new(EC2_COMPONENT, EC2_NAME)) @cloud_watch_client = params[:CloudWatchClient] @cloud_watch_log_client = params[:CloudWatchLogsClient] @ec2_resource = params[:Ec2Resource] end |
Instance Attribute Details
#cloud_watch_client ⇒ Object (readonly)
Returns the value of attribute cloud_watch_client.
26 27 28 |
# File 'lib/ruby_aem_aws/component/author_publish_dispatcher.rb', line 26 def cloud_watch_client @cloud_watch_client end |
#cloud_watch_log_client ⇒ Object (readonly)
Returns the value of attribute cloud_watch_log_client.
26 27 28 |
# File 'lib/ruby_aem_aws/component/author_publish_dispatcher.rb', line 26 def cloud_watch_log_client @cloud_watch_log_client end |
#descriptor ⇒ Object (readonly)
Returns the value of attribute descriptor.
26 27 28 |
# File 'lib/ruby_aem_aws/component/author_publish_dispatcher.rb', line 26 def descriptor @descriptor end |
#ec2_resource ⇒ Object (readonly)
Returns the value of attribute ec2_resource.
26 27 28 |
# File 'lib/ruby_aem_aws/component/author_publish_dispatcher.rb', line 26 def ec2_resource @ec2_resource end |
Instance Method Details
#get_tags ⇒ Object
51 52 53 54 |
# File 'lib/ruby_aem_aws/component/author_publish_dispatcher.rb', line 51 def instance = get_instance instance. end |