
Public Member Functions | |
| LSDDbIpPort () | |
| LSDDbIpPort (long id, String ip, int port, int function, String name, String context) | |
| boolean | get (ResultSet resultSet) |
| boolean | get (LSDDbAdmin admin, long idip) |
| boolean | get (LSDDbAdmin admin, String ip, int port, int function) |
| boolean | set (LSDDbAdmin admin) |
| String | toString () |
Static Public Member Functions | |
| static String | setContextLSD (boolean servercomp, boolean clientcomp, String password, long rank) |
| static boolean | del (LSDDbAdmin admin, long idip) |
| static ArrayList< LSDDbIpPort > | newIpPort (LSDDbAdmin admin, ArrayList< LSDDbIpPort > listIpPort, String IP, int Port, int function, String name, String context) |
| static ArrayList< LSDDbIpPort > | getIpPort (LSDDbAdmin admin, int function, long legacy) |
| static ArrayList< LSDDbIpPort > | getIpPort (LSDDbAdmin admin, int function) |
Public Attributes | |
| long | id = LSDConstants.invalide_idx |
| String | ip = null |
| int | port = 0 |
| int | function = -1 |
| String | name = null |
| String | context = null |
| boolean | scompression = false |
| boolean | ccompression = false |
| String | password = null |
| long | rankGlobal = 1 |
Static Public Attributes | |
| static final String | table = " lsdipport " |
| static final String[] | fields |
| static final int | rid = 0 |
| static final int | rip = 1 |
| static final int | rport = 2 |
| static final int | rfunction = 3 |
| static final int | rname = 4 |
| static final int | rcontext = 5 |
| static final String | allfields = " "+fields[rid]+","+fields[rip]+","+fields[rport]+","+fields[rfunction]+","+fields[rname]+","+fields[rcontext]+" " |
| static final int | fadmin = 0 |
| static final int | fuser = 1 |
| static final int | fusercomp = 2 |
| static final int | fprotected = 3 |
Static Protected Member Functions | |
| static long | findFirstIndex (LSDDbAdmin admin) |
Private Member Functions | |
| String | getContext (String context) |
| boolean | getContextLSD (String context) |
| void | assign (long id, String ip, int port, int function, String name, String context) |
Static Private Member Functions | |
| static String | getFieldsSetPipfnc () |
| static String | getFieldsValuesPiipfnc () |
| static String | getWhereCondPi () |
| static String | getWhereCondPipf () |
| static LSDDbPreparedStatement | setPGet (LSDDbAdmin admin, long idip) |
| static LSDDbPreparedStatement | setPGet (LSDDbAdmin admin, String ip, int port, int function) |
| static LSDDbPreparedStatement | setPUpdate (LSDDbAdmin admin, long id, String ip, int port, int function, String name, String context) |
| static LSDDbPreparedStatement | setPInsert (LSDDbAdmin admin, long id, String ip, int port, int function, String name, String context) |
| static LSDDbPreparedStatement | setPDel (LSDDbAdmin admin, long idip) |
Static Private Attributes | |
| static final String | insertfields |
| static final String | IP_SERVERCOMP = "/ip/scomp" |
| static final String | IP_CLIENTCOMP = "/ip/ccomp" |
| static final String | IP_PASSWORD = "/ip/password" |
| static final String | IP_RANK = "/ip/rank" |
| openlsd.database.data.LSDDbIpPort.LSDDbIpPort | ( | ) |
Create an empty IpPort
| openlsd.database.data.LSDDbIpPort.LSDDbIpPort | ( | long | id, | |
| String | ip, | |||
| int | port, | |||
| int | function, | |||
| String | name, | |||
| String | context | |||
| ) |
Create an IpPort from args
| id | ||
| ip | ||
| port | ||
| function | ||
| name | ||
| context |
| String openlsd.database.data.LSDDbIpPort.getContext | ( | String | context | ) | [private] |
Get context for function
| context |
| boolean openlsd.database.data.LSDDbIpPort.getContextLSD | ( | String | context | ) | [private] |
Get Context from args. If it is not ok, then it sets the default values and return False, else returns True.
| context |
| static String openlsd.database.data.LSDDbIpPort.setContextLSD | ( | boolean | servercomp, | |
| boolean | clientcomp, | |||
| String | password, | |||
| long | rank | |||
| ) | [static] |
Initialized a Context String from args for LSD Server
| servercomp | ||
| clientcomp | ||
| password | ||
| rank |
| void openlsd.database.data.LSDDbIpPort.assign | ( | long | id, | |
| String | ip, | |||
| int | port, | |||
| int | function, | |||
| String | name, | |||
| String | context | |||
| ) | [private] |
Assign an IpPort from args
| id | ||
| ip | ||
| port | ||
| function | ||
| name | ||
| context |
| boolean openlsd.database.data.LSDDbIpPort.get | ( | ResultSet | resultSet | ) |
Get Values from ResultSet
| resultSet |
| static String openlsd.database.data.LSDDbIpPort.getFieldsSetPipfnc | ( | ) | [static, private] |
Get String for Setting as Set
| static String openlsd.database.data.LSDDbIpPort.getFieldsValuesPiipfnc | ( | ) | [static, private] |
Get String for Setting as Values
| static String openlsd.database.data.LSDDbIpPort.getWhereCondPi | ( | ) | [static, private] |
Get String for Where Condition
| static String openlsd.database.data.LSDDbIpPort.getWhereCondPipf | ( | ) | [static, private] |
Get String for Where Condition
| static LSDDbPreparedStatement openlsd.database.data.LSDDbIpPort.setPGet | ( | LSDDbAdmin | admin, | |
| long | idip | |||
| ) | [static, private] |
Create the PreparedStatement for Get
| admin | ||
| idip |
| static LSDDbPreparedStatement openlsd.database.data.LSDDbIpPort.setPGet | ( | LSDDbAdmin | admin, | |
| String | ip, | |||
| int | port, | |||
| int | function | |||
| ) | [static, private] |
Create the PreparedStatement for Get
| admin | ||
| ip | ||
| port | ||
| function |
| static LSDDbPreparedStatement openlsd.database.data.LSDDbIpPort.setPUpdate | ( | LSDDbAdmin | admin, | |
| long | id, | |||
| String | ip, | |||
| int | port, | |||
| int | function, | |||
| String | name, | |||
| String | context | |||
| ) | [static, private] |
Create the PreparedStatement for Update
| admin | ||
| id | ||
| ip | ||
| port | ||
| function | ||
| name | ||
| context |
| static LSDDbPreparedStatement openlsd.database.data.LSDDbIpPort.setPInsert | ( | LSDDbAdmin | admin, | |
| long | id, | |||
| String | ip, | |||
| int | port, | |||
| int | function, | |||
| String | name, | |||
| String | context | |||
| ) | [static, private] |
Create the PreparedStatement for Insert
| admin | ||
| id | ||
| ip | ||
| port | ||
| function | ||
| name | ||
| context |
| static LSDDbPreparedStatement openlsd.database.data.LSDDbIpPort.setPDel | ( | LSDDbAdmin | admin, | |
| long | idip | |||
| ) | [static, private] |
Create the PreparedStatement for Delete
| admin | ||
| idip |
| boolean openlsd.database.data.LSDDbIpPort.get | ( | LSDDbAdmin | admin, | |
| long | idip | |||
| ) |
Get the IpPort object from the DB
| admin | ||
| idip |
| boolean openlsd.database.data.LSDDbIpPort.get | ( | LSDDbAdmin | admin, | |
| String | ip, | |||
| int | port, | |||
| int | function | |||
| ) |
Get the IpPort object from the DB
| admin | ||
| ip | ||
| port | ||
| function |
| boolean openlsd.database.data.LSDDbIpPort.set | ( | LSDDbAdmin | admin | ) |
Update (id >= 0) or Insert (Id < 0) data into DB from object
| admin |
| static boolean openlsd.database.data.LSDDbIpPort.del | ( | LSDDbAdmin | admin, | |
| long | idip | |||
| ) | [static] |
Del the IpPort object from the DB
| admin | ||
| idip |
| static ArrayList<LSDDbIpPort> openlsd.database.data.LSDDbIpPort.newIpPort | ( | LSDDbAdmin | admin, | |
| ArrayList< LSDDbIpPort > | listIpPort, | |||
| String | IP, | |||
| int | Port, | |||
| int | function, | |||
| String | name, | |||
| String | context | |||
| ) | [static] |
Create a new IpPort from args and add it to the list. If the list is null, it is created. The "id" is set from the one pick up from the database.
| admin | ||
| listIpPort | ||
| IP | ||
| Port | ||
| function | ||
| name | ||
| context |
| static ArrayList<LSDDbIpPort> openlsd.database.data.LSDDbIpPort.getIpPort | ( | LSDDbAdmin | admin, | |
| int | function, | |||
| long | legacy | |||
| ) | [static] |
Get all IpPort for the given function for the given Legacy
| admin | ||
| function | ||
| legacy |
| static ArrayList<LSDDbIpPort> openlsd.database.data.LSDDbIpPort.getIpPort | ( | LSDDbAdmin | admin, | |
| int | function | |||
| ) | [static] |
Get all IpPort for the given function for any Legacy
| admin | ||
| function |
| static long openlsd.database.data.LSDDbIpPort.findFirstIndex | ( | LSDDbAdmin | admin | ) | [static, protected] |
Find first available IpPort id for this object. No update are made into the DB.
| admin |
| String openlsd.database.data.LSDDbIpPort.toString | ( | ) |
Object to String
Internal Id
| String openlsd.database.data.LSDDbIpPort.ip = null |
The IP address (or hostname in DNS)
The associated port
The associated function
| String openlsd.database.data.LSDDbIpPort.name = null |
The associated name
| String openlsd.database.data.LSDDbIpPort.context = null |
The associated context
| boolean openlsd.database.data.LSDDbIpPort.scompression = false |
Is this service compressed from server part
| boolean openlsd.database.data.LSDDbIpPort.ccompression = false |
Is this service compressed from client part
| String openlsd.database.data.LSDDbIpPort.password = null |
Associated password if any
Associated Global Rank (Multiple Legacies support)
final String openlsd.database.data.LSDDbIpPort.table = " lsdipport " [static] |
information for DB manipulation: Table name
final String [] openlsd.database.data.LSDDbIpPort.fields [static] |
Initial value:
{"ID","IP","PORT","FUNCTION","NAME","CONTEXT"}
final int openlsd.database.data.LSDDbIpPort.rid = 0 [static] |
DB field rank
final int openlsd.database.data.LSDDbIpPort.rip = 1 [static] |
DB field rank
final int openlsd.database.data.LSDDbIpPort.rport = 2 [static] |
DB field rank
final int openlsd.database.data.LSDDbIpPort.rfunction = 3 [static] |
DB field rank
final int openlsd.database.data.LSDDbIpPort.rname = 4 [static] |
DB field rank
final int openlsd.database.data.LSDDbIpPort.rcontext = 5 [static] |
DB field rank
final String openlsd.database.data.LSDDbIpPort.allfields = " "+fields[rid]+","+fields[rip]+","+fields[rport]+","+fields[rfunction]+","+fields[rname]+","+fields[rcontext]+" " [static] |
DB field for all fields in select command.
final String openlsd.database.data.LSDDbIpPort.insertfields [static, private] |
final int openlsd.database.data.LSDDbIpPort.fadmin = 0 [static] |
Type of client to use
final int openlsd.database.data.LSDDbIpPort.fuser = 1 [static] |
Type of client to use
final int openlsd.database.data.LSDDbIpPort.fusercomp = 2 [static] |
Type of client to use
final int openlsd.database.data.LSDDbIpPort.fprotected = 3 [static] |
Type of client to use
final String openlsd.database.data.LSDDbIpPort.IP_SERVERCOMP = "/ip/scomp" [static, private] |
Internal context XML fields
final String openlsd.database.data.LSDDbIpPort.IP_CLIENTCOMP = "/ip/ccomp" [static, private] |
Internal context XML fields
final String openlsd.database.data.LSDDbIpPort.IP_PASSWORD = "/ip/password" [static, private] |
Internal context XML fields
final String openlsd.database.data.LSDDbIpPort.IP_RANK = "/ip/rank" [static, private] |
Internal context XML fields