com.smaxe.app.uv.loadtester
Class RtmpTester.ClientSessionInfoProvider

java.lang.Object
  extended by com.smaxe.app.uv.loadtester.RtmpTester.ClientSessionInfoProvider
All Implemented Interfaces:
RtmpTester.IClientSessionInfoProvider
Enclosing class:
RtmpTester

public final class RtmpTester.ClientSessionInfoProvider
extends java.lang.Object
implements RtmpTester.IClientSessionInfoProvider

ClientSessionInfoProvider - RtmpTester.IClientSessionInfoProvider implementation.


Field Summary
 
Fields inherited from interface com.smaxe.app.uv.loadtester.RtmpTester.IClientSessionInfoProvider
DATA_TRANSFER, ENTITIES, EVENT, METHOD_INVOCATION, SHARED_OBJECT, STREAM, THROTTLE_BUFFER_SIZE
 
Constructor Summary
RtmpTester.ClientSessionInfoProvider(com.smaxe.app.uv.loadtester.RtmpTester.ClientData client, Session session)
          Constructor.
RtmpTester.ClientSessionInfoProvider(com.smaxe.app.uv.loadtester.RtmpTester.ClientData client, SessionManager manager)
          Constructor.
 
Method Summary
 RtmpClientInfo getClientInfo()
          Returns client info.
 java.lang.String[] getEntities()
          Returns supported entities.
 java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> getEntities(java.lang.String entity, ISelector<java.util.Map<java.lang.String,java.lang.Object>> selector)
          Returns session entities.
 int getEntitiesCount(java.lang.String entity)
          Returns number of entity.
 java.util.Map<java.lang.String,java.lang.String> getEntityProperties(java.lang.String entity)
          Returns properties supported by the entity.
 java.lang.String getServerUrl()
          Returns server url the client connects.
 Session getSession()
           
 int id()
          Returns session id.
 void saveAs(java.io.File file)
          Saves client session data (in the binary format) to the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RtmpTester.ClientSessionInfoProvider

public RtmpTester.ClientSessionInfoProvider(com.smaxe.app.uv.loadtester.RtmpTester.ClientData client,
                                            SessionManager manager)
Constructor.

Parameters:
client -
manager -

RtmpTester.ClientSessionInfoProvider

public RtmpTester.ClientSessionInfoProvider(com.smaxe.app.uv.loadtester.RtmpTester.ClientData client,
                                            Session session)
Constructor.

Parameters:
client -
session -
Method Detail

getSession

public Session getSession()
Returns:
session

id

public int id()
Description copied from interface: RtmpTester.IClientSessionInfoProvider
Returns session id.

Specified by:
id in interface RtmpTester.IClientSessionInfoProvider
Returns:
session id

getServerUrl

public java.lang.String getServerUrl()
Description copied from interface: RtmpTester.IClientSessionInfoProvider
Returns server url the client connects.

Specified by:
getServerUrl in interface RtmpTester.IClientSessionInfoProvider
Returns:
server url

getClientInfo

public RtmpClientInfo getClientInfo()
Description copied from interface: RtmpTester.IClientSessionInfoProvider
Returns client info.

Specified by:
getClientInfo in interface RtmpTester.IClientSessionInfoProvider
Returns:
client info

getEntities

public java.lang.String[] getEntities()
Description copied from interface: RtmpTester.IClientSessionInfoProvider
Returns supported entities.

Specified by:
getEntities in interface RtmpTester.IClientSessionInfoProvider
Returns:
supported entites

getEntityProperties

public java.util.Map<java.lang.String,java.lang.String> getEntityProperties(java.lang.String entity)
Description copied from interface: RtmpTester.IClientSessionInfoProvider
Returns properties supported by the entity.

Specified by:
getEntityProperties in interface RtmpTester.IClientSessionInfoProvider
Returns:
{property -> property description} map

getEntitiesCount

public int getEntitiesCount(java.lang.String entity)
Description copied from interface: RtmpTester.IClientSessionInfoProvider
Returns number of entity.

Specified by:
getEntitiesCount in interface RtmpTester.IClientSessionInfoProvider
Returns:
number of define entities

getEntities

public java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> getEntities(java.lang.String entity,
                                                                                        ISelector<java.util.Map<java.lang.String,java.lang.Object>> selector)
Description copied from interface: RtmpTester.IClientSessionInfoProvider
Returns session entities.

Specified by:
getEntities in interface RtmpTester.IClientSessionInfoProvider
Parameters:
entity - entity identifier (please check * constants)
Returns:
session entities

saveAs

public void saveAs(java.io.File file)
            throws java.lang.Exception
Description copied from interface: RtmpTester.IClientSessionInfoProvider
Saves client session data (in the binary format) to the file.

Specified by:
saveAs in interface RtmpTester.IClientSessionInfoProvider
Throws:
java.lang.Exception - if an exception occurred