Differenciate Between Hash....

Hi there,
Please help me with differences between HashTree, HashTable & HashMap
Also what exactly is HashCode ???
Thanx in advance
Harmeet

Hi there,
Please help me with differences between HashTree,
HashTable & HashMap
Also what exactly is HashCode ???
Thanx in advance
HarmeetHashing is a means to reduce the retrieval-time of an object in a
collection. For doing this the collection uses a HashCode.
The hashcode is an integer (in Java) which is used for retrieving the
object by.
The hashed collection contains a number of locations where the objects
can be stored under. Each of this locations has a name (hashCode) and
each such location is called a bucket.
When a new object is added to the hashed collection:
1 - the hashcode for the object is calculated
2 - the bucket for the hashcode is retrieved
3 - the object is added to the bucket for its hashcode.
When an object is retrieved from the hashed collection:
1 - the hashcode for the object is calculated
2 - the bucket for the hashcode is retrieved
3 - the object is retrieved from the bucket by comparing the
objects in the bucket to the given object.
So the hashcode is the code used for retrieving the object.
This hashcode should follow the following rules:
1 - The hashcode for an object should always be the same
2 - When two objects are equal, their hashcode should also be the same
This does not mean that the hashcode should be different when two objects are not equal.
3 - When overriding the hashcode-method for the object, you should always also override
the equals method for the object (following rule 2)
There are two additional rules which are not binding, but should be followed for achieving a good
performance of the hashed collection.
4 - The hashcodes for the objects should be spreaded as much as possible,
which will result in a better spreading of the objects over the buckets,
and thus a more uniform and smaller retrieval time for the objects in the hashed collection.
5 - The hashcodes for the objects should be very fast to calculate.
Since the hashcode is calculated every time an element is retrieved or added to the collection,
this could easily become a bottleneck when the calculation is complex.
There are additional rules for the collections in order to get the maximal performance for the
collection:
1 - You can adjust the initial size and the load-factor for the hashed collection.
Look for the optimal size for the hashed collection.
2 - Never use the synchronised variant HashTable instead of the non-synchronised variant HashMap
when you do not need this specific map to be synchronised.
HashMap is a Map using hashing for the keys
HashTable is the synchronised (and old) variant of HashMap (not to be used any more)
HashTree (??) does not exist in Java 1.4.x
kind regards,

