Package fr.abes.cbs.connector
Class Cbs
- java.lang.Object
-
- fr.abes.cbs.connector.Cbs
-
public class Cbs extends Object
Représente une session au CBS
-
-
Constructor Summary
Constructors Constructor Description Cbs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()socket disconnectionStringconnect(String tip, int port)socket method connectionStringtcpReq(String query)
-
-
-
Method Detail
-
close
public void close() throws CBSExceptionsocket disconnection- Throws:
CBSException
-
connect
public String connect(String tip, int port) throws CBSException
socket method connection- Parameters:
tip- is socket addressport- is socket port- Returns:
- the error message
- Throws:
CBSException
-
tcpReq
public String tcpReq(String query) throws CBSException
- Parameters:
query- to send to the socket- Returns:
- the result of query execution
- Throws:
CBSException
-
-