Design Mode: Combination Mode

Source: Internet
Author: User

Design Mode: Combination Mode

Blog purpose: Use graphs to speak

Auxiliary text description:

1. Call method: Use component. method () in the Client ();

2. Scope of use: Aggregation and combination with the same structure.


Example:

Generate the Condition Statement: when avg (cpu)> 60% or avg (mem)> 70% for 3 min then do scale up. for avg (cpu)> 60%, avg (mem)> 70%, or other condition statements, the number is not fixed. They are connected by and or and are customized by the user.

The combination mode is used here:

Part: avg (cpu)> 60%

Component is avg (cpu)> 60% or avg (mem)> 70%

Composit is the aggregation of components and parts, for example, avg (io)> 80% and (avg (cpu)> 60% or avg (mem)> 70%)

The corresponding UML diagram is as follows:


Zookeeper

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.