lttng.control: Disable Java and Python logging for older LTTng versions
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.control.ui / src / org / eclipse / tracecompass / internal / lttng2 / control / ui / views / model / impl / TraceProviderGroup.java
index 86ec90d416ed02755ce1bc2a031ce53d9a1db0aa..ad502072e3bf79175310891561fd62816d41caac 100644 (file)
@@ -17,6 +17,7 @@ import java.util.List;
 
 import org.eclipse.core.commands.ExecutionException;
 import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.tracecompass.internal.lttng2.control.core.model.TraceDomainType;
 import org.eclipse.tracecompass.internal.lttng2.control.core.model.IBaseEventInfo;
 import org.eclipse.tracecompass.internal.lttng2.control.core.model.IUstProviderInfo;
 import org.eclipse.tracecompass.internal.lttng2.control.ui.views.messages.Messages;
@@ -99,11 +100,45 @@ public class TraceProviderGroup extends TraceControlComponent {
 
     /**
      * Returns if node supports filtering of events
-     * @param isKernel - <code>true</code> for kernel provider else <code>false</code>
+     * @param domain - the domain type ({@link TraceDomainType})
      * @return <code>true</code> if node supports filtering else <code>false</code>
      */
-    public boolean isEventFilteringSupported(boolean isKernel) {
-        return ((TargetNodeComponent)getParent()).isEventFilteringSupported(isKernel);
+    public boolean isEventFilteringSupported(TraceDomainType domain) {
+        return ((TargetNodeComponent)getParent()).isEventFilteringSupported(domain);
+    }
+
+    /**
+     * Checks if enabling of per syscall event is supported
+     *
+     * @return <code>true</code> if enabling of per syscall event is supported else <code>false</code>
+     */
+    public boolean isPerSyscallEventsSupported() {
+        return ((TargetNodeComponent) getParent()).isPerSyscallEventsSupported();
+    }
+
+    /**
+     * Returns if node supports JUL logging or not
+     * @return <code>true</code> if it supports JUL logging else <code>false</code>
+     *
+     */
+    public boolean isJulLoggingSupported() {
+        return ((TargetNodeComponent) getParent()).isJulLoggingSupported();
+    }
+    /**
+     * Returns if node supports LOG4J logging or not
+     * @return <code>true</code> if it supports LOG4J logging else <code>false</code>
+     *
+     */
+    public boolean isLog4jLoggingSupported() {
+        return ((TargetNodeComponent) getParent()).isLog4jLoggingSupported();
+    }
+    /**
+     * Returns if node supports Python logging or not
+     * @return <code>true</code> if it supports Python logging else <code>false</code>
+     *
+     */
+    public boolean isPythonLoggingSupported() {
+        return ((TargetNodeComponent) getParent()).isPythonLoggingSupported();
     }
 }
 
This page took 0.028062 seconds and 5 git commands to generate.