Identifying Key Owner without the Associated Key

Suppose my entity Key class implements the KeyAssociation interface to create "Data Affinity":
class MyKeyClass implements KeyAssociation {
private String key, associated;
public MyKeyClass ( String key, String associated ) ... // set fields
public String getKey() { return key; }
public String getAssociatedKey () { return associated; }
Now I wish to get the "Key Owner", but I without knowledge of the Associated Key. I.e., I at this time I only know the "main" key:
MyKeyClass keyClass = new MyKeyClass ("ABC123", null) // <-- pass null as the Associated key, because I don't know it yet!
partitionedService.getKeyOwner(keyClass);
Question - Will this work? Can Coherence provide me with the Key Owner using "ACB123" alone? Or will it try and call "getAssociatedKey()" and fail, because "null" is returned from that method.
Reasoning - I want to avoid an extra lookup. For example, my key may be {key:ABC123, associated:XYZ789}. To find "XYZ789" I have to do a lookup in a cache, which I really do not want to do.
Thanks.

899446 wrote:
Suppose my entity Key class implements the KeyAssociation interface to create "Data Affinity":
class MyKeyClass implements KeyAssociation {
private String key, associated;
public MyKeyClass ( String key, String associated ) ... // set fields
public String getKey() { return key; }
public String getAssociatedKey () { return associated; }
Now I wish to get the "Key Owner", but I without knowledge of the Associated Key. I.e., I at this time I only know the "main" key:
MyKeyClass keyClass = new MyKeyClass ("ABC123", null) // <-- pass null as the Associated key, because I don't know it yet!
partitionedService.getKeyOwner(keyClass);
Question - Will this work? Can Coherence provide me with the Key Owner using "ACB123" alone? Or will it try and call "getAssociatedKey()" and fail, because "null" is returned from that method.
Reasoning - I want to avoid an extra lookup. For example, my key may be {key:ABC123, associated:XYZ789}. To find "XYZ789" I have to do a lookup in a cache, which I really do not want to do.
Thanks.Hi,
In your example, MyKeyClass is the key for the object and the attributes {String key, String associated} must uniquely define this key. Passing "null" might it make it non-unique and also you cannot set the attributes of the objects' key later. The getAssociatedKey() leverages the attributes in your MyKeyClass to group the objects that share the same attribute. If "null" is used for the {associated} then all the keys with attribute "associated=null" will coexisit but the getAssociatedKey() call will not fail.
Re, the lookup you will use the same key as below:
MyKeyClass keyClass = new MyKeyClass ("ABC123", "XYZ789")
partitionedService.getKeyOwner(keyClass);You don't have any extra hop for this lookup as you pass the keyobject and get the owner of that key.
Hope this helps!
Cheers,
NJ
Edited by: user738616 on Mar 27, 2012 11:47 AM

Similar Messages

  • CRES encrypted mails even without the 'key' word

    Hi
    We have CRES enabled, and it does send out encrypted mails when we type in our "key" word in the subject or body.
    The issue is at times, when the selected user sends non-encrypted mails, the subject and the body of the email does not contain
    any of the "key" words, it even then encrypts the mail and sends it accross.
    We have observed this for a couple of users, so we removed these users from the Allowed list of users, who can encrypt their email,
    and re-inserted these users to encrypt, the mail, it works fine for them now.
    But now again another set of users are complaining of the mails being sent out as encrypted, thought they are not having any
    "key" words that are needed to send out the mail as encrypted.
    Any one faced this kind of issue or any work around for this, kindly advise.
    Regards,
    Tauseef

    Hi Tauseef,
    I would recommend you to use the Message Tracking so you can understand the message flow. The message is probably triggering the Encryption action.
    You could also use the Trace feature at:
    System Administration -> Trace
    So you can simulate a message and how the Cisco ESA will handle the message.
    If you are not confortable sharing the config (policies/filters) and the tracking in the forum, I would suggest you to open a TAC ticket so an Engineer can assist you identifying what is causing the message to be encrypted.
    I would say your Cisco ESA will not encrypt the message without a clear command to do so. The only question remaining is what is causing the action to encrypt to be triggered. I believe you know, but action can be triggered in a message filter, in a content filter and in a DLP policy. There is another option, using the Plug-in for encryptign the message locally but since you did not mention this, I am guessing this is out f the list. I would recommend reviewing the configuration and the message tracking data. That way you can determine what is causing the messages to be encryted.
    If you need further assistance from the forum, please share more data.
    I hope this helps.
    -Valter

  • Windows 8.1 Pro Shows me Identifier/Key ID & I have the Recovery Key File with 48 digits

    I also have the password written down on a piece of paper, neither one work. When I right click to unlock the Gold Lock, I type in the password it will not work, then the system shows me "Key IF: FCB##### number, it matchs the key on the digital file.
    Not matter what I try I haven't been able to unlock the 1T HD, it did encrypt the few files I had on the drive, then I was adding more, all was fine until I shut it down and tried to log into it the next day. Since then, nothing. Like I said I did save the
    file "BitLocker Recovery Key File" no good, won't unlock.Can anyone help?
    I even have a copy of it in the cloud

    Hi Encryptionist,
    How did you configure the Bitlocker ?Have you configured a password to unlock the drive?
    To unlock the Bitlocker drive ,we just need to input the password if we have configured it. If there are letters in the password ,please check whether the caps lock has been enabled .
    The recovery key is used when we forgot the password .The identifier ID showed in the inputting dialog should be corresponding with the ID in the recovery key files. Please ensure they are the same.
    If the issue persists, the specific drive may have suffered a corruption. Please use Bitlocker repair tool to recovery the data.
    You can refer to the detailed instruction in the link below:
    Repair-bde.exe Parameter Reference (it also applies to Windows 8.1)
    http://technet.microsoft.com/en-us/library/ee706528(v=ws.10).aspx
    Best regards

  • How do I unlock iPad without the previous owner?

    We have an iPad that is used for our media room.  Previous "owner" / Employee created the gmail account but has now left and cannot be located.  How do activiate the iPad without the previous "owner"?

    idk, you need the original receipt that was given with the original purchase. does the receipt for the install have the serial number for that particular iPad?
    has to have the serial number, date of purchase, and the location it was purchased from

  • How can I activate my iphone4 without the owners ID it was just given to me by a friend and we can't contact the owner of this....

    how can I activate my iphone4 without the owner's ID it was just given to me by a friend AND WE CAN'T CONTACT THE OWNER ANYMORE

    There is no other way. Without the correct credentials you won't be able to use it.
    Activation Lock cannot be bypassed, Apple will not help unless you have the original receipt (but not from some 3rd party)

  • I bought an iPod 5 on ebay, it's iCloud locked, how can I remove it from original owners Apple ID without the owners information?

    I bought an iPod on eBay, without knowing that it was iCloud locked. I contacted the seller and he said he bought it iCloud locked, and did not know the original Apple ID or password. Is there a way I can remove the iPod from the original owners ID without the original owners information?

    The only way is to have the AppleID and password of the ptrvious owner.
    Without that information, it is totally worthless to you. think iPod shaped brick,
    Return it to eBay and ask for a refund.

  • SCCM 2007 R2- How to identify the owner of the machine in SCCM.

    Hi All,
    Is there a way to know the owner of the machine in SCCM 2007 R2?
    Rgs,

    Hi,
    Who is the owner is really hard as you would have to write that information somewhere when you deploy it or dynamically afterwards if you mean the actual owner of the assett.
    the available options are either the last logon username.
    http://smsug.ca/blogs/garth_jones/archive/2007/06/30/482.aspx
    or the top console user, which is more reliant as last logon could be blank or wrong if for instance a technician logs on.
    http://msitpros.com/?tag=top-console-user
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • How to identify database records without using rowid.

    Hello,
    I want to find a way to identify records uniquely in my database without the use of the rowid.
    What I want to do is the following :
    I have a table that contains images. Something like that :
    Table images (id number, image blob).
    Lets say that in this table I have scanned images of persons, invoices and orders.
    I want to be able to associate a record with different records from different tables from my ERP via an association table.
    this table could be :
    Table image_associations (imageid number, rowid_column varchar2(100))
    The "rowid_column" would contain the rowid of the row that is associated with the image.
    The problem is that the rowid is something that changes (for example after export/import).
    So I do not want to use rowid.
    Any ideas?
    Thanks

    What you are saying is you want to avoid theaccepted relational design theory and subvert the
    fundamental principles of very model?
    Yes !!!!Then you are very short sighted and will fail. Why would you want to do this? How is it that you think you are smarter than the forefathers of our industry? an idea so compelling that huge companies have many massive profits implementing the concepts? (sometimes even properly) and how is it that you imagine you can work outside the concepts underlying those tools, within the tool and come to a better solution? this is arrogance surely.
    >
    I think a lot of people use rowid to identify within
    plsql code a record instead of using the table-key.
    There is very limited specific application of the ROWID for temporary reference within known bounds.
    You shouldn't rely on the ROWID. Think about what it actually is: a physical location address hash.
    Don't use it. Just don't.
    As I can remember from my classrooms (a lot of years
    ago) rowid was never mentioned in ER models. Still
    that helps a lot..For very good reason. Rowid is an implementation concept, and not a logical concept.
    Oracle already makes provision at the physical storage level to store BLOBs out of line with a record. You don't need to try to do this at the logical level as I said already.

  • Can Mac OS 10.2 support my G3 Wallstreet without the need of a hitch?

    I have an old G3 Wallstreet, 250 MHz with full RAM. I want to upgrade its OS to Mac OSX. What is the highest Mac OSX support my G3 WS without the need of Xfacor, something like that? I installed Mac OS 10.2 a few times unsuccessfully. Its screen became gray and mosaic. I do not mind to have Mac OS 9.2.2. before installing Mac OSX.
    I very much appreciate your advice.
    Robert

    Robert,
    Neither a dead main battery or dead PRAM battery will affect the stability of your powerbook. The PRAM battery (internal rechargeable backup battery) has a different purpose than the PRAM battery on a desktop machine. This article describes how it performs:
    http://support.apple.com/kb/TA24801?viewlocale=en_US
    Many powerbook owners will continue to use their laptops with a dead PRAM battery either because they are unaware of its condition or they just don't want to spend the time and money to replace it. Unlike a desktop computer, a powerbook will run just fine without it. You only have a problem if the PRAM battery develops an internal short and then the powerbook will not start or exhibit any sign of activity or life.
    I would run two tests on your Wallstreet to see if you have a problem with RAM or the HD; both tests are run in 9.x.
    -Download 'Newer Gauge Pro 1.1' to check your RAM. After installing this utility, reboot to 9.x while pressing the shift key (release key when you see 'extensions off') to minimize the amount of RAM that is used by the OS. You might let it loop for an hour or so to make sure it gets a thorough test.
    http://www.macupdate.com/info.php/id/4512
    -Next, boot to your 9.x CD > open the Utilities folder on the CD > launch Drive Setup > select Test Disk from the dropdown menu. This is a non-destructive test and will take time since it reads/writes to each sector. If it finds a problem, you will want to reinitialize the HD using the option to zero all data, then run Test Disk again. Repeat one more time (zeroing) if the first attempt fails. If it still fails, replace the HD. I can't recall if Test Disk tests each partition separately or will test the whole HD...you will discover the answer to this. If the HD needs zeroing, zero the whole HD, then recreate the necessary partitions. You can fing all the necessary info for Drive Setup in Drive Setup Help once it is launched.

  • Adding form pagination without the wizard

    Hello,
    I'm trying to add a form pagination feature into an existing page. When I'm trying to use the Create Form Pagination Wizard I'm getting the following error: "The Create Form Pagination Wizard uses the onChange JavaScript event to alert users when they are about to exit a page without saving their changes. Remove the onChange event from any item with a source of Database Column and restart the wizard."
    I have many items on this page with onchange event, and I really don't want to erase all of then, using the wizard, and retyping them again. Is there a way to bypass this problem? I'm actually looking to use the " Get Next or Previous Primary Key Value" process. Can I manually create this process without the "help" of the wizard?
    Thanks,
    Arie.

    Arie - Perhaps you could create a temporary form page with a "clean" form and then create the form pagination process there. Then copy that process to your existing form page. After the copy, edit the process and change all the item names, column names, etc., in the process definition page and create any items required to support it. Finally, delete the temporary form page.
    Scott

  • I want to put my iTunes library on an external hard drive but leave my favourite songs on the computer to access without the external hard drive and when using iMovie. Is there a way to do this?

    I have filled my hard drive, half with music, half with photos. I want to take my music off, and put it onto an external hard drive. However, I would still like to have access to favourite songs and playlists when the external hard drive isn't plugged in. I would also like to access this music to use with iMovie. Is there a way to do this?

    You will have to engage a split library which means you will have to start answering questions on this forum because you will need to learn a lot about how iTunes works in order not that have a big mess at the end of it all.  It also won't be easy when the time comes to relocate it all to different drives.
    You can go to advanced preferences and turn off organize media and copy to items to media folder when adding items to library.  Next read about how to selectively consolidate items to the external drive.
    Sept. 2010, Consolidate selected content - https://discussions.apple.com/thread/2589812 and April 2014, https://discussions.apple.com/message/25414357
    "...selected the new tracks directly in iTunes, Control-clicked on the selection, and saw that now you can consolidate selected items." - http://hints.macworld.com/article.php?story=20090919000326840
    Remember that when you start iTunes without the external drive turned on iTunes will present you with a bunch of broken links.  If you have automatic downloads enabled with iCloud you may have to turn that off to prevent iTunes from repopulating your drive trying to deal with those "missing" tracks.
    If you add tracks in bunches to iTunes and want them to go to different media folders you will need to either add them by holding down the option key while dragging if the desired media folder is not the one set in preferences, or by changing the media folder in preferences.  Changing media folder preferences only applies to new files added, not old ones.
    Okay, I am going to stop typing because you might just reply to me, "Oh, okay, forget it," and I don't need the exercise.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391

  • How can i print an email without the attached pictures printing as well?

    I am trying to print an email that has pictures attached. I do not need the pictures to be printed.
    The pictures are showing in the body of the email.
    When I try to print it scales down the text to make two of the pictures fit on the first page.
    How do I change this so I can print the text separately?

    If the sender embedded the image instead of attaching it then you could try selecting only the text before printing That should print without the images. Thunderbird will only prints what is selected unless there is nothing selected. Then it prints all. You can test this with Print Preview.
    If the image is truly an attachment, then go to the menu bar and select View and uncheck Display Attachments Inline.
    No menu bar? Press the alt key.

  • Is there a way to move an arrow connector in Microsoft Word without the line shape altering

    I am trying to create an Entity Relationship Diagram in Microsoft Word and in doing so I am trying to connect the foreign keys to what they reference. When I do so, I try to move the one end of my arrow connection to that column name but when I do so the
    whole line changes shape. Is there any way that I can move just the one arrow connection to the column it should reference without the arrow line altering its shape?
    Thanks for your review and am hopeful for a solution.

    Hello,
    Seems that your question is not about developing the Word,
    Word IT Pro Discussions forum is more suitable for you. If you're drawing the diagram programmatically with VBA or Add-in, then please post the code you have done here, so that we can easily reproduce the problem and troubleshoot it. Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Mac OS no longer available after trying to remove Windows on Bootcamp. How can I restore Mac OS without the Mac HDD in options?

    Mac OS no longer available after trying to remove Windows on Bootcamp. How can I restore Mac OS without the Mac HDD in options?
    So what I did was, I had bought my iMac from a shop and asked them to do bootcamp for me. However, they installed 32 bit instead of 64. My fault, I did not make my self clear about it. So after it has been delivered to my house, I realized that I wanted the 64 bit. I tried to remove windows on bootcamp but honestly, I have not experienced this before. So I failed. I believe, I did something wrong.
    So I opened the iMac and it keeps asking me to go to windows. Windows OS also corrupted.
    I tried the Option Key but the only option is Windows 7 only. So using a different keyboard, I press option and it only shows Windows HDD and the Mac HDD has gone.
    What am I going to do? How can I restore Mac OS without the HDD anymore?

    iMac, Mac OS X (10.7.2)   < your profile
    Try using Lion Recovery

  • How to Install Windows 7 Without the Disc

