|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ntnu.item.router.ServiceSession
public class ServiceSession
Domain object that represents a service session known to the router.
It contains and maintains a List
of SilverlightMeasurement
objects belonging to this ServiceSession
instance. A service session
is in all simplicity the information collected from a video stream.
Field Summary | |
---|---|
private java.lang.Integer |
clickTargetVideoBitRate
The current target rate set to click, we adjust this independent of user pref |
private java.util.List<SilverlightMeasurement> |
measurements
The List of SilverlightMeasurement objects from this
service |
private java.lang.Integer |
oldTargetVideoBitRate
Holds the old targetVideoBitRate, used by ActionReasoner to
decide if it needs to reload click rate calculations |
private SessionPinger |
sessionPinger
This is a separate thread that will obtain ping measurements for the stream |
private java.util.List<java.lang.String> |
sourceHostAddresses
Holds the addresses our host can be |
private java.lang.Long |
targetRateSetTime
For timing purposes, we want to know when the target rate was set |
private java.lang.Integer |
targetVideoBitRate
Holds an integer set by the user, indicating if the user wants to affect it |
Constructor Summary | |
---|---|
ServiceSession()
Constructor |
Method Summary | |
---|---|
void |
addMeasurementToService(SilverlightMeasurement sm)
Method for registering a SilverlightMeasurement to a service |
java.lang.Integer |
getClickTargetVideoBitRate()
|
java.net.InetAddress |
getClientAddress()
Public method to retrieve the Silverlight client IP address |
java.lang.String |
getId()
A method that returns an identifier for this ServiceSession . |
SilverlightMeasurement |
getLatestMeasurement()
Returns the latest measurement registered to this ServiceSession |
java.lang.Integer |
getLatestTimeIncrement()
Returns the silverlight client runtime from the latest measurement |
java.util.List<SilverlightMeasurement> |
getMeasurements()
Returns the current list of SilverlightMeasurement |
java.lang.Integer |
getOldTargetVideoBitRate()
|
java.lang.Double |
getPing()
This method calls the ping thread associated with this object and retrieves a ping |
java.util.List<java.lang.String> |
getSourceHostAddresses()
Public method to retrieve the Silverlight media source IP addresses. |
java.lang.Long |
getTargetRateSetTime()
|
java.lang.Integer |
getTargetVideoBitrate()
|
void |
setClickTargetVideoBitRate(java.lang.Integer clickTargetVideoBitRate)
|
void |
setOldTargetVideoBitRate(java.lang.Integer oldTargetVideoBitRate)
Sets the oldTargetVideoBitrate for this session. |
void |
setTargetVideoBitrate(java.lang.Integer targetVideoBitrate)
Sets the targetVideoBitrate for this session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<SilverlightMeasurement> measurements
List
of SilverlightMeasurement
objects from this
service
private java.lang.Integer targetVideoBitRate
private java.lang.Integer oldTargetVideoBitRate
ActionReasoner
to
decide if it needs to reload click rate calculations
private java.lang.Long targetRateSetTime
private java.lang.Integer clickTargetVideoBitRate
private SessionPinger sessionPinger
private java.util.List<java.lang.String> sourceHostAddresses
Constructor Detail |
---|
public ServiceSession()
Method Detail |
---|
public java.util.List<SilverlightMeasurement> getMeasurements()
SilverlightMeasurement
public SilverlightMeasurement getLatestMeasurement()
ServiceSession
public void addMeasurementToService(SilverlightMeasurement sm)
SilverlightMeasurement
to a service
public java.lang.Double getPing()
public java.lang.Integer getLatestTimeIncrement()
public java.util.List<java.lang.String> getSourceHostAddresses()
public java.net.InetAddress getClientAddress()
SilverlightMeasurement
public java.lang.String getId()
ServiceSession
. A
session is a set of measurements from the same client. The clientId is
therefore a unique identifier of a ServiceSession
.
public java.lang.Integer getTargetVideoBitrate()
public java.lang.Integer getOldTargetVideoBitRate()
public void setTargetVideoBitrate(java.lang.Integer targetVideoBitrate)
targetVideoBitrate
- the wanted target ratepublic void setOldTargetVideoBitRate(java.lang.Integer oldTargetVideoBitRate)
ActionReasoner
when it has read a new value and writes it here
for further reference
oldTargetVideoBitRate
- to storepublic java.lang.Long getTargetRateSetTime()
public void setClickTargetVideoBitRate(java.lang.Integer clickTargetVideoBitRate)
public java.lang.Integer getClickTargetVideoBitRate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |