移除无用的接口

This commit is contained in:
ascrutae 2016-11-09 23:39:00 +08:00
parent d628314c4f
commit bb5b33c3b3
7 changed files with 46 additions and 60 deletions

View File

@ -3,5 +3,5 @@ package com.a.eye.skywalking.registry.api;
import java.util.List;
public interface NotifyListener {
void notify(List<RegistryData> data);
void notify(List<RegistryData> urls);
}

View File

@ -1,13 +0,0 @@
package com.a.eye.skywalking.registry.api;
/**
* Created by xin on 2016/11/9.
*/
public interface Register {
void subscribe(NotifyListener listener);
void unSubscribe();
void registry();
}

View File

@ -1,5 +0,0 @@
package com.a.eye.skywalking.registry.api;
public interface RegisterFactory {
Register getRegister(String key);
}

View File

@ -1,15 +1,12 @@
package com.a.eye.skywalking.registry.api;
/**
* Created by xin on 2016/11/9.
* 存储注册项的数据
* 注册项包括注册的目录支持多级"/"分割以及注册值
*/
public class RegistryData {
public interface RegistryData {
public String key() {
return null;
}
String getPath();
public String data() {
return null;
}
String getValue();
}

View File

@ -0,0 +1,40 @@
package com.a.eye.skywalking.registry.api;
/**
* 主要用于注册中心的维护
*/
public interface RegistryManager {
/**
* 主要用于storage启动注册使用将自身IP和端口注册到注册中心
* 格式为:
* /storage_list/192.168.0.1:3400 NULL
*
* @param data
*/
void register(RegistryData data);
/**
* 从注册中心移除storage宕机节点
*
* @param data
*/
void unregister(RegistryData data);
/**
* 主要用于routing节点在启动完成之后读取和监听stroage节点列表
* 格式
*
* @param data
* @param listener
*/
void subscribe(RegistryData data, NotifyListener listener);
/**
* 移除storage节点之后
*
* @param data
*/
void unsubscribe(RegistryData data);
}

View File

@ -1,19 +0,0 @@
package com.a.eye.skywalking.registry.impl;
import com.a.eye.skywalking.registry.api.NotifyListener;
import com.a.eye.skywalking.registry.api.Register;
/**
* Created by xin on 2016/11/9.
*/
public class DefaultRegistry implements Register {
@Override
public void subscribe(NotifyListener listener) {
}
@Override
public void unSubscribe() {
}
}

View File

@ -1,14 +0,0 @@
package com.a.eye.skywalking.registry.impl;
import com.a.eye.skywalking.registry.api.Register;
import com.a.eye.skywalking.registry.api.RegisterFactory;
/**
* Created by xin on 2016/11/9.
*/
public class DefaultRegistryFactory implements RegisterFactory {
@Override
public Register getRegister(String key) {
return null;
}
}