    1a)  Here is very useful article from PCWorld.com. The article is entitled "How to Install Windows 7 Without the Disc" and means just what it says. The article also has links to Magical Jelly Bean Keyfinder and legitimate Windows 7 ISOs from Digital River, a licensed distributor of Microsoft software. The article lists "Step 1" as;
    "Find your Windows 7 product key: Typically this 25-character alphanumeric string is printed on a sticker affixed to your PC or on documentation included with your PC. Alternatively, you can use a keyfinder program such as Magical Jelly Bean Keyfinder to pull your product key from the Registry. You need your product key to reinstall Windows."
    1b)  Using a key finder, however, is only useful if the Windows 7 product key was printed on a sticker (Microsoft Certificate of Authenticity) affixed to your PC, on documentation included with your PC, or sent via email by Microsoft. Assuming your computer came from one of the big brand computer manufacturers... HP, Sony, Dell, Gateway, etc... as most do, it uses a generic "mass activation" OEM SLP key. Trying to use this key by itself isn't going to work. This OEM SLP key needs to be mated with an OEM SLP certificate and an appropriate OEM BIOS with a proper SLIC table.
    1c)  Here is where ABR Beta With Windows 7 Support comes to the rescue. Follow the "How to use it" section of ABR for Windows Vista for information and instructions on how to use ABR. The steps listed for Vista apply to Windows 7 as well. Perform the "activation backup" to "backup" and save the OEM SLP key and OEM SLP certificate. Save the entire ABR folder to an external location for later use. This will allow you to pre-activate your "clean" Windows 7 install on the computer you pulled the key and certificate from.
    1d)  Now install Windows 7 from your new "Windows 7" disc or USB stick, following all prompts as needed. Don't enter a Windows 7 product key if request. Also, don't allow Windows to try to auto-activate. Once Windows is fully installed, run ABR "activation restore" to "restore" the previously backed up product key and certificate to the new Windows 7 install. Verify that Windows is activated, repeat "activation restore" if needed.
    2)  Here is another useful article, this time from SevenForums.com. This arcticle is entitled "Clean Reinstall - Factory OEM Windows 7" and provides detailed steps required to backup your computer, audit current hardware and software, locate software and drivers, install and activate Windows 7, and create a Windows 7 Backup Image of your fresh install.
    Good luck.
    Links to additional Windows 7 SP1 "Editions" and "Languages" can be found HERE and HERE.
    Link to "ei.cfg Removal Utility". The "ei.cfg Removal Utility" is a simple tool that will remove the ei.cfg  from any Windows ISO disc image, thereby converting the image into a "universal disc" that will prompt the user to select an edition during setup instead of being forced to use different discs for different versions of Windows 7.
    Direct link to Windows 7 USB/DVD Download tool.
    <Cross posted to Notebook Operating Systems and Software for Notebook, Laptop, and Netbook users>
    EDITED by Frank on 8/28/2013
    Please click the white KUDOS star to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

    ervis,
    Before formatting the hard drive you should have been able to use the HP Recovery Manager to create your recovery discs or perform a system recovery. This is provided the recovery partition wasn't already corrupt or damaged. If the "D:" HP Recovery partition is missing or damaged and you don't have a set of HP Recovery Discs, you will need to use the information in my previous post to get your computer up and running again.
    The information in the document referred you to applies to several different "types" of installations;
    Using ABRbeta is only needed if you have an active OEM factory SLP (system locked preactivated) installation of Windows. You use ABR to pull the factory key and certificate off the computer, to reuse it on the same computer with a clean Windows install.
    If you are just installing Windows and are going to use the Windows 7 product key on the COA on the side of your computer, all you need to do is download the same version of Windows that your key is for and burn the ISO. Now install Windows answering or following all prompts as needed (except do not enter the Windows product at this time... it will be entered later). Once Windows has completely installed, enter the key and activate it. Your Windows 7 OA key should work on a SP1 install without issue.
    The only thing I see that could mess things up, is the language of the install. If you are still having trouble activating Windows, please reference the ISO you download and a post a photo of your Windows COA
    with the key erased or Xed out.
    Please send KUDOs
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

Maybe you are looking for

  • Difference between sy-uline and uline

    Hi All, Any one of you please update me what is the difference between sy-uline and uline. Also when i give sy-uline in top-of-page event it gives error. Thanks sankar

  • How to get the data of table from JSP to Servlet?

    Hi, I have a dynamic editable table of 3 columns on a jsp. On click on any cell the usr can edit the data. Now on click of submit button on the jsp I need to submit or get the whole data of all the rows to a servlet which would further process it. Ho

  • Orientation of iPhotos photos in Web Gallery

    Does anyone know why it is that when I upload pictures from my camera to iPhoto, create an event and album, rotate the pictures that are not upright, and then publish the event/album to Web Gallery that the pictures that I rotated in iPhoto are no lo

  • USA Today App

    The USA Today Paper app is for free. Starting having problems with old app and then I updated with the new app and now nothing happens at all, cannot get it. Any clues?

  • Getting the currnet system date

    Hello to all. I am trying to figure out how to get the current time of the OS being used. I am using Windows XP Media Center...not like that matters since Java is unicode, but I cannot figure out how to do it. Right now I am asking the user to input