shikeying
2024-01-11 3b67e947e36133e2a40eb2737b15ea375e157ea0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.walker.connector;
 
import java.util.Map;
 
/**
 * 连接器定义,目前主要实现数据库连接器与http连接器。
 * @author 时克英
 * @date 2017-07-09
 */
public interface Connector {
 
    String getUrl();
    
    int getPort();
    
    /**
     * 返回库或者服务名字
     * @return
     */
    String getServiceName();
    
//    Map<String, String> parameters = new HashMap<String, String>(2);
    Map<String, String> getParameters();
    
    Object invoke(Object... param) throws Exception;
    
    void initialize();
    
    void destroy();
}