public class StatefulProxyState
extends java.lang.Object
Constructor and Description |
---|
StatefulProxyState()
Creates the StatefulProxyState
|
Modifier and Type | Method and Description |
---|---|
void |
addClient(TransactionServer ts,
Transaction tc)
Appends a new client to server ts.
|
void |
addServer(TransactionServer ts)
Adds a new server ts
|
void |
clearClients(TransactionServer ts)
Removes all clients bound to server ts.
|
java.util.HashSet |
getClients(TransactionServer ts)
Gets all clients bound to server ts.
|
SipMessage |
getFinalResponse(TransactionServer ts)
Gets the final response for server ts.
|
TransactionServer |
getServer(TransactionClient tc)
Gets the server bound to client tc
|
boolean |
hasServer(TransactionServer ts)
Whether there is a server ts.
|
int |
numOfClients()
Gets the number of active clients.
|
int |
numOfServers()
Gets the number of active servers.
|
void |
removeClient(TransactionClient tc)
Removes a client.
|
void |
removeServer(TransactionServer ts)
Removes server ts.
|
void |
setFinalResponse(TransactionServer ts,
SipMessage resp)
Sets the final response for server ts.
|
public void addServer(TransactionServer ts)
public void addClient(TransactionServer ts, Transaction tc)
public void removeClient(TransactionClient tc)
public void clearClients(TransactionServer ts)
public boolean hasServer(TransactionServer ts)
public void removeServer(TransactionServer ts)
public TransactionServer getServer(TransactionClient tc)
public java.util.HashSet getClients(TransactionServer ts)
public void setFinalResponse(TransactionServer ts, SipMessage resp)
public SipMessage getFinalResponse(TransactionServer ts)
public int numOfServers()
public int numOfClients()