[ 
http://jira.amdatu.org/jira/browse/AMDATU-397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11898#comment-11898
 ] 

Bram de Kruijff commented on AMDATU-397:
----------------------------------------

Some Felix bundles supply metatype OCD, most do not. We could add them ourselfs 
eg. in wrapped versions that handle multitenancy. The only moderately 
interesting option at this point is managing eventadmin resource usage. I 
suggest we forst work up the mt model before doing anything in this context. 

Sample metatype for eventadmin for future reference:

{code}

  <OCD id="org.apache.felix.eventadmin" name="Apache Felix EventAdmin 
configuration">
    <AD id="org.apache.felix.eventadmin.CacheSize" name="CacheSize" 
type="Integer" cardinality="0" default="30"
      required="false"
      description="The size of various internal caches. The default value is 
30. Increase in case of a large number (more then 100) of services. A value 
less then 10 triggers the default value." />
    <AD id="org.apache.felix.eventadmin.ThreadPoolSize" name="ThreadPoolSize" 
type="Integer" cardinality="0" default="10"
      required="false"
      description="The size of the thread pool. The default value is 10. 
Increase in case of a large amount of synchronous events where the event 
handler services in turn send new synchronous events in the event dispatching 
thread or a lot of timeouts are to be expected. A value of less then 2 triggers 
the default value. A value of 2 effectively disables thread pooling." />
    <AD id="org.apache.felix.eventadmin.Timeout" name="Timeout" type="Integer" 
cardinality="0" default="5000"
      required="false"
      description="The black-listing timeout in milliseconds. The default value 
is 5000. Increase or decrease at own discretion. A value of less then 100 turns 
timeouts off. Any other value is the time in milliseconds granted to each event 
handler before it gets blacklisted." />
    <AD id="org.apache.felix.eventadmin.RequireTopic" name="RequireTopic" 
type="Boolean" cardinality="0" default="true"
      required="true"
      description="The size of the thread pool. The default value is 10. 
Increase in case of a large amount of synchronous events where the event 
handler services in turn send new synchronous events in the event dispatching 
thread or a lot of timeouts are to be expected. A value of less then 2 triggers 
the default value. A value of 2 effectively disables thread pooling." />
    <AD id="org.apache.felix.eventadmin.IgnoreTimeout" name="IgnoreTimeout" 
type="String" cardinality="100" default=""
      required="false"
      description="Configure event handlers to be called without a timeout. If 
a timeout is configured by default all event handlers are called using the 
timeout. For performance optimization it is possible to configure event 
handlers where the timeout handling is not used - this reduces the thread usage 
from the thread pools as the timout handling requires an additional thread to 
call the event handler. However, the application should work without this 
configuration property. It is a pure optimization! The value is a list of 
strings. If a string ends with a dot, all handlers in exactly this package are 
ignored. If the string ends with a star, all handlers in this package and all 
subpackages are ignored. If the string neither ends with a dot nor with a 
start, this is assumed to define an exact class name." />
  </OCD>
  
  <Designate pid="org.apache.felix.eventadmin.impl.EventAdmin" bundle="*">
    <Object ocdref="org.apache.felix.eventadmin">
      <Attribute adref="org.apache.felix.eventadmin.CacheSize">
        <Value>10</Value>
      </Attribute>
      <Attribute adref="org.apache.felix.eventadmin.ThreadPoolSize">
        <Value>2</Value>
      </Attribute>
      <Attribute adref="org.apache.felix.eventadmin.Timeout">
        <Value>30000</Value>
      </Attribute>
      <Attribute adref="org.apache.felix.eventadmin.RequireTopic">
        <Value>true</Value>
      </Attribute>
      <Attribute adref="org.apache.felix.eventadmin.IgnoreTimeout">
        <Value><![CDATA[org.amdatu.core.]]></Value>
        <Value><![CDATA[org.amdatu.web.]]></Value>
      </Attribute>
    </Object>
  </Designate>
{code}

                
> Convert Amdatu platform config to metatype
> ------------------------------------------
>
>                 Key: AMDATU-397
>                 URL: http://jira.amdatu.org/jira/browse/AMDATU-397
>             Project: Amdatu
>          Issue Type: Task
>          Components: Amdatu Core, Amdatu Web
>    Affects Versions: 0.3.0
>            Reporter: Bram de Kruijff
>            Assignee: Bram de Kruijff
>             Fix For: 0.3.0
>
>
> In order to be able to provision platform configuration onto a target the 
> configuration files need to be changed into metatype xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://jira.amdatu.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers

Reply via email to