Package com.sun.sgs.app

Examples of com.sun.sgs.app.ManagedReference


                // that no objects were leaked in stressing the structure but
                // any given service (e.g., the task service) may accumulate
                // managed objects, so a more general way to exclude these from
                // the count would be nice but for now the specific types that
                // are accumulated get excluded from the count.
    ManagedReference ref =
        dataService.createReferenceForId(next);
    Object obj = ref.get();
                String name = obj.getClass().getName();
                if (! name.equals("com.sun.sgs.impl.service.task.PendingTask") &&
        ! name.equals("com.sun.sgs.impl.service.nodemap.IdentityMO"))
    {
        /*
 
View Full Code Here


      new KernelCallable<BigInteger>("getChannelId") {
    public BigInteger call() throws Exception {
    Channel channel =
        AppContext.getChannelManager().getChannel(channelName);
    Field field = getField(channel.getClass(), "channelRef");
    ManagedReference channelRef =
        (ManagedReference) field.get(channel);
    return channelRef.getId();
    }
      }, txnScheduler, taskOwner);
    }
View Full Code Here

                // that no objects were leaked in stressing the structure but
                // any given service (e.g., the task service) may accumulate
                // managed objects, so a more general way to exclude these from
                // the count would be nice but for now the specific types that
                // are accumulated get excluded from the count.
    ManagedReference ref =
        dataService.createReferenceForId(next);
    Object obj = ref.get();
                String name = obj.getClass().getName();
                if (!name.equals("com.sun.sgs.impl.service.task.PendingTask") &&
        !name.equals("com.sun.sgs.impl.service.nodemap.IdentityMO"))
    {
        /*
 
View Full Code Here

                // that no objects were leaked in stressing the structure but
                // any given service (e.g., the task service) may accumulate
                // managed objects, so a more general way to exclude these from
                // the count would be nice but for now the specific types that
                // are accumulated get excluded from the count.
    ManagedReference ref =
        dataService.createReferenceForId(next);
    Object obj = ref.get();
                String name = obj.getClass().getName();
                if (!name.equals("com.sun.sgs.impl.service.task.PendingTask") &&
        !name.equals("com.sun.sgs.impl.service.nodemap.IdentityMO"))
    {
        /*
 
View Full Code Here

                // that no objects were leaked in stressing the structure but
                // any given service (e.g., the task service) may accumulate
                // managed objects, so a more general way to exclude these from
                // the count would be nice but for now the specific types that
                // are accumulated get excluded from the count.
    ManagedReference ref =
        dataService.createReferenceForId(next);
    Object obj = ref.get();
                String name = obj.getClass().getName();
                if (!name.equals("com.sun.sgs.impl.service.task.PendingTask") &&
        !name.equals("com.sun.sgs.impl.service.nodemap.IdentityMO"))
    {
        /*
 
View Full Code Here

TOP

Related Classes of com.sun.sgs.app.ManagedReference

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.