|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.jmx.provisioning.ProvisioningService
public class ProvisioningService
Implementation of ProvisioningServiceMBean
Field Summary |
---|
Fields inherited from interface org.osgi.jmx.service.provisioning.ProvisioningServiceMBean |
---|
OBJECTNAME |
Constructor Summary | |
---|---|
ProvisioningService(org.osgi.service.provisioning.ProvisioningService provisioningService)
Constructs new ProvisioningService instance |
Method Summary | |
---|---|
void |
addInformation(TabularData info)
Adds the key/value pairs contained in info to the
Provisioning Information dictionary. |
void |
addInformationFromZip(String zipURL)
Processes the ZipInputStream contents of the provided
zipURL and extracts information to add to the Provisioning Information
dictionary, as well as, install/update and start bundles. |
protected InputStream |
createStream(String url)
|
protected Dictionary<String,Object> |
extractProvisioningDictionary(TabularData info)
|
TabularData |
listInformation()
Returns a table representing the Provisioning Information Dictionary. |
void |
setInformation(TabularData info)
Replaces the Provisioning Information dictionary with the entries of the supplied table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProvisioningService(org.osgi.service.provisioning.ProvisioningService provisioningService)
provisioningService
- instance of org.osgi.service.provisioning.ProvisioningService serviceMethod Detail |
---|
public void addInformationFromZip(String zipURL) throws IOException
ProvisioningServiceMBean
ZipInputStream
contents of the provided
zipURL and extracts information to add to the Provisioning Information
dictionary, as well as, install/update and start bundles. This method
causes the PROVISIONING_UPDATE_COUNT
to be incremented.
addInformationFromZip
in interface ProvisioningServiceMBean
zipURL
- the String form of the URL that will be resolved into a
ZipInputStream
which will be used to add key/value
pairs to the Provisioning Information dictionary and install and
start bundles. If a ZipEntry
does not have an
Extra
field that corresponds to one of the four
defined MIME types (MIME_STRING
,
MIME_BYTE_ARRAY
,MIME_BUNDLE
, and
MIME_BUNDLE_URL
) in will be silently ignored.
IOException
- if an error occurs while processing the
ZipInputStream of the URL. No additions will be made to the
Provisioning Information dictionary and no bundles must be
started or installed.ProvisioningServiceMBean.addInformationFromZip(java.lang.String)
public void addInformation(TabularData info) throws IOException
ProvisioningServiceMBean
info
to the
Provisioning Information dictionary. This method causes the
PROVISIONING_UPDATE_COUNT
to be incremented.
addInformation
in interface ProvisioningServiceMBean
info
- the set of Provisioning Information key/value pairs to add to
the Provisioning Information dictionary. Any keys are values that
are of an invalid type will be silently ignored.
IOException
- if the operation failsProvisioningServiceMBean.addInformation(javax.management.openmbean.TabularData)
public TabularData listInformation() throws IOException
ProvisioningServiceMBean
listInformation
in interface ProvisioningServiceMBean
IOException
- if the operation failsProvisioningServiceMBean.listInformation()
public void setInformation(TabularData info) throws IOException
ProvisioningServiceMBean
PROVISIONING_UPDATE_COUNT
to be incremented.
setInformation
in interface ProvisioningServiceMBean
info
- the new set of Provisioning Information key/value pairs. Any
keys are values that are of an invalid type will be silently
ignored.
IOException
- if the operation failsProvisioningServiceMBean.setInformation(javax.management.openmbean.TabularData)
protected Dictionary<String,Object> extractProvisioningDictionary(TabularData info)
protected InputStream createStream(String url) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |