1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12 package org
.eclipse
.linuxtools
.lttng
.state
.resource
;
14 import org
.eclipse
.linuxtools
.lttng
.model
.ILTTngTreeNode
;
20 public interface ILTTngStateResource
<E
extends ILTTngStateResource
<E
>> extends
23 // ========================================================================
25 // =======================================================================
29 public GlobalStateMode
getStateMode();
34 public ILttngStateContext
getContext();
36 // ========================================================================
38 // =======================================================================
41 * Represents the specific type of resources known by the application
45 public enum ResourceType
{
46 LTT_RESOURCE_PROCESS("process"), /* */
47 LTT_RESOURCE_CPU("cpu"), /* */
48 LTT_RESOURCE_BDEV("bdev"), /* */
49 LTT_RESOURCE_IRQ("irq"), /* */
50 LTT_RESOURCE_SOFTIRQ("softIrq"), /* */
51 LTT_RESOURCE_TRAP("trap"), /* */
52 LTT_RESOURCE_RUNNING_PROCESS("running"); /* */
56 private ResourceType(String name
) {
60 public String
getInName() {
66 * <p>unifies the possible states of the state resources known by the application</p>
69 public enum GlobalStateMode
{
70 LTT_STATEMODE_UNNAMED("unnamed"), /* */
71 LTT_STATEMODE_UNKNOWN("unknown"), /* */
72 LTT_STATEMODE_IDLE("idle"), /* */
73 LTT_STATEMODE_BUSY("busy"), /* */
74 LTT_STATEMODE_PENDING("pending"), /* */
75 LTT_STATEMODE_READING("reading"), /* */
76 LTT_STATEMODE_WRITING("writing"), /* */
77 LTT_STATEMODE_IRQ("irq"), /* */
78 LTT_STATEMODE_SOFTIRQ("softirq"), /* */
79 LTT_STATEMODE_TRAP("trap"), /* */
80 LTT_STATEMODE_WAIT_FORK("waitfork"), /* */
81 LTT_STATEMODE_WAIT_CPU("waitcpu"), /* */
82 LTT_STATEMODE_EXIT("exit"), /* */
83 LTT_STATEMODE_ZOMBIE("zombie"), /* */
84 LTT_STATEMODE_WAIT_IO("waitio"), /* */
85 LTT_STATEMODE_RUN("run"), /* */
86 LTT_STATEMODE_DEAD("dead"), /* */
87 LTT_STATEMODE_USER_MODE("usermode"), /* */
88 LTT_STATEMODE_SYSCALL("syscall"); /* */
93 private GlobalStateMode(String name
) {
97 public String
getInName() {
This page took 0.033562 seconds and 5 git commands to generate.