src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/RecordingInternals.java
author egahlin
Wed, 05 Dec 2018 16:40:12 +0100
changeset 52850 f527b24990d7
child 57360 5d043a159d5c
permissions -rw-r--r--
8205516: JFR tool Reviewed-by: mgronlun
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
52850
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     1
/*
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     2
 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     4
 *
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    10
 *
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    15
 * accompanied this code).
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    16
 *
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    20
 *
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    23
 * questions.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    24
 */
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    25
package jdk.jfr.internal.consumer;
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    26
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    27
import java.io.IOException;
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    28
import java.util.List;
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    29
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    30
import jdk.jfr.consumer.RecordedEvent;
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    31
import jdk.jfr.consumer.RecordedObject;
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    32
import jdk.jfr.consumer.RecordingFile;
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    33
import jdk.jfr.internal.Type;
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    34
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    35
public abstract class RecordingInternals {
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    36
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    37
    public static RecordingInternals INSTANCE;
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    38
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    39
    public abstract boolean isLastEventInChunk(RecordingFile file);
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    40
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    41
    public abstract Object getOffsetDataTime(RecordedObject event, String name);
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    42
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    43
    public abstract List<Type> readTypes(RecordingFile file) throws IOException;
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    44
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    45
    public abstract void sort(List<RecordedEvent> events);
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    46
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    47
}