Get the list of the names of cache

I use this code to get a list of all the names of my cluster cache:
------

Cluster cluster = CacheFactory.ensureCluster ();
for (enumeration < String > = cluster.getServiceNames services (); services.hasMoreElements () ;))
{
String sName = (String) services.nextElement ();
System.out.println("service:"+sName);
Service service = cluster.getService (sName);
If (service instanceof CacheService) {}
CService CacheService = service (CacheService);
Caches of list < String > = cService.getCacheNames ();
for (caches = cService.getCacheNames (); caches.hasMoreElements () ;){)
Add caches.nextElement () in a list
}
}
}

------

It works fine, but in order to access multiple clusters, I have to use proxy/extend coherence.

When I use the proxy/extend, the code above no longer works. I explain: when you use proxy/extend, cluster.getServiceNames () returns the Management and Cluster but does not return the Cache Services more.

I tried to get a group in a different way object:

. GetCluster (CacheFactory.getConfigurableCacheFactory () .ensureService ("ExtendTcpInvocationService") (InvocationService));

where ExtendTcpInvocationService is defined with < remote-invocation-diet > but the result is the same.


To summarize : I would like to get the list of all my names of cache in an application of several cluster; is this possible?

Hello

Yes, your invoked must be on the classpath of the server and you use POF, it must also be in the configuration of the server POF file.

The best way to find the names of cache on the server without needing to code on the cluster must use JMX - assuming that you have enabled JMX on the cluster. You can easily run a JMX to Java code query or use something ike JConsole of VisualVM...

JK

Tags: Fusion Middleware

Similar Questions

  • Get the names of cache in a service

    Hello

    Is there a way to get the names of existing caches in a service in c#

    Concerning
    Nitin jegou

    Hi Nitin,

    In coherence, support cards for caches themselves are created in each node on demand each time that the first is the message (user request (if the cache did not use so far) redistribution (if partitioned) or initial population (in the case of replication)) arrives at the node.

    They are created according to the configuration schema caching.

    Caches themselves are not defined at all in the configuration, only the caching of schemas.

    In addition, cache mappings are defined, but this does not mean that they are actually used and corresponding cache are not created until they are first mentioned in the cluster, support cards.

    Is not yet possible to define an operation which gives the back of the list caches that can be created, because it depends on its use actual cache.

    The only significant thing is the list of cache and corresponding mappings to the caching of schemas, but gives no information on if cache actually has already been used or not. This information, you can possibly go to support card Manager, and that (I don't remember my head) can have a method that gives you information on the question of whether a backup plan has already been instantiated for the name of cache or not without instantiate following the "issue" himself.

    Best regards

    Robert

  • How to get the name and number of the procedure parameter list or a function?

    I stated the procedure described in the package

    If I want to get the number and the name of the parameter list, so how do I it

    I don't have I her name with the package.

    create or replace package demoApp is

    PROCEDURE insert_data (p_fname IN VARCHAR2,

    p_lname IN VARCHAR2,

    p_address IN VARCHAR2,

    p_cellno IN VARCHAR2,

    p_email IN varchar2);

    end demoApp;

    create or replace package demoApp body is

    PROCEDURE insert_data (p_fname IN VARCHAR2,

    p_lname IN VARCHAR2,

    p_address IN VARCHAR2,

    p_cellno IN VARCHAR2,

    p_email IN varchar2) IS

    EmpID number;

    BEGIN

    Select nvl (max (emp1.empid), 0) + 1 in EMP1 empid;

    INSERT INTO VALUES EMP1 (empid, p_fname, p_lname, p_address, p_cellno, p_email);

    EXCEPTION

    WHILE OTHERS THEN

    raise_application_error (-20001,' insert the problem ' |) SQLERRM);

    END;

    end demoApp;

    -----------------

    I want to get the name of the parameter and the number of use of stroredrprocedure ""demoApp.insert_data " "

    Select *.

    of all_arguments

    where package_name = 'DEMOAPP.

    and object_name = 'INSERT_DATA.

  • How to get the name of a Poplist list item

    Hello

    How can I get a poplist, not the value element name list. When the user has selected a value of the list item,
    I need the name and the value, I can get by: BLOCK. Name of the LIST, but how can I get the name of element.
    Value & Elament name is different in my example,

    Work with Forms 10g


    Thanks in advance

    Rizly

    You will need to loop...
    Take a look at the example of the [built-in GET_LIST_ELEMENT_COUNT | http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=f1_help/builtg/getlecnt.html]

  • How to get the name of a class private data controls?

    How can I get the names of the controls within a class private data?

    I use the framework of the actor and try to create a tha method will be executed when run the actor. This method should an o list all names of control inside the data class to find the initial value within a configuration file (config.ini file), the key to the configuration file will be the name of the control.

    Thank you.

    You already do the substitution method just because you write for the bundle by name.  And then how are you going to respond to all types of data might be the key.  You do more difficult things that it takes to really very few benefits.

  • How can I get the name of Contact? ~

    now, I opened a list of contacts,

    Contact list BlackBerryContactList = (BlackBerryContactList) BlackBerryPIM.getInstance () .openPIMList (BlackBerryPIM.CONTACT_LIST, BlackBerryPIM.READ_ONLY);
    Contact BlackBerryContact = (BlackBerryContact) contactList.choose ();

    I want to get the name of the contact that I choose, how can I do?

    I use

    String contactName = contact.getString (BlackBerryContact.NAME, 0);

    but can not have, how to use these Field summary FORMATTED_NAME ,NAME ?

    final String[] name = contact.getStringArray(Contact.NAME, 0);
            final String firstName = name[Contact.NAME_GIVEN];
            final String lastName = name[Contact.NAME_FAMILY];
    

    Check this link below.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800363/How_To _...

  • get the name of the current workspace

    Hello
    is there a way to get the name of the current workspace?

    THX

    N °

    According to the Getter in the SDK plugin, it seems that you can get a list of workspaces, but NOT the name of the current workspace.

  • How to get the name of the Group of the user?

    Hi all

    I need filter the data by the user. I will put some users in a group, put an another users in Group B.
    But how can I get the name of the Group of the user on the web?

    Create all the users you need in the RPD under Security in the administration tool. Create the required groups and assign users to their respective groups. Now you can apply data filters, interrogate the limits on groups etc. that apply to all users in the groups. From your question, I see that you are asking how to see groups in the web. Assuming that you are asking for what groups a user is assigned to, you can create a new analysis report / and drag any column in the report. Open the formula column and put this code here: VALUEOF (NQ_SESSION. GROUP). This will show you the list of groups that the user belongs to.

    Let me know if you need anything that anyone else.

    Thank you
    -Laurence.

  • Getting the name of the variable?

    Hi, is it possible to get the name of the defined variable?

    for example

    var description:String = "Some description";
    var variableName = getVariableName(description);
    trace(variableName); // output = "description"
    
    

    Thank you

    You can retrieve the xmllist of the variables (string or otherwise), of any object (for example, the current timeline) using the following function.  each item in the list has a property of type with the name property:

    function variableF(o:Object):XMLList {}

    .variable describeType (o) return;

    }

  • How to get the name of shares

    I want to get the name of Actions by javascript.

    Can get the stock name to javascript?

    Here is an example of creating a list of all sets/action names on the desktop.

    #target photoshop
    var actionList = getActionSets();
    var outFile = File("~/desktop/Action List.txt");
    outFile.open("w");
    for(var a in actionList){
       outFile.writeln("Action Set " + actionList[a]);
       var aList = getActions(actionList[a]);
       for(var z in aList) {
          outFile.writeln(aList[z]);
          }
    }
    outFile.close();
    outFile.execute(); 
    
    function getActionSets() {
    cTID = function(s) { return app.charIDToTypeID(s); };
    sTID = function(s) { return app.stringIDToTypeID(s); };
      var i = 1;
      var sets = [];
      while (true) {
        var ref = new ActionReference();
        ref.putIndex(cTID("ASet"), i);
        var desc;
        var lvl = $.level;
        $.level = 0;
        try {
          desc = executeActionGet(ref);
        } catch (e) {
          break;    // all done
        } finally {
          $.level = lvl;
        }
        if (desc.hasKey(cTID("Nm  "))) {
          var set = {};
          set.index = i;
          set.name = desc.getString(cTID("Nm  "));
          set.toString = function() { return this.name; };
          set.count = desc.getInteger(cTID("NmbC"));
          set.actions = [];
          for (var j = 1; j <= set.count; j++) {
            var ref = new ActionReference();
            ref.putIndex(cTID('Actn'), j);
            ref.putIndex(cTID('ASet'), set.index);
            var adesc = executeActionGet(ref);
            var actName = adesc.getString(cTID('Nm  '));
            set.actions.push(actName);
          }
          sets.push(set);
        }
        i++;
      }
      return sets;
    }; 
    
    function getActions(aset) {
    cTID = function(s) { return app.charIDToTypeID(s); };
    sTID = function(s) { return app.stringIDToTypeID(s); };
      var i = 1;
      var names = [];
      if (!aset) {
        throw "Action set must be specified";
      }
      while (true) {
        var ref = new ActionReference();
        ref.putIndex(cTID("ASet"), i);
        var desc;
        try {
          desc = executeActionGet(ref);
        } catch (e) {
          break;    // all done
        }
        if (desc.hasKey(cTID("Nm  "))) {
          var name = desc.getString(cTID("Nm  "));
          if (name == aset) {
            var count = desc.getInteger(cTID("NmbC"));
            var names = [];
            for (var j = 1; j <= count; j++) {
              var ref = new ActionReference();
              ref.putIndex(cTID('Actn'), j);
              ref.putIndex(cTID('ASet'), i);
              var adesc = executeActionGet(ref);
              var actName = adesc.getString(cTID('Nm  '));
              names.push(actName);
            }
            break;
          }
        }
        i++;
      }
      return names;
    };
    
  • [JS] A way to get the names of enumeration?

    I use this little feature to convert enumerations to a displayable string IDS:

    function enumToText (val)
    {
     var result = "";
     while (val > 0)
     {
      result = result+String.fromCharCode(val % 256);
      val = Math.floor( val/256 );
     }
     return result;
    }
    

    which returns, for example, "barb" instead of the intimidating constant 1650553442 (for a type of arrowhead). This works because all InDesign enumerated constants are defined as sequences of 4 ASCII characters. 'none', for example, is often used, and that says much more than 1852796517.

    My help files Javascript lists the number and its associated 4-letter word (and they are all suitable for minors!), but this means I have to go help.

    Four letters are more clear that 10-digit code certainly, but would it be possible in Javascript to get the name "ArrowHead.BARBED_ARROW_HEAD", when the constant? Other than the use of a mute list of all constants?

    Edit

    If you thought, ' a list doesn't look too bad ", I still have one for CS3 on my site: http://www.jongware.com/cs3enums.html ".

    It's a read boring, but worse: it is thousands of entries long! Imagine that insert in each script.

    Hi Jongware,

    Nice feature! The other day I was wondering how to deal with enumerations, how to interpret them. I didn't realize that it was an upside epelees abbreviations.

    I don't know the answer to your question, but underneath is a function I use to get all the values of an enumeration value, name and numerica. You can use it with the call as prop (SpecialCharacters) and prop (capitalization). It is perhaps of no use.

    Peter

    function prop (f)
       {
       var props = f.reflect.properties;
       var array = [];
       for (var i = 0; i < props.length; i++)
          try {array.push (props[i].name + ': ' + f[props[i].name])} catch(_){}
       array.sort();
       $.writeln (array.join ('\r'));
       }
    
  • get the names of the columns dynamically

    Hi gurus,
    I have the list item filled with lots of names of a table schema.
    I did grid in oracle 10g and I want to fill in the grid with the data that should come at least four/more columns.
    I want to get the trigger list change when whenever any name a table is selected/changed.

    How can I get the names of the columns dynamically
    Please give me the step by step process
    for the filling of the grid...

    Hello

    If you want to get the details of the column, and then use the USER_TAB_COLUMNSview.

    SELECT COLUMN_NAME, DATA_TYPE FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 
    

    Kind regards

    Manu.

  • How to use tio as textitem operator to get the name

    Oracle forms6i

    Hai All

    I created a form to create a list of hierarchy. I got a Text_item how can I use as an operator to get the name to select it. What trigger, I need to use. When I select the name I need to get his employee ID and other details

    Thanks in advance

    Srikkanth.M

    A is the head of Dept 10 and three people are under to know

    How will you know that B, C and D are under A is there any child-parent relationship between Manager and employee code? If so, you can then create the relationship between the blocks don't need to programmatically set the where_clause. Thus, the relationship can be as...

    leader_block.emp_code = emp_block.leader_code
    AND leader_blokc.dep_code = emp_block.dep_code
    

    Thus, when you interrogate data in block LEADER it will show employees under CHIEF who ask block LEADER.

    Or if there is no relationship then how will you know what employee under what leader?

    002 10 1 b

    1-10-003 c

    1-10-004 d

    When I enter the Department name of the corresponding head of other members and you need to display in the
    Tabular

    Or if you want to query records only for the service relationship. As you say you create two blocks and then create the relationship using dep_code between blocks.
    as...

    leader.dep_code = emp_block.dep_code
    

    -Clément

  • How to get the names of the tabs in the void?

    Hi all

    Could someone tell me how to get the names of all the tabs of void?

    I have Parent tab T1. T1 has 3 tabs sup T1_1, T1_2 and T1_3.

    I would like to have T1_1, T1_2 and T1_3 names tab in the list.

    Thanks in advance!

    Dip

    Dip,

    You can get the name of the tab of the apex, apex_application_tabs & apex_application_parent_tabs dictionary views. Thank you.

    Kind regards
    Manish

  • How can I get the name of rulefiles in application with the help of custom java code.

    Hello.
    I want to get the names of rulefiles of analytical service with the help of java api.
    How can I get the name of rulefiles. What api should I use for this problem?

    Hello

    IEssCube.getOlapFileObjects () api allows you to retrieve files of rules.
    Insert this code snipid in your code, it will list all the rules files.

    IEssCube cube = olapSvr.getApplication("Sample").getCube ("Basic");
    ITR IEssIterator = cube.getOlapFileObjects (IEssOlapFileObject.TYPE_RULES);
    RFS [] IEssBaseObject = itr.getAll ();
    System.out.println ("rule file count:" + rfs.length);
    for (int i = 0; i)< rfs.length;="" i++)="">
    System.out.println ("RuleFile" + i + ":" + ((EssOlapFileObject)rfs). getName() ' ");
    }

    You can also list the data files and other objects in file by changing the IEssOlapFileObject.TYPE in getOlapFileObjects()

    Concerning
    Rajeev Singh

Maybe you are looking for