Git Product home page Git Product logo

service's Introduction

一、服务框架应用场景:


本框架为基于linux的java框架,主要分为四个部分:
1.基于反射的业务框架,能够从数据库读取配置生成对应的服务并启动,而且能实时从数据库加载最新的配置。
2.基于nio的tcpClient和tcpServer,只需要指定ip、端口、接收数据的接口以及其他配置信息即可启动,能够断线自动重连。
3.基于反射的数据库操作模块,能够实现java对象到数据库表的映射。只要对象实现了DatabaseObject接口,均可以实现直接从数据库查询,更新,插入,删除等操作,全程无需任何sql拼写。
4.日志模块,文件模块,基于动态代理的数据库连接池,线程池,linux命令行参数获取模块等等。

二、框架运行需求:


1.需要相关的数据库用来存储服务配置。
2.数据库需要有tb_service_state表来实现对框架的控制。
3.单个服务的数据库表需要id,state,changed字段来实现对服务的控制。

三、关于框架的详细介绍请看博客


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.