01 /*
02 *
03 * Licensed to the Apache Software Foundation (ASF) under one
04 * or more contributor license agreements. See the NOTICE file
05 * distributed with this work for additional information
06 * regarding copyright ownership. The ASF licenses this file
07 * to you under the Apache License, Version 2.0 (the
08 * "License"); you may not use this file except in compliance
09 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 */
21 package org.apache.qpid.management.domain.handler.impl;
22
23 import org.apache.qpid.management.domain.handler.base.ContentIndicationMessageHandler;
24 import org.apache.qpid.management.domain.model.type.Binary;
25
26 /**
27 * Schema Response message handler.
28 * This handler is responsible to process 'i'(opcode) messages sent by the management broker.
29 *
30 * @author Andrea Gazzarini
31 */
32 public class InstrumentationMessageHandler extends ContentIndicationMessageHandler
33 {
34 /**
35 * Broker domain model is going to be updated with incoming instrumentation data.
36 *
37 * @param packageName the name of the package.
38 * @param className the name of the class.
39 * @param objectId the object identifier.
40 * @param timeStampOfCurrentSample the timestamp of incoming data.
41 * @param timeObjectWasCreated time object was created.
42 * @param timeObjectWasDeleted time object was deleted.
43 */
44 @Override
45 protected void updateDomainModel (
46 String packageName,
47 String className,
48 Binary classHash,
49 Binary objectId,
50 long timeStampOfCurrentSample,
51 long timeObjectWasCreated,
52 long timeObjectWasDeleted,
53 byte[] contentData)
54 {
55 _domainModel.addInstrumentationRawData(packageName,className,classHash,objectId,contentData);
56 }
57 }
|