Brocade Virtual ADX XML API Programmer’s Guide (Supporting Manuel d'utilisateur Page 847

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 878
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 846
Brocade Virtual ADX XML API Programmer’s Guide 837
53-1003248-01
Example - Provisioning real and virtual servers
B
//
/////////////////////////////////////////////////////////////////////////////
public class Utils
{
private Utils() { }
~Utils() { }
private static Utils m_Utils = null;
public SlbService m_SLBService = null;
public SysService m_SYSService = null;
private static StreamWriter m_StreamWriter = null;
private static FileStream m_FileStream = null;
/////////////////////////////////////////////////////////////////////////////
// Name: GetUtilsInstance
//
// Description: Returns the Utils class object. Creates the object if this
// object is not created previously.
//
// Parameters: -
//
/////////////////////////////////////////////////////////////////////////////
public static Utils GetUtilsInstance()
{
if (m_Utils == null)
m_Utils = new Utils();
return m_Utils;
}
/////////////////////////////////////////////////////////////////////////////
// Name: GetSLBObject
//
// Description: Returns the SlbService class object. Creates the new
object if
// this object is null.
//
// Parameters: -
//
/////////////////////////////////////////////////////////////////////////////
public SlbService GetSLBObject()
{
if (m_SLBService == null)
m_SLBService = new SlbService();
return m_SLBService;
}
/////////////////////////////////////////////////////////////////////////////
// Name: GetSYSObject
//
// Description: Returns the SysService class object. Creates the new
object if
// this object is null.
//
// Parameters: -
//
/////////////////////////////////////////////////////////////////////////////
public SysService GetSYSObject()
{
Vue de la page 846
1 2 ... 842 843 844 845 846 847 848 849 850 851 852 ... 877 878

Commentaires sur ces manuels

Pas de commentaire