??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品视频中文字幕91 ,久久av超碰,噜噜噜噜噜在线视频http://www.aygfsteel.com/xmatthew/category/35672.html孤独键盘?/description>zh-cnSun, 17 May 2009 06:33:06 GMTSun, 17 May 2009 06:33:06 GMT60Spy2Servers 1.2.0发布http://www.aygfsteel.com/xmatthew/archive/2009/05/01/268552.htmlx.matthewx.matthewFri, 01 May 2009 14:15:00 GMThttp://www.aygfsteel.com/xmatthew/archive/2009/05/01/268552.htmlhttp://www.aygfsteel.com/xmatthew/comments/268552.htmlhttp://www.aygfsteel.com/xmatthew/archive/2009/05/01/268552.html#Feedback1http://www.aygfsteel.com/xmatthew/comments/commentRss/268552.htmlhttp://www.aygfsteel.com/xmatthew/services/trackbacks/268552.html 有一阵子没有整理该项目,盼到了五一节,本h也花了些旉Ql改q了该项目的一些功能。此ơ发布版本ؓ1.2.0?
此次发布包含以下内容:
* Spring-Integration支持。目前支持最新的版本 1.2.0。对Spring-Integration的支持,可以更大的利用Spring-Integration提供的扩展组件。如JMS, FTP, WebService, RMI, HTTP, Stream{?
* 全新的项目的主页Q方便大家的交流?
* 重新整理了更详细?用户文档和^台开发者文?包括与Spring-Integration集成开发文??nbsp; 阅读全文

x.matthew 2009-05-01 22:15 发表评论
]]>
spy2serverslg化的监控q_-攑և完善参考文档祝元旦http://www.aygfsteel.com/xmatthew/archive/2009/01/03/249630.htmlx.matthewx.matthewSat, 03 Jan 2009 09:37:00 GMThttp://www.aygfsteel.com/xmatthew/archive/2009/01/03/249630.htmlhttp://www.aygfsteel.com/xmatthew/comments/249630.htmlhttp://www.aygfsteel.com/xmatthew/archive/2009/01/03/249630.html#Feedback1http://www.aygfsteel.com/xmatthew/comments/commentRss/249630.htmlhttp://www.aygfsteel.com/xmatthew/services/trackbacks/249630.html阅读全文

x.matthew 2009-01-03 17:37 发表评论
]]>
spy2serverslg化的监控q_使用帮助手册http://www.aygfsteel.com/xmatthew/archive/2008/10/28/195745.htmlx.matthewx.matthewTue, 28 Oct 2008 04:54:00 GMThttp://www.aygfsteel.com/xmatthew/archive/2008/10/28/195745.htmlhttp://www.aygfsteel.com/xmatthew/comments/195745.htmlhttp://www.aygfsteel.com/xmatthew/archive/2008/10/28/195745.html#Feedback7http://www.aygfsteel.com/xmatthew/comments/commentRss/195745.htmlhttp://www.aygfsteel.com/xmatthew/services/trackbacks/195745.htmlhttp://www.aygfsteel.com/xmatthew/archive/2008/04/24/194894.html
http://www.aygfsteel.com/xmatthew/archive/2008/04/21/194349.html
http://www.aygfsteel.com/xmatthew/archive/2008/03/24/187934.html
http://www.aygfsteel.com/xmatthew/articles/185673.html
现在应该是时候把它们l一整理出来了?

本手册分Z部分Q用户用手册和开发手册?nbsp; 阅读全文

