org.apache.aries.jmx.provisioning
Class ProvisioningService

java.lang.Object
  extended by org.apache.aries.jmx.provisioning.ProvisioningService
All Implemented Interfaces:
ProvisioningServiceMBean

public class ProvisioningService
extends Object
implements ProvisioningServiceMBean

Implementation of ProvisioningServiceMBean

Version:
$Rev: 943268 $ $Date: 2010-05-11 21:19:02 +0100 (Tue, 11 May 2010) $

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

ProvisioningService

public ProvisioningService(org.osgi.service.provisioning.ProvisioningService provisioningService)
Constructs new ProvisioningService instance

Parameters:
provisioningService - instance of org.osgi.service.provisioning.ProvisioningService service
Method Detail

addInformationFromZip

public void addInformationFromZip(String zipURL)
                           throws IOException
Description copied from interface: ProvisioningServiceMBean
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. This method causes the PROVISIONING_UPDATE_COUNT to be incremented.

Specified by:
addInformationFromZip in interface ProvisioningServiceMBean
Parameters:
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.
Throws:
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.
See Also:
ProvisioningServiceMBean.addInformationFromZip(java.lang.String)

addInformation

public void addInformation(TabularData info)
                    throws IOException
Description copied from interface: ProvisioningServiceMBean
Adds the key/value pairs contained in info to the Provisioning Information dictionary. This method causes the PROVISIONING_UPDATE_COUNT to be incremented.

Specified by:
addInformation in interface ProvisioningServiceMBean
Parameters:
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.
Throws:
IOException - if the operation fails
See Also:
ProvisioningServiceMBean.addInformation(javax.management.openmbean.TabularData)

listInformation

public TabularData listInformation()
                            throws IOException
Description copied from interface: ProvisioningServiceMBean
Returns a table representing the Provisioning Information Dictionary.

Specified by:
listInformation in interface ProvisioningServiceMBean
Returns:
The table representing the manager dictionary.
Throws:
IOException - if the operation fails
See Also:
ProvisioningServiceMBean.listInformation()

setInformation

public void setInformation(TabularData info)
                    throws IOException
Description copied from interface: ProvisioningServiceMBean
Replaces the Provisioning Information dictionary with the entries of the supplied table. This method causes the PROVISIONING_UPDATE_COUNT to be incremented.

Specified by:
setInformation in interface ProvisioningServiceMBean
Parameters:
info - the new set of Provisioning Information key/value pairs. Any keys are values that are of an invalid type will be silently ignored.
Throws:
IOException - if the operation fails
See Also:
ProvisioningServiceMBean.setInformation(javax.management.openmbean.TabularData)

extractProvisioningDictionary

protected Dictionary<String,Object> extractProvisioningDictionary(TabularData info)

createStream

protected InputStream createStream(String url)
                            throws IOException
Throws:
IOException


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.