How to get the parameter ITResource to itResourceName using java?

Hi all
I need to get itResourceParameters as the server address, port, login, administrator etc. from itResourceName in java.

I had checked the api and found the interface

tcITResourceInstanceOperationsIntf Intf = (tcITResourceInstanceOperationsIntf) tcUtilityFactory.getUtility ("Thor.API.Operations.tcITResourceInstanceOperationsIntf");

But I have problems to use it. It always throws errors. I'm not good at java coding to help you please.

Is thank you

public Hashtable getITResourceParameters (String, tcDataProvider ioDatabase resource) throws Exception {}
Config ConfigurationClient.ComplexSetting = ConfigurationClient.getComplexSettingByPath ("Discovery.CoreServer");
final Hashtable env = config.getAllSettings ();
tcSignatureMessage moSignature = tcCryptoUtil.sign ("xelsysadm", "PrivateKey");
tcUtilityFactory tcUtilityFactory = new tcUtilityFactory (env, moSignature);
Hashtable resourceHash = com.thortech.xl.util.adapters.tcUtilXellerateOperations.getITAssetProperties (ioDatabase, resources);
log. Debug ("resourceHash size:"+ resourceHash.size () ');
Return resourceHash;
}

After that, you can use Hashtable operations to retrieve the hash values.

Tags: Fusion Middleware