x.matthew 2008-10-28 12:54 发表评论
]]>
(原创)Zlg化的监控q_开发监?更新: 支持Annotation)http://www.aygfsteel.com/xmatthew/archive/2008/05/05/198585.htmlx.matthewx.matthewMon, 05 May 2008 14:49:00 GMThttp://www.aygfsteel.com/xmatthew/archive/2008/05/05/198585.htmlhttp://www.aygfsteel.com/xmatthew/comments/198585.htmlhttp://www.aygfsteel.com/xmatthew/archive/2008/05/05/198585.html#Feedback2http://www.aygfsteel.com/xmatthew/comments/commentRss/198585.htmlhttp://www.aygfsteel.com/xmatthew/services/trackbacks/198585.htmll过一D|间的整理Q现已经把整个项目{Ud了SourceForge。目前的|址?https://sourceforge.net/projects/spy2servers 希望大家能依旧大力支持?

a归正转,此次更新主要是支持Annotation,用于单Spring的xml配置  阅读全文

x.matthew 2008-05-05 22:49 发表评论
]]>
spy2serverslg化的监控q_使用帮助手册(更新)http://www.aygfsteel.com/xmatthew/archive/2008/04/25/196075.htmlx.matthewx.matthewFri, 25 Apr 2008 14:47:00 GMThttp://www.aygfsteel.com/xmatthew/archive/2008/04/25/196075.htmlhttp://www.aygfsteel.com/xmatthew/comments/196075.htmlhttp://www.aygfsteel.com/xmatthew/archive/2008/04/25/196075.html#Feedback17http://www.aygfsteel.com/xmatthew/comments/commentRss/196075.htmlhttp://www.aygfsteel.com/xmatthew/services/trackbacks/196075.html阅读全文

x.matthew 2008-04-25 22:47 发表评论
]]>
(原创)Zlg化的监控q_开发监?更新: 内置Jetty服务器,支持web方式查看q_lgq行状?http://www.aygfsteel.com/xmatthew/archive/2008/04/24/194894.htmlx.matthewx.matthewThu, 24 Apr 2008 01:36:00 GMThttp://www.aygfsteel.com/xmatthew/archive/2008/04/24/194894.htmlhttp://www.aygfsteel.com/xmatthew/comments/194894.htmlhttp://www.aygfsteel.com/xmatthew/archive/2008/04/24/194894.html#Feedback1http://www.aygfsteel.com/xmatthew/comments/commentRss/194894.htmlhttp://www.aygfsteel.com/xmatthew/services/trackbacks/194894.html

spy2servers目发布后,得到很多朋友的支持,本h在此表示感谢。本ơ更斎ͼ主要实现了内|了Jetty Web服务器,提供
Zweb方式查看监控q_的所有组件运行状态。针对原来提供的ZJMX的运行状态监控相比,Web方式要方便很多,无需q行jconsole?br />
下蝲地址Q?br /> 二进制程?/a>
W三方类库下?/a>,W三方类库下?  Jettycd 攑ֈlib目录下?br /> api-docs
源代?/a>

我来看一下如何在 spy2servers 配置Jettyq启动web方式的组件监控服务?br /> 配置Ҏ非常单,使用我们单后的Spring配置。下面是配置说明Q在spy2servers.xml中,加入

  <jetty>
    
<connectors>
      
<nioConnector port="7758" /> <!-- using nio connector port is 7758 -->
    
</connectors>

    
<handlers>
        
<!-- org.xmatthew.spy2servers.component.web.ComponentsViewServlet is our web spy servlet,  /admin is our servlet path  -->
      
<servlet servletClass="org.xmatthew.spy2servers.component.web.ComponentsViewServlet" path="/admin" />
    
</handlers>
  
</jetty>

配置是不是非常的单, q样启动了web服务 讉K址
http://localhost:7758/admin?使用的是7758端口Qservlet path?admin.

下面看一下,q入后页面的内容:



