public class BasicManagedBundle extends AbstractBrooklynObject implements ManagedBundle, BrooklynObjectInternal
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternalBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupport| Constructor and Description |
|---|
BasicManagedBundle()
Creates an empty one, with an ID, expecting other fields will be populated.
|
BasicManagedBundle(java.lang.String name,
java.lang.String version,
java.lang.String url,
Credentials credentials,
java.lang.String checksum) |
BasicManagedBundle(java.lang.String name,
java.lang.String version,
java.lang.String url,
java.lang.String checksum) |
| Modifier and Type | Method and Description |
|---|---|
BrooklynObjectInternal.ConfigurationSupportInternal |
config() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getChecksum()
MD5 checksum of the contents of bundle as installed to OSGi
|
<T> T |
getConfig(ConfigKey<T> key)
Convenience for calling
Configurable.ConfigurationSupport.get(ConfigKey),
via code like config().get(key). |
java.lang.String |
getDisplayName()
A display name; recommended to be a concise single-line description.
|
java.lang.String |
getOsgiUniqueUrl()
Gets the (internal) value to be used as the location in bundleContext.install(location).
|
java.lang.String |
getOsgiVersionString()
guaranteed to be in OSGi syntax, or null if name+version not available
|
boolean |
getPersistenceNeeded() |
RebindSupport<?> |
getRebindSupport() |
java.lang.String |
getSuppliedVersionString()
string as defined by caller; not necessarily in OSGi syntax
|
java.lang.String |
getSymbolicName() |
java.lang.String |
getUrl()
where this bundle can be downloaded; typically required unless we are guaranteed the bundle will be manually installed or handled by persistence
|
Credentials |
getUrlCredential() |
VersionedName |
getVersionedName() |
int |
hashCode() |
boolean |
isNameResolved() |
static ManagedBundle |
of(CatalogItem.CatalogBundle bundle) |
void |
setChecksum(java.lang.String md5Checksum) |
void |
setDisplayName(java.lang.String newName) |
void |
setPersistenceNeeded(boolean val) |
void |
setSymbolicName(java.lang.String symbolicName) |
void |
setUrl(java.lang.String url) |
void |
setVersion(java.lang.String version) |
BrooklynObjectInternal.SubscriptionSupportInternal |
subscriptions()
Subscriptions are the mechanism for receiving notifications of sensor-events (e.g.
|
java.lang.String |
toString() |
addSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, getManagementContext, init, rebind, relations, setCatalogItemId, setCatalogItemIdAndSearchPath, setManagementContext, stackCatalogItemId, tagsaddSearchPath, getManagementContext, relations, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemIdgetCatalogItemId, getCatalogItemIdSearchPath, tagsgetIdpublic BasicManagedBundle()
public BasicManagedBundle(java.lang.String name,
java.lang.String version,
java.lang.String url,
@Nullable
java.lang.String checksum)
public BasicManagedBundle(java.lang.String name,
java.lang.String version,
java.lang.String url,
Credentials credentials,
@Nullable
java.lang.String checksum)
public boolean isNameResolved()
isNameResolved in interface OsgiBundleWithUrlpublic java.lang.String getSymbolicName()
getSymbolicName in interface OsgiBundleWithUrlpublic void setSymbolicName(java.lang.String symbolicName)
public java.lang.String getSuppliedVersionString()
OsgiBundleWithUrlgetSuppliedVersionString in interface OsgiBundleWithUrlpublic java.lang.String getOsgiVersionString()
OsgiBundleWithUrlgetOsgiVersionString in interface OsgiBundleWithUrlpublic void setVersion(java.lang.String version)
public VersionedName getVersionedName()
getVersionedName in interface ManagedBundlegetVersionedName in interface OsgiBundleWithUrlVersionedName for this bundle, or null if not availablepublic java.lang.String getUrl()
OsgiBundleWithUrlgetUrl in interface OsgiBundleWithUrlpublic Credentials getUrlCredential()
getUrlCredential in interface OsgiBundleWithUrlOsgiBundleWithUrl.getUrl().public void setUrl(java.lang.String url)
public java.lang.String getOsgiUniqueUrl()
getOsgiUniqueUrl in interface ManagedBundlepublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getDisplayName()
BrooklynObjectgetDisplayName in interface BrooklynObjectpublic <T> T getConfig(ConfigKey<T> key)
ConfigurableConfigurable.ConfigurationSupport.get(ConfigKey),
via code like config().get(key).getConfig in interface Configurablepublic RebindSupport<?> getRebindSupport()
getRebindSupport in interface RebindablegetRebindSupport in interface BrooklynObjectInternalpublic BrooklynObjectInternal.ConfigurationSupportInternal config()
config in interface Configurableconfig in interface BrooklynObjectInternalpublic BrooklynObjectInternal.SubscriptionSupportInternal subscriptions()
BrooklynObjectsubscriptions in interface BrooklynObjectsubscriptions in interface BrooklynObjectInternalpublic void setDisplayName(java.lang.String newName)
setDisplayName in class AbstractBrooklynObjectpublic java.lang.String getChecksum()
ManagedBundlegetChecksum in interface ManagedBundlepublic void setChecksum(java.lang.String md5Checksum)
public static ManagedBundle of(CatalogItem.CatalogBundle bundle)
public void setPersistenceNeeded(boolean val)
public boolean getPersistenceNeeded()