TorqueBox 3.1.2

org.torquebox.core.pool.processors
Class PoolingYamlParsingProcessor

java.lang.Object
  extended by org.projectodd.polyglot.core.processors.FileLocatingProcessor
      extended by org.projectodd.polyglot.core.processors.AbstractParsingProcessor
          extended by org.torquebox.core.processors.AbstractSplitYamlParsingProcessor
              extended by org.torquebox.core.pool.processors.PoolingYamlParsingProcessor
All Implemented Interfaces:
org.jboss.as.server.deployment.DeploymentUnitProcessor

public class PoolingYamlParsingProcessor
extends AbstractSplitYamlParsingProcessor

Parsing deployer for pooling.yml.

This deployer looks for metadata files named exactly pooling.yml, which is expected to be a YAML file describing the configuration of various Ruby runtime interpreter pools.

The top-level of the YAML file should be a hash, with the pool identifier as the key. The value of each map may be the strings global or shared, or another hash specifying min and max values for the pool size.

   pool_one: global
   pool_two: shared
   pool_three:
     min: 5
     max: 25
 

Author:
Bob McWhirter
See Also:
PoolMetaData

Constructor Summary
PoolingYamlParsingProcessor()
          Construct.
 
Method Summary
 void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
           
 void parse(org.jboss.as.server.deployment.DeploymentUnit unit, Object dataObj)
           
 
Methods inherited from class org.torquebox.core.processors.AbstractSplitYamlParsingProcessor
getFileName, getSectionName, isStandaloneDeprecated, isSupportsRootless, isSupportsStandalone, isSupportsSuffix, logDeprecation, setFileName, setSectionName, setStandaloneDeprecated, setSupportsRootless, setSupportsStandalone, setSupportsSuffix
 
Methods inherited from class org.projectodd.polyglot.core.processors.AbstractParsingProcessor
getMetaDataFile, getMetaDataFileBySuffix, undeploy
 
Methods inherited from class org.projectodd.polyglot.core.processors.FileLocatingProcessor
getFile, getFilesBySuffix, hasAnyOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolingYamlParsingProcessor

public PoolingYamlParsingProcessor()
Construct.

Method Detail

deploy

public void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
            throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
Specified by:
deploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor
Overrides:
deploy in class AbstractSplitYamlParsingProcessor
Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException

parse

public void parse(org.jboss.as.server.deployment.DeploymentUnit unit,
                  Object dataObj)
           throws Exception
Specified by:
parse in class AbstractSplitYamlParsingProcessor
Throws:
Exception

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.