Similar Messages

  • What's the difference between a web site and a web application?

    I'm stumped trying to come up to a difference between a web site and a web application for myself. As I see it, a web site points to a specific page and a web application is more of some sort of 'portal' to content and information.
    But where I'm stuck is that a web application is still viewed through a browser (is it not?) and a web site can still view content dynamically, making the line between web site and application prety gray.
    For instance, does a web site using ASP.NET or AJAX (I assume ASP.NET is AJAX's proprietary sibling, if not, ignore ASP.NET AND concentrate on the AJAX), becomes a web application because it can retrieve data dynamically and asynchronously or would a website
    using PHP and a CMS be more of a web application because it forms the pages on request, based on the request of the client and its content in its databse?
    Or maybe I'm totally wrong here - what differenciates between a web application and a website?
    http://support.peopleperhour.com/entries/68630566--C-mon-lets-Watch-The-Other-Woman-2014-full-movie-online-free
    https://glossicom.zendesk.com/entries/68643806--%D0%BC-v%C9%AA%C9%9Bc-%C3%A4st-Watch-The-Lucy-2014-full-movie-free
    https://cloudhance.zendesk.com/entries/68115098--%D0%BC-v%C9%AA%C9%9Bc-%C3%A4st-Watch-The-Lucy-2014-full-movie-free
    This is totally personal and subjective, but I'd say that a website is defined by its content, while a webapplication is
    defined by its interaction with the user. That is, a website can plausibly consist of a static content repository that's dealt out to all visitors, while a web application depends on interaction and requires programmatic user input and data processing.
    For example, a news site would be a "website", but a spreadsheet or a collaborative calendar would be web "applications". The news site shows essentially the same information to all visitors, while the calendar processes individual data.
    Practically, most websites with quickly changing content will also rely on a sophisticated programmatic (and/or database) backend, but at least in principle they're only defined by their output. The web application on the other hand is essentially a program that
    runs remotely, and it depends fundamentally on a processing and a data storage backend.
    http://support.peopleperhour.com/entries/68125597--%D0%BC-v%C9%AA%C9%9Bc-%C3%A4st-Watch-The-Lucy-2014-full-movie-free
    https://cloudhance.zendesk.com/entries/67541393--Watch-The-Godzilla-2014-free-Online-Full-Movie-HD-Quality
    http://support.peopleperhour.com/entries/68168787--Watch-The-Godzilla-2014-free-Online-Full-Movie-HD-Quality
    https://glossicom.zendesk.com/entries/68161538--Watch-The-Godzilla-2014-free-Online-Full-Movie-HD-Quality
    There is no real "difference". Web site is a more anachronistic term that exists from the early days of
    the internet where the notion of a dynamic application that can respond to user input was much more limited and much less common. Commercial websites started out largely as interactive brochures (with the notable exception of hotel/airline reservation sites).
    Over time their functionality (and the supporting technologies) became more and more responsive and the line between an application that you install on your computer and one that exists in the cloud became more and more blurred.
    If you're just looking to express yourself clearly when speaking about what you're building, I would continue to describe something that is an interactive brochure or business card as a "web site" and something that actually *does something that feels
    more like an application as a web app.
    The most basic distinction would be if a website has a supporting database that stores user data and modifies what the user sees based on some user specified criteria, then it's probably an app of some sort (although I would be reluctant to describe Amazon.com
    as a web app, even though it has a lot of very user-specific functionality). If, on the other hand, it is mostly static .html files that link to one another, I would call that a web site.
    Most often, these days, a web app will have a large portion of its functionality written in something that runs on the client (doing much of the processing in either javascript or actionscript, depending on how its implemented) and reaches back through some
    http process to the server for supporting data. The user doesn't move from page to page as much and experiences whatever they're going to experience on a single "page" that creates the app experience for them.

    ...can i make as many iweb websites as i want? ...and as many blogs as i want? ...i have never made one before....
    ....although, i do have my own small business and i do have a website that i paid a guy to make and also host....(which is a waste of $$$$ in my opinion as i think i can do a better job making one myself through iweb) ....
    ...anyways, i know it is splitting hairs but what exactly is the diff b/w a blog and a website ....i am under the impression that a blog is just a personal newsletter sort of thing,...?

  • Differenciating between Balance Sheet and P&L Reports

    Hi,
    From a SAP BI perspective, is it a right way to differenciate between Balance Sheet and P&L Reports based on Account Type ( IS- for P&L Reporting and BS- for balance sheet reporting).
    Thanks
    Rashmi.

    If your General Ledger accounts, for the Chart of Accounts in use in your R3/ECC source environment, have the account type populated for each account as BS for Balance Sheet accounts and IS for Income Statement (P&L) accounts, then that should work for separating accounts for Balance Sheet and P&L reporting.
    However, if this doesn't always hold true, another way you can do this is by using the XBILK (Indicator: Account is a balance sheet account?) field on SKA1 where X denotes a Balance Sheet account and blank denotes an Income Statement account.
    Either way, you should validate with your FI Functional Consultant or FI business person to determine that your thought or the alternative I provided is correct. I say this because there may be reconciliation accounts that will are identified as Income Statement accounts, but the business doesn't want them to be reported (and in most cases they aren't reported - at least in my experiences).

  • Difference Between Legal Consolidation and Management Consolidation

    Dear Experts,
    Kindly help me to know
    1) To Differenciate between Legal Consolidation and Management Consolidation Theoritically?
    2) To Differenciate between Legal Consolidation and Management Consolidation Technically in BPC?
    3) What is impact on /Difference on Business Process Flow in BPC in case of Legal Consolidation or Management Consolidation? (What should be done in Management COnsolidation and Legal COnsolidation in BPF in BPC)
    Thanks in Advance
    Ritesh

    True accounting/legal consolidations encompasses the three following elements:
    1.  the general ledgers of the entities
    2. elimination entries between entities (inter entity transactions such as sales/cost of sales, a/r and a/p etc.)
    3. adjustments for partially owned entities
    Using the legal app, rate and ownership apps, and the proper configuration, outlooksoft achieves a legal/accounting  consolidation.  Accounting consolidations also link to a legal hierarchy of entities.
    Any consolidation that is referred to as management or financial consolidation etc. can have differing connotations.   In Outooksoft  software,  management consolidations does not include item 3.
    However, when the terms are used by the client they can have different meanings.  They could mean either :
    A true legal consolidation BUT tied to the  Management hierarchy of entities (as  opposed to a legal hierarchy) OR An aggregation without item 3 above and tied to the Management hierarchy of entities.
    9 times out of 10, clients usually want the first  rather than the second alternative.  Financial statements
    rolled up using legal consol should equal that using management consol.
    However, when clients do planning, they may have their entities plan as if they were fully owned. They could also have their entities provide actals for less than 100% in the case of partially owned entities.   In these cases, you have to adjust appropriately.
    From an Outlooksoft config point of view, you need the legal, rate and ownership app and the related configuration for a legal consolidation.  Management consol depends on client definition and client practice in the data that they collect from the entities.
    In the area of BPFs, the key difference between legal and management COULD be the steps (1-3) and the maintenance of the different hierarchies and ownership values.
    Hope the above helps.

  • Difference between SPRO and SPRO_ADMIN

    When I create a project using spro_admin, it is not listed when I use SPRO, wonder whats the difference between these two and when is it appropriate to use either
    thanks

    Hello Hariharan,
    the differences are as follows:
    <b>SPRO_ADMIN - Customizing: Project Administration</b>
    The classical "old transaction" to define customizing projects.
    This is were before the times of SAP Solution Manager the framework for the customizig project would be defined, such as:
    - what is the general scope of my projects (in terms of wich applications do I need to customize)?
    - what are the valid project standards?
    - who is working in my the project team etc.?
    <b>SPRO - Customizing: Execute Project</b>
    Once the project has been defined in SPRO_ADMIN, you can perform the customizing in this transaction alongside the so-called project IMG (= Implementation Guide). Alongside this guide the SAP system is adjusted and documented to the customer-specific settings. The actual customizing work will be performed making use of the project standards defined in SPRO_ADMIN.
    Why you did not see your project in SPRO: Here you see only your list of project favorites (unlike in SPRO_ADMIN where you see ALL customizing projects contain in the system in which you are working). What you can do is include this project in your favorite list with the respective icon <i>Add to worklist</i> right below the table view.
    <b>TODAY: With SAP Solution Manager</b>
    transactions SPRO and SPRO_ADMIN are implicitely used.
    That is:
    1. for SPRO_ADMIN you do no longer have to generate the customizing projects manually for every single SAP system but you do this centrally from SAP Solution Manager using transaction SOLAR_PROJECT_ADMIN (<i>System Landscape</i> tab, <i>IMG Projects</i> tab)
    2. for SPRO you do no longer seperately start this transaction but from within the SAP Solution Manager transaction SOLAR02, <i>Configuration</i> tab.
    Template, implementation and maintenance projects are NOT created in SPRO_ADMIN, they are solely created in SOLAR_PROJECT_ADMIN.
    I hope this information helps you to better differenciate between the named functions.
    Best regards,
    Doreen

  • India Localization - How to Distribute Tax Amount between 2 Accounts

    Hi Please help me.
    I have a scenario:
    My Client want to take 50% Tax amount to Tax Account and 50% Tax Amount to Expense Account in case of VAT/Excise Duty.
    Example: Transaction Amount is 10000 INR TAX @10% (then tax amount would be 1000) when we calculate the tax 500 should hit Tax Account & 500 should hit Expense Account.
    How to Implement this solutions please help me on this.
    Thanks
    Bharath

    To distinguish between no submission and zero, have 2 keyfigures in your layout. One for Amount, the other for valid value.
    If the user enters zero in amount, they have to put 1 in the keyfigure "valid value" to indicate zero is avalid value. Put this as a check while saving the data. Also, when the data is saved, automatically put a value of 1 in "valid value" keyfigure, for nonzero Amount. In otherwords , all valid amounts 0 and non zero have value 1 in the "valid value" keyfigure.
    this way you can differenciate between 0 and null.
    Hope this helps
    -NS

  • Error while creating Goods Receipt.

    Hi all,
    I am generating a goods receipt against the purchase order but the system is showing me an error message when i click the check button, the message is: Number range for Trans/event type WE in year 2011 does not exist. Now when i go in the detail of this message it says: "A key allowing the user to differenciate between transaction and events that occur in Inventory management.  the transaction/event type controls the processes of document storage and document number management."
    Document no. range is already there for 2011 for doc type WE (#50).  Automatic posting configueration is correct. Than what could be the problem.
    Please suggest.
    thanks,
    kamal

    HI,
    Kindly check the WE document type in the T.code  OBF4, If you have maintained it year wise then u have to define the number range for every year i.e for eg
    NO 50 (for doc type WE),year 2011,from no 190000000, to no 199999999
    NO 50 , year 2011, from no 190000000, to no 199999999
    You have to maintain it for each and every year
    If you define the Number range irrespectie of year then you have to config like below
    no 50 , year 9999 , From no 190000000, to no 199999999
    You have to maintain only if the numbers has got exhausted in the system.
    Kindly check once again
    thank you
    D vasanth

  • MM_EKKO Archiving - PO deactivated

    Hello all,
    In R/3 4.6C i made a test run for MM_EKKO archiving object, the spool result differenciate between PO archived and deactivated. Could you please explain me the difference?
    One more question, the test run shouldn't se the indicator for deletion, is it correct? it seems that in my test run the system modified all PO insered into archiving selection.
    Thank you for collaboration.
    Fuffo

    Deactivated means that you have executed a 2-step archiving.
    You have different residence times. SAP set the deletion flag if residence time one is met, but residence time 2 not yet.
    If both times are met, the PO gets archived.
    for examples see OSS note 948493 - Residence time in new reports RM06EV47, RM06BV47
    You probably have customized the test variant for MM_EKKO as production variant, other wise SAP would not have updated your database.

  • Values of excise invoice in to the sales Document/Billing document in depot

    Hi all,
    I have configured Depot sales (For Imports) successfully; I have created sales order (VA01), Delivery Document and PGI (VL01N), Excise invoice for delivery at depot (J1IJ) and Billing Document. But BED, SED, AED and CESS values are not coping in to billing document (I have not yet maintained UTXJ condition record so far) Is it necessary to maintain UTXJ condition record.
    Please Can any one explain me in detail from where exactly BED, SED, AED and CESS values will be copied into the Billing document I mean, values will be picked from Condition record(UTXJ) or Excise invoice(J1IJ) which is created with reference to source document(J1IG).
    Thanks and regards
      Swamy HP

    Hi swamy
    If u want a differenciate pricing for two different customer.. Thatmeans when u create normal invoice for normal customer it should pick up normal pricing procedure.
    If u are raising Cin invoice to customer then it should pick up Cin Pricing Procedure.
    For this  u have to create two pricing procedures
    one for normal
    one for Cin
    and u have to create two different Customer Pricing procedure and Document Pricing Procedures.
    U have to create two order types and delivery and billing types
    IF u done all these then u will make differenciate between customers.
    Because v have created this process
    Any quries revert back to me.
    Regards
    Srinivas.

  • A big list of "Pre-buying-my-iPhone" questions...

    ...so, tomorrow will be taking me to the nearest city in search of an iPhone.
    But to save me bugging the poor sales guy for a few hours on end, can anyone answer me this (rather long) list of questions please...?
    1. Does the iPhone have...
    -a) support for syncing contacts to yahoo mail's address book?
    -b) support for syncing contacts to gmail's address book?
    -c) a memopad?
    -d) an alarm? and can you customise the alarm sound to one of your own mp3s?
    -e) facebook support (in an app, not over m.facebook.com)?
    -f) google talk support?
    -g) slingplayer?
    -h) flickr upload capabilities?
    -i) pacman?
    -j) an rss reader?
    -k) ability to sync to and from google calendar?
    -l) ability to sync to and from MULTIPLE google calendars, and differenciate between them?
    -m) ssl in web browsing (the ability to use secure web pages)
    -n) a speakerphone? is it loud?
    -o) a vibrate function?
    -p) the ability to read pdf's that i get emailed?
    -q) the ability to download photos from my pc onto it?
    -r) the ability to upload photos from it to my pc?
    -s) a video playback function? what formats will it play?
    -t) flight mode?
    2. if i buy it on the £45 plan (and get the 8gb for free), can i drop my plan to the £35 after a certain length of time? how long? are there any penalties or charges for doing so?
    3. if i buy it in an apple store, and it goes wrong, can i take it back to an o2 or carphone warehouse store for help (and repairs if necessary)?
    4. if i buy it in an o2 store, can i take it back to another o2 store (not the one i buy it from) if theres a problem?
    5. if i buy it, is there a "change your mind" period if i don't get along with it, if i buy it in...
    -a) an apple store
    -b) an o2 shop
    -c) carphone warehouse
    6. if i want to bring a number from another network, do i need the pac code when i buy the phone, or can i call through the pac code next week (and presumably be connected on a temporary mobile number in the meantime)?
    7. when i near the end of my 18 month contract, how long before the end of the contract can i upgrade my phone? can i opt to pay a fee to do it ultra-early?
    8. apart from crippled bluetooth and a lack of mms, are there any big downsides to the iphone?
    9. if i set up my gmail on the phone, does it check automatically every (x) minutes, or do i need to manually check to see if i have new mail?
    10. whats the average battery life of a 3g iphone in real everyday use?
    11. can i set my own mp3s as ringtones?
    12. does it support video ringtones?
    13. can you get msn messenger on it? and does it keep you signed in even when youre not using it?
    14. do you HAVE to use itunes to get music onto the iphone? is there an alternative?
    15. is there a way to put photos onto the iphone from the pc, without "syncing" a whole folder of photos through itunes?
    16. can you just move stuff (like photos, videos) to and/or from the iphone like you would do with a usb memory stick drive, or do you have to use the program?
    17. do the iphone tariffs include bills sent through the post? are they itemised? or do you have to view your bills online?
    Thankyou if you've got this far, you've been a great help

    billbennett wrote:
    -c) a memopad?
    There is a note pad plus a ton of different memo apps in the App Store
    -d) an alarm? and can you customise the alarm sound to one of your own mp3s?
    You cannot customize alarm sounds.
    -e) facebook support (in an app, not over m.facebook.com)?
    Check out the App Store
    -f) google talk support?
    Check out Google App
    -i) pacman?
    Check the App Store
    -m) ssl in web browsing (the ability to use secure web pages)
    Yes
    -n) a speakerphone? is it loud?
    Works fine for me. Try one in the store and see if it is adequate for you.
    -o) a vibrate function?
    Yes
    -q) the ability to download photos from my pc onto it?
    You can save photos to the iPhone but they will be optimized for the iPhone
    -r) the ability to upload photos from it to my pc?
    Yes
    -s) a video playback function? what formats will it play?
    Read the spec page on Apple's website
    -t) flight mode?
    Yes
    8. apart from crippled bluetooth and a lack of mms, are there any big downsides to the iphone?
    Play with one and decide for yourself. Personally, I don't care about bluetooth or MMS but if those are big deals to you, the iPhone is not the phone for you.
    9. if i set up my gmail on the phone, does it check automatically every (x) minutes, or do i need to manually check to see if i have new mail?
    That's your option.
    10. whats the average battery life of a 3g iphone in real everyday use?
    It depends on how you use it.
    11. can i set my own mp3s as ringtones?
    If you use the search box in the upper right, you can find lots of threads on how to create your own ringtones.
    12. does it support video ringtones?
    No
    13. can you get msn messenger on it? and does it keep you signed in even when youre not using it?
    Look in the app store. If you're not using it, it shuts down.
    14. do you HAVE to use itunes to get music onto the iphone? is there an alternative?
    You have to use iTunes.
    16. can you just move stuff (like photos, videos) to and/or from the iphone like you would do with a usb memory stick drive, or do you have to use the program?
    You have to use iTunes and whatever photo software you have. It does not have a disk mode.

  • Customer master creation(VD01)

    Hi all,
    As soon as we create an Customer by using VD01 or VD02 it goes into general data.
    But in this transaction we have 3 views General data ,  Company code data and Sales area data.
    Here how can I differenciate between this 3 views, ie if i create a custoemr it automatically goes to general data view here how can i find it is in general data view.
    My requirement is i need to block creation of general data views for some set of users and for some set of users i need to allow them for Company code data view.
    regards,
    Smitha Saran

    Hi,
    your requirement seems related to an authorization customizing.
    General data maintenance is protected by authorisation object F_KNA1_GEN
    Company code is protected by authorisation object F_KNA1_BUK
    and Sales area is protected by authorisation object V_KNA1_VKO
    I guess, if the users that tdo not have general data maintenance could have F_KNA1_GEN display only authorisation (03).
    Hope this helps
    BR
    Alain

  • How forms know when Report Server is down

    Environment: Oracle Developer Suite 10g 10.1.2.0.2 R2
    os :windows xp
    I have button to call a report object :when-button-pressed
    declare
    v_report_name VARCHAR2(30):='REQ010';----report name without .rdf
              v_repid REPORT_OBJECT;
              vc_rep VARCHAR2(20);
              vc_rep_status VARCHAR2(20);
              vc_URL VARCHAR2(100);
              vc_rep_job VARCHAR2(10);
              Plist ParamList;
              dummy NUMBER;
              Report_Plist_name VARCHAR2(30) := 'REPORT_PARAM_LIST';
              REPORT_NOT_GENERATED EXCEPTION;
              PARAMETER_LIST_SECTION_PROBLEM EXCEPTION;
    BEGIN
    --=========================================================================          
    BEGIN     
                        --prepare the list of parameters to be sent to the report
                        Plist := Get_Parameter_List(Report_Plist_name);
                        IF NOT Id_Null(Plist) THEN
                             Destroy_Parameter_List(Report_Plist_name);
                        END IF;     
                        Plist := Create_Parameter_List(Report_Plist_name);      
                        IF Id_Null(Plist) THEN
                             dummy := Show_Alert('PARAM_LIST_CREATION_PROBLEM');
                             RAISE Form_Trigger_Failure;
                        END IF;
                        --Add parameter(s) to list just created
                        Add_Parameter(Plist, 'P_REQUEST_ID', TEXT_PARAMETER, :CUSTOMER_REQUESTS.CR_REQUEST_ID);
         EXCEPTION
    WHEN OTHERS THEN
    raise PARAMETER_LIST_SECTION_PROBLEM;
    END;
    --=============================================================================
              --START THE REPORT     
              v_repid := FIND_REPORT_OBJECT(v_report_name);
              vc_rep := RUN_REPORT_OBJECT(v_repid,Plist);
              vc_rep_status := REPORT_OBJECT_STATUS(vc_rep);
    --=============================================================================
    BEGIN          
                        IF vc_rep is NOT NULL THEN
                                  -- Wait until report finishes or produces an error
                                  WHILE vc_rep_status in
                                  ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')
                                  LOOP
                                       vc_rep_status := REPORT_OBJECT_STATUS(vc_rep);
                                  END LOOP;
                                  -- Display the report if it is finished
                                  if vc_rep_status = 'FINISHED' then
                                                      vc_rep_job := substr(vc_rep,instr(vc_rep,'_')+1);
                                                      message('Report Completed');
                                                      vc_URL := '/reports/rwservlet/getjobid' ||vc_rep_job||
                                                      '?server='||get_report_object_property
                                                      (v_repid,report_server);
                                                      Web.show_document(vc_URL,'_blank');
                                                      -- Display an error if the report errored
                             END IF;
                        END IF;                              
    EXCEPTION
    WHEN OTHERS THEN
    raise REPORT_NOT_GENERATED;
    END;
    --=============================================================================
    Destroy_Parameter_List('REPORT_PARAM_LIST');
    EXCEPTION
    WHEN REPORT_NOT_GENERATED THEN
    msgbox('Error Calling Report');
    --Causes: 1-Report file name is incorrect,check report name and existance.
    -- 2-Or, Report Server is Down.
    WHEN PARAMETER_LIST_SECTION_PROBLEM THEN
    msgbox('CHECK PARAMETER SECTION ');
    WHEN OTHERS THEN
    msgbox(SQLERRM);
    END;
    Problem:
    ======
    How can I distingwish among these conditions:
    IF Report cannot run :
    when the problem is from the report file object itself.
    and IF the problem is the Report Server is Down.
    and the report file is not exist.
    Tries:
    I try to but many exception to differenciate between these conditions but I fail
    how can I display a message to the user,Inform him the problem ,
    So the support personnel know if the problem from the Report object or the application Server
    .

    Hi Krishan,
    If you want to check if local cache service is running, you can do something like this:
    NamedCache cache = CacheFactory.getCache(sCacheName);
    boolean isRunning = cache.getCacheService().isRunning();If you want to check if any storage enabled nodes (cache servers) are available in the cluster:
    NamedCache cache = CacheFactory.getCache(sCacheName);
    DistributedCacheService service = (DistributedCacheService) cache.getCacheService();
    Set storageEnabledMembers = service.getStorageEnabledMembers();
    if(storageEnabledMembers.isEmpty())
        // no cache servers available ...
        }Regards,
    Dimitri

  • Message id in BPM

    Hi,
    I did all of Siva's steps
    ( Re: Retrieving a message id )
    , then:
    GlobalContainer globalContainer1 = container.getGlobalContainer();
    String b = (String) globalContainer1.getParameter("mymessid");
    result.addValue(b);
    mymessid is a container variable from BPM
    but in the mapping when I run my scanario it returns -> null (the container also doesn't have any Return - only when I assign senderservice I can see the container variable is filled but still in the transofmration I get null)
    BTW
    I assign messageid from the incomming message
    (in a BPM of course)
    any ideas?
    Regards,
    Michal
    Message was edited by: Michal Krawczyk

    Hi Michal,
    We ran into the same issue and submitted an OSS Message about it. Here's the response from OSS:
    it's a known issue.
    when programming a mapping you must differenciate between two cases:
    Will your mapping be executed on the BPE (business process engine) or
    within an ordinary step on the integration server.
    Due to the different functionality of the BPE (e.g. split/merge) some
    parameters are not accessible and will not be evatuated there. This is a
    behaviour that was designed that way.
    if you are calling the mapping from the BPE engine, the MEssage ID
    and other constants are not accessible. The BPE engine can
    split/merge XI messages and then i makes no sense to correlate
    the messages in the BPE engine  to any Message ID.
    If you are executing the mapping
    within an ordinary step on the integration server
    all Mapping Runtime Constants mentioned in the document under
    http://help.sap.com/saphelp_nw04/helpdata/
    en/84/4afc51f65c4e4fabfbbbd25f548ab7/frameset.htm
    ->Design -> Designing Mappings-> Imported Archives (XSLT/Java)
    ->java mapping
    are accessible.
    A possible solution for your problem would be to map the MESSAGE ID
    into the Xi payload before the XI message is transferred to the
    BPE engine. In the BPE engine you can then read the MessageID
    from the XI payload.
    Thanks,
    Jesse

  • Down Payment in PS

    Dear Experts,
    I want to bring "Down Payment to Vendor" in PS Reports against some WBS Element. But it gives the below error message:
    Maintain default cost element in controlling area KGCA
        Message no. FI660
    Diagnosis
        CO down payment update is active in controlling area KGCA.  You must
        therefore maintain a default cost element and a default revenue element
        for down payments.
    Procedure
        Maintain the default cost elements for down payments for controlling
        area KGCA in the Project System implementation guide.
        More information
    But if I try to create Primary Cost Element it needs a GL. But I can not create any more GL. Please help me what to do??
    Thanks,
    Deb

    Hi,
    Since its only for reporting purpose, I would suggest you to use any cost element wihch is already created in the system. For vendor down payment, you can use any cost element , may be the cost element  which you are using for posting to consumption account. For Customer down payment you can use any Revenue cost element. In the report based on the value type you will be able to differenciate between the type of transaction.
    Warm regards,
    Srinivas Potluri

  • New Discussions: for day time use only? (-: A darker blue, please!

    Thanks a lot Mods for your efforts.
    I spend some time on these boards every day, so I can see things are going better and better.
    I like the new Discussions better than the previous, especially everything that comes with this new ability to put much more on one page (like being able to see A LOT (not only five) of "Recent topics in this category", or that the topic's titles can be longuer than before, or being able to read the whole thread without jumping to "the next 15 posts" like before. I set "My Posts" to "50", this too was not possible before. Etc.)
    Now my request:
    At first I thought, like many others, that the "blue dot" and the "blue half-dot" were too small, and that we couldn't see the small grey "New!" because it was not red.
    Now after all this time since Nov14, I finally understood what was wrong, because
    (1) the new kind of eye fatigue I didn't experienced before, and
    (2) a change in my computer's room lighting configuration.
    The real problem is not the blue dot size (altough I'm sure if it was a square it would work better), it is its environment.
    We have a white line after a light blue line, and this is a great feature to differenciate between topics. Works great within a thread too, to differenciate posts.
    But one side effect of this is that the whole page "feels" slightly blue.
    I'm not sure, but a human eye physicist could perhaps explain another kind of (more insidious?) side effect caused by the alternance of lines. Perhaps depending on which color are chosen for them?
    Anyway, there is no problem with a page that "feels" blue, when the text is black.
    The problem starts when the text ALSO is blue. Especially light blue...
    I find the text blue color too light. Even the "visited link" purple is too light.
    Given that the background is blueish, I mean. Otherwise it'd be fine.
    This was not easy to understand, because the [defect/effect] is not obvious: the overall picture is nice.
    But it became obvious to me when I saw that I have no problem IF I set my screen's brightess to "very bright".
    New Discussions: for day time use only?
    ==> Please, would it be a problem (or too difficult to set perhaps?), to try a darker blue text for two or three weeks, see if we like it better? (along with a slightly darker purple for the visited links).
    Thanks again for all the great work!
    Axl

    Hi Axl,
    Some one had posted this about color,I do not remember who,sorry.
    I thought it was interesting.Hopeful this color issue can be alter but deepening the colors as you & many have requested.
    http://www.grc.nasa.gov/WWW/usability/colorcss.html
    Good luck, Eme

Maybe you are looking for