Class ServiceLink
java.lang.Object
ru.bitel.bgbilling.modules.ipn.server.bean.ServiceLink
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getAddr1()
long
getAddr2()
getDate1()
getDate2()
int
int
int
int
getId()
int
getID()
Deprecated.int
getIface()
int
int
getPort1()
int
getPort2()
int
getPos()
int
int
Deprecated.int
int
Deprecated.boolean
isCoinside
(int direct, long addr, int port, int iface, int diffServ) void
loadFromString
(String data) void
setAddr1
(long addr1) void
setAddr2
(long addr2) void
setComment
(String comment) void
void
void
setDiffServString
(String diffServString) void
setDirect
(int direct) void
setId
(int id) void
setID
(int id) Deprecated.void
setIface
(int iface) void
setPlanId
(int planId) void
setPort1
(int port1) void
setPort2
(int port2) void
setPos
(int pos) void
setServiceId
(int serviceId) void
setServiceID
(int serviceId) Deprecated.void
setSourceId
(int sourceId) void
setSourceID
(int sourceId) Deprecated.toString()
-
Field Details
-
OUTGOING_PACKET
public static final int OUTGOING_PACKET- See Also:
-
INCOMING_PACKET
public static final int INCOMING_PACKET- See Also:
-
ANY_IFACE
public static final int ANY_IFACE- See Also:
-
serviceId
public int serviceId
-
-
Constructor Details
-
ServiceLink
public ServiceLink()
-
-
Method Details
-
getId
public int getId() -
getID
Deprecated.ИспользоватьgetId()
.- Returns:
-
setId
public void setId(int id) -
setID
Deprecated.ИспользоватьsetId(int)
.- Parameters:
id
-
-
getPos
public int getPos() -
setPos
public void setPos(int pos) -
getDate1
-
setDate1
-
getDate2
-
setDate2
-
getSourceId
public int getSourceId() -
getSourceID
Deprecated.ИспользоватьgetSourceId()
.- Returns:
-
setSourceId
public void setSourceId(int sourceId) -
setSourceID
Deprecated.ИспользоватьsetSourceId(int)
.- Parameters:
sourceId
-
-
getDirect
public int getDirect() -
setDirect
public void setDirect(int direct) -
getAddr1
public long getAddr1() -
setAddr1
public void setAddr1(long addr1) -
getAddr2
public long getAddr2() -
setAddr2
public void setAddr2(long addr2) -
getPort1
public int getPort1() -
setPort1
public void setPort1(int port1) -
getPort2
public int getPort2() -
setPort2
public void setPort2(int port2) -
getServiceId
public int getServiceId() -
getServiceID
Deprecated.ИспользоватьgetServiceId()
.- Returns:
-
setServiceId
public void setServiceId(int serviceId) -
setServiceID
Deprecated.ИспользоватьsetServiceId(int)
.- Parameters:
serviceId
-
-
getComment
-
setComment
-
getDiffServString
-
setDiffServString
-
getDiffServ
public int getDiffServ() -
getDiffServMask
public int getDiffServMask() -
isCoinside
public boolean isCoinside(int direct, long addr, int port, int iface, int diffServ) -
toString
-
getIface
public int getIface() -
setIface
public void setIface(int iface) -
serializeToString
-
loadFromString
-
getPlanId
public int getPlanId() -
setPlanId
public void setPlanId(int planId)
-