@Address(value="/subsystem=mongodb/mongo=*") public class Mongo<T extends Mongo<T>> extends HashMap implements org.wildfly.swarm.config.runtime.Keyed
| Modifier and Type | Class and Description |
|---|---|
static class |
Mongo.AuthType |
static class |
Mongo.MongoResources
Child mutators for Mongo
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Mongo.AuthType |
authType()
MongoDB authorization type
|
T |
authType(Mongo.AuthType value)
MongoDB authorization type
|
String |
database()
MongoDB database name
|
T |
database(String value)
MongoDB database name
|
String |
getKey() |
T |
host(Host value)
Add the Host object to the list of subresources
|
T |
host(HostSupplier supplier)
Install a supplied Host object to the list of subresources
|
T |
host(String childKey)
Create and configure a Host object to the list of subresources
|
T |
host(String childKey,
HostConsumer consumer)
Create and configure a Host object to the list of subresources
|
T |
hosts(List<Host> value)
Add all Host objects to this subresource
|
String |
id()
Unique profile identification
|
T |
id(String value)
Unique profile identification
|
String |
jndiName()
JNDI address
|
T |
jndiName(String value)
JNDI address
|
String |
module()
Module name
|
T |
module(String value)
Module name
|
T |
properties(List<Properties> value)
Add all Properties objects to this subresource
|
T |
properties(Properties value)
Add the Properties object to the list of subresources
|
T |
properties(PropertiesSupplier supplier)
Install a supplied Properties object to the list of subresources
|
T |
properties(String childKey)
Create and configure a Properties object to the list of subresources
|
T |
properties(String childKey,
PropertiesConsumer consumer)
Create and configure a Properties object to the list of subresources
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
String |
securityDomain()
Security domain name
|
T |
securityDomain(String value)
Security domain name
|
Boolean |
ssl()
use SSL for connecting to MongoDB
|
T |
ssl(Boolean value)
use SSL for connecting to MongoDB
|
Mongo.MongoResources |
subresources() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic Mongo(String key)
public String getKey()
getKey in interface org.wildfly.swarm.config.runtime.Keyedpublic void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Mongo.MongoResources subresources()
public T hosts(List<Host> value)
value - List of Host objects.public T host(Host value)
value - The Host to addpublic T host(String childKey, HostConsumer consumer)
key - The key for the Host resourceconfig - The HostConsumer to usepublic T host(String childKey)
key - The key for the Host resourcepublic T host(HostSupplier supplier)
public T properties(List<Properties> value)
value - List of Properties objects.public T properties(Properties value)
value - The Properties to addpublic T properties(String childKey, PropertiesConsumer consumer)
key - The key for the Properties resourceconfig - The PropertiesConsumer to usepublic T properties(String childKey)
key - The key for the Properties resourcepublic T properties(PropertiesSupplier supplier)
@ModelNodeBinding(detypedName="auth-type") public Mongo.AuthType authType()
public T authType(Mongo.AuthType value)
@ModelNodeBinding(detypedName="database") public String database()
@ModelNodeBinding(detypedName="id") public String id()
@ModelNodeBinding(detypedName="jndi-name") public String jndiName()
@ModelNodeBinding(detypedName="module") public String module()
@ModelNodeBinding(detypedName="security-domain") public String securityDomain()
@ModelNodeBinding(detypedName="ssl") public Boolean ssl()
Copyright © 2017 JBoss by Red Hat. All rights reserved.