|
| SessionPool (SessionPoolConfig poolConfig) |
|
boolean | init () |
| init the SessionPool this function is moved into SessionPool's constructor, no need to call it manually.
|
|
ResultSet | execute (String stmt) throws IOErrorException, ClientServerIncompatibleException, AuthFailedException, BindSpaceFailedException |
| Execute the nGql sentence. More...
|
|
ResultSet | execute (String stmt, Map< String, Object > parameterMap) throws ClientServerIncompatibleException, AuthFailedException, IOErrorException, BindSpaceFailedException |
| Execute the nGql sentence with parameter. More...
|
|
String | executeJson (String stmt) throws ClientServerIncompatibleException, AuthFailedException, IOErrorException, BindSpaceFailedException |
|
String | executeJsonWithParameter (String stmt, Map< String, Object > parameterMap) throws ClientServerIncompatibleException, AuthFailedException, IOErrorException, BindSpaceFailedException |
|
void | close () |
| close the session pool
|
|
boolean | isActive () |
| if the SessionPool has been initialized
|
|
boolean | isClosed () |
| if the SessionPool is closed
|
|
int | getSessionNums () |
| get the number of all Session
|
|
int | getIdleSessionNums () |
| get the number of idle Session
|
|
HostAddress | getAddress () |
|
|
CopyOnWriteArrayList< NebulaSession > | sessionList = new CopyOnWriteArrayList<>() |
|
AtomicInteger | idleSessionSize = new AtomicInteger(0) |
|
AtomicBoolean | hasInit = new AtomicBoolean(false) |
|
AtomicBoolean | isClosed = new AtomicBoolean(false) |
|
Definition at line 32 of file SessionPool.java.
◆ execute() [1/2]
Execute the nGql sentence.
- Parameters
-
stmt | The nGql sentence. such as insert ngql INSERT VERTEX person(name) VALUES "Tom":("Tom"); |
- Returns
- The ResultSet
Definition at line 146 of file SessionPool.java.
◆ execute() [2/2]
Execute the nGql sentence with parameter.
- Parameters
-
stmt | The nGql sentence. |
parameterMap | The nGql parameter map |
- Returns
- The ResultSet
Definition at line 210 of file SessionPool.java.
The documentation for this class was generated from the following file: