UCMDB Jython Create SQL Client (606 Views)
Reply
Occasional Contributor
Aleks_Zubkov
Posts: 3
Registered: ‎12-14-2011
Message 1 of 3 (606 Views)

UCMDB Jython Create SQL Client

[ Edited ]

Hi everyone!
I coded Jython adapter to connect to SQL Server. This code create sql client:

 

IDS=Framework.getAvailableProtocols(IPAddr,ClientsConsts.SQL_PROTOCOL_NAME)
    props = Properties()
    props.setProperty(CollectorsConstants.DESTINATION_DATA_IP_ADDRESS, IPAddr)
    for ID in IDS:
      try:
        client=Framework.createClient(ID,props)
...

 

Now I am trying create sql client to connect to Instance Database. How can I set name of this Instance, when I create SQL Client? What is the name of this parameter in CollectorsConstants class? Where can I find description of CollectorsConstants class?

 

 

P.S. This thread has been moevd from Application Perf Mgmt (BAC / BSM) Support and News Forum to CMS and Discovery Support and News Forum.- HP Forum Moderator

HP Expert
Dmitry Shevchenko
Posts: 4,882
Registered: ‎01-30-2008
Message 2 of 3 (598 Views)

Re: UCMDB Jython Create SQL Client


Aleks_Zubkov wrote:

 Where can I find description of CollectorsConstants class?


\hp\UCMDB\UCMDBServer\deploy\ucmdb-docs\docs\eng\doc_lib\DevRef_guide\DDM_JavaDoc\index.html

Occasional Contributor
Aleks_Zubkov
Posts: 3
Registered: ‎12-14-2011
Message 3 of 3 (584 Views)

Re: UCMDB Jython Create SQL Client

[ Edited ]

\hp\UCMDB\UCMDBServer\deploy\ucmdb-docs\docs\eng\doc_lib\DevRef_guide\DDM_JavaDoc\index.html

This document doesn't contain definition of this class.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.