最上面分别是三个标{:分别选择查看 SpyComponents AlertComponents ChannelAwareComponents 三种lglg。默认进入的?a href="http://localhost:7758/admin?type=spy">SpyComponents

上面囄中,我们可以看到SpyComponentscd配置了三个监控组件?br /> 我们拿其中一个再说明一下:
ActiveMQJmxSpyComponent
message count=0 #监控消息个数
component status=Active #lg的状?br /> startup date=2008-04-22 22:25:09 #lg启动的时?br />
如果有消息监控到Q则会显C如下:
ActiveMQJmxSpyComponent
message count=2
component status=Active
startup date=2008-04-22 22:25:09
order 1
id c7c41f6b-a502-4656-862b-869e1dbe8260
level 1
body Test.Queue
description QueueConsumerSuspend
type QueueInspect
properties {Name=Test.Queue, MemoryPercentageUsed=0, DispatchCount=0, QueueSize=0, EnqueueCount=0, DequeueCount=0, ConsumerCount=0, MemoryLimit=9223372036854775807, statusKeepTime=18968}
order 2
id a5b0dbce-b0ae-41d6-8690-0d0ebf9a34b5
level 1
body aaa
description QueueConsumerSuspend
type QueueInspect
properties {Name=aaa, MemoryPercentageUsed=0, DispatchCount=0, QueueSize=0, EnqueueCount=0, DequeueCount=0, ConsumerCount=0, MemoryLimit=9223372036854775807, statusKeepTime=18796}


接下来,l心的朋友发现还有一个AlertRule链接Q这个又不是lgQ这个是做什么的呢?
现在我来解释一下,我们在定义core-componet标签的时候,q_支持定义消息的流转规则,下面q是可视化的标识哪些消息从那个监?br /> lgq来Q将会发送到哪个报警lg消息上去

下面是一个演C界面:

Components alert rule:
from to
AMQ16Component PrintScreenAlertComponent
ActiveMQJmxSpyComponent PrintScreenAlertComponent
EmailAlertComponent
SunJVMJmxSpyComponent PrintScreenAlertComponent
EmailAlertComponent
TomcatJmxSpyComponent PrintScreenAlertComponent
EmailAlertComponent

其中的内容很好解理,from是指监控组Ӟ to指的是报警lg?br />
Zweb方式的查看监控的lg情况Q是不是很方便呢 :)?br />
最后欢q大家如果有问题和意见,l我留言?br />
Good Luck!
Yours Matthew!




