Package org.rioproject.admin

Examples of org.rioproject.admin.MonitorableService.monitor()


     */
    protected ServiceMonitor getServiceMonitor() throws Exception {
        ServiceMonitor monitor = null;
        if(proxy instanceof MonitorableService) {
            MonitorableService service = (MonitorableService)proxy;
            Lease lease = service.monitor(leaseDuration);
            lease = (Lease)leasePreparer.prepareProxy(lease);
            serviceMonitor = new ServiceLeaseManager(lease);
        } else {
            logger.info("Service ["+proxy.getClass().getName()+"] not an "+
                        "instanceof "+MonitorableService.class.getName()+", "+
View Full Code Here


                                                      + i
                                                      + "]");
                                    MonitorableService service =
                                        (MonitorableService)proxy;
                                    t0 = System.currentTimeMillis();
                                    this.lease = service.monitor(leaseDuration);
                                    if(logger.isTraceEnabled())
                                        logger.trace("Re-established Lease to : "
                                                      + proxy.getClass().getName());
                                    connected = true;
                                    break;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.