Package com.sun.jini.fiddler

Examples of com.sun.jini.fiddler.FiddlerLease$ConstrainableFiddlerLease


        Uuid[] leaseIDs = new Uuid[size];
        long[] durations = new long[size];
        int i = 0;
        for (Iterator iter = map.entrySet().iterator(); iter.hasNext(); i++) {
            Map.Entry e = (Map.Entry)iter.next();
            FiddlerLease ls = (FiddlerLease)e.getKey();
            registrationIDs[i] = ls.getRegistrationID();
            leaseIDs[i] = ls.getLeaseID();
            durations[i] = ((Long)e.getValue()).longValue();
        }
        FiddlerRenewResults results = server.renewLeases(registrationIDs,
                                                         leaseIDs,
                                                         durations);
View Full Code Here


        }
        Uuid[] registrationIDs = new Uuid[size];
        Uuid[] leaseIDs = new Uuid[size];
        int i = 0;
        for (Iterator iter = map.keySet().iterator(); iter.hasNext(); i++) {
            FiddlerLease ls = (FiddlerLease)iter.next();
            registrationIDs[i] = ls.getRegistrationID();
            leaseIDs[i] = ls.getLeaseID();
        }
        Exception[] exceptions = server.cancelLeases(registrationIDs,leaseIDs);
        if (exceptions == null) {
            return;
        }
        i = 0;
        HashMap emap = new HashMap(13);
        for (Iterator iter = map.keySet().iterator(); iter.hasNext(); i++) {
            FiddlerLease ls = (FiddlerLease)iter.next();
            Exception ex = exceptions[i];
            if (ex != null) {
                emap.put(ls, ex);
                iter.remove();
            }
View Full Code Here

TOP

Related Classes of com.sun.jini.fiddler.FiddlerLease$ConstrainableFiddlerLease

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.