Feature request: more xpath support in XMLElement

Hey guys,
Just wanted to submit a feature request. I'm trying to write code to find the number of Invocation service threads that Coherence uses. It would be very nice if I could use XPath syntax such as the following:
getSafeElement("cluster-config/services/service[@id='3']/init-params/init-param/param-value")
Since the API doesn't support that, I have to resort to something like the following:
XmlElement services = com.tangosol.net.CacheFactory.getClusterConfig().findElement(
        "cluster-config/services");
List servicesList = services.getElementList();
for (Iterator i=servicesList.iterator(); i.hasNext(); ) {
    XmlElement element = (XmlElement)i.next();
    if (element.getAttribute("id").getInt() == 3) {
        XmlElement value = element.findElement("init-params/init-param/param-value");
        System.out.println("invocation threads: " + value.getInt());
}I haven't quite gotten that to work yet, but it's probably close. :)
Thanks,
Matt

Matt,
There is a helper function in com.tangosol.run.xml.XmlHelper class that makes it almost as easy as using the XPath.
XmlElement xmlCluster    = CacheFactory.getClusterConfig();
XmlElement xmlInvocation = XmlHelper.findElement(xmlCluster,
        "cluster-config/services/service/service-type", "Invocation");
XmlElement xmlThreads    = XmlHelper.findElement(xmlInvocation,
        "../init-params/init-param/param-value");
System.out.println("invocation threads: " + xmlThreads.getInt());Regards,
Gene

