[Weave message Frame] [Java Core Technology] Dynamic Agent application 2

Source: Internet
Author: User

Next how to Implement

First step: First, the service class, call method to convert to digital, easy to transfer

The second step: Extract meta-information, extraction and three ways, three kinds have advantages, the best way is the first

1. Processing when compiling Java

2. Program start-up processing, preprocessing

3. Call processing, lazy processing

Step Three: Encoding interpretation

Fourth Step: Request method

Fifth Step: Distributed support

The first step:

@Target (Elementtype.type) @Retention (retentionpolicy.runtime)  public @Interface  Qmodel {    short  value ();}
@Target (Elementtype.method) @Retention (retentionpolicy.runtime)  public @Interface  qcommond {    byte  value ();}
@Target ({elementtype.parameter}) @Retention (retentionpolicy.runtime)  public @Interface  qrpcparam {    booleandefaultTrue ;}

1.QModel is converted into a module number is the public service class, before the first to confirm the value range of re-determined type. Short range-32768 to 327,671 medium and large projects that is thirty or forty modules, enough for the short range

2.QCommond is the service class call method number, byte type

3.QRpcParam is bound on the parameter, because Java reflection is not get interface parameter method name, can only get to the parameter name on the implementation class, JAVA8 is not supported, required parameter must have

[Weave message Frame] [Java Core Technology] Dynamic Agent application 2

Related Article

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.