public class Conector
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
freeSesion(DriverGeneric Session)
Frees a sesion locked previously in
getSession(java.lang.String, java.lang.String) |
DriverGeneric |
getSession(java.lang.String user,
java.lang.String Password)
Returns a session from the pool
adding a new session if all the session are Locked
|
static boolean |
isAPIRem()
returns true when the remote mode is enabled in configuration
|
static boolean |
isAPIREST()
returns true when the API REST mode is enabled in configuration
|
void |
Shutdown()
Stops all the tasks, sessions and framework of OpenProdoc
|
public DriverGeneric getSession(java.lang.String user, java.lang.String Password) throws PDException
user
- name of the Prodoc to connectPassword
- password to connectPDException
- when we have the maximum (MaxPoolSize) of sessionspublic void freeSesion(DriverGeneric Session) throws PDException
getSession(java.lang.String, java.lang.String)
Session
- Session to be unlockedPDException
- in any errorpublic void Shutdown() throws PDException
PDException
- in any errorpublic static boolean isAPIREST()
public static boolean isAPIRem()