Tabnine Logo
RelayConfig$PropertiesBridgeConfig
Code IndexAdd Tabnine to your IDE (free)

How to use
RelayConfig$PropertiesBridgeConfig
in
org.jgroups.protocols.relay.config

Best Java code snippets using org.jgroups.protocols.relay.config.RelayConfig$PropertiesBridgeConfig (Showing top 3 results out of 315)

origin: wildfly/wildfly

protected static void parseBridges(SiteConfig site_config, Node root) throws Exception {
  NodeList children=root.getChildNodes();
  if(children == null || children.getLength() == 0)
    return;
  for(int i=0; i < children.getLength(); i++) {
    Node node=children.item(i);
    if(node.getNodeType() != Node.ELEMENT_NODE)
      continue;
    String node_name=node.getNodeName();
    match(BRIDGE, node_name, true);
    NamedNodeMap attrs=node.getAttributes();
    if(attrs == null || attrs.getLength() == 0)
      continue;
    Attr name_attr=(Attr)attrs.getNamedItem("name");
    Attr config_attr=(Attr)attrs.getNamedItem("config");
    String name=name_attr != null? name_attr.getValue() : null;
    String config=config_attr.getValue();
    BridgeConfig bridge_config=new PropertiesBridgeConfig(name, config);
    site_config.addBridge(bridge_config);
  }
}
origin: org.jboss.eap/wildfly-client-all

protected static void parseBridges(SiteConfig site_config, Node root) throws Exception {
  NodeList children=root.getChildNodes();
  if(children == null || children.getLength() == 0)
    return;
  for(int i=0; i < children.getLength(); i++) {
    Node node=children.item(i);
    if(node.getNodeType() != Node.ELEMENT_NODE)
      continue;
    String node_name=node.getNodeName();
    match(BRIDGE, node_name, true);
    NamedNodeMap attrs=node.getAttributes();
    if(attrs == null || attrs.getLength() == 0)
      continue;
    Attr name_attr=(Attr)attrs.getNamedItem("name");
    Attr config_attr=(Attr)attrs.getNamedItem("config");
    String name=name_attr != null? name_attr.getValue() : null;
    String config=config_attr.getValue();
    BridgeConfig bridge_config=new PropertiesBridgeConfig(name, config);
    site_config.addBridge(bridge_config);
  }
}
origin: org.infinispan/infinispan-core

  @Override
  protected void parseSiteConfiguration(Map<String, RelayConfig.SiteConfig> map) throws Exception {
   super.parseSiteConfiguration(map);

   String testName = TestResourceTracker.getCurrentTestName();
   map.forEach((s, siteConfig) -> {
     List<RelayConfig.BridgeConfig> bridges = siteConfig.getBridges();
     for (int i = 0; i < bridges.size(); i++) {
      RelayConfig.BridgeConfig bridgeConfig = bridges.get(i);
      String config =
         (String) TestingUtil.extractField(RelayConfig.PropertiesBridgeConfig.class, bridgeConfig, "config");
      // Keep the same ports for all the tests, just change the cluster name
      String clusterName = "bridge-" + (testName != null ? testName : "namenotset");
      bridges.set(i, new RelayConfig.PropertiesBridgeConfig(clusterName, config));
     }
   });
  }
}
org.jgroups.protocols.relay.configRelayConfig$PropertiesBridgeConfig

Most used methods

  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Sublime Text plugins
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