public class ConnectionCounter
extends com.wowza.wms.client.ConnectionCounterBase
| Constructor | Description |
|---|---|
ConnectionCounter() |
Create empty ConnectionCounter
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
acceptConnection(com.wowza.wms.client.ConnectionHolder connectionHolder,
byte[] license) |
Accept a new connection.
|
void |
addConnectionListener(IConnectionNotify connectionNotify) |
Add a connection listener.
|
void |
decrement(com.wowza.wms.client.ConnectionHolder connectionHolder,
boolean isValid,
java.util.Date date,
long stamp,
byte[] license) |
Decrement connection counters.
|
void |
disconnect(com.wowza.wms.client.ConnectionHolder connectionHolder,
byte[] license) |
Disconnect connection.
|
long |
getCurrent() |
Get total number of client currently conencted to this object.
|
long |
getLastConnectAcceptedStamp() |
Get time (milliseconds) of the last conenction to this object.
|
String |
getLastConnectAcceptedStampString() |
Get time (milliseconds) of the last conenction to this object as formatted string.
|
java.util.Date |
getLastConnectAcceptedTime() |
Get time (milliseconds) of the last accepeted conenction to this object.
|
String |
getLastConnectAcceptedTimeString() |
Get time (milliseconds) of the last accepeted conenction to this object as formatted string.
|
long |
getLastConnectRejectedByReasonStamp(int reason) |
Get time (milliseconds) of the last rejected conenction by reason to this object.
|
String |
getLastConnectRejectedByReasonStampString(int reason) |
Get time (milliseconds) of the last rejected conenction by reason to this object as formatted string.
|
java.util.Date |
getLastConnectRejectedByReasonTime(int reason) |
Get date and time of last rejected connection by reason to this object as Date object.
|
String |
getLastConnectRejectedByReasonTimeString(int reason) |
Get date and time of last rejected connection by reason to this object as formated string.
|
long |
getLastConnectRejectedStamp() |
Get time (milliseconds) of the last rejected conenction to this object.
|
String |
getLastConnectRejectedStampString() |
Get time (milliseconds) of the last rejected conenction to this object as formatted string.
|
java.util.Date |
getLastConnectRejectedTime() |
Get date and time of last rejected connection to this object as Date object.
|
String |
getLastConnectRejectedTimeString() |
Get date and time of last rejected connection to this object as formated string.
|
long |
getLastDisconnectStamp() |
Get time (milliseconds) of the last disconnected conenction to this object.
|
String |
getLastDisconnectStampString() |
Get time (milliseconds) of the last disconnected conenction to this object as formatted string.
|
java.util.Date |
getLastDisconnectTime() |
Get date and time of last disconnected connection to this object as Date object.
|
String |
getLastDisconnectTimeString() |
Get date and time of last disconnected connection to this object as Date object as formatted string.
|
long |
getTotal() |
Get total number of connection attempts to this object.
|
long |
getTotalAccepted() |
Get total number of accepted connections to this object.
|
long |
getTotalRejected() |
Get total number of rejected connections to this object.
|
void |
incrementAccept(com.wowza.wms.client.ConnectionHolder connectionHolder,
java.util.Date date,
long stamp,
byte[] license) |
Increment accepted connections.
|
void |
incrementReject(com.wowza.wms.client.ConnectionHolder connectionHolder,
int reason,
java.util.Date date,
long stamp,
byte[] license) |
Increment reject connection.
|
void |
rejectConnection(com.wowza.wms.client.ConnectionHolder connectionHolder,
int reason,
byte[] license) |
Reject connection.
|
void |
removeConnectionListener(IConnectionNotify connectionNotify) |
Remove connection listener
|
void |
setConnectionValidator(com.wowza.wms.client.IConnectionValidator connectionValidator) |
Set the connection validator.
|
boolean |
validateNewConnection(com.wowza.wms.client.ConnectionHolder connectionHolder,
byte[] license) |
Validate a new connection.
|
public void acceptConnection(com.wowza.wms.client.ConnectionHolder connectionHolder,
byte[] license)
NOTE: This is a private internal call. Server will not work properly if this method is not called properly using internal security mechanism.
connectionHolder - connection holderlicense - security datapublic void addConnectionListener(IConnectionNotify connectionNotify)
connectionNotify - connection listenerpublic void decrement(com.wowza.wms.client.ConnectionHolder connectionHolder,
boolean isValid,
java.util.Date date,
long stamp,
byte[] license)
NOTE: This is a private internal call. Server will not work properly if this method is not called properly using internal security mechanism.
connectionHolder - connection holderisValid - is a valid connectiondate - date the connection occuredstamp - time stamp connection occured (milliseconds)license - security datapublic void disconnect(com.wowza.wms.client.ConnectionHolder connectionHolder,
byte[] license)
NOTE: This is a private internal call. Server will not work properly if this method is not called properly using internal security mechanism.
connectionHolder - connection holderlicense - security datapublic long getCurrent()
public long getLastConnectAcceptedStamp()
public String getLastConnectAcceptedStampString()
public java.util.Date getLastConnectAcceptedTime()
public String getLastConnectAcceptedTimeString()
public long getLastConnectRejectedByReasonStamp(int reason)
reason - reason, see REJECTREASON_*public String getLastConnectRejectedByReasonStampString(int reason)
reason - reason, see REJECTREASON_*public java.util.Date getLastConnectRejectedByReasonTime(int reason)
reason - reason, see REJECTREASON_*public String getLastConnectRejectedByReasonTimeString(int reason)
reason - reason, see REJECTREASON_*public long getLastConnectRejectedStamp()
public String getLastConnectRejectedStampString()
public java.util.Date getLastConnectRejectedTime()
public String getLastConnectRejectedTimeString()
public long getLastDisconnectStamp()
public String getLastDisconnectStampString()
public java.util.Date getLastDisconnectTime()
public String getLastDisconnectTimeString()
public long getTotal()
public long getTotalAccepted()
public long getTotalRejected()
public void incrementAccept(com.wowza.wms.client.ConnectionHolder connectionHolder,
java.util.Date date,
long stamp,
byte[] license)
NOTE: This is a private internal call. Server will not work properly if this method is not called properly using internal security mechanism.
connectionHolder - connection holderdate - date the connection occuredstamp - time stamp connection occured (milliseconds)license - security datapublic void incrementReject(com.wowza.wms.client.ConnectionHolder connectionHolder,
int reason,
java.util.Date date,
long stamp,
byte[] license)
NOTE: This is a private internal call. Server will not work properly if this method is not called properly using internal security mechanism.
connectionHolder - connection holderreason - reason the connection was refused. See REJECTREASON_*date - date the connection occuredstamp - time stamp connection occured (milliseconds)license - security datapublic void rejectConnection(com.wowza.wms.client.ConnectionHolder connectionHolder,
int reason,
byte[] license)
NOTE: This is a private internal call. Server will not work properly if this method is not called properly using internal security mechanism.
connectionHolder - connection holderreason - reason the connection was refused. See REJECTREASON_*license - security datapublic void removeConnectionListener(IConnectionNotify connectionNotify)
connectionNotify - connection listenerpublic void setConnectionValidator(com.wowza.wms.client.IConnectionValidator connectionValidator)
connectionValidator - connection validatorpublic boolean validateNewConnection(com.wowza.wms.client.ConnectionHolder connectionHolder,
byte[] license)
NOTE: This is a private internal call. Server will not work properly if this method is not called properly using internal security mechanism.
connectionHolder - connection holderlicense - security data