x.matthew 2008-04-24 09:36 发表评论
]]>
(原创)Zlg化的监控q_开发监?更新)http://www.aygfsteel.com/xmatthew/archive/2008/04/21/194349.htmlx.matthewx.matthewMon, 21 Apr 2008 00:14:00 GMThttp://www.aygfsteel.com/xmatthew/archive/2008/04/21/194349.htmlhttp://www.aygfsteel.com/xmatthew/comments/194349.htmlhttp://www.aygfsteel.com/xmatthew/archive/2008/04/21/194349.html#Feedback4http://www.aygfsteel.com/xmatthew/comments/commentRss/194349.htmlhttp://www.aygfsteel.com/xmatthew/services/trackbacks/194349.html此次更新Q主要是针对xml配置文g的简化,很多朋友表示Spring的xml的配|比较麻烦。其实Spring开发团队在q方面也是考虑刎ͼ
提供了一些方法可以让用户ȝ写xsd文g单配|。这Ҏ们是可以看到Spring开发团队的努的Q现在Spring2.0以及2.5在配|上面也是简化了很多
如事务,Aop配置以及util工具cȝ配置{?
源代码下载:
二进制程?
W三方类库下?W三方类库下? 攑ֈlib目录下?
api-docs
源代?

关于惛_习或使用q关于如何实现Spring的配|的朋友们,可以留言l我Q一赯行交学习。这部分的学习文档也是整理得不够  阅读全文

x.matthew 2008-04-21 08:14 发表评论
]]>
(原创)攑ևActiveMQ服务监控lgQ基于组件化的监控^台开?/title><link>http://www.aygfsteel.com/xmatthew/archive/2008/03/31/189505.html</link><dc:creator>x.matthew</dc:creator><author>x.matthew</author><pubDate>Mon, 31 Mar 2008 00:08:00 GMT</pubDate><guid>http://www.aygfsteel.com/xmatthew/archive/2008/03/31/189505.html</guid><wfw:comment>http://www.aygfsteel.com/xmatthew/comments/189505.html</wfw:comment><comments>http://www.aygfsteel.com/xmatthew/archive/2008/03/31/189505.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/xmatthew/comments/commentRss/189505.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/xmatthew/services/trackbacks/189505.html</trackback:ping><description><![CDATA[<br /> 上次Z<span style="background-color: rgb(40, 255, 93);"><span style="color: red;"><a href="http://www.aygfsteel.com/xmatthew/articles/185673.html">lg化的监控q_</a></span></span>开发一?span style="background-color: rgb(40, 255, 93);"><a href="http://www.aygfsteel.com/xmatthew/archive/2008/03/24/187934.html">Tomcat监控插g和邮件报警插?/a></span>?br /> 收到有很多朋友的支持Q在些表C非常感谢。这ơ发布的包含一个AMQ的监控组件?br /> <br /> 下蝲地址<br /> <a href="http://www.aygfsteel.com/Files/xmatthew/spy2servers.zip">二进制程?/a><br /> <a href="http://www.aygfsteel.com/Files/xmatthew/lib.rar">W三方类库下?/a>,<a href="http://www.aygfsteel.com/Files/xmatthew/lib2.rar">W三方类库下?</a> 攑ֈlib目录下?br /> <a href="http://www.aygfsteel.com/Files/xmatthew/api-docs.zip">api-docs</a> <br /> <a href="http://www.aygfsteel.com/Files/xmatthew/spy2servers-core.zip">源代?/a><br /> <br /> <br /> 先来介绍ActiveMQ服务监控lg的实?该监控组件目前实C以下斚w信息的监控:<br /> 1. Jvm堆内存和非堆内存的监控(可以讄使用的百分比或是具体使用的内存大?<br /> 2. 当前操作文g打开的IO文g个数监控?一般操作默认设|的最大值是1024Q如果超q这个服务会DJVM所有服务的停止?br /> 3. Queue队列的消息者监控。如果某一个队列在讑֮旉D|都没有消息者监听可以监控该状态信?br /> 4. 监控所有非法IPq接.如果有未讑֮的非法IPq接可以lg监控光法IP地址Q但q行报警<br /> <br /> 因ؓ该组件利用JMX技术对ActiveMQq行监控QAcitveMQ默认状态下其JMX服务是打开着的,端口?099.如果没有打开Q可以修改其配置文g conf/activemq.xml<br /> activemq 4.x<br /> <br />  <broker brokerName="localhost" <span style="background-color: rgb(40, 255, 93);">useJmx="true"</span> xmlns="http://activemq.org/config/1.0"><br /> <br /> <br /> 下面我们来看一下该监控lg的实现类?br /> <img src="http://www.aygfsteel.com/images/blogjava_net/xmatthew/cd.jpeg" alt="" border="0" /><br /> <br /> 下面我们来操作一下如何用Spring注册该组?spy2servers.xml)Q用其监控q_工作h?br /> <br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 128, 128);"> 1</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">bean </span><span style="color: rgb(255, 0, 0);">class</span><span style="color: rgb(0, 0, 255);">="org.xmatthew.spy2servers.component.spy.jmx.ActiveMQJmxSpyComponent"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 2</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="host"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="x.x.x.x"</span><span style="color: rgb(0, 0, 255);">></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 3</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="port"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="1099"</span><span style="color: rgb(0, 0, 255);">></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 4</span> <span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 5</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="heapMemorySpy"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 6</span> <span style="color: rgb(0, 0, 0);">            </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">bean </span><span style="color: rgb(255, 0, 0);">class</span><span style="color: rgb(0, 0, 255);">="org.xmatthew.spy2servers.component.spy.jmx.MemorySpy"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 7</span> <span style="color: rgb(0, 0, 0);">                </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="memoryUsedPercentToAlert"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="5"</span><span style="color: rgb(0, 0, 255);">></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 8</span> <span style="color: rgb(0, 0, 0);">                </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="alertAfterKeepTimeLive"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="10"</span><span style="color: rgb(0, 0, 255);">></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 9</span> <span style="color: rgb(0, 0, 0);">            </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">bean</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">10</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">11</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="fileSpy"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">12</span> <span style="color: rgb(0, 0, 0);">            </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">bean </span><span style="color: rgb(255, 0, 0);">class</span><span style="color: rgb(0, 0, 255);">="org.xmatthew.spy2servers.component.spy.jmx.FileSpy"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">13</span> <span style="color: rgb(0, 0, 0);">                </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="filesOpenedPercentToAlert"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="8"</span><span style="color: rgb(0, 0, 255);">></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">14</span> <span style="color: rgb(0, 0, 0);">                </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="alertAfterKeepTimeLive"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="2"</span><span style="color: rgb(0, 0, 255);">></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">15</span> <span style="color: rgb(0, 0, 0);">            </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">bean</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">16</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">    <br /> </span><span style="color: rgb(0, 128, 128);">17</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="destinationNamesToWatch"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">18</span> <span style="color: rgb(0, 0, 0);">            </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">set</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">19</span> <span style="color: rgb(0, 0, 0);">                </span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);"> if blank will inspect all queue names </span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">20</span> <span style="color: rgb(0, 0, 0);">                </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">Test.Queue</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">21</span> <span style="color: rgb(0, 0, 0);">            </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">set</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">22</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">23</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);"> if queue's consumers suspend for this time will alert  </span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">24</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="queueSuspendNotifyTime"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="2000"</span><span style="color: rgb(0, 0, 255);">></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">25</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);"> any allow ip. if ip not in this list will component will alert </span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">26</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="llegalIps"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">27</span> <span style="color: rgb(0, 0, 0);">            </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">set</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">28</span> <span style="color: rgb(0, 0, 0);">                </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">127.0.0.1</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">29</span> <span style="color: rgb(0, 0, 0);">            </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">set</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">30</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">31</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">bean</span><span style="color: rgb(0, 0, 255);">></span></div> <br /> <br /> 好了Q基本的配置最是这些,应用E序和源代码已经上传大家可以自写阅览。大家如有Q何问题请回复l我?br /> <br /> Good luck!<br /> Yours Matthew!<br /> <br /> <br /> <br /> <img src ="http://www.aygfsteel.com/xmatthew/aggbug/189505.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/xmatthew/" target="_blank">x.matthew</a> 2008-03-31 08:08 <a href="http://www.aygfsteel.com/xmatthew/archive/2008/03/31/189505.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>(原创)Zlg化的监控q_开发监控Tomcat服务及邮仉知功能http://www.aygfsteel.com/xmatthew/archive/2008/03/24/187934.htmlx.matthewx.matthewMon, 24 Mar 2008 00:22:00 GMThttp://www.aygfsteel.com/xmatthew/archive/2008/03/24/187934.htmlhttp://www.aygfsteel.com/xmatthew/comments/187934.htmlhttp://www.aygfsteel.com/xmatthew/archive/2008/03/24/187934.html#Feedback8http://www.aygfsteel.com/xmatthew/comments/commentRss/187934.htmlhttp://www.aygfsteel.com/xmatthew/services/trackbacks/187934.html阅读全文

