The use of shell object - documentation

Looking for documentation on the use of shell object.  I found a few scripts here which gave a basis of a script, but now need to expand it.

Hi Doug,.

getObjectShell() is a method in the TopologyService.

This method is documented if you run

Help server. TopologyService

in the Console/Script Editor.

In recent versions of Foglight, which is related to the Java Doc:

getObjectShell

com.quest.nitro.model.topology.TopologyObject getObjectShell(com.quest.nitro.model.topology.TopologyType type)
Returns an object of the specified type that has all it's undefined fields.  Of object shells are supposed to be filled with known topology information and then be merged back into the topology via one of the mergeData methods.
Parameters:
type-the type of the requested object
Returns:
empty the object

getObjectShell

com.quest.nitro.model.topology.TopologyObject getObjectShell(com.quest.nitro.model.topology.TopologyObject object)
Returns a shell that allows the data to be merged into the specified object.  The hull returned by this method is configured with the identity of the specified object property values and can be merged immediately.  The shell must be updated with the actual changes that must be made to the object.
Parameters:
object-l' object for which a shell is necessary
Returns:
the shell
See also:
getObjectShell(TopologyType)

Here is an example of a function using this method:

def createPlaceholderHost = {String p_hostname, String p_ipaddress->

TS = server.get("TopologyService");

def host = ts.getObjectShell (ts.getType ("Host"));

def ip = ts.getObjectShell (ts.getType ("IPAddress"));

IP. Set ("longName", p_ipaddress);

IP. Set ("name", p_ipaddress);

IP. Set ("address", p_ipaddress);

Host.Set ("longName", p_hostname);

Host.Set ("name", p_hostname);

host.getList("ipAddresses").add (ip)

Return ts.mergeData ([ip, host]);

}

createPlaceholderHost ("somehostname", "10.2.45.165")

Kind regards

Brian Wheeldon

Tags: Dell Tech