Similar Questions

  • How to get the frame number current timeline using jsx?

    How to get the frame number current timeline using jsx?

    Thanks for the link!

    Clarification: I was looking for the current image on the timeline of the video. OP he mentions that he had found how to get that so I searched a bit more and found this thread: Re: can I inpoint in read/write and out-point of the clips in a group of video with scripts? They have the following functions, I have not tried yet, but it seems like it should work.

    function getCurrentFrame() {}

    try {}

    Var ref = new ActionReference();

    ref.putProperty (charIDToTypeID ('Rprp'), stringIDToTypeID ('currentFrame'));

    ref.putClass (stringIDToTypeID ('timeline'));

    var / / desc = new ActionDescriptor();

    desc.putReference (charIDToTypeID ('null'), ref);

    var TC = executeAction (charIDToTypeID ('getd'), desc, DialogModes.NO);

    Return TC.getInteger (stringIDToTypeID ('currentFrame'));

    } catch (e) {return null ;}

    };

  • How to get the parameter values of a step type custom when I create file and adding a type of step seq

    I use lv 8.5 and teststand 4.0.

    I did a step type custom and recorded at the MyTypes.ini in pallets of type.

    I specified a default module by opening the properties of the custom step of *.ini type window, then I put some values of the parameters.

    T1) when I open teststand and I add the custom step type manaully in seq file, the labview module parameter values are represented.

    But, if to use file (create and add support prototype stage), the labview module parameter values has the default value.

    Using joint file, how to get the setting custom step type values I put in *.ini?

    Q2) each type of step are automatically by name through the use of LoadTypePaletteFilesEx. When I open teststand and I add the custom step type manaully in seq file, the module is loaded automatically. Inside the attachment, I use a prototype of charge and a fixed path where the module labview is to load the labview module.

    Can I load module automatically without using a prototype of charge or how can I get a dynamic path of type step?

    I solved Q1 for myself by using the mapping tab of the parameter within the configuration to the default module window.

    Everyone knows Q2?

    Thank you.

  • How to get the parameter

    Hi all
    Greetings!
    I have a requirement in which I need to get the parameter which is recorded in jsp SSWA function.
    for example
    I have a page
    OA.jsp?page=/oracle/apps/conc/webui/ConcPG & Type = XX_DAIL

    Now, I want to use the parameter "LookupType" in my Page CO. processRequest

    I'm trying to get the value of this parameter in processRequest of my CO as

    String l_type1 = pageContext.getParameter ("Type");

    but the string returns NULL when I try to run the jDev page. I'm ideally looking for value "XX_DAIL" in the l_type1 string.

    I have only a single page.

    Please notify.

    Thank you

    I think that since you run it from JDev, you must include the parameter in the configuration of your project (right click on *.jpr--> project settings--> Oracle Applications--> DURATION connection--> the URL parameters in option

    From there, you can specify as: & Type = XX_DAIL

    The co code you must return a value now. Hope it will be useful.

    Kind regards
    LC

  • How to get the CPU usage in LabWindows using C program

    Hi all

    Please help me...

    How to get the CPU usage and the use of the RAM in LabWindows CVI 12.0 using C.

    Any help with this will be appreciated.

    Thank you in advance


  • How to get the gif file hosted by using the Http connection?

    Hello

    I have an application that downloads animation gif from a server by using the http connection. Here is the code I use to download the image.

    try {
    
                httpConnection = (HttpConnection) Connector.open(url, Connector.READ_WRITE);            httpConnection.setRequestMethod(HttpConnection.GET);
    
                if (httpConnection.getResponseCode() == HttpConnection.HTTP_OK) {                DataInputStream dS = httpConnection.openDataInputStream();
    
                    byte[] data = new byte[dS.available()];                dS.read(data);
    
                    gifImage = (GIFEncodedImage) EncodedImage.createEncodedImage(data, 0,data.length);
    
                } else {                throw new Exception("ResponseCode:" + httpConnection.getResponseCode());            }        } catch (Exception e) {                        gifImage = null;            e.printStackTrace();        }
    

    the problem with this code is, when the gif file is 1175 bytes above, it does not load the gif.

    example:-If the gif on the server is 1500 bytes, this code retrieves only 1175 bytes.

    I think that the rest of the bytes are sent in a different package. But how to get them.

    can someone please provide a code for buffering the inputstream?

    any help is appreciated.

    Dieye

    Hmm, nobody seems to know how to do, it seems. Here's how I did it.

                httpConnection = (HttpConnection) Connector.open(url, Connector.READ_WRITE);
                httpConnection.setRequestMethod(HttpConnection.GET);
    
                int responseCode = httpConnection.getResponseCode();
                if (responseCode == HttpConnection.HTTP_OK) {
                    inputStream = httpConnection.openInputStream();
                    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    
                    byte[] buffer = new byte[256];
                    int len = 0, imageSize = 0;
    
                    while (-1 != (len = inputStream.read(buffer))) {
                        byteArrayOutputStream.write(buffer);
                        imageSize += len;
                    }
    
                    byteArrayOutputStream.flush();
                    byte[] imageData = byteArrayOutputStream.toByteArray();
                    byteArrayOutputStream.close();
    
                    gifImage = (GIFEncodedImage) EncodedImage.createEncodedImage(imageData, 0, imageSize);
    
  • How to get the storage allocated profile and used the plugin vCloud 5.1 Vdc

    How can I get the storage allocated and used for a Vdc in vCloud 5.1 plugin?

    VCloud plugin 1.5, there was a property of VclVdc.storageCapacity give us the space allotted, limit, use (s) and overhead costs.

    VCloud plugin 5.1 we allways null VclVdc.storageCapacity. Then VclVdc.getStorageProfiles () but presents the objects, there is that the "limit value".

    ¿WHERE are the other values?

    I have attached two screenshots. vCloud console shows the data, but not vCloud plugin.

    Thank you very much.

    Damian

    Tell me if this work. This was written in a few minutes.

    var host = vdc.getHost();
    
    var queryService = host.getQueryService();// toAdminObject().getAdminQueryService();
    
    var profs = vdc.getStorageProfiles();
    
    for each (var prof in profs) {
    
        var expression = new VclExpression(VclQueryAdminOrgVdcStorageProfileField.HREF, prof.getReference().href  , VclExpressionType.EQUALS);
        var filter = new VclFilter(expression);
        var params = new VclQueryParams();
        params.setFilter(filter);
        var resultSet = queryService.queryRecords(VclQueryRecordType.ADMINORGVDCSTORAGEPROFILE,params);
    
        while (resultSet != null) {
            var records = resultSet.getRecords(new VclQueryResultAdminOrgVdcStorageProfileRecord);
            System.log(records.length + " records found");
                for each (var record in records) {
                    //obtain data from record
                    System.log("storageUsedMB : " + record.storageUsedMB);
                    System.log("storageLimitMB : " + record.storageLimitMB);
                }
        resultSet = resultSet.getNextPage();
        }
    
    }
    
  • How to get the code PIN Blackberry 10 using javascript for BB10 Webworks App?

    Hi all

    I have developed web application for blackberry 10 using the emulator to ripple and Blackberry 10 Webworks SDK 1.0.4.11.Here I put the automatic connection of my web application... So I want to get the Pin 10 of Blackberry number using javascript... Please help me... Someone knows... Thank you very much...

    Kind regards

    Marimuthu_P

    Which is documented here for WebWorks 2.0: https://developer.blackberry.com/html5/apis/beta/blackberry.identity.html#jbo1385148789774

    and here for WebWorks 1.0:

    https://developer.BlackBerry.com/HTML5/APIs/gold/BlackBerry.identity.html

    You want the uuid property.

  • How to get the details of VM settings using cli power?

    Hello

    I went through the link http://communities.vmware.com/thread/325036?tstart=0 which has been very helpful. However I want to know is there anyway I can get the details of the VM?

    I want Hardware, tab Option and details tab resources of the virtual machine that we see in the VM-> change the settings.

    My main concern is to get the details of the memory of the virtual machine. There are several virtual machines in my infrastructure on which memory is limited to less amout then what is given to the virtual machine.

    As for example in one of the virtual machine, we had problem where after troubleshooting, I discovered the memory assigned on Hardware tab is 16GB while the resource tab it is limited to 8 GB, which caused the driver lock memory to have other tools to use.

    Concerning

    Do you get the version number?

  • How to get the same functionality for string as java in oracle 10g

    Example:

    In java, if I use
    -> > >
    String.format ("% 03d", 11) then he will give me the result 011
    String.format ("% 03d", 1111) then he will give me the result 1111

    I need also same result in Oracle for a stored procedure. I used to_char() and lpad() function but could not get the desirable.

    I'm new on this. Please forgive for this silly question and help me.

    Or with the prefix "FM", which makes the FILLING for us:

    to_char(col1, 'fm9999099')
    
  • How to get the webservices project customer specific use Oracle.

    I have a Web services project I developed in VS2005 where I use the Oracle.DataAccess.dll provided by Oracle 10 g ODAC to connect to an Oracle 8.1.7.4 database. I add a reference to the dll in the folder c:\oracle\product\10.2.0\client_1\ODP.NET\bin\2.x. I create and publish Web services and checked that Web services are working correctly. I ran into problems when I installed the latest version of the ODAC for Oracle 11, where the webservice Gets the following error ORA-03134 - this version of the server connections are more supported. Based on what I read here and ther panels, it seems that when I installed the ODAC for Oracle 11 he installed a policy file that redirects all calls to use Oracle 11 components data access rather than that I've specified explicitly in my project.

    Is it possible for me to always have the components of Oracle 11 working side by side with Oracle 10 g and forced my project to always use the components of Oracle 10 g?

    Published by: lordharlock on March 3, 2010 07:17

    Hello

    I just did a quick test with binding in an app.config file redirection, and has precidence over policy in the gac file.

    Here's my app.config. I compiled with 2.102.2.20, the app ran with 2.111.7.0, despite the 2.111.7.20 policy in the gac file.

    It will be useful,
    Greg

    
    
      
        
          
            
            
           
          
        
      
    
    
  • How to get the parameter in Custom_panel 2, which went from custom_panel 1?

    Hello

    I have 2 custom panels, Custom_panel 1 & 2 Custom_panel.

    I call 'CSInterface.prototype.requestOpenExtension = function (Custom_panel 2, params)' now works, I want to get "params" on the load event of Custom_panel 2. How can I get it?

    Concerning

    Chirag.

    Hello

    In my previous answer, it's just two examples on how to post/get messages. This does not mean that you need simply copy the code and it can work. You need to change the id of the message to your own ID message. If your message id is "Votre_message", you must post "Votre_message" in Panel1 while not 'com.adobe.host.notification.TransferRequest'and you must listen to "Votre_message" in Panel2 while not 'com.adobe.host.notification.SelectedAssetInfo'.

    Lei

  • [JS CS4/CS5/CS5.5] How to get the return value from Javascript using doScript

    Hi all

    I'm calling javascript from COM (c#) and it works fine. Passing parameters to javascript and playback by using the syntax of the [x] arguments also works very well.

    What I can't seem to get to work is to know how to move something from javascript to the calling COM Summoner, in this case, c#. How and where should I place the return value in javascript?

    Thanks in advance.

    Rachiud

    doScript() evaluates an expression, so just make sure that your Javascript is an expression.

    For instance "(3 + 3)" 6 "

  • How to get the full name (device disk) using esxtop?

    Hello

    I am looking for storage settings using esxtop - pressing 'u' for drive.

    As I use the iSCSI (open file server) device, I couldn't see the identifier of the full device. Can someone help me to get this.

    I have attached the screenshot of esxtop for this...

    Device name.jpg

    Any idea? Thanks in advance.

    In ESXTOP enter a capital 'L' and type a number to make the larger DEVICE field. Depending on the length of the name of the device - you might need to up to 40 characters to present the full name.

    Entering the '?' in ESXTOP will give you the options you can set (this information is also there as well).

  • How to get the path of system font used in the composition by script?

    Hello!

    I would get not only TextDocument attributes such as font, fontSize, etc., but finding where fonts (path) is installed.

    Is it possible to do a script AE?

    Thank you in advance!

    Hello

    That's all new script characteristic of AE CC13.1. See "script of the improvements for text layers" in http://blogs.adobe.com/aftereffects/2014/09/after-effects-cc-2014-1-13-1.html.

    Note that it only retrieves the information for the first character of the layer.

    Xavier

Maybe you are looking for