x.matthew 2008-03-24 08:22 发表评论
]]>
(原创)搭徏一个组件化的监控^?http://www.aygfsteel.com/xmatthew/archive/2008/03/12/185676.htmlx.matthewx.matthewWed, 12 Mar 2008 05:48:00 GMThttp://www.aygfsteel.com/xmatthew/archive/2008/03/12/185676.htmlhttp://www.aygfsteel.com/xmatthew/comments/185676.htmlhttp://www.aygfsteel.com/xmatthew/archive/2008/03/12/185676.html#Feedback2http://www.aygfsteel.com/xmatthew/comments/commentRss/185676.htmlhttp://www.aygfsteel.com/xmatthew/services/trackbacks/185676.html最q看C位同事正在开发一个监控YӞ要求是通过针对服务器现有的一些接口,通过q些接口q回的数据进行分析,如果监控的值到N先设定的范围则通过短信的方式发送给理员?

从整个开发的功能上来看是一个比较单一也很明确的功能,所开发的pȝҎ其所监控的Y件的依赖性也非常大,主要是监控的数据分析行ؓ和监控信息的服务报警行ؓq块。既然这两块很难做成一个通用的功能模块,那就搭徏一个监控^収ͼ可以让这些功能模块通过lg的方式自q注册和销毁?/a>