Similar Questions

  • Advantages of the use of JSP vs presentation for user interface objects?

    Hello

    We are discussing our team project if using JSP or BPM presentation of user interface objects. Oracle seems to imply in the documentation that presentation objects are good enough for prototyping purposes, but for production purposes, you would use the JSPs.

    Can someone enlighten me on:

    (1) what specific limitations exist using the objects of presentation vs. JSPs?
    (2) if there is a rule on how much less effort, it would be to develop the user interface in the presentation of objects vs JSP custom development?

    Thank you for your advice and insight.

    -Abe

    Merely show how little I've read the documentation. Others will disagree, but IMO, you can use one with equal success. Use presentations BPM object if:

  • you use the latest patch that accelerates the UI designer
  • you're not a JSP store
  • your UI has no Ajax or tabs
  • you want to quickly create forms

    If you are using the JSP pages:

  • a JSP shop and are comfortable with them
  • the majority of your user interface is complex

    I use the two as needed. Personally, I use a BPM object exposed for initial prototyping with new clients, but will continue to use with customers who are not familiar with the JSPs.

    Dan

  • Set the status to inactive to 30 minutes on all computers using Management Shell

    Is there a command I can run in the Environment Management shell to set the inactive period of time of 30 minutes and change then after 60 minutes?

    I found my answer by using registry keys.

  • The use of SQLite to store the JSON object

    Hello

    Can someone guide on how to store a JSON object returned after the use of the Adobe provide parser JSON which returns the native object

    as

    resultobject = JSON.decode (data)

    Where the data is a JSON string.

    The 'result' object is a complex subject, but I would like to keep this object because it is in the SQLite database.

    I tried BLOB for the column type but doesn't seem to work to store this object. Ideally, I prefer to use this way to avoid the redesign of the main code as I am currently using the SharedObject method.

    Any ideas?

    Can you just store the data as a BLOB string?

  • Transaction management in the ADF Application using Dynamic Shell

    Hi all

    I use Jdev 12.1.2. We have an application built using design pattern of Shell of dynamic user interface where each workflow in the application will open in a separate tab. So my question here relates by using transaction management in the workflow.

    I read in many places where we are asked to avoid always using "start new Transaction" as it would open multiple connection. But I also vaguely remember reading that best practices to use in an application built using by using Dynamic user interface Shell, is to have isolated Datacontrol with always start new Transaction.

    So could indicate the recommended approach for impact Shell of the user interface and the performance of the approach?

    Note: We have just a data control in our application.

    Thanks in advance.

    Hello

    the transaction is not defined by the shell of the dynamic tab but the workflow. The shell of the dynamic tab displays only the workflow at a glance. If you plan to display a single feed task several times as tabs in a dynamic tab shell, each indicating a different set of data, then you use "isolate" scope of data control or "adaptive databinding (https://blogs.oracle.com/groundside/entry/towards_ultra_reusability_for_adf). If you are using remote data controls then - if you use ADF BC - each instance of the workflow (in shell dynamic tab tab) creates its own connection to the base and the transaction. Workflow transaction parameters are passed to it.

    So use case issues: If you only display a single instance of a workflow tasks at once in a tab of the shell of the dynamic tab so that you can use the scope of shared control (default) data without doing anything. I however you must show the same workflow multiple times then reach isolated from control data or link Adaptive is the implementation, you should go for. The first option - data control isolated - is expensive because it creates additional database connections. There if its use cases.

    Frank

  • I'm trying to follow the video to "Change color" and I don't have a lot of options that uses the presenter.  I'm on a PC.  Can someone walk me by changing the color of an object step by step?

    I'm trying to follow the video to "Change color" and I don't have a lot of options that uses the presenter.  I'm on a PC.  Can someone walk me by changing the color of an object step by step?

    Sorry for the delay. Here is the video

  • By comparing the dynamic fields of objects using equals and hashCode methods

    To compare the different objects of the same class with their content as jobTitleId, classificationId, deptId & classificationId had to be done and do a few steps later, using Set and the map. I was able to do it by simple substitution of equals and hashCode methods of the object class and was able to read the information (as in the map below).

    Map < LocationData, list < LocationData > >

    The following is the class I used (its been shown you so that it can be called for my problem statement):

    Class LocationData

    package com.astreait.bulkloader;

    public class LocationData {}

    String locId, deptId, jobTitleId, classificationId;

    @Override

    public boolean equals (Object obj) {}

    LocationData ld = (LocationData) obj;

    return this.deptId.equals (ld.deptId) & & this.jobTitleId.equals (ld.jobTitleId) & & this.classificationId.equals (ld.classificationId) & &

    this.locId.equals (ld.locId);

    }

    @Override

    public int hashCode() {}

    return deptId.hashCode () + jobTitleId.hashCode () + classificationId.hashCode () + locId.hashCode ();

    }

    }

    Problem:

    I am already known to which all the fields of this object, I need to make the comparison.

    IE I have to use the variables named classificationId, deptId, jobTitleId & locId etc.

    Need:

    I need to customize this logic such as names (classificationId, deptId, jobTitleId & locId etc.) fields can be learned, dynamically, as well as their values. So, as far as I understand, I've made use of 2 classes (TableClass and ColWithData), such as the list of the ColWithData is there in the TableClass object.

    I think what will happen if I substitute the same two methods "equals() and hashCode();"

    as the same thing is possible.

    TableClass class #1

    Class TableClass {}

    The list < ColWithData > cwdList;

    @Override

    public boolean equals (Object obj) {}

    Return Boolean = false;

    I need to have the logic must be set such that

    all dynamic fields can be compared

    return return;

    }

    @Override

    public int hashCode() {}

    Return int = 0;

    I need to have the logic must be set such that

    All dynamic fields for their individual codes can be found

    return return;

    }

    }

    ColWithData class #2

    Class ColWithData {}

    Pass the string; Here, the jobTitleId, classificationId, deptId, locId or any other information fields more may come.

    String data; The corresponding data or value for each jobTitleId, classificationId, deptId, locId or any other more fields.

    }

    Please let me know if I'm the procedure in the right direction or should I do a different approach. If it is allowed to use the current approach then what should be done to equals and hashCode methods?

    Finally, I need to make the map as: (is not worried how I give you, but may be considered my goal sought this logic)

    Map < TableClass, list < TableClass > > finalMap;

    I'm sorry for that. Although the problem is resolved, on my side.

  • How to calculate the use of the memory of the objects in Oracle/Collections

    Hi all
    Our application uses a large hierarchical object to store customer information and dependents. I am looking to display the amount of memory used to contain all the embedded objects and collections when filled with data.

    Please advice!

    Thank you

    PL/SQL collections are stored in the PGA. For example, you can monitor the use of the PGA of the meeting (s) to see how much PGA they use.

    SELECT sid, name, value
      FROM v$statname name
           JOIN v$sesstat using (statistic#)
     WHERE name.name in ('session pga memory', 'session pga memory max' )
    

    This will show, for each session, the current PGA consumed by the session and the high tide of the consumption of the PGA by this session. You can join V$ SESSION and add additional predicates to narrow things down to specific sessions you are interested in.

    Justin

  • Is it possible to get the result of the use of several blending modes in a single object?

    Hello

    I wonder if there is a way to merge multiple objects with methods of fusion to an object. Here is the example:

    example.jpg

    With the mark on the left are three objects with the same appearance but different modes (normal, overlay color dodge,) on the right they are overlapping, fusion, which are always three oppose. I am looking for the way to get the same result that law rode one, but as a single object. Him with several objects only to the result of color blending mode uses too much memory for my computer.

    Thanks in advance for your help.

    Create an object: then in your appearance Panel, duplicate the fill twice. Select the high fill and expand the submenu, click the opacity, choose the blending mode. Repeat steps.

    G

  • Can I use actionscript to change the size of an object displayed according to the proximity of objects 2?

    Can I use actionscript to change the size of an object displayed according to the proximity of objects 2?

    As in the 2 closest objects get, plus another Gets?

    Yes, simply change the properties of scale based on the distance.

  • Help in the creation of a "Mac kiosk" using a Shell Script

    Hello

    I have a MacBook in my school running OS X Snow Leopard, and I would like to set up so that when the computer reboots, the record of the student user gets deleted and copied from a protected configuration at startup. Can someone show me how to do this through the use of launchd, LoginHook or chron? Basically, I am trying to reach a similar State to which would provide Faronics Deep Freeze, but my school is not enough in the budget for 40 other Macs that they license owners.

    I tried to do it than this recommended page (http://www.gcsdstaff.org/roodhouse/?p=3164) that uses a LoginHook, but it doesn't seem to work. The script executed perfectly in the Terminal, but not at the start. When I tried launchd, I didn't either. After the use of OS X for awhile, I really didn't need to use scripts so far, so consider me a noob.

    All answers are appreciated,

    LittlePLanet

    We will need to see your script.

    You may not assume any customization in your bash profile.

  • How to remove or disable the "Use default" button in preferences.

    I went through and set up my own configuration file, and everything is fine, except that we want to remove the ability for users to accidentally click the "Use default" option in the Preferences menu. Alternatively, I would hope that this has also removed the box to ask if firefox should be the default value.

    I put it do not ask, but we do not want users to click on this box if we have the ability to remove the "Use default" button.

    Doesn't seem to be something that I can put it in the registry, but if there is an entry in registry to remove or gray on this button, that would be also worked for me.

    http://KB.mozillazine.org/about:config_entries

    Thank you

    Jason

    You use a mozilla.cfg file to define the default values or do this with a file in the profile folder?

    You can lock a specific pref via the mozilla.cfg wire to make it impossible for users to change the pref that is related to this setting.

    • lockPref ("browser.shell.checkDefaultBrowser", false);
  • The use of .vas and for the script .lst files.

    Hello

    I'm working on a script about tiara for the treatment of the channels (involving Crash module). I saw a few scripts using *.vas and *.lst files to define variables and measures for different cases and all.
    I would like to understand more about the features of said make use in my scripts. I looked on the internet for explanations about the same but do not have something useful.

    It would really help me if there is some links or examples for them.

    Thanks in advance,

    Kind regards
    Fazil Shah.

    Hi faz_mah,

    In this case I recommend using two objects dictionary, TypeDict, and PriceDict, like I showed you above.  Or color you use the object than a dictionary and store and array values (type, price, etc.) with each name of the search.  Enumeration style variables "A" in the *.vas file have a static list of enumeration values and variables for enumeration of type 'G' in the file menu of *.vas their dynamic list of values from the file * .lst - which means that you would have to add rows at the end of the file list to add rows to the table of the above possibilities.  It would be faster and more easy to avoid the hard drive and use a dictionary object or two.

    If you're still not convinced, I can send you an example of creating a variable of type *.vas 'G '.

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • Open the waveform array Vi object reference

    Hi, I would like to change a property of an indicator in a VI of VI another (in particular I want to erase a waveform graph), I used Open VI object reference, but I'm not able to access the data in the history. How can I do?

    OK, sorry for the confusion between you. I haven't checked the strict reference waveform with reference open function.

    Using the "good old way" works:

    Norbert

  • Confused about the use of accessors with classes.

    With a new assignment thought, it would be appropriate to increase the use of labview OO features. In my case, I'm trying to use a class to contain a bunch of different calculations. The calculations require multiple entries to finish so I built a control to take care of these data. My plan was to build separate methods for each calculation. This will allow to easily add new calculations and considering that many calculations depend on preliminary calculations seem to be an excellent opportunity to learn a new part of labview.

    My problem is to find an elegant way to complete this great control; I believe that I must write accessor vi to allow outside access to the objects. I don't know if there should be one vi for EACH parameter accessor, or if I can access these items in a cluster.

    I can only relate to the use of get / set in .NET and usually I would write one for each variable that I have access to. I'm not sure how to proceed in LabView. Any ideas would be great.

    I enclose a few images. One showing just a sumple calculation and one of my ctl. Still, my main question is what is the best way to populate the items in this list.

    -Chris

    Since there is no such thing in LVOOP as public members of class (and thank God / NOR) you must always provide accessors (getters/setters) to join the data members of the class outside of the classroom.

    Inside the method of class VI, there is no need for them since you can reach directly from the wire with bundle/unbundle (like photos).

    I've implemented a similar class that performs calculations and I chose to use the recursive calls to deal with the problem of some variables must be calculated before the others.

    I'm a member of the VI class called GetCalculatedVariable.vi which takes the name of the variable to calculate input (like typedefed enum).
    Inside of this VI have a structure dealing with a box for each variable that can be calculated.

    The inside of the box, I define the calculation, and if I ever need another variable, I here call GetCalculatedVariable.vi recursively.

    In addition, I also have a CalcBuffer so I don't have to call GetCalculatedVariable.vi more than once for each variable.

    The class also has a GetMeasuredVariable.vi which also uses the recursion in the same way, but works on my measurement files instead.

    The advantage is that my application code gets very clean because it contains only a single Subvi callto obtain and use any calculated variable.

    I also have a GetCalculatedVariables that takes an VariableNames array and returns an array of values.

    I hope this helps...

Maybe you are looking for