Brocade Virtual ADX XML API Programmer’s Guide (Supporting ADX v03.1.00) User Manual

Page 872

Advertising
background image

862

Brocade Virtual ADX XML API Programmer’s Guide

53-1003248-01

Example: Unbinding a real server from a VIP

B

//

// 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()

{

if (m_SYSService == null)

m_SYSService = new SysService();

return m_SYSService;

}

/////////////////////////////////////////////////////////////////////////////

// Name: OpenConnection

//

// Description: This function forms the URL based on the given DeviceName

// and sets the required parameters to the WSDL SLB Service object

// inorder to communicate witht the ADX Box.

//

// Parameters: DeviceName - The IP Adress of the ADX Box

// UserName - The user name associated with the ADX Box

Advertising