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
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
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);
}