资源简介
otter源码包,里面有otter的使用案例,透过otter源码能更好的理解和otter的用法
代码片段和文件信息
/*
* Copyright (C) 2010-2101 Alibaba Group Holding Limited.
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.otter.manager.biz.autokeeper;
import java.util.List;
import com.alibaba.otter.shared.common.model.autokeeper.AutoKeeperConnectionStat;
import com.alibaba.otter.shared.common.model.autokeeper.AutoKeeperServerStat;
/**
* zookeeper状态查询接口
*
* @author jianghang 2012-9-21 下午02:42:16
* @version 4.1.0
*/
public interface AutoKeeperStatService {
/**
* 根据serverIp查询对应的统计信息,包括Connection/Watch/Ephemeral等统计信息
*
* @param serverIp
* @return
*/
public AutoKeeperServerStat findServerStat(String serverIp);
/**
* 根据sessionId查询对应的统计信息,包括详细的Connection/Watch/Ephemeral等统计信息
*
* @param sessionId
* @return
*/
public AutoKeeperServerStat findServerStatBySessionId(String sessionId);
/**
* 根据sessionId查询对应的connction链接
*
* @param sessionId
* @return
*/
public AutoKeeperConnectionStat findConnectionBySessionId(String sessionId);
/**
* 根据临时节点路径查询对应的connection统计信息
*
* @param path
* @return
*/
public AutoKeeperConnectionStat findConnectionByEphemeralPath(String path);
/**
* 根据watcher路径查询对应的connection统计信息
*
* @param path
* @return
*/
public List findConnectionByWatcherPath(String path);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-12-05 11:48 otter-master\
文件 145 2017-12-05 11:48 otter-master\.gitignore
文件 623 2017-12-05 11:48 otter-master\HEADER.txt
文件 11560 2017-12-05 11:48 otter-master\LICENSE.txt
文件 7057 2017-12-05 11:48 otter-master\README.md
文件 30873 2017-12-05 11:48 otter-master\codeformat.xm
文件 4768 2017-12-05 11:48 otter-master\codetemplates.xm
目录 0 2017-12-05 11:48 otter-master\lib\
文件 553 2017-12-05 11:48 otter-master\lib\install.bat
文件 538 2017-12-05 11:48 otter-master\lib\install.sh
文件 312979 2017-12-05 11:48 otter-master\lib\jmockit-0.999.10-sources.jar
文件 360492 2017-12-05 11:48 otter-master\lib\jmockit-0.999.10.jar
文件 4122 2017-12-05 11:48 otter-master\lib\jmockit-0.999.10.pom
文件 774303 2017-12-05 11:48 otter-master\lib\jtester-1.1.8-sources.jar
文件 1040429 2017-12-05 11:48 otter-master\lib\jtester-1.1.8.jar
文件 4018 2017-12-05 11:48 otter-master\lib\jtester-1.1.8.pom
文件 1545954 2017-12-05 11:48 otter-master\lib\ojdbc14-10.2.0.3.0.jar
目录 0 2017-12-05 11:48 otter-master\manager\
目录 0 2017-12-05 11:48 otter-master\manager\biz\
文件 3816 2017-12-05 11:48 otter-master\manager\biz\pom.xm
目录 0 2017-12-05 11:48 otter-master\manager\biz\src\
目录 0 2017-12-05 11:48 otter-master\manager\biz\src\main\
目录 0 2017-12-05 11:48 otter-master\manager\biz\src\main\java\
目录 0 2017-12-05 11:48 otter-master\manager\biz\src\main\java\com\
目录 0 2017-12-05 11:48 otter-master\manager\biz\src\main\java\com\alibaba\
目录 0 2017-12-05 11:48 otter-master\manager\biz\src\main\java\com\alibaba\otter\
目录 0 2017-12-05 11:48 otter-master\manager\biz\src\main\java\com\alibaba\otter\manager\
目录 0 2017-12-05 11:48 otter-master\manager\biz\src\main\java\com\alibaba\otter\manager\biz\
目录 0 2017-12-05 11:48 otter-master\manager\biz\src\main\java\com\alibaba\otter\manager\biz\autokeeper\
文件 2100 2017-12-05 11:48 otter-master\manager\biz\src\main\java\com\alibaba\otter\manager\biz\autokeeper\AutoKeeperStatService.java
目录 0 2017-12-05 11:48 otter-master\manager\biz\src\main\java\com\alibaba\otter\manager\biz\autokeeper\impl\
............此处省略1728个文件信息
评论
共有 条评论