root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / services / RemoteService.java @ 10627
History | View | Annotate | Download (869 Bytes)
1 |
/*
|
---|---|
2 |
* Created on 30-may-2005
|
3 |
*/
|
4 |
package com.iver.cit.gvsig.fmap.services; |
5 |
|
6 |
import java.io.IOException; |
7 |
|
8 |
import com.hardcode.gdbms.engine.data.driver.DriverException; |
9 |
|
10 |
/**
|
11 |
* @author luisw
|
12 |
*/
|
13 |
public interface RemoteService { |
14 |
// private String serviceName;
|
15 |
// private String host;
|
16 |
// private int port;
|
17 |
//
|
18 |
// public RemoteService(String name, String host, int port){
|
19 |
// serviceName = name;
|
20 |
// this.host = host;
|
21 |
// this.port = port;
|
22 |
// }
|
23 |
public void setServiceName(String serviceName); |
24 |
public String getServiceName(); //{ |
25 |
// return serviceName;
|
26 |
// }
|
27 |
public void setHost(String hostName) throws IOException ; |
28 |
public String getHost(); //{ |
29 |
// return host;
|
30 |
// }
|
31 |
public void setPort(int portNr); //{ |
32 |
public int getPort(); //{ |
33 |
// return port;
|
34 |
// }
|
35 |
public void connect() throws IOException, DriverException; |
36 |
public boolean isConnected(); |
37 |
public void close(); |
38 |
} |