|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object openlsd.database.data.LSDDbIpPort
public class LSDDbIpPort
Class for IpPort manipulation
Field Summary | |
---|---|
static java.lang.String |
allfields
DB field for all fields in select command. |
boolean |
ccompression
Is this service compressed from client part |
java.lang.String |
context
The associated context |
static int |
fadmin
Type of client to use |
static java.lang.String[] |
fields
DB field names |
static int |
fprotected
Type of client to use |
int |
function
The associated function |
static int |
fuser
Type of client to use |
static int |
fusercomp
Type of client to use |
long |
id
Internal Id |
java.lang.String |
ip
The IP address (or hostname in DNS) |
java.lang.String |
name
The associated name |
java.lang.String |
password
Associated password if any |
int |
port
The associated port |
long |
rankGlobal
Associated Global Rank (Multiple Legacies support) |
static int |
rcontext
DB field rank |
static int |
rfunction
DB field rank |
static int |
rid
DB field rank |
static int |
rip
DB field rank |
static int |
rname
DB field rank |
static int |
rport
DB field rank |
boolean |
scompression
Is this service compressed from server part |
static java.lang.String |
table
information for DB manipulation: Table name |
Constructor Summary | |
---|---|
LSDDbIpPort()
Create an empty IpPort |
|
LSDDbIpPort(long id,
java.lang.String ip,
int port,
int function,
java.lang.String name,
java.lang.String context)
Create an IpPort from args |
Method Summary | |
---|---|
static boolean |
del(LSDDbAdmin admin,
long idip)
Del the IpPort object from the DB |
protected static long |
findFirstIndex(LSDDbAdmin admin)
Find first available IpPort id for this object. |
boolean |
get(LSDDbAdmin admin,
long idip)
Get the IpPort object from the DB |
boolean |
get(LSDDbAdmin admin,
java.lang.String ip,
int port,
int function)
Get the IpPort object from the DB |
boolean |
get(java.sql.ResultSet resultSet)
Get Values from ResultSet |
static java.util.ArrayList<LSDDbIpPort> |
getIpPort(LSDDbAdmin admin,
int function)
Get all IpPort for the given function for any Legacy |
static java.util.ArrayList<LSDDbIpPort> |
getIpPort(LSDDbAdmin admin,
int function,
long legacy)
Get all IpPort for the given function for the given Legacy |
static java.util.ArrayList<LSDDbIpPort> |
newIpPort(LSDDbAdmin admin,
java.util.ArrayList<LSDDbIpPort> listIpPort,
java.lang.String IP,
int Port,
int function,
java.lang.String name,
java.lang.String context)
Create a new IpPort from args and add it to the list. |
boolean |
set(LSDDbAdmin admin)
Update (id >= 0) or Insert (Id < 0) data into DB from object |
static java.lang.String |
setContextLSD(boolean servercomp,
boolean clientcomp,
java.lang.String password,
long rank)
Initialized a Context String from args for LSD Server |
java.lang.String |
toString()
Object to String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public long id
public java.lang.String ip
public int port
public int function
public java.lang.String name
public java.lang.String context
public boolean scompression
public boolean ccompression
public java.lang.String password
public long rankGlobal
public static final java.lang.String table
public static final java.lang.String[] fields
public static final int rid
public static final int rip
public static final int rport
public static final int rfunction
public static final int rname
public static final int rcontext
public static final java.lang.String allfields
public static final int fadmin
public static final int fuser
public static final int fusercomp
public static final int fprotected
Constructor Detail |
---|
public LSDDbIpPort()
public LSDDbIpPort(long id, java.lang.String ip, int port, int function, java.lang.String name, java.lang.String context)
id
- ip
- port
- function
- name
- context
- Method Detail |
---|
public static java.lang.String setContextLSD(boolean servercomp, boolean clientcomp, java.lang.String password, long rank)
servercomp
- clientcomp
- password
- rank
-
public boolean get(java.sql.ResultSet resultSet)
resultSet
-
public boolean get(LSDDbAdmin admin, long idip)
admin
- idip
-
public boolean get(LSDDbAdmin admin, java.lang.String ip, int port, int function)
admin
- ip
- port
- function
-
public boolean set(LSDDbAdmin admin)
admin
-
public static boolean del(LSDDbAdmin admin, long idip)
admin
- idip
-
public static java.util.ArrayList<LSDDbIpPort> newIpPort(LSDDbAdmin admin, java.util.ArrayList<LSDDbIpPort> listIpPort, java.lang.String IP, int Port, int function, java.lang.String name, java.lang.String context)
admin
- listIpPort
- IP
- Port
- function
- name
- context
-
public static java.util.ArrayList<LSDDbIpPort> getIpPort(LSDDbAdmin admin, int function, long legacy)
admin
- function
- legacy
-
public static java.util.ArrayList<LSDDbIpPort> getIpPort(LSDDbAdmin admin, int function)
admin
- function
-
protected static long findFirstIndex(LSDDbAdmin admin)
admin
-
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |