Package com.subhajit.processmanager.api

Examples of com.subhajit.processmanager.api.IHeartbeatRepository


      final String jmxUrl0 = jmxUrl;
      new Thread(new Runnable() {
        public void run() {
          try {
            final IHeartbeatRepository repository = (IHeartbeatRepository) Class
                .forName(heartbeatRepositoryClassName)
                .getConstructor(String.class).newInstance(uid);
            final IHeartbeat heartbeat = new Heartbeat(System
                .currentTimeMillis(), uid, jmxUrl0);
            while (true) {
              repository.update(heartbeat);
              Thread.sleep(IHeartbeat.INTERVAL);
            }
          } catch (InterruptedException exc) {
            Thread.currentThread().interrupt();
            return;
View Full Code Here

TOP

Related Classes of com.subhajit.processmanager.api.IHeartbeatRepository

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.