tigase.server.xmppserver
Class CIDConnections

java.lang.Object
  extended by tigase.server.xmppserver.CIDConnections

public class CIDConnections
extends Object

Created: Jun 14, 2010 12:32:49 PM

Version:
$Rev: 2996 $
Author:
Artur Hefczyc

Constructor Summary
CIDConnections(CID cid, S2SConnectionHandlerIfc<S2SIOService> handler, S2SConnectionSelector selector, int maxInConns, int maxOutConns, int maxOutConnsPerIP, long max_waiting_time)
          Constructs ...
 
Method Summary
 void addDBKey(String sessId, String key)
          Method description
 void addIncoming(S2SIOService serv)
          Method description
 void connectionAuthenticated(S2SIOService serv)
          Method description
 void connectionAuthenticated(String sessionId)
          Method description
 void connectionStopped(S2SIOService serv)
          Method description
 String getDBKey(String key_sessionId)
          Method description
 int getDBKeysCount()
          Method description
 int getIncomingCount()
          Method description
 int getIncomingTLSCount()
          Method description
 int getMaxOutConns()
          Method description
 int getMaxOutConnsPerIP()
          Method description
 int getOutgoingCount()
          Method description
 int getOutgoingHandshakingCount()
          Method description
 boolean getOutgoingInProgress()
           
 int getOutgoingTLSCount()
          Method description
 S2SConnection getS2SConnectionForSessionId(String sessionId)
          Method description
 int getWaitingControlCount()
          Method description
 int getWaitingCount()
          Method description
 void reconnectionFailed(Map<String,Object> port_props)
          Method description
 void resetOutgoingInProgress()
           
 boolean sendControlPacket(String sessionId, Packet packet)
          Method description
 void sendHandshakingOnly(Packet verify_req)
          Method description
 void sendPacket(Packet packet)
          Method description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CIDConnections

public CIDConnections(CID cid,
                      S2SConnectionHandlerIfc<S2SIOService> handler,
                      S2SConnectionSelector selector,
                      int maxInConns,
                      int maxOutConns,
                      int maxOutConnsPerIP,
                      long max_waiting_time)
Constructs ...

Parameters:
cid -
handler -
selector -
maxInConns -
maxOutConns -
maxOutConnsPerIP -
max_waiting_time -
Method Detail

resetOutgoingInProgress

public void resetOutgoingInProgress()

getOutgoingInProgress

public boolean getOutgoingInProgress()

addDBKey

public void addDBKey(String sessId,
                     String key)
Method description

Parameters:
sessId -
key -

addIncoming

public void addIncoming(S2SIOService serv)
Method description

Parameters:
serv -

connectionAuthenticated

public void connectionAuthenticated(S2SIOService serv)
Method description

Parameters:
serv -

connectionAuthenticated

public void connectionAuthenticated(String sessionId)
Method description

Parameters:
sessionId -

connectionStopped

public void connectionStopped(S2SIOService serv)
Method description

Parameters:
serv -

getDBKey

public String getDBKey(String key_sessionId)
Method description

Parameters:
key_sessionId -
Returns:

getDBKeysCount

public int getDBKeysCount()
Method description

Returns:

getIncomingCount

public int getIncomingCount()
Method description

Returns:

getIncomingTLSCount

public int getIncomingTLSCount()
Method description

Returns:

getMaxOutConns

public int getMaxOutConns()
Method description

Returns:

getMaxOutConnsPerIP

public int getMaxOutConnsPerIP()
Method description

Returns:

getOutgoingCount

public int getOutgoingCount()
Method description

Returns:

getOutgoingHandshakingCount

public int getOutgoingHandshakingCount()
Method description

Returns:

getOutgoingTLSCount

public int getOutgoingTLSCount()
Method description

Returns:

getS2SConnectionForSessionId

public S2SConnection getS2SConnectionForSessionId(String sessionId)
Method description

Parameters:
sessionId -
Returns:

getWaitingControlCount

public int getWaitingControlCount()
Method description

Returns:

getWaitingCount

public int getWaitingCount()
Method description

Returns:

reconnectionFailed

public void reconnectionFailed(Map<String,Object> port_props)
Method description

Parameters:
port_props -

sendControlPacket

public boolean sendControlPacket(String sessionId,
                                 Packet packet)
Method description

Parameters:
sessionId -
packet -
Returns:

sendHandshakingOnly

public void sendHandshakingOnly(Packet verify_req)
Method description

Parameters:
verify_req -

sendPacket

public void sendPacket(Packet packet)
Method description

Parameters:
packet -


Copyright © 2012 Tigase. All Rights Reserved.