Package com.sun.sgs.profile

Examples of com.sun.sgs.profile.ProfileConsumer


    final ProfileOperation createChannelOp;
    final ProfileOperation getChannelOp;
   
    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);
        getChannelOp =
            consumer.createOperation("getChannel", type, level);
    }
View Full Code Here


    final ProfileOperation addSessionStatusListenerOp;
    final ProfileOperation getSessionProtocolOp;
    final ProfileOperation isRelocatingToLocalNodeOp;
   
    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);
        getSessionProtocolOp =
            consumer.createOperation("getSessionProtocol", type, level);
        isRelocatingToLocalNodeOp =
            consumer.createOperation("isRelocatingToLocalNode", type, level);
    }
View Full Code Here

    final ProfileOperation isLocalNodeAliveNonTransOp;
   
    WatchdogServiceStats(ProfileCollector collector, WatchdogServiceImpl wdog) {
        watchdog = wdog;
       
        ProfileConsumer consumer =
            collector.getConsumer(ProfileCollectorImpl.CORE_CONSUMER_PREFIX +
                                  "WatchdogService");
        ProfileLevel level = ProfileLevel.MAX;
        ProfileDataType type = ProfileDataType.TASK_AND_AGGREGATE;
       
        addNodeListenerOp =
            consumer.createOperation("addNodeListener", type, level);
        addRecoveryListenerOp =
            consumer.createOperation("addRecoveryListener", type, level);
        getBackupOp =
            consumer.createOperation("getBackup", type, level);
        getNodeOp =
            consumer.createOperation("getNode", type, level);
        getNodesOp =
            consumer.createOperation("getNodes", type, level);
        getLocalNodeHealthOp =
            consumer.createOperation("getLocalNodeHealth", type, level);
        getLocalNodeHealthNonTransOp =
            consumer.createOperation("getLocalNodeHealthNonTransactional",
                                     type, level);
        isLocalNodeAliveOp =
            consumer.createOperation("isLocalNodeAlive", type, level);
        isLocalNodeAliveNonTransOp =
            consumer.createOperation("isLocalNodeAliveNonTransactional",
                                     type, level);
    }
View Full Code Here

    final ProfileOperation nextServiceBoundNameOp;
    final ProfileOperation removeServiceBindingOp;
    final ProfileOperation setServiceBindingOp;
   
    DataServiceStats(ProfileCollector collector) {
        ProfileConsumer consumer =
            collector.getConsumer(ProfileCollectorImpl.CORE_CONSUMER_PREFIX +
                                  "DataService");
        ProfileLevel level = ProfileLevel.MAX;
        ProfileDataType type = ProfileDataType.TASK_AND_AGGREGATE;
       
        // Manager operations
  addDataConflictListenerOp =
      consumer.createOperation("addDataConflictListenerOp", type, level);
        createRefOp =
            consumer.createOperation("createReference", type, level);
        getBindingOp =
            consumer.createOperation("getBinding", type, level);
        getBindingForUpdateOp =
            consumer.createOperation("getBindingForUpdate", type, level);
        getObjectIdOp =
      consumer.createOperation("getObjectId", type, level);
        markForUpdateOp =
            consumer.createOperation("markForUpdate", type, level);
        nextBoundNameOp =
            consumer.createOperation("nextBoundName", type, level);
        removeBindingOp =
            consumer.createOperation("removeBinding", type, level);
        removeObjOp =
            consumer.createOperation("removeObject", type, level);
        setBindingOp =
            consumer.createOperation("setBinding", type, level);
        // Service operations
        getLocalNodeIdOp =
            consumer.createOperation("getLocalNodeId", type, level);
        createRefForIdOp =
            consumer.createOperation("createReferenceForId", type, level);
        getServiceBindingOp =
            consumer.createOperation("getServiceBinding", type, level);
        getServiceBindingForUpdateOp = consumer.createOperation(
      "getServiceBindingForUpdate", type, level);
        nextObjIdOp =
            consumer.createOperation("nextObjectId", type, level);
        nextServiceBoundNameOp =
            consumer.createOperation("nextServiceBoundName", type, level);
        removeServiceBindingOp =
            consumer.createOperation("removeServiceBinding", type, level);
        setServiceBindingOp =
            consumer.createOperation("setServiceBinding", type, level);
    }
View Full Code Here

     * Create a data store statistics object.
     * @param collector the profile collector used to create profiling
     *     objects and register the MBean with JMX
     */
    DataStoreStats(ProfileCollector collector) {
        ProfileConsumer consumer =
            collector.getConsumer(ProfileCollectorImpl.CORE_CONSUMER_PREFIX
                                  + "DataStore");
        ProfileLevel level = ProfileLevel.MAX;
        ProfileDataType type = ProfileDataType.TASK_AND_AGGREGATE;
       
  addDataConflictListenerOp =
            consumer.createOperation("addDataConflictListener", type, level);
  createObjectOp =
            consumer.createOperation("createObject", type, level);
  markForUpdateOp =
            consumer.createOperation("markForUpdate", type, level);
  getObjectOp = consumer.createOperation("getObject", type, level);
  getObjectForUpdateOp =
      consumer.createOperation("getObjectForUpdate", type, level);
  setObjectOp = consumer.createOperation("setObject", type, level);
  setObjectsOp = consumer.createOperation("setObjects", type, level);
  removeObjectOp =
            consumer.createOperation("removeObject", type, level);
  getBindingOp = consumer.createOperation("getBinding", type, level);
  setBindingOp = consumer.createOperation("setBinding", type, level);
  removeBindingOp =
            consumer.createOperation("removeBinding", type, level);
  nextBoundNameOp =
            consumer.createOperation("nextBoundName", type, level);
  getClassIdOp = consumer.createOperation("getClassId", type, level);
  getClassInfoOp =
            consumer.createOperation("getClassInfo", type, level);
  nextObjectIdOp =
            consumer.createOperation("nextObjectIdOp", type, level);
       
        // Counters
  readBytesCounter = consumer.createCounter("readBytes", type, level);
  readObjectsCounter =
      consumer.createCounter("readObjects", type, level);
  writtenBytesCounter =
      consumer.createCounter("writtenBytes", type, level);
  writtenObjectsCounter =
      consumer.createCounter("writtenObjects", type, level);
       
        // Samples
  readBytesSample =
            consumer.createSample("readBytes", type, level);
  writtenBytesSample =
            consumer.createSample("writtenBytes", type, level);
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.profile.ProfileConsumer

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.