首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

The process of attribute lookup in python

如果objectname是实例: 1)Check objectname.__class__.__dict__ for attrname. If it exists and is a data-descriptor, return the descriptor result. Search all bases of objectname.__class__ for the same case. (在父类,以及父类的基类中查找data-descriptor属性,找到data-descriptor才返回) 2)Check objectname.__dict__ for attrname, and return if found. (在实例自身中 查找,只要找到就返回,不管是不是descriptor属性) 3)Check objectname.__class__.__dict__ for attrname. 似乎还要加上objectname.__class__.__basses__.__dict__ If it exists and is a non-data descriptor, return the descriptor result. If it exists, and is not a descriptor, just return it. (If it exists and is a data descriptor, we shouldn't be here because we would have returned at point 2.) (在父类中查找non-data descriptor和非descriptor属性,找到就返回)

02
您找到你想要的搜索结果了吗?
是的
没有找到

MBean与JMX源码分析

JMX(java Management Exetensions)在Java编程语言中定义了应用程序以及网络管理和监控的体系结构、设计模式、应用程序接口以及服务。 通常使用JMX来监控系统的运行状态或管理系统的某些方面,比如清空缓存、重新加载配置文件等 优点是可以非常容易的使应用程序被管理 伸缩性的架构使每个JMX Agent Service可以很容易的放入到Agent中,每个JMX的实现都提供几个核心的Agent Service,你也可以自己编写服务,服务可以很容易的部署,取消部署。 主要作用是提供接口,允许有不同的实现 简单来说,jmx是一个用来管理javaBean并可以进行监控的扩展规范,结合MBeanServer、rmi与http等可以作为一个服务监控和提供中心

02
领券