// ------------------------------------------------------------------------
@Override
- public String getVersion() {
+ public String getVersionString() {
if (fVersion == null) {
return "Unknown"; //$NON-NLS-1$
}
return fVersion.toString();
}
+ @Override
+ public LttngVersion getVersion() {
+ return fVersion;
+ }
+
/**
* Sets the version of the LTTng 2.0 control service.
* @param version - a version to set
fVersion = new LttngVersion(version);
}
+ /**
+ * Sets the version of the LTTng 2.x control service.
+ * @param version - a version to set
+ */
+ public void setVersion(LttngVersion version) {
+ fVersion = version;
+ }
+
@Override
public boolean isVersionSupported(String version) {
LttngVersion tmp = new LttngVersion(version);