Package com.sun.sgs.profile

Examples of com.sun.sgs.profile.ProfileConsumer.createOperation()


                                  "ClientSessionService");
        ProfileLevel level = ProfileLevel.MAX;
        ProfileDataType type = ProfileDataType.TASK_AND_AGGREGATE;
       
        addSessionStatusListenerOp =
            consumer.createOperation("addSessionStatusListener",
                                     type, level);
        getSessionProtocolOp =
            consumer.createOperation("getSessionProtocol", type, level);
        isRelocatingToLocalNodeOp =
            consumer.createOperation("isRelocatingToLocalNode", type, level);
View Full Code Here


       
        addSessionStatusListenerOp =
            consumer.createOperation("addSessionStatusListener",
                                     type, level);
        getSessionProtocolOp =
            consumer.createOperation("getSessionProtocol", type, level);
        isRelocatingToLocalNodeOp =
            consumer.createOperation("isRelocatingToLocalNode", type, level);
    }

    /** {@inheritDoc} */
 
View Full Code Here

            consumer.createOperation("addSessionStatusListener",
                                     type, level);
        getSessionProtocolOp =
            consumer.createOperation("getSessionProtocol", type, level);
        isRelocatingToLocalNodeOp =
            consumer.createOperation("isRelocatingToLocalNode", type, level);
    }

    /** {@inheritDoc} */
    public long getAddSessionStatusListenerCalls() {
        return ((AggregateProfileOperation)
View Full Code Here

                                  "TaskService");
        ProfileLevel level = ProfileLevel.MAX;
        ProfileDataType type = ProfileDataType.TASK_AND_AGGREGATE;
       
        scheduleNDTaskOp =
            consumer.createOperation("scheduleNonDurableTask", type, level);
        scheduleNDTaskDelayedOp =
            consumer.createOperation("scheduleNonDurableTaskDelayed",
                                       type, level);
        scheduleTaskOp =
            consumer.createOperation("scheduleTask", type, level);
View Full Code Here

        ProfileDataType type = ProfileDataType.TASK_AND_AGGREGATE;
       
        scheduleNDTaskOp =
            consumer.createOperation("scheduleNonDurableTask", type, level);
        scheduleNDTaskDelayedOp =
            consumer.createOperation("scheduleNonDurableTaskDelayed",
                                       type, level);
        scheduleTaskOp =
            consumer.createOperation("scheduleTask", type, level);
        scheduleTaskDelayedOp =
            consumer.createOperation("scheduleDelayedTask", type, level);
View Full Code Here

            consumer.createOperation("scheduleNonDurableTask", type, level);
        scheduleNDTaskDelayedOp =
            consumer.createOperation("scheduleNonDurableTaskDelayed",
                                       type, level);
        scheduleTaskOp =
            consumer.createOperation("scheduleTask", type, level);
        scheduleTaskDelayedOp =
            consumer.createOperation("scheduleDelayedTask", type, level);
        scheduleTaskPeriodicOp =
            consumer.createOperation("schedulePeriodicTask", type, level);
    }
View Full Code Here

            consumer.createOperation("scheduleNonDurableTaskDelayed",
                                       type, level);
        scheduleTaskOp =
            consumer.createOperation("scheduleTask", type, level);
        scheduleTaskDelayedOp =
            consumer.createOperation("scheduleDelayedTask", type, level);
        scheduleTaskPeriodicOp =
            consumer.createOperation("schedulePeriodicTask", type, level);
    }
   
    /** {@inheritDoc} */
 
View Full Code Here

        scheduleTaskOp =
            consumer.createOperation("scheduleTask", type, level);
        scheduleTaskDelayedOp =
            consumer.createOperation("scheduleDelayedTask", type, level);
        scheduleTaskPeriodicOp =
            consumer.createOperation("schedulePeriodicTask", type, level);
    }
   
    /** {@inheritDoc} */
    public long getScheduleNonDurableTaskCalls() {
        return ((AggregateProfileOperation) scheduleNDTaskOp).getCount();
View Full Code Here

    @Test(expected=NullPointerException.class)
    public void testOperationAggregateBadName() throws Exception {
        ProfileCollector collector = getCollector(serverNode);
        ProfileConsumer cons1 = collector.getConsumer("c1");
        ProfileOperation o1 =
            cons1.createOperation(null,
                                  ProfileDataType.AGGREGATE, ProfileLevel.MIN);
    }
    @Test(expected=NullPointerException.class)
    public void testOperationTaskAggregateBadName() throws Exception {
        ProfileCollector collector = getCollector(serverNode);
View Full Code Here

    @Test(expected=NullPointerException.class)
    public void testOperationTaskAggregateBadName() throws Exception {
        ProfileCollector collector = getCollector(serverNode);
        ProfileConsumer cons1 = collector.getConsumer("c1");
        ProfileOperation o1 =
            cons1.createOperation(null,
                                  ProfileDataType.TASK_AND_AGGREGATE,
                                  ProfileLevel.MIN);
    }
   
    @Test
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.