|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdiameter.server.impl.io.sctp.NetworkGuard
public class NetworkGuard
SCTP implementation of INetworkGuard.
| Field Summary | |
|---|---|
protected IConcurrentFactory |
concurrentFactory
|
protected boolean |
isWork
|
protected java.util.concurrent.CopyOnWriteArrayList<INetworkConnectionListener> |
listeners
|
protected java.net.InetAddress[] |
localAddresses
|
protected IMessageParser |
parser
|
protected int |
port
|
protected java.nio.channels.Selector |
selector
|
protected java.util.List<SCTPServerConnection> |
serverConnections
|
| Constructor Summary | |
|---|---|
NetworkGuard(java.net.InetAddress[] inetAddresses,
int port,
IConcurrentFactory concurrentFactory,
IMessageParser parser,
IMetaData data)
|
|
NetworkGuard(java.net.InetAddress inetAddress,
int port,
IConcurrentFactory concurrentFactory,
IMessageParser parser,
IMetaData data)
|
|
NetworkGuard(java.net.InetAddress inetAddress,
int port,
IMessageParser parser)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addListener(INetworkConnectionListener listener)
Append new listener |
void |
destroy()
Release all attached resources (socket and etc) |
void |
onNewRemoteConnection(org.mobicents.protocols.api.Server globalServer,
org.mobicents.protocols.api.Association association,
SCTPServerConnection connection)
|
void |
remListener(INetworkConnectionListener listener)
Remove listener |
void |
run()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected IMessageParser parser
protected IConcurrentFactory concurrentFactory
protected int port
protected java.util.concurrent.CopyOnWriteArrayList<INetworkConnectionListener> listeners
protected boolean isWork
protected java.nio.channels.Selector selector
protected java.util.List<SCTPServerConnection> serverConnections
protected java.net.InetAddress[] localAddresses
| Constructor Detail |
|---|
@Deprecated
public NetworkGuard(java.net.InetAddress inetAddress,
int port,
IMessageParser parser)
throws java.lang.Exception
java.lang.Exception
public NetworkGuard(java.net.InetAddress inetAddress,
int port,
IConcurrentFactory concurrentFactory,
IMessageParser parser,
IMetaData data)
throws java.lang.Exception
java.lang.Exception
public NetworkGuard(java.net.InetAddress[] inetAddresses,
int port,
IConcurrentFactory concurrentFactory,
IMessageParser parser,
IMetaData data)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void run()
public void addListener(INetworkConnectionListener listener)
INetworkGuard
addListener in interface INetworkGuardlistener - listener instancepublic void remListener(INetworkConnectionListener listener)
INetworkGuard
remListener in interface INetworkGuardlistener - listener instancepublic java.lang.String toString()
toString in class java.lang.Object
public void onNewRemoteConnection(org.mobicents.protocols.api.Server globalServer,
org.mobicents.protocols.api.Association association,
SCTPServerConnection connection)
public void destroy()
INetworkGuard
destroy in interface INetworkGuard
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||