com.genesyslab.omsdk.mil.applicationblocks.haserver
Class OpenMediaService

java.lang.Object
  extended bycom.genesyslab.omsdk.mil.applicationblocks.haserver.OpenMediaService

public class OpenMediaService
extends java.lang.Object

Sample class for handling user Open Media. It should include logic related to initialize user media framework, put required information into distributed cache and restore framework state in case of switchover, etc.


Constructor Summary
OpenMediaService()
           
 
Method Summary
 void login(java.lang.String agentId, java.lang.String passwd)
          Makes an agent login to user media framework.
Saves login parameters to HA session.
 void logout(java.lang.String agentId)
          Makes logout for agent.
Removes ogin parameters from HA database.
 void retrySessionRecover(java.util.Map attributes)
          retryRecover from cache session.
 void sessionRecover(java.util.Map attributes, java.lang.String notUsed)
          Recovers from one cache session.
 void undoSessionRecover(java.util.Map attributes, java.lang.String notUsed)
          undoRecover from session
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenMediaService

public OpenMediaService()
Method Detail

sessionRecover

public void sessionRecover(java.util.Map attributes,
                           java.lang.String notUsed)
Recovers from one cache session.

See Also:
HaSessionRecover

retrySessionRecover

public void retrySessionRecover(java.util.Map attributes)
retryRecover from cache session.

Parameters:
attributes - attributes

undoSessionRecover

public void undoSessionRecover(java.util.Map attributes,
                               java.lang.String notUsed)
undoRecover from session


login

public void login(java.lang.String agentId,
                  java.lang.String passwd)
Makes an agent login to user media framework.
Saves login parameters to HA session.

Parameters:
agentId - server side identification point, for example, service support ICQ contact ID
passwd - password for provided agentId

logout

public void logout(java.lang.String agentId)
Makes logout for agent.
Removes ogin parameters from HA database.

Parameters:
agentId - server side identification point, for example, service support ICQ contact ID