MUM.repository.client
Class OnlyVideoClientSessionManagerBase

java.lang.Object
  extended byMUM.repository.client.OnlyVideoClientSessionManagerBase
All Implemented Interfaces:
IClientSessionManager, IMultimediaService, IOnlyVideoClientSessionManager, ISessionManager, java.lang.Runnable

public class OnlyVideoClientSessionManagerBase
extends java.lang.Object
implements IOnlyVideoClientSessionManager

This class implements a client session manager for a session composed by a video stream


Field Summary
 
Fields inherited from interface MUM.data.ISessionManager
DESTROYED, INITIALIZING, NOT_CONSISTENT, PLAYING, STOPPED
 
Constructor Summary
OnlyVideoClientSessionManagerBase()
          Creates new OnlyVideoClientSessionManagerBase
 
Method Summary
 boolean destroySession()
          Destroys the client and all the agents.
 java.lang.String getState()
          returns the current status of the session
 void init(java.io.PrintStream out, IMUMBaseFacilities factory, ComponentInfo info, java.lang.Object[] parameters)
          This is the method used for the initialization of the IClientSessionManager.
 void initAndActivateQoSManager(java.lang.String uniqueId, IQoSManagerListener qosListener, ICPUStatusNotifier notifier)
          This method is used to instantiate and activate the QoS Manager for this client.
 void run()
          The run method
 boolean setAtTimeSession(javax.media.Time t)
          Sets the session at a certain point
 boolean startSession()
          Starts the session
 boolean stopSession()
          Stops the session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnlyVideoClientSessionManagerBase

public OnlyVideoClientSessionManagerBase()
Creates new OnlyVideoClientSessionManagerBase

Method Detail

init

public void init(java.io.PrintStream out,
                 IMUMBaseFacilities factory,
                 ComponentInfo info,
                 java.lang.Object[] parameters)
          throws InitializationException
This is the method used for the initialization of the IClientSessionManager. NOTE: the parameters array contains one element, the absolutePath (String) for the desired presentation p (parameters[0]). The info parameter contains only one element, the ComponentInfo for the video server.

Specified by:
init in interface ISessionManager
Parameters:
out - a PrintStream for debug messages, if you don't want to print, pass new PrintStream( new NullOutputStream() ) (see SOMA.Explorer for NullOutputStream)
factory - this is a IMUMFactory used to create new instances of objects, which has to be used in the distribute architecture
info - this array contains all the component info of the components that are connected to this session manager. As the distributed architecture is a tree, each session manager is connected to [1, N] components, depending on how many flows compone the session
parameters - initialization parameters for the objects the session manager uses to implement communication protocols and streaming/visualization of the different multimedia objects
Throws:
InitializationException

startSession

public boolean startSession()
Starts the session

Specified by:
startSession in interface ISessionManager
Returns:
true if it was possible to send this command without problems, false otherwise

stopSession

public boolean stopSession()
Stops the session

Specified by:
stopSession in interface ISessionManager
Returns:
true if it was possible to send this command without problems, false otherwise

setAtTimeSession

public boolean setAtTimeSession(javax.media.Time t)
Sets the session at a certain point

Specified by:
setAtTimeSession in interface ISessionManager
Returns:
true if it was possible to send this command without problems, false otherwise

destroySession

public boolean destroySession()
Destroys the client and all the agents. Returns true if the destruction had success

Specified by:
destroySession in interface ISessionManager
Returns:
true if it was possible to send this command without problems, false otherwise

initAndActivateQoSManager

public void initAndActivateQoSManager(java.lang.String uniqueId,
                                      IQoSManagerListener qosListener,
                                      ICPUStatusNotifier notifier)
                               throws InitializationException
This method is used to instantiate and activate the QoS Manager for this client.

Specified by:
initAndActivateQoSManager in interface IClientSessionManager
Throws:
InitializationException

run

public void run()
The run method

Specified by:
run in interface java.lang.Runnable

getState

public java.lang.String getState()
returns the current status of the session

Specified by:
getState in interface ISessionManager


Copyright © 2004 Luca Foschini