Class BundleInfoImpl
- java.lang.Object
-
- org.opencastproject.kernel.bundleinfo.BundleInfoImpl
-
- All Implemented Interfaces:
BundleInfo
public class BundleInfoImpl extends Object implements BundleInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BundleInfo
bundleInfo(String host, String bundleSymbolicName, long bundleId, String bundleVersion, org.opencastproject.util.data.Option<String> buildNumber)
static BundleInfo
bundleInfo(String host, String bundleSymbolicName, long bundleId, String bundleVersion, org.opencastproject.util.data.Option<String> buildNumber, org.opencastproject.util.data.Option<String> dbSchemaVersion)
org.opencastproject.util.data.Option<String>
getBuildNumber()
Get the build number, e.g.long
getBundleId()
The bundle id in the OSGi container.String
getBundleSymbolicName()
The bundle's OSGi symbolic name.String
getBundleVersion()
The OSGi bundle version.String
getHost()
The host where the bundle lives.BundleVersion
getVersion()
The full bundle version which is a tuple ofBundleInfo.getBundleVersion()
andBundleInfo.getBuildNumber()
.
-
-
-
Method Detail
-
bundleInfo
public static BundleInfo bundleInfo(String host, String bundleSymbolicName, long bundleId, String bundleVersion, org.opencastproject.util.data.Option<String> buildNumber)
-
bundleInfo
public static BundleInfo bundleInfo(String host, String bundleSymbolicName, long bundleId, String bundleVersion, org.opencastproject.util.data.Option<String> buildNumber, org.opencastproject.util.data.Option<String> dbSchemaVersion)
-
getHost
public String getHost()
Description copied from interface:BundleInfo
The host where the bundle lives.- Specified by:
getHost
in interfaceBundleInfo
-
getBundleSymbolicName
public String getBundleSymbolicName()
Description copied from interface:BundleInfo
The bundle's OSGi symbolic name.- Specified by:
getBundleSymbolicName
in interfaceBundleInfo
-
getBundleId
public long getBundleId()
Description copied from interface:BundleInfo
The bundle id in the OSGi container.- Specified by:
getBundleId
in interfaceBundleInfo
-
getBundleVersion
public String getBundleVersion()
Description copied from interface:BundleInfo
The OSGi bundle version.- Specified by:
getBundleVersion
in interfaceBundleInfo
-
getBuildNumber
public org.opencastproject.util.data.Option<String> getBuildNumber()
Description copied from interface:BundleInfo
Get the build number, e.g. the git hash.- Specified by:
getBuildNumber
in interfaceBundleInfo
-
getVersion
public BundleVersion getVersion()
Description copied from interface:BundleInfo
The full bundle version which is a tuple ofBundleInfo.getBundleVersion()
andBundleInfo.getBuildNumber()
.- Specified by:
getVersion
in interfaceBundleInfo
-
-