cvm.uci.manager
Class SystemInfoHolder

java.lang.Object
  extended by cvm.uci.manager.SystemInfoHolder

public class SystemInfoHolder
extends java.lang.Object

This class holds all the information of CVM. This class is initialized at the start of CVM by calling control scripts to optain information from the NCB adapter.

Author:
Frank Hernandez

Method Summary
 void addCapability(java.lang.String medium, java.lang.String cap)
          Add a device capability to the list.
 java.lang.String getCVMPassword()
          Get the cvmPassword for cvm
 java.util.ArrayList<java.lang.String> getDeviceCapabilities(java.lang.String medium)
          Get the device capabilities for CVM
static SystemInfoHolder getInstance()
          Singleton implementation.
 java.lang.String getUserName()
          Get the username for cvm
 void setCVMPassword(java.lang.String name)
          Set the value of userName
 void setDeviceCapabilities(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> caps)
          Set the value of deviceCaps.
 void setUserName(java.lang.String name)
          Set the value of userName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SystemInfoHolder getInstance()
Singleton implementation.

Returns:
SystemHolderInfo instance

getDeviceCapabilities

public java.util.ArrayList<java.lang.String> getDeviceCapabilities(java.lang.String medium)
Get the device capabilities for CVM

Returns:
deviceCaps

setDeviceCapabilities

public void setDeviceCapabilities(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> caps)
Set the value of deviceCaps.

Parameters:
caps -

addCapability

public void addCapability(java.lang.String medium,
                          java.lang.String cap)
Add a device capability to the list.

Parameters:
cap - capability to add.

getUserName

public java.lang.String getUserName()
Get the username for cvm

Returns:
userName

setUserName

public void setUserName(java.lang.String name)
Set the value of userName

Parameters:
name -

getCVMPassword

public java.lang.String getCVMPassword()
Get the cvmPassword for cvm

Returns:
userName

setCVMPassword

public void setCVMPassword(java.lang.String name)
Set the value of userName

Parameters:
name -