所有我构思了q个监控q_Q它对外有三个接口,分别是监控接口,报警接口和监控消息监控接口。由q_l一理q些lg的生命周期,每个lg都过单独的线E运行。提供一个核心组件CoreComponent调度所有监控数据的{。^台本w还使用Zjmx理服务技术提供对所有当前用的lgq行情况的监控,也包括动态的启动和停止组件的q行状态?br />  
下蝲地址 
二进制程?br /> W三方类库下?/a>,W三方类库下?/a>攑ֈlib目录下?br /> api-docs 
源代?/a>


/**
 * Component interface.
 * lg接口Q提供组件的基本理服务和状态监控?nbsp;所有组件必要实现该接口?br />  * 
 * 
@author XieMaLin
 *
 
*/

public interface Component {
    
    
/**
     * component run status
     * 
     
*/

    
public final static int ST_RUN = 1;
    
    
/**
     * component run status name
     
*/

    
public final static String ST_RUN_NAME = "Active";
    
    
/**
     * component stop status
     
*/

    
public final static int ST_STOP = 2;
    
    
/**
     * component stop status name
     
*/

    
public final static String ST_STOP_NAME = "Decctive";
    
    
/**
     * get component status
     * <p>
     * One of ST_RUN, ST_STOP. 
     * 
@return component status
     
*/

    
public int getStatus();
    
    
/**
     * get component status
     * <p>
     * One of ST_RUN_NAME, ST_STOP_NAME. 
     * 
     * 
@return component status name
     
*/

    
public String getStatusName();
    
    
/**
     * if component active return true
     * 
     * 
@return true if component is in status ST_RUN
     
*/

    
public boolean isActive();
    
    
/**
     * will be invoked after component plugs.
     
*/

    
public void startup();

    
/**
     * will be invoked after component unplugs.
     
*/

    
public void stop();

    
/**
     * set component context to the component.
     * it will auto invoke by CoreComponent
     * 
     * 
@param context set the component context
     * 
     
*/

    
public void setContext(ComponentContext context);

    
/**
     * 
@return get the component context
     
*/

    
public ComponentContext getContext();
    
    
/**
     * get component name
     * 
@return get component name
     
*/

    
public String getName();
    
    
/**
     * get component strartup date
     * 
@return get component strartup date
     
*/

    
public Date getStartupDate();
    
    
/**
     * set startup date to the component.
     * it will auto invoke by CoreComponent
     * 
     * 
@param date startup date
     
*/

    
public void setStartupDate(Date date);


点击查看具体内容Q?a href="http://www.aygfsteel.com/xmatthew/articles/185673.html">http://www.aygfsteel.com/xmatthew/articles/185673.html


x.matthew 2008-03-12 13:48 发表评论
]]>
վ֩ģ壺 ֻ| | | | | | | | ͨ| | | | | | | | | ˳| ƽ| | ɽ| ӽ| | ȫ| ߱| | | | | ̨| | żҿ| | ƽ| ¹| | ˫| | ϰ| µ| ָ|