congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
XMLUtil.parseInt
Code IndexAdd Tabnine to your IDE (free)

How to use
parseInt
method
in
org.apache.activemq.artemis.utils.XMLUtil

Best Java code snippets using org.apache.activemq.artemis.utils.XMLUtil.parseInt (Showing top 3 results out of 315)

origin: apache/activemq-artemis

public static final Integer getInteger(final Element e,
                   final String name,
                   final int def,
                   final Validators.Validator validator) {
 NodeList nl = e.getElementsByTagName(name);
 if (nl.getLength() > 0) {
   int val = XMLUtil.parseInt(nl.item(0));
   validator.validate(name, val);
   return val;
 } else {
   validator.validate(name, def);
   return def;
 }
}
origin: apache/activemq-artemis

/**
* @param node
* @return
*/
protected ResourceLimitSettings parseResourceLimitSettings(final Node node) {
 ResourceLimitSettings resourceLimitSettings = new ResourceLimitSettings();
 resourceLimitSettings.setMatch(SimpleString.toSimpleString(getAttributeValue(node, "match")));
 NodeList children = node.getChildNodes();
 for (int i = 0; i < children.getLength(); i++) {
   final Node child = children.item(i);
   final String name = child.getNodeName();
   if (MAX_CONNECTIONS_NODE_NAME.equalsIgnoreCase(name)) {
    resourceLimitSettings.setMaxConnections(XMLUtil.parseInt(child));
   } else if (MAX_QUEUES_NODE_NAME.equalsIgnoreCase(name)) {
    resourceLimitSettings.setMaxQueues(XMLUtil.parseInt(child));
   }
 }
 return resourceLimitSettings;
}
origin: apache/activemq-artemis

 addressSettings.setPageSizeBytes(ByteUtil.convertTextBytes(getTrimmedTextContent(child)));
} else if (PAGE_MAX_CACHE_SIZE_NODE_NAME.equalsIgnoreCase(name)) {
 addressSettings.setPageCacheMaxSize(XMLUtil.parseInt(child));
} else if (MESSAGE_COUNTER_HISTORY_DAY_LIMIT_NODE_NAME.equalsIgnoreCase(name)) {
 addressSettings.setMessageCounterHistoryDayLimit(XMLUtil.parseInt(child));
} else if (ADDRESS_FULL_MESSAGE_POLICY_NODE_NAME.equalsIgnoreCase(name)) {
 String value = getTrimmedTextContent(child);
 addressSettings.setDefaultExclusiveQueue(XMLUtil.parseBoolean(child));
} else if (MAX_DELIVERY_ATTEMPTS.equalsIgnoreCase(name)) {
 addressSettings.setMaxDeliveryAttempts(XMLUtil.parseInt(child));
} else if (REDISTRIBUTION_DELAY_NODE_NAME.equalsIgnoreCase(name)) {
 addressSettings.setRedistributionDelay(XMLUtil.parseLong(child));
 addressSettings.setConfigDeleteAddresses(policy);
} else if (MANAGEMENT_BROWSE_PAGE_SIZE.equalsIgnoreCase(name)) {
 addressSettings.setManagementBrowsePageSize(XMLUtil.parseInt(child));
} else if (DEFAULT_PURGE_ON_NO_CONSUMERS.equalsIgnoreCase(name)) {
 addressSettings.setDefaultPurgeOnNoConsumers(XMLUtil.parseBoolean(child));
} else if (DEFAULT_MAX_CONSUMERS.equalsIgnoreCase(name)) {
 addressSettings.setDefaultMaxConsumers(XMLUtil.parseInt(child));
} else if (DEFAULT_CONSUMERS_BEFORE_DISPATCH.equalsIgnoreCase(name)) {
 addressSettings.setDefaultConsumersBeforeDispatch(XMLUtil.parseInt(child));
} else if (DEFAULT_DELAY_BEFORE_DISPATCH.equalsIgnoreCase(name)) {
 addressSettings.setDefaultDelayBeforeDispatch(XMLUtil.parseLong(child));
 addressSettings.setDefaultAddressRoutingType(routingType);
} else if (DEFAULT_CONSUMER_WINDOW_SIZE.equalsIgnoreCase(name)) {
 addressSettings.setDefaultConsumerWindowSize(XMLUtil.parseInt(child));
org.apache.activemq.artemis.utilsXMLUtilparseInt

Popular methods of XMLUtil

  • assertEquivalent
  • elementToString
  • findResource
  • getTextContent
    Note: if the content is another element or set of elements, it returns a string representation of th
  • filter
  • readerToElement
  • replaceSystemProps
  • stringToElement
  • readerToString
  • validate
  • parseBoolean
  • parseDouble
  • parseBoolean,
  • parseDouble,
  • parseLong,
  • stripCDATA

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JButton (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now