Package com.tangosol.net

Examples of com.tangosol.net.InvocationService


     *
     * @return a Map of NodeInfo objects.
     */
    public static Map getNodeInfo() {

        InvocationService service = com.tangosol.net.CacheFactory.getInvocationService("OpenFire Cluster Service");

        // Run cluster-wide stats query
        Map results = service.query(new AbstractInvocable() {
                public void run() {
                    // Get runtime stats - mem and time:
                    Runtime runtime = Runtime.getRuntime();
                    long free = runtime.freeMemory();
                    long total = runtime.totalMemory();
View Full Code Here


    /**
     * Clears the cache stats.
     */
    public static void clearCacheStats() {

        InvocationService service = com.tangosol.net.CacheFactory.getInvocationService("OpenFire Cluster Service");

        service.execute(new AbstractInvocable() {
            public void run() {
                com.tangosol.coherence.component.net.Cluster cluster =
                        (com.tangosol.coherence.component.net.Cluster)
                        ((SafeCluster)com.tangosol.net.CacheFactory.ensureCluster()).getCluster();

View Full Code Here

      // ***
      Object value = new String[]{"ABC", "EFG", "123", "890", "QWERTY"};
     
      PushTask task = new PushTask(value, objectCount, threadCount, bacthSize, "in-pool");
     
      InvocationService rc = (InvocationService) CacheFactory.getService("event-remote-control-service");
     
      Set members = rc.getInfo().getServiceMembers();
      members.remove(CacheFactory.getCluster().getLocalMember());
     
            System.out.println("Start test");
      long startTimestamp = System.nanoTime();

      rc.execute(task, members, null);

            while(true) {
              if (out.size() == objectCount) {
                break;
              }
View Full Code Here

      // ***
      Object value = new String[]{"ABC", "EFG", "123", "890", "QWERTY"};
     
      PushTask task = new PushTask(value, objectCount, threadCount, bacthSize, "in-pool");
     
      InvocationService rc = (InvocationService) CacheFactory.getService("event-remote-control-service");
     
      Set members = rc.getInfo().getServiceMembers();
      members.remove(CacheFactory.getCluster().getLocalMember());
     
            System.out.println("Start test");
      long startTimestamp = System.nanoTime();

      rc.execute(task, members, new InvocationObserver() {
     
        @Override
        public void memberLeft(Member member) {
          // do nothing
        }
View Full Code Here

TOP

Related Classes of com.tangosol.net.InvocationService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.