Interface Service

  • All Implemented Interfaces:

    
    public interface Service
    
                        

    在容器编排中的服务,可以参考 https://kubernetes.io/zh-cn/docs/concepts/services-networking/

    Author:

    CJ

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String getId() 唯一服务编码,简单字符集合包括大小写拉丁字母,阿拉伯数字以及短杆
      abstract String getType() 服务类型,简单字符集合包括大小写拉丁字母,阿拉伯数字以及短杆 表示服务的基础特性集合,比如提供特定端口,特定协议入口等等。 由客户端代码自行定义
      abstract String getDeployCommand() 肯定是设备上的可执行指令,部署完成即可结束并且返回 0,任何错误发生都必须返回非0 其必须接受的参数列表如下
      • 服务id

      • 服务 ip

      • 服务 port

      • 镜像地址

      • 镜像 tag

      • 服务类型(缺省会传入空值)

      • 环境变量名称 1

      • 环境变量值 1

      • ...

      abstract HealthCheck getHealthCheck() 健康检查机制
      abstract Map<String, String> getEnvironment() 环境变量
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getId

         abstract String getId()

        唯一服务编码,简单字符集合包括大小写拉丁字母,阿拉伯数字以及短杆

      • getType

         abstract String getType()

        服务类型,简单字符集合包括大小写拉丁字母,阿拉伯数字以及短杆 表示服务的基础特性集合,比如提供特定端口,特定协议入口等等。 由客户端代码自行定义

      • getDeployCommand

         abstract String getDeployCommand()

        肯定是设备上的可执行指令,部署完成即可结束并且返回 0,任何错误发生都必须返回非0 其必须接受的参数列表如下

        • 服务id

        • 服务 ip

        • 服务 port

        • 镜像地址

        • 镜像 tag

        • 服务类型(缺省会传入空值)

        • 环境变量名称 1

        • 环境变量值 1

        • ...