no.ntnu.item.router
Class SessionHandlerInfo

java.lang.Object
  extended by no.ntnu.item.router.SessionHandlerInfo

public class SessionHandlerInfo
extends java.lang.Object

Information object that contains a subset of the information in a ServiceSession. This subset is the values relevant to the Click handler. A list of this object will contain all the information that is to be written to Click so that Click can perform action on the stream.

Author:
Kristian Haugene

Field Summary
private  java.lang.Integer clickTargetRate
          The rate determined that Click should try to obtain
private  java.lang.String clientAddress
          The IP address of the host running the Silverlight Client
private  java.lang.Double ping
          The latest ping value of the session
private  java.lang.String sourceAddress
          The IP address of the media server providing content
 
Constructor Summary
SessionHandlerInfo(java.lang.String clientAddress, java.lang.String sourceAddress, java.lang.Double ping, java.lang.Integer clickTargetRate)
          Parameterized constructor
 
Method Summary
 java.lang.Integer getClickTargetRate()
          Getter
 java.lang.String getClientAddress()
          Getter
 java.lang.Double getPing()
          Getter
 java.lang.String getSourceAddress()
          Getter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientAddress

private java.lang.String clientAddress
The IP address of the host running the Silverlight Client


sourceAddress

private java.lang.String sourceAddress
The IP address of the media server providing content


ping

private java.lang.Double ping
The latest ping value of the session


clickTargetRate

private java.lang.Integer clickTargetRate
The rate determined that Click should try to obtain

Constructor Detail

SessionHandlerInfo

public SessionHandlerInfo(java.lang.String clientAddress,
                          java.lang.String sourceAddress,
                          java.lang.Double ping,
                          java.lang.Integer clickTargetRate)
Parameterized constructor

Parameters:
sourceAddress -
clientAddress -
ping -
clickTargetRate -
Method Detail

getClientAddress

public java.lang.String getClientAddress()
Getter

Returns:
the Silverlight Client host IP address

getSourceAddress

public java.lang.String getSourceAddress()
Getter

Returns:
the content delivery server IP address

getPing

public java.lang.Double getPing()
Getter

Returns:
the ping measurement for the session

getClickTargetRate

public java.lang.Integer getClickTargetRate()
Getter

Returns:
the rate Click should try to obtain