Package com.sun.sgs.profile.ProfileCollector

Examples of com.sun.sgs.profile.ProfileCollector.ProfileLevel


        ProfileControllerMXBean proxy = (ProfileControllerMXBean)
            JMX.newMXBeanProxy(mbsc,
                new ObjectName(ProfileControllerMXBean.MXBEAN_NAME),
                ProfileControllerMXBean.class);
       
        ProfileLevel level = proxy.getConsumerLevel("noSuchConsumer");
    }
View Full Code Here


   
    TaskServiceStats(ProfileCollector collector) {
        ProfileConsumer consumer =
            collector.getConsumer(ProfileCollectorImpl.CORE_CONSUMER_PREFIX +
                                  "TaskService");
        ProfileLevel level = ProfileLevel.MAX;
        ProfileDataType type = ProfileDataType.TASK_AND_AGGREGATE;
       
        scheduleNDTaskOp =
            consumer.createOperation("scheduleNonDurableTask", type, level);
        scheduleNDTaskDelayedOp =
View Full Code Here

  }
        this.graph = graph;
        this.snapCount = snapCount;
        this.snapPeriod = snapPeriod;
        ProfileConsumer consumer = collector.getConsumer(CONS_NAME);
        ProfileLevel level = ProfileLevel.MEDIUM;
        ProfileDataType type = ProfileDataType.AGGREGATE;

        processingTime = (AggregateProfileCounter)
                consumer.createCounter("processingTime", type, level);
        updateCount = (AggregateProfileCounter)
View Full Code Here

        try {
            // See if we're doing any profiling.
            String level = wrappedProperties.getProperty(PROFILE_LEVEL_PROPERTY,
                    ProfileLevel.MIN.name());
            ProfileLevel profileLevel;
            try {
                profileLevel =
                        ProfileLevel.valueOf(level.toUpperCase());
                if (logger.isLoggable(Level.CONFIG)) {
                    logger.log(Level.CONFIG, "Profiling level is {0}", level);
View Full Code Here

        super(AffinityGroupFinderMXBean.class, true);
        stopIteration = stopIter;
        this.finder = finder;

        ProfileConsumer consumer = collector.getConsumer(CONS_NAME);
        ProfileLevel level = ProfileLevel.MEDIUM;
        ProfileDataType type = ProfileDataType.AGGREGATE;

        iterations = (AggregateProfileSample)
                consumer.createSample("iterations", type, level);
        runtime = (AggregateProfileSample)
View Full Code Here

     */
    DataStoreStats(ProfileCollector collector) {
        ProfileConsumer consumer =
            collector.getConsumer(ProfileCollectorImpl.CORE_CONSUMER_PREFIX
                                  + "DataStore");
        ProfileLevel level = ProfileLevel.MAX;
        ProfileDataType type = ProfileDataType.TASK_AND_AGGREGATE;
       
  createObjectOp =
            consumer.createOperation("createObject", type, level);
  markForUpdateOp =
View Full Code Here

   
    @Test
    public void testConsumerSetCollectorLevel() throws Exception {
        ProfileCollector collector = getCollector(serverNode);
        ProfileConsumer cons1 = collector.getConsumer("c1");
        ProfileLevel cons1Level = cons1.getProfileLevel();
        assertEquals(profileCollector.getDefaultProfileLevel(), cons1Level);

        // Change default level from what the kernel set, make sure it
        // affects later consumers.
        profileCollector.setDefaultProfileLevel(ProfileLevel.MIN);
View Full Code Here

    NodeMappingServiceStats(ProfileCollector collector) {
        ProfileConsumer consumer =
            collector.getConsumer(ProfileCollectorImpl.CORE_CONSUMER_PREFIX +
                                  "NodeMappingService");

        ProfileLevel level = ProfileLevel.MAX;
        ProfileDataType type = ProfileDataType.TASK_AND_AGGREGATE;

        addNodeMappingListenerOp = (AggregateProfileOperation)
            consumer.createOperation("addNodeMappingListener", type, level);
        addIdentityRelocationListenerOp = (AggregateProfileOperation)
View Full Code Here

   
    ChannelServiceStats(ProfileCollector collector) {
        ProfileConsumer consumer =
            collector.getConsumer(ProfileCollectorImpl.CORE_CONSUMER_PREFIX +
                                  "ChannelService");
        ProfileLevel level = ProfileLevel.MAX;
        ProfileDataType type = ProfileDataType.TASK_AND_AGGREGATE;
       
        // Manager operations
        createChannelOp =
            consumer.createOperation("createChannel", type, level);
View Full Code Here

   
    ClientSessionServiceStats(ProfileCollector collector) {
        ProfileConsumer consumer =
            collector.getConsumer(ProfileCollectorImpl.CORE_CONSUMER_PREFIX +
                                  "ClientSessionService");
        ProfileLevel level = ProfileLevel.MAX;
        ProfileDataType type = ProfileDataType.TASK_AND_AGGREGATE;
       
        addSessionStatusListenerOp =
            consumer.createOperation("addSessionStatusListener",
                                     type, level);
View Full Code Here

TOP

Related Classes of com.sun.sgs.profile.ProfileCollector.ProfileLevel

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.