Similar Messages

  • Feature request: Slideshow module support for video files

    I'm very excited about your MTS support!
    Feature request: Slide show module  support for video files...
    Say you have 10 takes to choose from. Are you able to almost like SLIDESHOW view the 10 clips full screen so you can decide, like a playlist? Or rate them as they play? It would also be great, like SLIDESHOW to be able to export a MP4 with a title, the 10 clips you are working with, and maybe add an end title and a song, just like SLIDESHOW.
    I have found editing stills like this in slideshow far faster than in any other editing program.
    Basically, I just need a fast means to view or export an MP4 of a set of video clips to review. You are almost there.
    great job!!!
    Max

    I was also disappointed that video is not supported in the slideshow module -I currently have to use another solution when I want stills mixed with videos, would be great to be ablo to keep it all in LR!

  • Feature request - More ID3 tag support (Key, label etc)

    As the subject suggest, please include more ID3 tag support, I'd love to manage my library in iTunes alone, but now I rely on other applications to enter various bits such as:
    - Key
    - Label
    - Catalogue nr.
    and I'm sure there are a few others you can think of; but these 3 would be on my short-list.

    You are not addressing Apple here.
    You may leave feedback for Apple at:
    http://www.apple.com/feedback

  • New feature request -- more flexibility in file management

    I'm new to iPhoto and hope someone can help.
    I have a large, existing image database (5000+) that I'd like to migrate into iPhoto. I have an established organizational flow where I use a third-party utility to rename my files using the EXIF date as YYYY.MM.DD_000X.JPG (where "X" is a serial number than is incremented automatically). The photos are then organized into a Finder folder hierarchy using YYYY/MM.
    If in Preferences I check "Copy files to iPhoto library folder" then iPhoto copies all my files to the "iPhoto Library" folder, doubling the disk space consumed. That's a substantial percentage of my Mac Mini's hard drive capacity! Worse, iPhoto arbitrarily organizes the imported files into year 2000 and year 2005 folders, without creating folders for 2001, 2002, 2003, 2004, or 2006. So if I import additional images in the future I have no control over how it will be organized in the Finder. My organizational scheme and workflow are hosed!
    If in Preferences I UNcheck "Copy files to iPhoto library folder" then I lose other necessary functionality. For example, if I delete a file in iPhoto the actual file WON'T be deleted from the disk (even after "Emptying the Trash" in iPhoto). I verified this several times. The file structure on the disk and iPhoto's library will get out of synch unless I manually delete in both places, which is unmanageable if you delete a lot of photos! It also wastes disk space.
    Can't Apple simply add a "Monitor folders" feature like Photoshop Elements and many other programs have which automatically detects when files are added or deleted from the directory structure the library points to? This would be soooo much better than forcing iPhoto users to live with the kind of frustrating trade-offs described above.
    iPhoto is the 3rd or 4th image editing program I've tried over the years. I WANT to like iPhoto because I really like my Mac Mini, but the reality is I may at some point want to move on to something better. If I use iPhoto it appears I either have to live with losing control of my organizational structure or losing basic functionality like having photos deleted from the disk.
    Am I missing something here? Is there a workaround so that I can get what I want from iPhoto?
    Thanks!
    Phil
    Mac Mini Dual Core   Mac OS X (10.4.7)  

    Hi Phil
    Welcome to the iPhoto discussions.
    First thing to remember is that everything you want to do, all the organisation takes place within the iPhoto window. Ignore what goes on in the iPhoto Library folder, you simply never, ever have to do any work in there. In fact it is strongly recommended that you never touch or change anything there as it will profoundly affect the running of the app.
    Given the above, you can import your pics into iPhoto and then Trash your originals. Yes, once you are happy that iPhoto has taken all the pics in, you can throw away your originals, this eliminates the problem of the doubled-up disk space. But, you may ask, what if I want to keep my originals. iPhoto does this for you. If you edit or alter a pic in iPhoto you can always revert to the original as iPhoto keeps the original.
    <<So if I import additional images in the future I have no control over how it will be organized in the Finder. My organizational scheme and workflow are hosed!>>
    Yes it is, totally done for - because you are not organising the pics in the finder any more, you're organising them in iPhoto.
    You can organise pics in just about any way imaginable in iPhoto: by date, by time, by keyword, by ratings by a combination of them all. Want to find the pics taken in June 2003, no problem. Want to find only the pics of your dog taken in June 2003? No problem if you use keywords. Want to find all the pics of your dog that don't have your cat taken any month in 2003 except June? You get the picture.
    Drag a folder of pics to the Source pane in iPhoto, it will create an album. You can recreate you current system in iPhoto quite easily, and then improve upon it. Keywords are particularly powerful, as are smart albums. I have a library of over 8,000 pics, and as I import them I add keywords. With a smart album I can find every pic of my daughter that I have, and as I add more they get added to the smart album automatically.
    You can still continue to rename your files in whatever way is meaningful to you prior to importing. That doesn't have to change. Just do it prior to importing to iPhoto. The you can use Spotlight to find a pic called 2003.10.23_004.
    Or you can just drag it from the iPhoto window to your desktop and it makes a copy - your original is still safe. You can e-mail pics from within iPhoto and so on.
    The most important thing to remember is that your organisation is done within iPhoto. It does the heavy lifting.
    If anything I've said is unclear, don't hesitate to come back and ask more.
    Regards
    TD

  • Feature Request: More Local Adjustments

    Sometimes it's nessesary to correct hue/saturation locally — change face colour or something like that. And it would be good to have such brush. Together with ability to change Fill Light, Black and Vibrance in a part of image. Why the current selection of brushes is so narrow?

    alex krylov wrote:
    Sometimes it's nessesary to correct hue/saturation locally — change face colour or something like that. And it would be good to have such brush. Together with ability to change Fill Light, Black and Vibrance in a part of image.
    +1 vote.
    Although, its amazing what can be done with the current complement with some practice. For example, opposing color can be added to remove color casts... I often paint with brightness and contrast all the way down and exposure way up to bring detail out of shadows...
    alex krylov wrote:
    Why the current selection of brushes is so narrow?
    My theory is that it is due to the limitation of the present design - limiting the brushes keeps it fast. People with inside knowlege don't much respond on the forum to these types of questions, so us outsiders may never know for sure... But if you think about how painted sharpening is implemented, its just a series of offsets that are applied to the global sharpen settings, so Lightroom doesn't have to do a bunch of different sharpening - just one pass, applying the net amount in each area.
    Summary: I think the present complement of local adjustments has been carefully chosen to keep the develop module efficient in accordance with the present design, and to expand the local adjustments a great deal will require some redesigning. I hope I'm wrong and that it will be easier than I would imagine to add local white-balance & fill... If I'm right, I hope Adobe redesigns the develop module for Lr4 in order to expand the local adjustments.
    Finally: My present thinking for Lightroom is that this will be too much for Lightroom 4, and that we are more likely to see incremental changes to the Develop module (maybe improved distraction removal) combined with new features like soft-proofing and photobooks... That said, I have switched my desire for Lightroom, to have better integration with external editors, so one can take it as far as possible in Lightroom, but be better able to integrate outside work done on selected photos.
    Rob

  • Feature Request: More input resolution choice.

    It really would be a tremendous help to be able to select more 16:9 resolutions between 1920x1080 and 1280x720, as that is an absolutely enormous jump.  Particularly in terms of performance.
    Supporting 16:10 resolutions would be great, too, since, half of the people that I work with have monitors with this aspect ratio and many with 1900x1200.

    Hmm,
    FMLE shows the resolutions of the detected Capture Device.
    If you need other resolutions / aspect ratio you could use resizing and cropping.

  • New feature request - More Zoom Levels at a Keystroke

    Hi
    I would love to have more levels of zoom available at a keystroke
    I just took an image into Photoshop CS 5 from LR (I bet the developers hate this comparison - there must be considerable, if friendly rivalry in Adobe!) and remembered the joy of just hitting  the "+" key maybe three or four times and then the "-" key till I have the image at the right size I want it and then throwing the image about with the hand tool in that way so that the image carries on after you let go (I can't remember what that is called -anyone help me?). It just seems much quicker and more intuitive than LR which lets you have one quick level of zoom and doesn't have that easy moving around of the image which PS has.
    I suspect that problem for developers in being able to do this in LR could be to do with the way that LR deals with previews and the fact that it probably has to load and compute any adjustments you have already made to the image before it can even give you a fully rendered image at any given size.
    Any feedback from LR developers or other people who agree with me would be much appreciated
    Steve
    PS Tried again to use  http://feedback.photoshop.com/photoshop_family  but keep getting 'Password is invalid' message when I try to post even though I have just signed in successfully. Nightmare.

    Hydephoto wrote:
    I suspect that problem for developers in being able to do this in LR could be to do with the way that LR deals with previews and the fact that it probably has to load and compute any adjustments you have already made to the image before it can even give you a fully rendered image at any given size.
    Any feedback from LR developers or other people who agree with me would be much appreciated
    It would be more than useful but I don't know if it's the previews or not.  You compared with PS but even with C1s workflow the zoom works as you'd expect and pretty fast too.  I'm sure Eric will give the scoop as to why LR handles it in this way.

  • Feature Request: more info in 'Reply' window

    Perhaps this has been requested before but I haven't seen it so please forgive what may be rehashing an old request.
    One thing I find inconvenient about responding to some Discussions posts is that in the "Post Message: Reply" page the user profile info about their Mac model, OS version, & other computer information is not displayed along with the text of their message. Since sometimes this info is critical to posting an appropriate reply, it would be useful to see it while composing a reply, just like it is in the threaded views of the topic's posts.

    Of course tabs in one window will all close if the the window is closed (the red close button vs the (x) in the tab).
    With a lot of tabs present in one Safari window, the tab names become highly truncated. Because of that it is too easy for me to accidentally close a tab by clicking on its "x" when I meant to click on its name, & too easy to lose track of which tab is which.
    It probably is less of a problem with a large screen, but on a 13" MacBook it can be quite annoying, particularly if I'm trying to leave some screen space available for referencing the contents of other windows besides Safari's for some Discussions reply.

  • Feature Request - More text capability

    I use Lightroom for all my photo printing, and would occassionally like to print greeting cards, with titles, location information, etc. printed on the back panel.  Unfortunately, the standard text blocks and identity plate don't provide enough options (eg. multiple lines of text - is there a way to do that?)  It would be very helpful to have the ability to add text blocks and position them as desired from within Lightroom - eliminating the need to create text in a separate application.  I see this included in the books option - can't you add it to other templates as well?
    Thanks

    Can you create a PDF from the Book Module and print from that? Seems like you might be able to kludge something together, although I haven't given it much thought.
    Hal

  • Feature request: keyword search like Google Toolbar

    One of the features (well, the ONLY feature) that keeps me from using Safari as my default browser is a feature I get through Google's Toolbar.
    After you type in keywords for a search in Google's toolbar. You can click on the word (in the right area) and it will automatically find the next occurrence of that word on the page. (You can alternatively clock on the "highlighter" icon and it will highlight any words in your search). You can find any individual word.
    Safari's feature to do this, as far as I can tell, is far less useful. After you type in some keywords. You can click on the magnifying glass and at the bottom, it has the ability to search for the keyword OR phrase, depending on how you search.
    Google's Toolbar feature is amazingly productive -- and useful. I can't figure out why none of the browsers have picked up on this feature.
    (If someone knows a way to do this with Safari, I'd appreciate it).
    Thank you.

    Thank you very much for the responses. I spent forever trying to find the feature request area in support, but failed. Perhaps it would have bitten me.... Thanks for the pointer...
    As for this capability, there's no reason why a browser couldn't support this feature -- doesn't matter that Google did it in a toolbar. And, in fact, if you click on the magnifying glass in the search box, it does allow you to search within the current page for what you searched for (though it's limited only to the "phrase"). It's at the bottom... You have to have words in the search box to see this.
    I'll make the suggestion directly to Apple.
    To anyone who hasn't used this capability -- it's really powerful. That said, you need the Google Toolbar which is only supported on Firefox, not Safari (on the Mac platform).

  • Feature request: better graphic acceleration in OSX guests under VMware Fusion

    It is currently not possible to run standard Mac applications (such as iMovie, iDVD) on an OS X guest under VMware Fusion, due to the lack of graphic accleration.
    Therefore I would like to post the following feature request:
    please add support for Quartz Extreme / Core Image graphic acceleration in OS X guests under VMware Fusion.
    Thank you!
    magoo2

    It is currently not possible to run standard Mac applications (such as iMovie, iDVD) on an OS X guest under VMware Fusion, due to the lack of graphic accleration.
    Therefore I would like to post the following feature request:
    please add support for Quartz Extreme / Core Image graphic acceleration in OS X guests under VMware Fusion.
    Thank you!
    magoo2

  • Feature request: Support for more than 2 monitors

    I currently use an external monitor for my critical editing/evaluation as my iMac display doesn't reproduce reds very well. I understand newer iMacs can support 2 external displays, obviously desktop machines can support as many displays as there are open slots for video cards.
    While editing a photo shot in portrait on a monitor set for landscape is not a problem, it would <really> be cool to have two external color-accurate monitors for developing/loupe views, one oriented in portrait, one in landscape, with the third (iMac in this case) showing the develop controls. Even if the two external monitors showed the same image, one would always be fullscreen in the correct orientation.
    MacOS and Windows both give the user control over all the displays connected to a given system, so driving a portrait and a landscape monitor simultaneously shouldn't be a problem from an OS/hardware standpoint.
    Is this something that can be rolled into LR4?
    Respectfully,
    Andre

    I use 3 or 4 monitors too, so that's one I'd like to see too.  We wouldn't want the request to get lost in beta land, so might I suggest adding the request to the Feature Request forum http://feedback.photoshop.com/photoshop_family where it can easily be tracked?  If you post the link to your request here, others can also vote on your request. 

  • Feature Request: support previews for png files

    hello,
    i like to see previews supported for png files.  This is a common file type and should be supported  Especially since it is one of the options supported for export to creative cloud from photoshop touch.  It would make a lot more sense.
    Thanks.

    You would want to go here for feature requests: Photoshop Family Customer Community
    Gene

  • Need security cert support - feature request

    The iOS version of Adobe Reader does support password-based encryption, but not certificate-based encryption.   We need certificate-based encryption for certain business functions.   When I tried reading a pdf file encrypted with a certificate on the iPad, Adobe Reader for iOS said, “The document has features that are not supported in this version of Adobe Reader”.   Please consider this a feature request to add this capability. 

    Hi Josh,
    Thanks for your feedback. But can you let us know which version of MRD client you are using on which device as to clarify and research more regarding your case.
    Thanks for your understanding and Support!
    Regards.
    Dharmesh Solanki
    TechNet Community Support

  • Blackberry Complaint / Feature Request - Please add category support for calendar Items already

    RIM: It's December 2010, and thousands of people have repeatedly asked for category support for calendar items for years now. In BB OS 5 & 6 we can assign categories to Contacts and Task items, but still not Calendar items? This makes no sense to me.
    Many people rely on categories to keep their calendar items organized, and I'm baffled as to why such a simple feature request has continued to be ignored. Obviously BlackBerry's DO support Outlook/Exchange category syncing, since I can see all of my custom categories through the Task and Contact apps. When I add a new category for a contact, it gets synced between Outlook/Exchange and my Blackberry. The support is there. But for a professional/business smartphone OS, I'm taken back as to how this feature could be missing from the calendar in the first place.
    Rim, please give us a response--a glimmer of hope--something to let us know that you are listening to us and plan on incorporating a category feature into the calendar! If the Blackberry OS didn't support categories at all, that would be a different matter and I would understand that maybe bit more development would be necessary to support this. But the capability is obviously already built in!!! 
    PLEASE listen to your customers RIM and give us this commonly requested feature as soon as possible!!!

    You're welcome.
    I'd also suggest you call your carrier blackBerry tech support and make the point there, asking them to give it consideration on the next OS upgrade. RIM does listen to their partners.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • OSB - Resume in Foreach Loop doesnt work

    Hi, I have used for each loop in osb proxy service message flow, and in the stage error handler i am using a resume action to resume the for loop in case of error for any loop. But then it actually doesnt work. In case of error it continues to next s

  • Canon 50D RAW: LR2.1 RC1 vs. ACR 4.6

    Will the RAW processing of a Canon 50D file be identical between LR2.1 RC1 and ACR 4.6? I ask because I want to do apples-to-apples comparison of high-ISO images from the 40D and the 50D. I'd prefer to process the images in LR, but only if LR is just

  • Automator For Mp3 to WAV

    I was wondering if anyone out there familiar with Automator knew of a way to automate converting MP3s to WAVs. It would be nice to just cntl click on an MP3 and have the automator open qiucktime and convert the audio file to wave. I never use automat

  • SQL Syntax for Access database

    This pertains to LV only due to the fact that LV requires a slightly different syntax for SQL statements for use with Access than what you will see in the Access Queries SQL view.  For instance, I discovered that if you use a  ?  for a character plac

  • My Ipod touch 2nd generation won't upgrade to version 4.2.1 from 2.2.1.!!! Please help!!!

    It is definitely a 2nd generation.  I purchased it second hand and it must have been restored to factory defaults.  I plug it into Itunes and it says I have the latest version.  Where do I find 4.2.1???