cvm.ncb.csm
Class CommServiceManager

java.lang.Object
  extended by cvm.ncb.csm.CommServiceManager

public class CommServiceManager
extends java.lang.Object

Manages the communication objects of NCB.

Author:
Frank Hernandez

Method Summary
 void applyPolicies()
          This function is used by for the autonomic computing side of the CMS.
 java.lang.String getCapabilities()
          This function returns the capabilities of all the communication objects.
 CommObject getCommunicationObject()
          This function returns the currently selected communication object.
static CommServiceManager getInstance()
          Implementation of the Singleton design pattern.
 void intitializeCommObjects()
          This function initializes all the communication objects.
 void loginAll()
          This function logs the user into all the existing communication objects.
 void logoutAll()
          This function logs the user out of all the existing communication objects.
 void mapConnToSession(java.lang.String connectionID, java.lang.String sessionID)
          Maps the communicaiotn and the session.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CommServiceManager getInstance()
Implementation of the Singleton design pattern.

Returns:
Singleton instance

getCapabilities

public java.lang.String getCapabilities()
This function returns the capabilities of all the communication objects.

Returns:
get capabilities list @ separated

getCommunicationObject

public CommObject getCommunicationObject()
This function returns the currently selected communication object.

Returns:
communication object

loginAll

public void loginAll()
This function logs the user into all the existing communication objects.


logoutAll

public void logoutAll()
This function logs the user out of all the existing communication objects.


applyPolicies

public void applyPolicies()
This function is used by for the autonomic computing side of the CMS.


intitializeCommObjects

public void intitializeCommObjects()
This function initializes all the communication objects.


mapConnToSession

public void mapConnToSession(java.lang.String connectionID,
                             java.lang.String sessionID)
Maps the communicaiotn and the session. Currently it Maps the connection to the current communication object then it creates a session in this object.

Parameters:
connectionID -
sessionID -