repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/transform/TransformerRegistry.java
TransformerRegistry.resolveServer
public OperationTransformerRegistry resolveServer(final ModelVersion mgmtVersion, final ModelNode subsystems) { return resolveServer(mgmtVersion, resolveVersions(subsystems)); }
java
public OperationTransformerRegistry resolveServer(final ModelVersion mgmtVersion, final ModelNode subsystems) { return resolveServer(mgmtVersion, resolveVersions(subsystems)); }
[ "public", "OperationTransformerRegistry", "resolveServer", "(", "final", "ModelVersion", "mgmtVersion", ",", "final", "ModelNode", "subsystems", ")", "{", "return", "resolveServer", "(", "mgmtVersion", ",", "resolveVersions", "(", "subsystems", ")", ")", ";", "}" ]
Resolve the server registry. @param mgmtVersion the mgmt version @param subsystems the subsystems @return the transformer registry
[ "Resolve", "the", "server", "registry", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/transform/TransformerRegistry.java#L224-L226
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/transform/TransformerRegistry.java
TransformerRegistry.addSubsystem
void addSubsystem(final OperationTransformerRegistry registry, final String name, final ModelVersion version) { final OperationTransformerRegistry profile = registry.getChild(PathAddress.pathAddress(PROFILE)); final OperationTransformerRegistry server = registry.getChild(PathAddress.pathAddress(HOST, SE...
java
void addSubsystem(final OperationTransformerRegistry registry, final String name, final ModelVersion version) { final OperationTransformerRegistry profile = registry.getChild(PathAddress.pathAddress(PROFILE)); final OperationTransformerRegistry server = registry.getChild(PathAddress.pathAddress(HOST, SE...
[ "void", "addSubsystem", "(", "final", "OperationTransformerRegistry", "registry", ",", "final", "String", "name", ",", "final", "ModelVersion", "version", ")", "{", "final", "OperationTransformerRegistry", "profile", "=", "registry", ".", "getChild", "(", "PathAddress...
Add a new subsystem to a given registry. @param registry the registry @param name the subsystem name @param version the version
[ "Add", "a", "new", "subsystem", "to", "a", "given", "registry", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/transform/TransformerRegistry.java#L248-L256
train
wildfly/wildfly-core
domain-management/src/main/java/org/jboss/as/domain/management/security/PropertiesFileLoader.java
PropertiesFileLoader.persistProperties
public synchronized void persistProperties() throws IOException { beginPersistence(); // Read the properties file into memory // Shouldn't be so bad - it's a small file List<String> content = readFile(propertiesFile); BufferedWriter bw = new BufferedWriter(new OutputStreamWrite...
java
public synchronized void persistProperties() throws IOException { beginPersistence(); // Read the properties file into memory // Shouldn't be so bad - it's a small file List<String> content = readFile(propertiesFile); BufferedWriter bw = new BufferedWriter(new OutputStreamWrite...
[ "public", "synchronized", "void", "persistProperties", "(", ")", "throws", "IOException", "{", "beginPersistence", "(", ")", ";", "// Read the properties file into memory", "// Shouldn't be so bad - it's a small file", "List", "<", "String", ">", "content", "=", "readFile",...
Saves changes in properties file. It reads the property file into memory, modifies it and saves it back to the file. @throws IOException
[ "Saves", "changes", "in", "properties", "file", ".", "It", "reads", "the", "property", "file", "into", "memory", "modifies", "it", "and", "saves", "it", "back", "to", "the", "file", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/domain-management/src/main/java/org/jboss/as/domain/management/security/PropertiesFileLoader.java#L216-L252
train
wildfly/wildfly-core
domain-management/src/main/java/org/jboss/as/domain/management/security/PropertiesFileLoader.java
PropertiesFileLoader.addLineContent
protected void addLineContent(BufferedReader bufferedFileReader, List<String> content, String line) throws IOException { content.add(line); }
java
protected void addLineContent(BufferedReader bufferedFileReader, List<String> content, String line) throws IOException { content.add(line); }
[ "protected", "void", "addLineContent", "(", "BufferedReader", "bufferedFileReader", ",", "List", "<", "String", ">", "content", ",", "String", "line", ")", "throws", "IOException", "{", "content", ".", "add", "(", "line", ")", ";", "}" ]
Add the line to the content @param bufferedFileReader The file reader @param content The content of the file @param line The current read line @throws IOException
[ "Add", "the", "line", "to", "the", "content" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/domain-management/src/main/java/org/jboss/as/domain/management/security/PropertiesFileLoader.java#L301-L303
train
wildfly/wildfly-core
domain-management/src/main/java/org/jboss/as/domain/management/security/PropertiesFileLoader.java
PropertiesFileLoader.endPersistence
protected void endPersistence(final BufferedWriter writer) throws IOException { // Append any additional users to the end of the file. for (Object currentKey : toSave.keySet()) { String key = (String) currentKey; if (!key.contains(DISABLE_SUFFIX_KEY)) { writePrope...
java
protected void endPersistence(final BufferedWriter writer) throws IOException { // Append any additional users to the end of the file. for (Object currentKey : toSave.keySet()) { String key = (String) currentKey; if (!key.contains(DISABLE_SUFFIX_KEY)) { writePrope...
[ "protected", "void", "endPersistence", "(", "final", "BufferedWriter", "writer", ")", "throws", "IOException", "{", "// Append any additional users to the end of the file.", "for", "(", "Object", "currentKey", ":", "toSave", ".", "keySet", "(", ")", ")", "{", "String"...
Method called to indicate persisting the properties file is now complete. @throws IOException
[ "Method", "called", "to", "indicate", "persisting", "the", "properties", "file", "is", "now", "complete", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/domain-management/src/main/java/org/jboss/as/domain/management/security/PropertiesFileLoader.java#L326-L336
train
wildfly/wildfly-core
server/src/main/java/org/jboss/as/server/deployment/ServicesAttachment.java
ServicesAttachment.getServiceImplementations
public List<String> getServiceImplementations(String serviceTypeName) { final List<String> strings = services.get(serviceTypeName); return strings == null ? Collections.<String>emptyList() : Collections.unmodifiableList(strings); }
java
public List<String> getServiceImplementations(String serviceTypeName) { final List<String> strings = services.get(serviceTypeName); return strings == null ? Collections.<String>emptyList() : Collections.unmodifiableList(strings); }
[ "public", "List", "<", "String", ">", "getServiceImplementations", "(", "String", "serviceTypeName", ")", "{", "final", "List", "<", "String", ">", "strings", "=", "services", ".", "get", "(", "serviceTypeName", ")", ";", "return", "strings", "==", "null", "...
Get the service implementations for a given type name. @param serviceTypeName the type name @return the possibly empty list of services
[ "Get", "the", "service", "implementations", "for", "a", "given", "type", "name", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deployment/ServicesAttachment.java#L48-L51
train
wildfly/wildfly-core
cli/src/main/java/org/jboss/as/cli/embedded/EmbeddedLogContext.java
EmbeddedLogContext.configureLogContext
static synchronized LogContext configureLogContext(final File logDir, final File configDir, final String defaultLogFileName, final CommandContext ctx) { final LogContext embeddedLogContext = Holder.LOG_CONTEXT; final Path bootLog = logDir.toPath().resolve(Paths.get(defaultLogFileName)); final Pa...
java
static synchronized LogContext configureLogContext(final File logDir, final File configDir, final String defaultLogFileName, final CommandContext ctx) { final LogContext embeddedLogContext = Holder.LOG_CONTEXT; final Path bootLog = logDir.toPath().resolve(Paths.get(defaultLogFileName)); final Pa...
[ "static", "synchronized", "LogContext", "configureLogContext", "(", "final", "File", "logDir", ",", "final", "File", "configDir", ",", "final", "String", "defaultLogFileName", ",", "final", "CommandContext", "ctx", ")", "{", "final", "LogContext", "embeddedLogContext"...
Configures the log context for the server and returns the configured log context. @param logDir the logging directory, from jboss.server|domain.log.dir standalone default {@code $JBOSS_HOME/standalone/log} @param configDir the configuration directory from jboss.server|domain.config.dir, standalone...
[ "Configures", "the", "log", "context", "for", "the", "server", "and", "returns", "the", "configured", "log", "context", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/embedded/EmbeddedLogContext.java#L65-L88
train
wildfly/wildfly-core
cli/src/main/java/org/jboss/as/cli/embedded/EmbeddedLogContext.java
EmbeddedLogContext.clearLogContext
static synchronized void clearLogContext() { final LogContext embeddedLogContext = Holder.LOG_CONTEXT; // Remove the configurator and clear the log context final Configurator configurator = embeddedLogContext.getLogger("").detach(Configurator.ATTACHMENT_KEY); // If this was a PropertyCon...
java
static synchronized void clearLogContext() { final LogContext embeddedLogContext = Holder.LOG_CONTEXT; // Remove the configurator and clear the log context final Configurator configurator = embeddedLogContext.getLogger("").detach(Configurator.ATTACHMENT_KEY); // If this was a PropertyCon...
[ "static", "synchronized", "void", "clearLogContext", "(", ")", "{", "final", "LogContext", "embeddedLogContext", "=", "Holder", ".", "LOG_CONTEXT", ";", "// Remove the configurator and clear the log context", "final", "Configurator", "configurator", "=", "embeddedLogContext",...
Attempts to clear the global log context used for embedded servers.
[ "Attempts", "to", "clear", "the", "global", "log", "context", "used", "for", "embedded", "servers", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/embedded/EmbeddedLogContext.java#L93-L122
train
wildfly/wildfly-core
domain-http/interface/src/main/java/org/jboss/as/domain/http/server/cors/CorsUtil.java
CorsUtil.matchOrigin
public static String matchOrigin(HttpServerExchange exchange, Collection<String> allowedOrigins) throws Exception { HeaderMap headers = exchange.getRequestHeaders(); String[] origins = headers.get(Headers.ORIGIN).toArray(); if (allowedOrigins != null && !allowedOrigins.isEmpty()) { f...
java
public static String matchOrigin(HttpServerExchange exchange, Collection<String> allowedOrigins) throws Exception { HeaderMap headers = exchange.getRequestHeaders(); String[] origins = headers.get(Headers.ORIGIN).toArray(); if (allowedOrigins != null && !allowedOrigins.isEmpty()) { f...
[ "public", "static", "String", "matchOrigin", "(", "HttpServerExchange", "exchange", ",", "Collection", "<", "String", ">", "allowedOrigins", ")", "throws", "Exception", "{", "HeaderMap", "headers", "=", "exchange", ".", "getRequestHeaders", "(", ")", ";", "String"...
Match the Origin header with the allowed origins. If it doesn't match then a 403 response code is set on the response and it returns null. @param exchange the current HttpExchange. @param allowedOrigins list of sanitized allowed origins. @return the first matching origin, null otherwise. @throws Exception
[ "Match", "the", "Origin", "header", "with", "the", "allowed", "origins", ".", "If", "it", "doesn", "t", "match", "then", "a", "403", "response", "code", "is", "set", "on", "the", "response", "and", "it", "returns", "null", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/domain-http/interface/src/main/java/org/jboss/as/domain/http/server/cors/CorsUtil.java#L55-L76
train
wildfly/wildfly-core
server/src/main/java/org/jboss/as/server/deployment/reflect/DeploymentReflectionIndex.java
DeploymentReflectionIndex.create
public static DeploymentReflectionIndex create() { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(ServerPermission.CREATE_DEPLOYMENT_REFLECTION_INDEX); } return new DeploymentReflectionIndex(); }
java
public static DeploymentReflectionIndex create() { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(ServerPermission.CREATE_DEPLOYMENT_REFLECTION_INDEX); } return new DeploymentReflectionIndex(); }
[ "public", "static", "DeploymentReflectionIndex", "create", "(", ")", "{", "final", "SecurityManager", "sm", "=", "System", ".", "getSecurityManager", "(", ")", ";", "if", "(", "sm", "!=", "null", ")", "{", "sm", ".", "checkPermission", "(", "ServerPermission",...
Construct a new instance. @return the new instance
[ "Construct", "a", "new", "instance", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deployment/reflect/DeploymentReflectionIndex.java#L49-L55
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/registry/AbstractResourceRegistration.java
AbstractResourceRegistration.getOperationDescriptions
@Override public final Map<String, OperationEntry> getOperationDescriptions(final PathAddress address, boolean inherited) { if (parent != null) { RootInvocation ri = getRootInvocation(); return ri.root.getOperationDescriptions(ri.pathAddress.append(address), inherited); } ...
java
@Override public final Map<String, OperationEntry> getOperationDescriptions(final PathAddress address, boolean inherited) { if (parent != null) { RootInvocation ri = getRootInvocation(); return ri.root.getOperationDescriptions(ri.pathAddress.append(address), inherited); } ...
[ "@", "Override", "public", "final", "Map", "<", "String", ",", "OperationEntry", ">", "getOperationDescriptions", "(", "final", "PathAddress", "address", ",", "boolean", "inherited", ")", "{", "if", "(", "parent", "!=", "null", ")", "{", "RootInvocation", "ri"...
Get all the handlers at a specific address. @param address the address @param inherited true to include the inherited operations @return the handlers
[ "Get", "all", "the", "handlers", "at", "a", "specific", "address", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/registry/AbstractResourceRegistration.java#L228-L239
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/registry/AbstractResourceRegistration.java
AbstractResourceRegistration.hasNoAlternativeWildcardRegistration
boolean hasNoAlternativeWildcardRegistration() { return parent == null || PathElement.WILDCARD_VALUE.equals(valueString) || !parent.getChildNames().contains(PathElement.WILDCARD_VALUE); }
java
boolean hasNoAlternativeWildcardRegistration() { return parent == null || PathElement.WILDCARD_VALUE.equals(valueString) || !parent.getChildNames().contains(PathElement.WILDCARD_VALUE); }
[ "boolean", "hasNoAlternativeWildcardRegistration", "(", ")", "{", "return", "parent", "==", "null", "||", "PathElement", ".", "WILDCARD_VALUE", ".", "equals", "(", "valueString", ")", "||", "!", "parent", ".", "getChildNames", "(", ")", ".", "contains", "(", "...
Gets whether this registration has an alternative wildcard registration
[ "Gets", "whether", "this", "registration", "has", "an", "alternative", "wildcard", "registration" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/registry/AbstractResourceRegistration.java#L427-L429
train
wildfly/wildfly-core
cli/src/main/java/org/jboss/as/cli/accesscontrol/CLIAccessControl.java
CLIAccessControl.getAccessControl
public static ModelNode getAccessControl(ModelControllerClient client, OperationRequestAddress address, boolean operations) { return getAccessControl(client, null, address, operations); }
java
public static ModelNode getAccessControl(ModelControllerClient client, OperationRequestAddress address, boolean operations) { return getAccessControl(client, null, address, operations); }
[ "public", "static", "ModelNode", "getAccessControl", "(", "ModelControllerClient", "client", ",", "OperationRequestAddress", "address", ",", "boolean", "operations", ")", "{", "return", "getAccessControl", "(", "client", ",", "null", ",", "address", ",", "operations",...
Executed read-resource-description and returns access-control info. Returns null in case there was any kind of problem. @param client @param address @return
[ "Executed", "read", "-", "resource", "-", "description", "and", "returns", "access", "-", "control", "info", ".", "Returns", "null", "in", "case", "there", "was", "any", "kind", "of", "problem", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/accesscontrol/CLIAccessControl.java#L86-L88
train
wildfly/wildfly-core
cli/src/main/java/org/jboss/as/cli/impl/aesh/SynopsisGenerator.java
SynopsisGenerator.generateSynopsis
String generateSynopsis() { synopsisOptions = buildSynopsisOptions(opts, arg, domain); StringBuilder synopsisBuilder = new StringBuilder(); if (parentName != null) { synopsisBuilder.append(parentName).append(" "); } synopsisBuilder.append(commandName); if (isO...
java
String generateSynopsis() { synopsisOptions = buildSynopsisOptions(opts, arg, domain); StringBuilder synopsisBuilder = new StringBuilder(); if (parentName != null) { synopsisBuilder.append(parentName).append(" "); } synopsisBuilder.append(commandName); if (isO...
[ "String", "generateSynopsis", "(", ")", "{", "synopsisOptions", "=", "buildSynopsisOptions", "(", "opts", ",", "arg", ",", "domain", ")", ";", "StringBuilder", "synopsisBuilder", "=", "new", "StringBuilder", "(", ")", ";", "if", "(", "parentName", "!=", "null"...
main class entry point.
[ "main", "class", "entry", "point", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/impl/aesh/SynopsisGenerator.java#L82-L123
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/installation/InstalledIdentity.java
InstalledIdentity.load
protected static InstallationModificationImpl.InstallationState load(final InstalledIdentity installedIdentity) throws IOException { final InstallationModificationImpl.InstallationState state = new InstallationModificationImpl.InstallationState(); for (final Layer layer : installedIdentity.getLayers()) ...
java
protected static InstallationModificationImpl.InstallationState load(final InstalledIdentity installedIdentity) throws IOException { final InstallationModificationImpl.InstallationState state = new InstallationModificationImpl.InstallationState(); for (final Layer layer : installedIdentity.getLayers()) ...
[ "protected", "static", "InstallationModificationImpl", ".", "InstallationState", "load", "(", "final", "InstalledIdentity", "installedIdentity", ")", "throws", "IOException", "{", "final", "InstallationModificationImpl", ".", "InstallationState", "state", "=", "new", "Insta...
Load the installation state based on the identity @param installedIdentity the installed identity @return the installation state @throws IOException
[ "Load", "the", "installation", "state", "based", "on", "the", "identity" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/installation/InstalledIdentity.java#L173-L182
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/installation/InstalledIdentity.java
InstalledIdentity.load
public static InstalledIdentity load(final File jbossHome, final ProductConfig productConfig, final File... repoRoots) throws IOException { final InstalledImage installedImage = installedImage(jbossHome); return load(installedImage, productConfig, Arrays.<File>asList(repoRoots), Collections.<File>emptyL...
java
public static InstalledIdentity load(final File jbossHome, final ProductConfig productConfig, final File... repoRoots) throws IOException { final InstalledImage installedImage = installedImage(jbossHome); return load(installedImage, productConfig, Arrays.<File>asList(repoRoots), Collections.<File>emptyL...
[ "public", "static", "InstalledIdentity", "load", "(", "final", "File", "jbossHome", ",", "final", "ProductConfig", "productConfig", ",", "final", "File", "...", "repoRoots", ")", "throws", "IOException", "{", "final", "InstalledImage", "installedImage", "=", "instal...
Load the layers based on the default setup. @param jbossHome the jboss home directory @param productConfig the product config @param repoRoots the repository roots @return the available layers @throws IOException
[ "Load", "the", "layers", "based", "on", "the", "default", "setup", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/installation/InstalledIdentity.java#L193-L196
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/installation/InstalledIdentity.java
InstalledIdentity.load
public static InstalledIdentity load(final InstalledImage installedImage, final ProductConfig productConfig, List<File> moduleRoots, final List<File> bundleRoots) throws IOException { return LayersFactory.load(installedImage, productConfig, moduleRoots, bundleRoots); }
java
public static InstalledIdentity load(final InstalledImage installedImage, final ProductConfig productConfig, List<File> moduleRoots, final List<File> bundleRoots) throws IOException { return LayersFactory.load(installedImage, productConfig, moduleRoots, bundleRoots); }
[ "public", "static", "InstalledIdentity", "load", "(", "final", "InstalledImage", "installedImage", ",", "final", "ProductConfig", "productConfig", ",", "List", "<", "File", ">", "moduleRoots", ",", "final", "List", "<", "File", ">", "bundleRoots", ")", "throws", ...
Load the InstalledIdentity configuration based on the module.path @param installedImage the installed image @param productConfig the product config @param moduleRoots the module roots @param bundleRoots the bundle roots @return the available layers @throws IOException
[ "Load", "the", "InstalledIdentity", "configuration", "based", "on", "the", "module", ".", "path" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/installation/InstalledIdentity.java#L208-L210
train
wildfly/wildfly-core
protocol/src/main/java/org/jboss/as/protocol/ProtocolConnectionManager.java
ProtocolConnectionManager.shutdown
public void shutdown() { final Connection connection; synchronized (this) { if(shutdown) return; shutdown = true; connection = this.connection; if(connectTask != null) { connectTask.shutdown(); } } if (connection...
java
public void shutdown() { final Connection connection; synchronized (this) { if(shutdown) return; shutdown = true; connection = this.connection; if(connectTask != null) { connectTask.shutdown(); } } if (connection...
[ "public", "void", "shutdown", "(", ")", "{", "final", "Connection", "connection", ";", "synchronized", "(", "this", ")", "{", "if", "(", "shutdown", ")", "return", ";", "shutdown", "=", "true", ";", "connection", "=", "this", ".", "connection", ";", "if"...
Shutdown the connection manager.
[ "Shutdown", "the", "connection", "manager", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/ProtocolConnectionManager.java#L109-L122
train
wildfly/wildfly-core
protocol/src/main/java/org/jboss/as/protocol/ProtocolConnectionManager.java
ProtocolConnectionManager.onConnectionClose
private void onConnectionClose(final Connection closed) { synchronized (this) { if(connection == closed) { connection = null; if(shutdown) { connectTask = DISCONNECTED; return; } final ConnectTask...
java
private void onConnectionClose(final Connection closed) { synchronized (this) { if(connection == closed) { connection = null; if(shutdown) { connectTask = DISCONNECTED; return; } final ConnectTask...
[ "private", "void", "onConnectionClose", "(", "final", "Connection", "closed", ")", "{", "synchronized", "(", "this", ")", "{", "if", "(", "connection", "==", "closed", ")", "{", "connection", "=", "null", ";", "if", "(", "shutdown", ")", "{", "connectTask"...
Notification that a connection was closed. @param closed the closed connection
[ "Notification", "that", "a", "connection", "was", "closed", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/ProtocolConnectionManager.java#L129-L141
train
wildfly/wildfly-core
protocol/src/main/java/org/jboss/as/protocol/ProtocolConnectionManager.java
ProtocolConnectionManager.create
public static ProtocolConnectionManager create(final Connection connection, final ConnectionOpenHandler openHandler) { return create(new EstablishedConnection(connection, openHandler)); }
java
public static ProtocolConnectionManager create(final Connection connection, final ConnectionOpenHandler openHandler) { return create(new EstablishedConnection(connection, openHandler)); }
[ "public", "static", "ProtocolConnectionManager", "create", "(", "final", "Connection", "connection", ",", "final", "ConnectionOpenHandler", "openHandler", ")", "{", "return", "create", "(", "new", "EstablishedConnection", "(", "connection", ",", "openHandler", ")", ")...
Create a new connection manager, based on an existing connection. @param connection the existing connection @param openHandler a connection open handler @return the connected manager
[ "Create", "a", "new", "connection", "manager", "based", "on", "an", "existing", "connection", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/ProtocolConnectionManager.java#L197-L199
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/remote/Pipe.java
Pipe.await
public void await() { boolean intr = false; final Object lock = this.lock; try { synchronized (lock) { while (! readClosed) { try { lock.wait(); } catch (InterruptedException e) { ...
java
public void await() { boolean intr = false; final Object lock = this.lock; try { synchronized (lock) { while (! readClosed) { try { lock.wait(); } catch (InterruptedException e) { ...
[ "public", "void", "await", "(", ")", "{", "boolean", "intr", "=", "false", ";", "final", "Object", "lock", "=", "this", ".", "lock", ";", "try", "{", "synchronized", "(", "lock", ")", "{", "while", "(", "!", "readClosed", ")", "{", "try", "{", "loc...
Wait for the read side to close. Used when the writer needs to know when the reader finishes consuming a message.
[ "Wait", "for", "the", "read", "side", "to", "close", ".", "Used", "when", "the", "writer", "needs", "to", "know", "when", "the", "reader", "finishes", "consuming", "a", "message", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/remote/Pipe.java#L66-L84
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/extension/ExtensionRegistry.java
ExtensionRegistry.removeExtension
public void removeExtension(Resource rootResource, String moduleName, ManagementResourceRegistration rootRegistration) throws IllegalStateException { final ManagementResourceRegistration profileReg; if (rootRegistration.getPathAddress().size() == 0) { //domain or server extension ...
java
public void removeExtension(Resource rootResource, String moduleName, ManagementResourceRegistration rootRegistration) throws IllegalStateException { final ManagementResourceRegistration profileReg; if (rootRegistration.getPathAddress().size() == 0) { //domain or server extension ...
[ "public", "void", "removeExtension", "(", "Resource", "rootResource", ",", "String", "moduleName", ",", "ManagementResourceRegistration", "rootRegistration", ")", "throws", "IllegalStateException", "{", "final", "ManagementResourceRegistration", "profileReg", ";", "if", "("...
Cleans up a extension module's subsystems from the resource registration model. @param rootResource the model root resource @param moduleName the name of the extension's module. Cannot be {@code null} @throws IllegalStateException if the extension still has subsystems present in {@code rootResource} or its children
[ "Cleans", "up", "a", "extension", "module", "s", "subsystems", "from", "the", "resource", "registration", "model", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/extension/ExtensionRegistry.java#L316-L366
train
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/domain/controller/plan/AbstractServerGroupRolloutTask.java
AbstractServerGroupRolloutTask.recordPreparedOperation
protected void recordPreparedOperation(final ServerIdentity identity, final TransactionalProtocolClient.PreparedOperation<ServerTaskExecutor.ServerOperation> prepared) { final ModelNode preparedResult = prepared.getPreparedResult(); // Hmm do the server results need to get translated as well as the host...
java
protected void recordPreparedOperation(final ServerIdentity identity, final TransactionalProtocolClient.PreparedOperation<ServerTaskExecutor.ServerOperation> prepared) { final ModelNode preparedResult = prepared.getPreparedResult(); // Hmm do the server results need to get translated as well as the host...
[ "protected", "void", "recordPreparedOperation", "(", "final", "ServerIdentity", "identity", ",", "final", "TransactionalProtocolClient", ".", "PreparedOperation", "<", "ServerTaskExecutor", ".", "ServerOperation", ">", "prepared", ")", "{", "final", "ModelNode", "prepared...
Record a prepared operation. @param identity the server identity @param prepared the prepared operation
[ "Record", "a", "prepared", "operation", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/domain/controller/plan/AbstractServerGroupRolloutTask.java#L97-L103
train
wildfly/wildfly-core
launcher/src/main/java/org/wildfly/core/launcher/Jvm.java
Jvm.resolveJavaCommand
private static String resolveJavaCommand(final Path javaHome) { final String exe; if (javaHome == null) { exe = "java"; } else { exe = javaHome.resolve("bin").resolve("java").toString(); } if (exe.contains(" ")) { return "\"" + exe + "\""; ...
java
private static String resolveJavaCommand(final Path javaHome) { final String exe; if (javaHome == null) { exe = "java"; } else { exe = javaHome.resolve("bin").resolve("java").toString(); } if (exe.contains(" ")) { return "\"" + exe + "\""; ...
[ "private", "static", "String", "resolveJavaCommand", "(", "final", "Path", "javaHome", ")", "{", "final", "String", "exe", ";", "if", "(", "javaHome", "==", "null", ")", "{", "exe", "=", "\"java\"", ";", "}", "else", "{", "exe", "=", "javaHome", ".", "...
Returns the Java executable command. @param javaHome the java home directory or {@code null} to use the default @return the java command to use
[ "Returns", "the", "Java", "executable", "command", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/launcher/src/main/java/org/wildfly/core/launcher/Jvm.java#L244-L255
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/metadata/MiscContentItem.java
MiscContentItem.getRelativePath
public String getRelativePath() { final StringBuilder builder = new StringBuilder(); for(final String p : path) { builder.append(p).append("/"); } builder.append(getName()); return builder.toString(); }
java
public String getRelativePath() { final StringBuilder builder = new StringBuilder(); for(final String p : path) { builder.append(p).append("/"); } builder.append(getName()); return builder.toString(); }
[ "public", "String", "getRelativePath", "(", ")", "{", "final", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "final", "String", "p", ":", "path", ")", "{", "builder", ".", "append", "(", "p", ")", ".", "append", "(...
Get the relative path. @return the relative path
[ "Get", "the", "relative", "path", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/metadata/MiscContentItem.java#L84-L91
train
wildfly/wildfly-core
cli/src/main/java/org/jboss/as/cli/gui/metacommand/ScriptAction.java
ScriptAction.runScript
protected void runScript(File script) { if (!script.exists()) { JOptionPane.showMessageDialog(cliGuiCtx.getMainPanel(), script.getAbsolutePath() + " does not exist.", "Unable to run script.", JOptionPane.ERROR_MESSAGE); return; } ...
java
protected void runScript(File script) { if (!script.exists()) { JOptionPane.showMessageDialog(cliGuiCtx.getMainPanel(), script.getAbsolutePath() + " does not exist.", "Unable to run script.", JOptionPane.ERROR_MESSAGE); return; } ...
[ "protected", "void", "runScript", "(", "File", "script", ")", "{", "if", "(", "!", "script", ".", "exists", "(", ")", ")", "{", "JOptionPane", ".", "showMessageDialog", "(", "cliGuiCtx", ".", "getMainPanel", "(", ")", ",", "script", ".", "getAbsolutePath",...
Run a CLI script from a File. @param script The script file.
[ "Run", "a", "CLI", "script", "from", "a", "File", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/gui/metacommand/ScriptAction.java#L65-L83
train
wildfly/wildfly-core
cli/src/main/java/org/jboss/as/cli/gui/metacommand/ScriptAction.java
ScriptAction.getCommandLines
private List<String> getCommandLines(File file) { List<String> lines = new ArrayList<>(); try (BufferedReader reader = new BufferedReader(new FileReader(file))) { String line = reader.readLine(); while (line != null) { lines.add(line); line = reade...
java
private List<String> getCommandLines(File file) { List<String> lines = new ArrayList<>(); try (BufferedReader reader = new BufferedReader(new FileReader(file))) { String line = reader.readLine(); while (line != null) { lines.add(line); line = reade...
[ "private", "List", "<", "String", ">", "getCommandLines", "(", "File", "file", ")", "{", "List", "<", "String", ">", "lines", "=", "new", "ArrayList", "<>", "(", ")", ";", "try", "(", "BufferedReader", "reader", "=", "new", "BufferedReader", "(", "new", ...
read the file as a list of text lines
[ "read", "the", "file", "as", "a", "list", "of", "text", "lines" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/gui/metacommand/ScriptAction.java#L86-L98
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/access/TargetAttribute.java
TargetAttribute.getFlags
public Set<AttributeAccess.Flag> getFlags() { if (attributeAccess == null) { return Collections.emptySet(); } return attributeAccess.getFlags(); }
java
public Set<AttributeAccess.Flag> getFlags() { if (attributeAccess == null) { return Collections.emptySet(); } return attributeAccess.getFlags(); }
[ "public", "Set", "<", "AttributeAccess", ".", "Flag", ">", "getFlags", "(", ")", "{", "if", "(", "attributeAccess", "==", "null", ")", "{", "return", "Collections", ".", "emptySet", "(", ")", ";", "}", "return", "attributeAccess", ".", "getFlags", "(", "...
Gets the flags associated with this attribute. @return the flags. Will not return {@code null}
[ "Gets", "the", "flags", "associated", "with", "this", "attribute", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/access/TargetAttribute.java#L90-L95
train
wildfly/wildfly-core
domain-management/src/main/java/org/jboss/as/domain/management/security/AuthenticationValidatingHandler.java
AuthenticationValidatingHandler.createOperation
static ModelNode createOperation(final ModelNode operationToValidate) { PathAddress pa = PathAddress.pathAddress(operationToValidate.require(ModelDescriptionConstants.OP_ADDR)); PathAddress realmPA = null; for (int i = pa.size() - 1; i > 0; i--) { PathElement pe = pa.getElement(i); ...
java
static ModelNode createOperation(final ModelNode operationToValidate) { PathAddress pa = PathAddress.pathAddress(operationToValidate.require(ModelDescriptionConstants.OP_ADDR)); PathAddress realmPA = null; for (int i = pa.size() - 1; i > 0; i--) { PathElement pe = pa.getElement(i); ...
[ "static", "ModelNode", "createOperation", "(", "final", "ModelNode", "operationToValidate", ")", "{", "PathAddress", "pa", "=", "PathAddress", ".", "pathAddress", "(", "operationToValidate", ".", "require", "(", "ModelDescriptionConstants", ".", "OP_ADDR", ")", ")", ...
Creates an operations that targets this handler. @param operationToValidate the operation that this handler will validate @return the validation operation
[ "Creates", "an", "operations", "that", "targets", "this", "handler", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/domain-management/src/main/java/org/jboss/as/domain/management/security/AuthenticationValidatingHandler.java#L60-L72
train
wildfly/wildfly-core
remoting/subsystem/src/main/java/org/jboss/as/remoting/RemotingServices.java
RemotingServices.channelServiceName
public static ServiceName channelServiceName(final ServiceName endpointName, final String channelName) { return endpointName.append("channel").append(channelName); }
java
public static ServiceName channelServiceName(final ServiceName endpointName, final String channelName) { return endpointName.append("channel").append(channelName); }
[ "public", "static", "ServiceName", "channelServiceName", "(", "final", "ServiceName", "endpointName", ",", "final", "String", "channelName", ")", "{", "return", "endpointName", ".", "append", "(", "\"channel\"", ")", ".", "append", "(", "channelName", ")", ";", ...
Create the service name for a channel @param channelName the channel name @return the service name
[ "Create", "the", "service", "name", "for", "a", "channel" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/remoting/subsystem/src/main/java/org/jboss/as/remoting/RemotingServices.java#L96-L98
train
wildfly/wildfly-core
protocol/src/main/java/org/jboss/as/protocol/mgmt/ManagementChannelHandler.java
ManagementChannelHandler.getRemoteAddress
public InetAddress getRemoteAddress() { final Channel channel; try { channel = strategy.getChannel(); } catch (IOException e) { return null; } final Connection connection = channel.getConnection(); final InetSocketAddress peerAddress = connection.g...
java
public InetAddress getRemoteAddress() { final Channel channel; try { channel = strategy.getChannel(); } catch (IOException e) { return null; } final Connection connection = channel.getConnection(); final InetSocketAddress peerAddress = connection.g...
[ "public", "InetAddress", "getRemoteAddress", "(", ")", "{", "final", "Channel", "channel", ";", "try", "{", "channel", "=", "strategy", ".", "getChannel", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "return", "null", ";", "}", "final"...
Get the remote address. @return the remote address, {@code null} if not available
[ "Get", "the", "remote", "address", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/ManagementChannelHandler.java#L89-L99
train
wildfly/wildfly-core
protocol/src/main/java/org/jboss/as/protocol/mgmt/ManagementChannelHandler.java
ManagementChannelHandler.addHandlerFactory
public void addHandlerFactory(ManagementRequestHandlerFactory factory) { for (;;) { final ManagementRequestHandlerFactory[] snapshot = updater.get(this); final int length = snapshot.length; final ManagementRequestHandlerFactory[] newVal = new ManagementRequestHandlerFactory[l...
java
public void addHandlerFactory(ManagementRequestHandlerFactory factory) { for (;;) { final ManagementRequestHandlerFactory[] snapshot = updater.get(this); final int length = snapshot.length; final ManagementRequestHandlerFactory[] newVal = new ManagementRequestHandlerFactory[l...
[ "public", "void", "addHandlerFactory", "(", "ManagementRequestHandlerFactory", "factory", ")", "{", "for", "(", ";", ";", ")", "{", "final", "ManagementRequestHandlerFactory", "[", "]", "snapshot", "=", "updater", ".", "get", "(", "this", ")", ";", "final", "i...
Add a management request handler factory to this context. @param factory the request handler to add
[ "Add", "a", "management", "request", "handler", "factory", "to", "this", "context", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/ManagementChannelHandler.java#L202-L213
train
wildfly/wildfly-core
protocol/src/main/java/org/jboss/as/protocol/mgmt/ManagementChannelHandler.java
ManagementChannelHandler.removeHandlerFactory
public boolean removeHandlerFactory(ManagementRequestHandlerFactory instance) { for(;;) { final ManagementRequestHandlerFactory[] snapshot = updater.get(this); final int length = snapshot.length; int index = -1; for(int i = 0; i < length; i++) { if...
java
public boolean removeHandlerFactory(ManagementRequestHandlerFactory instance) { for(;;) { final ManagementRequestHandlerFactory[] snapshot = updater.get(this); final int length = snapshot.length; int index = -1; for(int i = 0; i < length; i++) { if...
[ "public", "boolean", "removeHandlerFactory", "(", "ManagementRequestHandlerFactory", "instance", ")", "{", "for", "(", ";", ";", ")", "{", "final", "ManagementRequestHandlerFactory", "[", "]", "snapshot", "=", "updater", ".", "get", "(", "this", ")", ";", "final...
Remove a management request handler factory from this context. @param instance the request handler factory @return {@code true} if the instance was removed, {@code false} otherwise
[ "Remove", "a", "management", "request", "handler", "factory", "from", "this", "context", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/ManagementChannelHandler.java#L221-L242
train
wildfly/wildfly-core
cli/src/main/java/org/jboss/as/cli/handlers/FilenameTabCompleter.java
FilenameTabCompleter.translatePath
public String translatePath(String path) { String translated; // special character: ~ maps to the user's home directory if (path.startsWith("~" + File.separator)) { translated = System.getProperty("user.home") + path.substring(1); } else if (path.startsWith("~")) { ...
java
public String translatePath(String path) { String translated; // special character: ~ maps to the user's home directory if (path.startsWith("~" + File.separator)) { translated = System.getProperty("user.home") + path.substring(1); } else if (path.startsWith("~")) { ...
[ "public", "String", "translatePath", "(", "String", "path", ")", "{", "String", "translated", ";", "// special character: ~ maps to the user's home directory", "if", "(", "path", ".", "startsWith", "(", "\"~\"", "+", "File", ".", "separator", ")", ")", "{", "trans...
Translate a path that has previously been unescaped and unquoted. That is called at command execution when the calue is retrieved prior to be used as ModelNode value. @param path The unquoted, unescaped path. @return A path with ~ and default dir expanded.
[ "Translate", "a", "path", "that", "has", "previously", "been", "unescaped", "and", "unquoted", ".", "That", "is", "called", "at", "command", "execution", "when", "the", "calue", "is", "retrieved", "prior", "to", "be", "used", "as", "ModelNode", "value", "." ...
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/handlers/FilenameTabCompleter.java#L81-L98
train
wildfly/wildfly-core
cli/src/main/java/org/jboss/as/cli/handlers/FilenameTabCompleter.java
FilenameTabCompleter.clearPath
private static String clearPath(String path) { try { ExpressionBaseState state = new ExpressionBaseState("EXPR", true, false); if (Util.isWindows()) { // to not require escaping FS name separator state.setDefaultHandler(WordCharacterHandler.IGNORE_LB_ESCAP...
java
private static String clearPath(String path) { try { ExpressionBaseState state = new ExpressionBaseState("EXPR", true, false); if (Util.isWindows()) { // to not require escaping FS name separator state.setDefaultHandler(WordCharacterHandler.IGNORE_LB_ESCAP...
[ "private", "static", "String", "clearPath", "(", "String", "path", ")", "{", "try", "{", "ExpressionBaseState", "state", "=", "new", "ExpressionBaseState", "(", "\"EXPR\"", ",", "true", ",", "false", ")", ";", "if", "(", "Util", ".", "isWindows", "(", ")",...
Unescape and unquote the path. Ready for translation.
[ "Unescape", "and", "unquote", "the", "path", ".", "Ready", "for", "translation", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/handlers/FilenameTabCompleter.java#L103-L127
train
wildfly/wildfly-core
request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java
RequestController.resume
@Override public synchronized void resume() { this.paused = false; ServerActivityCallback listener = listenerUpdater.get(this); if (listener != null) { listenerUpdater.compareAndSet(this, listener, null); } while (!taskQueue.isEmpty() && (activeRequestCount < maxR...
java
@Override public synchronized void resume() { this.paused = false; ServerActivityCallback listener = listenerUpdater.get(this); if (listener != null) { listenerUpdater.compareAndSet(this, listener, null); } while (!taskQueue.isEmpty() && (activeRequestCount < maxR...
[ "@", "Override", "public", "synchronized", "void", "resume", "(", ")", "{", "this", ".", "paused", "=", "false", ";", "ServerActivityCallback", "listener", "=", "listenerUpdater", ".", "get", "(", "this", ")", ";", "if", "(", "listener", "!=", "null", ")",...
Unpause the server, allowing it to resume normal operations
[ "Unpause", "the", "server", "allowing", "it", "to", "resume", "normal", "operations" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java#L118-L128
train
wildfly/wildfly-core
request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java
RequestController.pauseDeployment
public synchronized void pauseDeployment(final String deployment, ServerActivityCallback listener) { final List<ControlPoint> eps = new ArrayList<ControlPoint>(); for (ControlPoint ep : entryPoints.values()) { if (ep.getDeployment().equals(deployment)) { if(!ep.isPaused()) { ...
java
public synchronized void pauseDeployment(final String deployment, ServerActivityCallback listener) { final List<ControlPoint> eps = new ArrayList<ControlPoint>(); for (ControlPoint ep : entryPoints.values()) { if (ep.getDeployment().equals(deployment)) { if(!ep.isPaused()) { ...
[ "public", "synchronized", "void", "pauseDeployment", "(", "final", "String", "deployment", ",", "ServerActivityCallback", "listener", ")", "{", "final", "List", "<", "ControlPoint", ">", "eps", "=", "new", "ArrayList", "<", "ControlPoint", ">", "(", ")", ";", ...
Pauses a given deployment @param deployment The deployment to pause @param listener The listener that will be notified when the pause is complete
[ "Pauses", "a", "given", "deployment" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java#L136-L149
train
wildfly/wildfly-core
request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java
RequestController.resumeDeployment
public synchronized void resumeDeployment(final String deployment) { for (ControlPoint ep : entryPoints.values()) { if (ep.getDeployment().equals(deployment)) { ep.resume(); } } }
java
public synchronized void resumeDeployment(final String deployment) { for (ControlPoint ep : entryPoints.values()) { if (ep.getDeployment().equals(deployment)) { ep.resume(); } } }
[ "public", "synchronized", "void", "resumeDeployment", "(", "final", "String", "deployment", ")", "{", "for", "(", "ControlPoint", "ep", ":", "entryPoints", ".", "values", "(", ")", ")", "{", "if", "(", "ep", ".", "getDeployment", "(", ")", ".", "equals", ...
resumed a given deployment @param deployment The deployment to resume
[ "resumed", "a", "given", "deployment" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java#L156-L162
train
wildfly/wildfly-core
request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java
RequestController.resumeControlPoint
public synchronized void resumeControlPoint(final String entryPoint) { for (ControlPoint ep : entryPoints.values()) { if (ep.getEntryPoint().equals(entryPoint)) { ep.resume(); } } }
java
public synchronized void resumeControlPoint(final String entryPoint) { for (ControlPoint ep : entryPoints.values()) { if (ep.getEntryPoint().equals(entryPoint)) { ep.resume(); } } }
[ "public", "synchronized", "void", "resumeControlPoint", "(", "final", "String", "entryPoint", ")", "{", "for", "(", "ControlPoint", "ep", ":", "entryPoints", ".", "values", "(", ")", ")", "{", "if", "(", "ep", ".", "getEntryPoint", "(", ")", ".", "equals",...
Resumes a given entry point type; @param entryPoint The entry point
[ "Resumes", "a", "given", "entry", "point", "type", ";" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java#L195-L201
train
wildfly/wildfly-core
request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java
RequestController.getControlPoint
public synchronized ControlPoint getControlPoint(final String deploymentName, final String entryPointName) { ControlPointIdentifier id = new ControlPointIdentifier(deploymentName, entryPointName); ControlPoint ep = entryPoints.get(id); if (ep == null) { ep = new ControlPoint(this, de...
java
public synchronized ControlPoint getControlPoint(final String deploymentName, final String entryPointName) { ControlPointIdentifier id = new ControlPointIdentifier(deploymentName, entryPointName); ControlPoint ep = entryPoints.get(id); if (ep == null) { ep = new ControlPoint(this, de...
[ "public", "synchronized", "ControlPoint", "getControlPoint", "(", "final", "String", "deploymentName", ",", "final", "String", "entryPointName", ")", "{", "ControlPointIdentifier", "id", "=", "new", "ControlPointIdentifier", "(", "deploymentName", ",", "entryPointName", ...
Gets an entry point for the given deployment. If one does not exist it will be created. If the request controller is disabled this will return null. Entry points are reference counted. If this method is called n times then {@link #removeControlPoint(ControlPoint)} must also be called n times to clean up the entry poin...
[ "Gets", "an", "entry", "point", "for", "the", "given", "deployment", ".", "If", "one", "does", "not", "exist", "it", "will", "be", "created", ".", "If", "the", "request", "controller", "is", "disabled", "this", "will", "return", "null", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java#L267-L276
train
wildfly/wildfly-core
request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java
RequestController.removeControlPoint
public synchronized void removeControlPoint(ControlPoint controlPoint) { if (controlPoint.decreaseReferenceCount() == 0) { ControlPointIdentifier id = new ControlPointIdentifier(controlPoint.getDeployment(), controlPoint.getEntryPoint()); entryPoints.remove(id); } }
java
public synchronized void removeControlPoint(ControlPoint controlPoint) { if (controlPoint.decreaseReferenceCount() == 0) { ControlPointIdentifier id = new ControlPointIdentifier(controlPoint.getDeployment(), controlPoint.getEntryPoint()); entryPoints.remove(id); } }
[ "public", "synchronized", "void", "removeControlPoint", "(", "ControlPoint", "controlPoint", ")", "{", "if", "(", "controlPoint", ".", "decreaseReferenceCount", "(", ")", "==", "0", ")", "{", "ControlPointIdentifier", "id", "=", "new", "ControlPointIdentifier", "(",...
Removes the specified entry point @param controlPoint The entry point
[ "Removes", "the", "specified", "entry", "point" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java#L283-L288
train
wildfly/wildfly-core
request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java
RequestController.runQueuedTask
private boolean runQueuedTask(boolean hasPermit) { if (!hasPermit && beginRequest(paused) == RunResult.REJECTED) { return false; } QueuedTask task = null; if (!paused) { task = taskQueue.poll(); } else { //the container is suspended, but we sti...
java
private boolean runQueuedTask(boolean hasPermit) { if (!hasPermit && beginRequest(paused) == RunResult.REJECTED) { return false; } QueuedTask task = null; if (!paused) { task = taskQueue.poll(); } else { //the container is suspended, but we sti...
[ "private", "boolean", "runQueuedTask", "(", "boolean", "hasPermit", ")", "{", "if", "(", "!", "hasPermit", "&&", "beginRequest", "(", "paused", ")", "==", "RunResult", ".", "REJECTED", ")", "{", "return", "false", ";", "}", "QueuedTask", "task", "=", "null...
Runs a queued task, if the queue is not already empty. Note that this will decrement the request count if there are no queued tasks to be run @param hasPermit If the caller has already called {@link #beginRequest(boolean force)}
[ "Runs", "a", "queued", "task", "if", "the", "queue", "is", "not", "already", "empty", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/request-controller/src/main/java/org/wildfly/extension/requestcontroller/RequestController.java#L377-L397
train
wildfly/wildfly-core
cli/src/main/java/org/jboss/as/cli/operation/impl/DefaultOperationCandidatesProvider.java
DefaultOperationCandidatesProvider.getProperty
static Property getProperty(String propName, ModelNode attrs) { String[] arr = propName.split("\\."); ModelNode attrDescr = attrs; for (String item : arr) { // Remove list part. if (item.endsWith("]")) { int i = item.indexOf("["); if (i < 0...
java
static Property getProperty(String propName, ModelNode attrs) { String[] arr = propName.split("\\."); ModelNode attrDescr = attrs; for (String item : arr) { // Remove list part. if (item.endsWith("]")) { int i = item.indexOf("["); if (i < 0...
[ "static", "Property", "getProperty", "(", "String", "propName", ",", "ModelNode", "attrs", ")", "{", "String", "[", "]", "arr", "=", "propName", ".", "split", "(", "\"\\\\.\"", ")", ";", "ModelNode", "attrDescr", "=", "attrs", ";", "for", "(", "String", ...
package for testing purpose
[ "package", "for", "testing", "purpose" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/operation/impl/DefaultOperationCandidatesProvider.java#L740-L766
train
wildfly/wildfly-core
logging/src/main/java/org/jboss/as/logging/deployments/LoggingConfigDeploymentProcessor.java
LoggingConfigDeploymentProcessor.configure
private LoggingConfigurationService configure(final ResourceRoot root, final VirtualFile configFile, final ClassLoader classLoader, final LogContext logContext) throws DeploymentUnitProcessingException { InputStream configStream = null; try { LoggingLogger.ROOT_LOGGER.debugf("Found logging c...
java
private LoggingConfigurationService configure(final ResourceRoot root, final VirtualFile configFile, final ClassLoader classLoader, final LogContext logContext) throws DeploymentUnitProcessingException { InputStream configStream = null; try { LoggingLogger.ROOT_LOGGER.debugf("Found logging c...
[ "private", "LoggingConfigurationService", "configure", "(", "final", "ResourceRoot", "root", ",", "final", "VirtualFile", "configFile", ",", "final", "ClassLoader", "classLoader", ",", "final", "LogContext", "logContext", ")", "throws", "DeploymentUnitProcessingException", ...
Configures the log context. @param configFile the configuration file @param classLoader the class loader to use for the configuration @param logContext the log context to configure @return {@code true} if the log context was successfully configured, otherwise {@code false} @throws DeploymentUnitProcessingException...
[ "Configures", "the", "log", "context", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/logging/src/main/java/org/jboss/as/logging/deployments/LoggingConfigDeploymentProcessor.java#L220-L267
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/operations/validation/OperationValidator.java
OperationValidator.validateOperations
public void validateOperations(final List<ModelNode> operations) { if (operations == null) { return; } for (ModelNode operation : operations) { try { validateOperation(operation); } catch (RuntimeException e) { if (exitOnError)...
java
public void validateOperations(final List<ModelNode> operations) { if (operations == null) { return; } for (ModelNode operation : operations) { try { validateOperation(operation); } catch (RuntimeException e) { if (exitOnError)...
[ "public", "void", "validateOperations", "(", "final", "List", "<", "ModelNode", ">", "operations", ")", "{", "if", "(", "operations", "==", "null", ")", "{", "return", ";", "}", "for", "(", "ModelNode", "operation", ":", "operations", ")", "{", "try", "{...
Validates operations against their description providers @param operations The operations to validate @throws IllegalArgumentException if any operation is not valid
[ "Validates", "operations", "against", "their", "description", "providers" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/operations/validation/OperationValidator.java#L97-L115
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/operations/validation/OperationValidator.java
OperationValidator.validateOperation
public void validateOperation(final ModelNode operation) { if (operation == null) { return; } final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR)); final String name = operation.get(OP).asString(); OperationEntry entry = root.getOperationEntry(...
java
public void validateOperation(final ModelNode operation) { if (operation == null) { return; } final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR)); final String name = operation.get(OP).asString(); OperationEntry entry = root.getOperationEntry(...
[ "public", "void", "validateOperation", "(", "final", "ModelNode", "operation", ")", "{", "if", "(", "operation", "==", "null", ")", "{", "return", ";", "}", "final", "PathAddress", "address", "=", "PathAddress", ".", "pathAddress", "(", "operation", ".", "ge...
Validates an operation against its description provider @param operation The operation to validate @throws IllegalArgumentException if the operation is not valid
[ "Validates", "an", "operation", "against", "its", "description", "provider" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/operations/validation/OperationValidator.java#L123-L152
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/operations/validation/OperationValidator.java
OperationValidator.throwOrWarnAboutDescriptorProblem
private void throwOrWarnAboutDescriptorProblem(String message) { if (validateDescriptions) { throw new IllegalArgumentException(message); } ControllerLogger.ROOT_LOGGER.warn(message); }
java
private void throwOrWarnAboutDescriptorProblem(String message) { if (validateDescriptions) { throw new IllegalArgumentException(message); } ControllerLogger.ROOT_LOGGER.warn(message); }
[ "private", "void", "throwOrWarnAboutDescriptorProblem", "(", "String", "message", ")", "{", "if", "(", "validateDescriptions", ")", "{", "throw", "new", "IllegalArgumentException", "(", "message", ")", ";", "}", "ControllerLogger", ".", "ROOT_LOGGER", ".", "warn", ...
Throws an exception or logs a message @param message The message for the exception or the log message. Must be internationalized
[ "Throws", "an", "exception", "or", "logs", "a", "message" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/operations/validation/OperationValidator.java#L565-L570
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/capability/RuntimeCapability.java
RuntimeCapability.buildDynamicCapabilityName
public static String buildDynamicCapabilityName(String baseName, String dynamicNameElement) { return buildDynamicCapabilityName(baseName, new String[]{dynamicNameElement}); }
java
public static String buildDynamicCapabilityName(String baseName, String dynamicNameElement) { return buildDynamicCapabilityName(baseName, new String[]{dynamicNameElement}); }
[ "public", "static", "String", "buildDynamicCapabilityName", "(", "String", "baseName", ",", "String", "dynamicNameElement", ")", "{", "return", "buildDynamicCapabilityName", "(", "baseName", ",", "new", "String", "[", "]", "{", "dynamicNameElement", "}", ")", ";", ...
todo remove, here only for binary compatibility of elytron subsystem, drop once it is in.
[ "todo", "remove", "here", "only", "for", "binary", "compatibility", "of", "elytron", "subsystem", "drop", "once", "it", "is", "in", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/capability/RuntimeCapability.java#L46-L48
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/capability/RuntimeCapability.java
RuntimeCapability.buildDynamicCapabilityName
public static String buildDynamicCapabilityName(String baseName, String ... dynamicNameElement) { assert baseName != null; assert dynamicNameElement != null; assert dynamicNameElement.length > 0; StringBuilder sb = new StringBuilder(baseName); for (String part:dynamicNameElement)...
java
public static String buildDynamicCapabilityName(String baseName, String ... dynamicNameElement) { assert baseName != null; assert dynamicNameElement != null; assert dynamicNameElement.length > 0; StringBuilder sb = new StringBuilder(baseName); for (String part:dynamicNameElement)...
[ "public", "static", "String", "buildDynamicCapabilityName", "(", "String", "baseName", ",", "String", "...", "dynamicNameElement", ")", "{", "assert", "baseName", "!=", "null", ";", "assert", "dynamicNameElement", "!=", "null", ";", "assert", "dynamicNameElement", "...
Constructs a full capability name from a static base name and a dynamic element. @param baseName the base name. Cannot be {@code null} @param dynamicNameElement the dynamic portion of the name. Cannot be {@code null} @return the full capability name. Will not return {@code null}
[ "Constructs", "a", "full", "capability", "name", "from", "a", "static", "base", "name", "and", "a", "dynamic", "element", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/capability/RuntimeCapability.java#L63-L72
train
wildfly/wildfly-core
controller-client/src/main/java/org/jboss/as/controller/client/OperationBuilder.java
OperationBuilder.addInputStream
public OperationBuilder addInputStream(final InputStream in) { Assert.checkNotNullParam("in", in); if (inputStreams == null) { inputStreams = new ArrayList<InputStream>(); } inputStreams.add(in); return this; }
java
public OperationBuilder addInputStream(final InputStream in) { Assert.checkNotNullParam("in", in); if (inputStreams == null) { inputStreams = new ArrayList<InputStream>(); } inputStreams.add(in); return this; }
[ "public", "OperationBuilder", "addInputStream", "(", "final", "InputStream", "in", ")", "{", "Assert", ".", "checkNotNullParam", "(", "\"in\"", ",", "in", ")", ";", "if", "(", "inputStreams", "==", "null", ")", "{", "inputStreams", "=", "new", "ArrayList", "...
Associate an input stream with the operation. Closing the input stream is the responsibility of the caller. @param in the input stream. Cannot be {@code null} @return a builder than can be used to continue building the operation
[ "Associate", "an", "input", "stream", "with", "the", "operation", ".", "Closing", "the", "input", "stream", "is", "the", "responsibility", "of", "the", "caller", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller-client/src/main/java/org/jboss/as/controller/client/OperationBuilder.java#L111-L118
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/installation/InstallationManagerImpl.java
InstallationManagerImpl.getInstalledIdentity
@Override public InstalledIdentity getInstalledIdentity(String productName, String productVersion) throws PatchingException { final String defaultIdentityName = defaultIdentity.getIdentity().getName(); if(productName == null) { productName = defaultIdentityName; } final ...
java
@Override public InstalledIdentity getInstalledIdentity(String productName, String productVersion) throws PatchingException { final String defaultIdentityName = defaultIdentity.getIdentity().getName(); if(productName == null) { productName = defaultIdentityName; } final ...
[ "@", "Override", "public", "InstalledIdentity", "getInstalledIdentity", "(", "String", "productName", ",", "String", "productVersion", ")", "throws", "PatchingException", "{", "final", "String", "defaultIdentityName", "=", "defaultIdentity", ".", "getIdentity", "(", ")"...
This method returns the installed identity with the requested name and version. If the product name is null, the default identity will be returned. If the product name was recognized and the requested version was not null, the version comparison will take place. If the version of the currently installed product doesn'...
[ "This", "method", "returns", "the", "installed", "identity", "with", "the", "requested", "name", "and", "version", ".", "If", "the", "product", "name", "is", "null", "the", "default", "identity", "will", "be", "returned", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/installation/InstallationManagerImpl.java#L69-L114
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/installation/InstallationManagerImpl.java
InstallationManagerImpl.getInstalledIdentities
@Override public List<InstalledIdentity> getInstalledIdentities() throws PatchingException { List<InstalledIdentity> installedIdentities; final File metadataDir = installedImage.getInstallationMetadata(); if(!metadataDir.exists()) { installedIdentities = Collections.singletonLi...
java
@Override public List<InstalledIdentity> getInstalledIdentities() throws PatchingException { List<InstalledIdentity> installedIdentities; final File metadataDir = installedImage.getInstallationMetadata(); if(!metadataDir.exists()) { installedIdentities = Collections.singletonLi...
[ "@", "Override", "public", "List", "<", "InstalledIdentity", ">", "getInstalledIdentities", "(", ")", "throws", "PatchingException", "{", "List", "<", "InstalledIdentity", ">", "installedIdentities", ";", "final", "File", "metadataDir", "=", "installedImage", ".", "...
This method will return a list of installed identities for which the corresponding .conf file exists under .installation directory. The list will also include the default identity even if the .conf file has not been created for it.
[ "This", "method", "will", "return", "a", "list", "of", "installed", "identities", "for", "which", "the", "corresponding", ".", "conf", "file", "exists", "under", ".", "installation", "directory", ".", "The", "list", "will", "also", "include", "the", "default",...
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/installation/InstallationManagerImpl.java#L148-L188
train
wildfly/wildfly-core
launcher/src/main/java/org/wildfly/core/launcher/StandaloneCommandBuilder.java
StandaloneCommandBuilder.setDebug
public StandaloneCommandBuilder setDebug(final boolean suspend, final int port) { debugArg = String.format(DEBUG_FORMAT, (suspend ? "y" : "n"), port); return this; }
java
public StandaloneCommandBuilder setDebug(final boolean suspend, final int port) { debugArg = String.format(DEBUG_FORMAT, (suspend ? "y" : "n"), port); return this; }
[ "public", "StandaloneCommandBuilder", "setDebug", "(", "final", "boolean", "suspend", ",", "final", "int", "port", ")", "{", "debugArg", "=", "String", ".", "format", "(", "DEBUG_FORMAT", ",", "(", "suspend", "?", "\"y\"", ":", "\"n\"", ")", ",", "port", "...
Sets the debug JPDA remote socket debugging argument. @param suspend {@code true} to suspend otherwise {@code false} @param port the port to listen on @return the builder
[ "Sets", "the", "debug", "JPDA", "remote", "socket", "debugging", "argument", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/launcher/src/main/java/org/wildfly/core/launcher/StandaloneCommandBuilder.java#L233-L236
train
wildfly/wildfly-core
launcher/src/main/java/org/wildfly/core/launcher/StandaloneCommandBuilder.java
StandaloneCommandBuilder.addSecurityProperty
public StandaloneCommandBuilder addSecurityProperty(final String key, final String value) { securityProperties.put(key, value); return this; }
java
public StandaloneCommandBuilder addSecurityProperty(final String key, final String value) { securityProperties.put(key, value); return this; }
[ "public", "StandaloneCommandBuilder", "addSecurityProperty", "(", "final", "String", "key", ",", "final", "String", "value", ")", "{", "securityProperties", ".", "put", "(", "key", ",", "value", ")", ";", "return", "this", ";", "}" ]
Adds a security property to be passed to the server. @param key the property key @param value the property value @return the builder
[ "Adds", "a", "security", "property", "to", "be", "passed", "to", "the", "server", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/launcher/src/main/java/org/wildfly/core/launcher/StandaloneCommandBuilder.java#L390-L393
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/AbstractAttributeDefinitionBuilder.java
AbstractAttributeDefinitionBuilder.addAccessConstraint
@SuppressWarnings("deprecation") public BUILDER addAccessConstraint(final AccessConstraintDefinition accessConstraint) { if (accessConstraints == null) { accessConstraints = new AccessConstraintDefinition[] {accessConstraint}; } else { accessConstraints = Arrays.copyOf(access...
java
@SuppressWarnings("deprecation") public BUILDER addAccessConstraint(final AccessConstraintDefinition accessConstraint) { if (accessConstraints == null) { accessConstraints = new AccessConstraintDefinition[] {accessConstraint}; } else { accessConstraints = Arrays.copyOf(access...
[ "@", "SuppressWarnings", "(", "\"deprecation\"", ")", "public", "BUILDER", "addAccessConstraint", "(", "final", "AccessConstraintDefinition", "accessConstraint", ")", "{", "if", "(", "accessConstraints", "==", "null", ")", "{", "accessConstraints", "=", "new", "Access...
Adds an access constraint to the set used with the attribute @param accessConstraint the constraint @return a builder that can be used to continue building the attribute definition
[ "Adds", "an", "access", "constraint", "to", "the", "set", "used", "with", "the", "attribute" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/AbstractAttributeDefinitionBuilder.java#L745-L754
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/AbstractAttributeDefinitionBuilder.java
AbstractAttributeDefinitionBuilder.setAttributeGroup
public BUILDER setAttributeGroup(String attributeGroup) { assert attributeGroup == null || attributeGroup.length() > 0; //noinspection deprecation this.attributeGroup = attributeGroup; return (BUILDER) this; }
java
public BUILDER setAttributeGroup(String attributeGroup) { assert attributeGroup == null || attributeGroup.length() > 0; //noinspection deprecation this.attributeGroup = attributeGroup; return (BUILDER) this; }
[ "public", "BUILDER", "setAttributeGroup", "(", "String", "attributeGroup", ")", "{", "assert", "attributeGroup", "==", "null", "||", "attributeGroup", ".", "length", "(", ")", ">", "0", ";", "//noinspection deprecation", "this", ".", "attributeGroup", "=", "attrib...
Sets the name of the attribute group with which this attribute is associated. @param attributeGroup the attribute group name. Cannot be an empty string but can be {@code null} if the attribute is not associated with a group. @return a builder that can be used to continue building the attribute definition
[ "Sets", "the", "name", "of", "the", "attribute", "group", "with", "which", "this", "attribute", "is", "associated", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/AbstractAttributeDefinitionBuilder.java#L788-L793
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/AbstractAttributeDefinitionBuilder.java
AbstractAttributeDefinitionBuilder.setAllowedValues
@SuppressWarnings("deprecation") public BUILDER setAllowedValues(String ... allowedValues) { assert allowedValues!= null; this.allowedValues = new ModelNode[allowedValues.length]; for (int i = 0; i < allowedValues.length; i++) { this.allowedValues[i] = new ModelNode(allowedValues...
java
@SuppressWarnings("deprecation") public BUILDER setAllowedValues(String ... allowedValues) { assert allowedValues!= null; this.allowedValues = new ModelNode[allowedValues.length]; for (int i = 0; i < allowedValues.length; i++) { this.allowedValues[i] = new ModelNode(allowedValues...
[ "@", "SuppressWarnings", "(", "\"deprecation\"", ")", "public", "BUILDER", "setAllowedValues", "(", "String", "...", "allowedValues", ")", "{", "assert", "allowedValues", "!=", "null", ";", "this", ".", "allowedValues", "=", "new", "ModelNode", "[", "allowedValues...
Sets allowed values for attribute @param allowedValues values that are legal as part in this attribute @return a builder that can be used to continue building the attribute definition
[ "Sets", "allowed", "values", "for", "attribute" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/AbstractAttributeDefinitionBuilder.java#L814-L822
train
wildfly/wildfly-core
logging/src/main/java/org/jboss/as/logging/LoggingProfileContextSelector.java
LoggingProfileContextSelector.getOrCreate
protected LogContext getOrCreate(final String loggingProfile) { LogContext result = profileContexts.get(loggingProfile); if (result == null) { result = LogContext.create(); final LogContext current = profileContexts.putIfAbsent(loggingProfile, result); if (current != ...
java
protected LogContext getOrCreate(final String loggingProfile) { LogContext result = profileContexts.get(loggingProfile); if (result == null) { result = LogContext.create(); final LogContext current = profileContexts.putIfAbsent(loggingProfile, result); if (current != ...
[ "protected", "LogContext", "getOrCreate", "(", "final", "String", "loggingProfile", ")", "{", "LogContext", "result", "=", "profileContexts", ".", "get", "(", "loggingProfile", ")", ";", "if", "(", "result", "==", "null", ")", "{", "result", "=", "LogContext",...
Get or create the log context based on the logging profile. @param loggingProfile the logging profile to get or create the log context for @return the log context that was found or a new log context
[ "Get", "or", "create", "the", "log", "context", "based", "on", "the", "logging", "profile", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/logging/src/main/java/org/jboss/as/logging/LoggingProfileContextSelector.java#L53-L63
train
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/discovery/DomainControllerData.java
DomainControllerData.writeTo
public void writeTo(DataOutput outstream) throws Exception { S3Util.writeString(host, outstream); outstream.writeInt(port); S3Util.writeString(protocol, outstream); }
java
public void writeTo(DataOutput outstream) throws Exception { S3Util.writeString(host, outstream); outstream.writeInt(port); S3Util.writeString(protocol, outstream); }
[ "public", "void", "writeTo", "(", "DataOutput", "outstream", ")", "throws", "Exception", "{", "S3Util", ".", "writeString", "(", "host", ",", "outstream", ")", ";", "outstream", ".", "writeInt", "(", "port", ")", ";", "S3Util", ".", "writeString", "(", "pr...
Write the domain controller's data to an output stream. @param outstream the output stream @throws Exception
[ "Write", "the", "domain", "controller", "s", "data", "to", "an", "output", "stream", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/discovery/DomainControllerData.java#L87-L91
train
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/discovery/DomainControllerData.java
DomainControllerData.readFrom
public void readFrom(DataInput instream) throws Exception { host = S3Util.readString(instream); port = instream.readInt(); protocol = S3Util.readString(instream); }
java
public void readFrom(DataInput instream) throws Exception { host = S3Util.readString(instream); port = instream.readInt(); protocol = S3Util.readString(instream); }
[ "public", "void", "readFrom", "(", "DataInput", "instream", ")", "throws", "Exception", "{", "host", "=", "S3Util", ".", "readString", "(", "instream", ")", ";", "port", "=", "instream", ".", "readInt", "(", ")", ";", "protocol", "=", "S3Util", ".", "rea...
Read the domain controller's data from an input stream. @param instream the input stream @throws Exception
[ "Read", "the", "domain", "controller", "s", "data", "from", "an", "input", "stream", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/discovery/DomainControllerData.java#L99-L103
train
wildfly/wildfly-core
cli/src/main/java/org/jboss/as/cli/operation/OperationRequestCompleter.java
OperationRequestCompleter.complete
protected int complete(CommandContext ctx, ParsedCommandLine parsedCmd, OperationCandidatesProvider candidatesProvider, final String buffer, int cursor, List<String> candidates) { if(parsedCmd.isRequestComplete()) { return -1; } // Headers completion if(parsedCmd.endsOnHead...
java
protected int complete(CommandContext ctx, ParsedCommandLine parsedCmd, OperationCandidatesProvider candidatesProvider, final String buffer, int cursor, List<String> candidates) { if(parsedCmd.isRequestComplete()) { return -1; } // Headers completion if(parsedCmd.endsOnHead...
[ "protected", "int", "complete", "(", "CommandContext", "ctx", ",", "ParsedCommandLine", "parsedCmd", ",", "OperationCandidatesProvider", "candidatesProvider", ",", "final", "String", "buffer", ",", "int", "cursor", ",", "List", "<", "String", ">", "candidates", ")",...
Complete both operations and commands.
[ "Complete", "both", "operations", "and", "commands", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/operation/OperationRequestCompleter.java#L690-L719
train
wildfly/wildfly-core
server/src/main/java/org/jboss/as/server/deployment/annotation/CompositeIndexProcessor.java
CompositeIndexProcessor.handleClassPathItems
private Collection<? extends ResourceRoot> handleClassPathItems(final DeploymentUnit deploymentUnit) { final Set<ResourceRoot> additionalRoots = new HashSet<ResourceRoot>(); final ArrayDeque<ResourceRoot> toProcess = new ArrayDeque<ResourceRoot>(); final List<ResourceRoot> resourceRoots = Deploy...
java
private Collection<? extends ResourceRoot> handleClassPathItems(final DeploymentUnit deploymentUnit) { final Set<ResourceRoot> additionalRoots = new HashSet<ResourceRoot>(); final ArrayDeque<ResourceRoot> toProcess = new ArrayDeque<ResourceRoot>(); final List<ResourceRoot> resourceRoots = Deploy...
[ "private", "Collection", "<", "?", "extends", "ResourceRoot", ">", "handleClassPathItems", "(", "final", "DeploymentUnit", "deploymentUnit", ")", "{", "final", "Set", "<", "ResourceRoot", ">", "additionalRoots", "=", "new", "HashSet", "<", "ResourceRoot", ">", "("...
Loops through all resource roots that have been made available transitively via Class-Path entries, and adds them to the list of roots to be processed.
[ "Loops", "through", "all", "resource", "roots", "that", "have", "been", "made", "available", "transitively", "via", "Class", "-", "Path", "entries", "and", "adds", "them", "to", "the", "list", "of", "roots", "to", "be", "processed", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deployment/annotation/CompositeIndexProcessor.java#L149-L168
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/ObjectListAttributeDefinition.java
ObjectListAttributeDefinition.resolveValue
@Override public ModelNode resolveValue(ExpressionResolver resolver, ModelNode value) throws OperationFailedException { // Pass non-LIST values through the superclass so it can reject weird values and, in the odd chance // that's how this object is set up, turn undefined into a default list value. ...
java
@Override public ModelNode resolveValue(ExpressionResolver resolver, ModelNode value) throws OperationFailedException { // Pass non-LIST values through the superclass so it can reject weird values and, in the odd chance // that's how this object is set up, turn undefined into a default list value. ...
[ "@", "Override", "public", "ModelNode", "resolveValue", "(", "ExpressionResolver", "resolver", ",", "ModelNode", "value", ")", "throws", "OperationFailedException", "{", "// Pass non-LIST values through the superclass so it can reject weird values and, in the odd chance", "// that's ...
Overrides the superclass implementation to allow the value type's AttributeDefinition to in turn resolve each element. {@inheritDoc}
[ "Overrides", "the", "superclass", "implementation", "to", "allow", "the", "value", "type", "s", "AttributeDefinition", "to", "in", "turn", "resolve", "each", "element", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/ObjectListAttributeDefinition.java#L133-L155
train
wildfly/wildfly-core
logging/src/main/java/org/jboss/as/logging/LoggingExtension.java
LoggingExtension.getResourceDescriptionResolver
public static ResourceDescriptionResolver getResourceDescriptionResolver(final String... keyPrefix) { StringBuilder prefix = new StringBuilder(SUBSYSTEM_NAME); for (String kp : keyPrefix) { prefix.append('.').append(kp); } return new StandardResourceDescriptionResolver(prefix...
java
public static ResourceDescriptionResolver getResourceDescriptionResolver(final String... keyPrefix) { StringBuilder prefix = new StringBuilder(SUBSYSTEM_NAME); for (String kp : keyPrefix) { prefix.append('.').append(kp); } return new StandardResourceDescriptionResolver(prefix...
[ "public", "static", "ResourceDescriptionResolver", "getResourceDescriptionResolver", "(", "final", "String", "...", "keyPrefix", ")", "{", "StringBuilder", "prefix", "=", "new", "StringBuilder", "(", "SUBSYSTEM_NAME", ")", ";", "for", "(", "String", "kp", ":", "keyP...
Returns a resource description resolver that uses common descriptions for some attributes. @param keyPrefix the prefix to be appended to the {@link LoggingExtension#SUBSYSTEM_NAME} @return the resolver
[ "Returns", "a", "resource", "description", "resolver", "that", "uses", "common", "descriptions", "for", "some", "attributes", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/logging/src/main/java/org/jboss/as/logging/LoggingExtension.java#L130-L161
train
wildfly/wildfly-core
remoting/subsystem/src/main/java/org/jboss/as/remoting/RemotingSubsystem10Parser.java
RemotingSubsystem10Parser.parseWorkerThreadPool
void parseWorkerThreadPool(final XMLExtendedStreamReader reader, final ModelNode subsystemAdd) throws XMLStreamException { final int count = reader.getAttributeCount(); for (int i = 0; i < count; i++) { requireNoNamespaceAttribute(reader, i); final String value = reader.getAttrib...
java
void parseWorkerThreadPool(final XMLExtendedStreamReader reader, final ModelNode subsystemAdd) throws XMLStreamException { final int count = reader.getAttributeCount(); for (int i = 0; i < count; i++) { requireNoNamespaceAttribute(reader, i); final String value = reader.getAttrib...
[ "void", "parseWorkerThreadPool", "(", "final", "XMLExtendedStreamReader", "reader", ",", "final", "ModelNode", "subsystemAdd", ")", "throws", "XMLStreamException", "{", "final", "int", "count", "=", "reader", ".", "getAttributeCount", "(", ")", ";", "for", "(", "i...
Adds the worker thread pool attributes to the subysystem add method
[ "Adds", "the", "worker", "thread", "pool", "attributes", "to", "the", "subysystem", "add", "method" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/remoting/subsystem/src/main/java/org/jboss/as/remoting/RemotingSubsystem10Parser.java#L82-L130
train
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/domain/controller/operations/coordination/ServerRequireRestartTask.java
ServerRequireRestartTask.createOperation
private static ModelNode createOperation(ServerIdentity identity) { // The server address final ModelNode address = new ModelNode(); address.add(ModelDescriptionConstants.HOST, identity.getHostName()); address.add(ModelDescriptionConstants.RUNNING_SERVER, identity.getServerName()); ...
java
private static ModelNode createOperation(ServerIdentity identity) { // The server address final ModelNode address = new ModelNode(); address.add(ModelDescriptionConstants.HOST, identity.getHostName()); address.add(ModelDescriptionConstants.RUNNING_SERVER, identity.getServerName()); ...
[ "private", "static", "ModelNode", "createOperation", "(", "ServerIdentity", "identity", ")", "{", "// The server address", "final", "ModelNode", "address", "=", "new", "ModelNode", "(", ")", ";", "address", ".", "add", "(", "ModelDescriptionConstants", ".", "HOST", ...
Transform the operation into something the proxy controller understands. @param identity the server identity @return the transformed operation
[ "Transform", "the", "operation", "into", "something", "the", "proxy", "controller", "understands", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/domain/controller/operations/coordination/ServerRequireRestartTask.java#L114-L123
train
wildfly/wildfly-core
domain-management/src/main/java/org/jboss/as/domain/management/security/adduser/PropertyFileFinder.java
PropertyFileFinder.buildDirPath
private File buildDirPath(final String serverConfigUserDirPropertyName, final String suppliedConfigDir, final String serverConfigDirPropertyName, final String serverBaseDirPropertyName, final String defaultBaseDir) { String propertyDir = System.getProperty(serverConfigUserDirPropertyName); i...
java
private File buildDirPath(final String serverConfigUserDirPropertyName, final String suppliedConfigDir, final String serverConfigDirPropertyName, final String serverBaseDirPropertyName, final String defaultBaseDir) { String propertyDir = System.getProperty(serverConfigUserDirPropertyName); i...
[ "private", "File", "buildDirPath", "(", "final", "String", "serverConfigUserDirPropertyName", ",", "final", "String", "suppliedConfigDir", ",", "final", "String", "serverConfigDirPropertyName", ",", "final", "String", "serverBaseDirPropertyName", ",", "final", "String", "...
This method attempts to locate a suitable directory by checking a number of different configuration sources. 1 - serverConfigUserDirPropertyName - This value is used to check it a matching system property has been set. 2 - suppliedConfigDir - If a path was specified on the command line it is expected to be passed in a...
[ "This", "method", "attempts", "to", "locate", "a", "suitable", "directory", "by", "checking", "a", "number", "of", "different", "configuration", "sources", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/domain-management/src/main/java/org/jboss/as/domain/management/security/adduser/PropertyFileFinder.java#L261-L281
train
wildfly/wildfly-core
domain-management/src/main/java/org/jboss/as/domain/management/security/adduser/PropertyFileFinder.java
PropertyFileFinder.validatePermissions
private void validatePermissions(final File dirPath, final File file) { // Check execute and read permissions for parent dirPath if( !dirPath.canExecute() || !dirPath.canRead() ) { validFilePermissions = false; filePermissionsProblemPath = dirPath.getAbsolutePath(); ...
java
private void validatePermissions(final File dirPath, final File file) { // Check execute and read permissions for parent dirPath if( !dirPath.canExecute() || !dirPath.canRead() ) { validFilePermissions = false; filePermissionsProblemPath = dirPath.getAbsolutePath(); ...
[ "private", "void", "validatePermissions", "(", "final", "File", "dirPath", ",", "final", "File", "file", ")", "{", "// Check execute and read permissions for parent dirPath", "if", "(", "!", "dirPath", ".", "canExecute", "(", ")", "||", "!", "dirPath", ".", "canRe...
This method performs a series of permissions checks given a directory and properties file path. 1 - Check whether the parent directory dirPath has proper execute and read permissions 2 - Check whether properties file path is readable and writable If either of the permissions checks fail, update validFilePermissions a...
[ "This", "method", "performs", "a", "series", "of", "permissions", "checks", "given", "a", "directory", "and", "properties", "file", "path", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/domain-management/src/main/java/org/jboss/as/domain/management/security/adduser/PropertyFileFinder.java#L293-L308
train
wildfly/wildfly-core
launcher/src/main/java/org/wildfly/core/launcher/AbstractCommandBuilder.java
AbstractCommandBuilder.normalizePath
protected Path normalizePath(final Path parent, final String path) { return parent.resolve(path).toAbsolutePath().normalize(); }
java
protected Path normalizePath(final Path parent, final String path) { return parent.resolve(path).toAbsolutePath().normalize(); }
[ "protected", "Path", "normalizePath", "(", "final", "Path", "parent", ",", "final", "String", "path", ")", "{", "return", "parent", ".", "resolve", "(", "path", ")", ".", "toAbsolutePath", "(", ")", ".", "normalize", "(", ")", ";", "}" ]
Resolves the path relative to the parent and normalizes it. @param parent the parent path @param path the path @return the normalized path
[ "Resolves", "the", "path", "relative", "to", "the", "parent", "and", "normalizes", "it", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/launcher/src/main/java/org/wildfly/core/launcher/AbstractCommandBuilder.java#L564-L566
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/ContainerStateMonitor.java
ContainerStateMonitor.awaitStabilityUninterruptibly
void awaitStabilityUninterruptibly(long timeout, TimeUnit timeUnit) throws TimeoutException { boolean interrupted = false; try { long toWait = timeUnit.toMillis(timeout); long msTimeout = System.currentTimeMillis() + toWait; while (true) { if (interrup...
java
void awaitStabilityUninterruptibly(long timeout, TimeUnit timeUnit) throws TimeoutException { boolean interrupted = false; try { long toWait = timeUnit.toMillis(timeout); long msTimeout = System.currentTimeMillis() + toWait; while (true) { if (interrup...
[ "void", "awaitStabilityUninterruptibly", "(", "long", "timeout", ",", "TimeUnit", "timeUnit", ")", "throws", "TimeoutException", "{", "boolean", "interrupted", "=", "false", ";", "try", "{", "long", "toWait", "=", "timeUnit", ".", "toMillis", "(", "timeout", ")"...
Await service container stability ignoring thread interruption. @param timeout maximum period to wait for service container stability @param timeUnit unit in which {@code timeout} is expressed @throws java.util.concurrent.TimeoutException if service container stability is not reached before the specified timeout
[ "Await", "service", "container", "stability", "ignoring", "thread", "interruption", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/ContainerStateMonitor.java#L89-L112
train
wildfly/wildfly-core
server/src/main/java/org/jboss/as/server/ServerService.java
ServerService.addService
public static void addService(final ServiceTarget serviceTarget, final Bootstrap.Configuration configuration, final ControlledProcessState processState, final BootstrapListener bootstrapListener, final RunningModeControl runningModeControl, final Abstr...
java
public static void addService(final ServiceTarget serviceTarget, final Bootstrap.Configuration configuration, final ControlledProcessState processState, final BootstrapListener bootstrapListener, final RunningModeControl runningModeControl, final Abstr...
[ "public", "static", "void", "addService", "(", "final", "ServiceTarget", "serviceTarget", ",", "final", "Bootstrap", ".", "Configuration", "configuration", ",", "final", "ControlledProcessState", "processState", ",", "final", "BootstrapListener", "bootstrapListener", ",",...
Add this service to the given service target. @param serviceTarget the service target @param configuration the bootstrap configuration
[ "Add", "this", "service", "to", "the", "given", "service", "target", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/ServerService.java#L216-L267
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/tool/PatchOperationTarget.java
PatchOperationTarget.createLocal
public static final PatchOperationTarget createLocal(final File jbossHome, List<File> moduleRoots, List<File> bundlesRoots) throws IOException { final PatchTool tool = PatchTool.Factory.createLocalTool(jbossHome, moduleRoots, bundlesRoots); return new LocalPatchOperationTarget(tool); }
java
public static final PatchOperationTarget createLocal(final File jbossHome, List<File> moduleRoots, List<File> bundlesRoots) throws IOException { final PatchTool tool = PatchTool.Factory.createLocalTool(jbossHome, moduleRoots, bundlesRoots); return new LocalPatchOperationTarget(tool); }
[ "public", "static", "final", "PatchOperationTarget", "createLocal", "(", "final", "File", "jbossHome", ",", "List", "<", "File", ">", "moduleRoots", ",", "List", "<", "File", ">", "bundlesRoots", ")", "throws", "IOException", "{", "final", "PatchTool", "tool", ...
Create a local target. @param jbossHome the jboss home @param moduleRoots the module roots @param bundlesRoots the bundle roots @return the local target @throws IOException
[ "Create", "a", "local", "target", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/tool/PatchOperationTarget.java#L76-L79
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/tool/PatchOperationTarget.java
PatchOperationTarget.createStandalone
public static final PatchOperationTarget createStandalone(final ModelControllerClient controllerClient) { final PathAddress address = PathAddress.EMPTY_ADDRESS.append(CORE_SERVICES); return new RemotePatchOperationTarget(address, controllerClient); }
java
public static final PatchOperationTarget createStandalone(final ModelControllerClient controllerClient) { final PathAddress address = PathAddress.EMPTY_ADDRESS.append(CORE_SERVICES); return new RemotePatchOperationTarget(address, controllerClient); }
[ "public", "static", "final", "PatchOperationTarget", "createStandalone", "(", "final", "ModelControllerClient", "controllerClient", ")", "{", "final", "PathAddress", "address", "=", "PathAddress", ".", "EMPTY_ADDRESS", ".", "append", "(", "CORE_SERVICES", ")", ";", "r...
Create a standalone target. @param controllerClient the connected controller client to a standalone instance. @return the remote target
[ "Create", "a", "standalone", "target", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/tool/PatchOperationTarget.java#L87-L90
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/tool/PatchOperationTarget.java
PatchOperationTarget.createHost
public static final PatchOperationTarget createHost(final String hostName, final ModelControllerClient client) { final PathElement host = PathElement.pathElement(HOST, hostName); final PathAddress address = PathAddress.EMPTY_ADDRESS.append(host, CORE_SERVICES); return new RemotePatchOperationTar...
java
public static final PatchOperationTarget createHost(final String hostName, final ModelControllerClient client) { final PathElement host = PathElement.pathElement(HOST, hostName); final PathAddress address = PathAddress.EMPTY_ADDRESS.append(host, CORE_SERVICES); return new RemotePatchOperationTar...
[ "public", "static", "final", "PatchOperationTarget", "createHost", "(", "final", "String", "hostName", ",", "final", "ModelControllerClient", "client", ")", "{", "final", "PathElement", "host", "=", "PathElement", ".", "pathElement", "(", "HOST", ",", "hostName", ...
Create a host target. @param hostName the host name @param client the connected controller client to the master host. @return the remote target
[ "Create", "a", "host", "target", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/tool/PatchOperationTarget.java#L99-L103
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/registry/OperationTransformerRegistry.java
OperationTransformerRegistry.resolveResourceTransformer
public ResourceTransformerEntry resolveResourceTransformer(final PathAddress address, final PlaceholderResolver placeholderResolver) { return resolveResourceTransformer(address.iterator(), null, placeholderResolver); }
java
public ResourceTransformerEntry resolveResourceTransformer(final PathAddress address, final PlaceholderResolver placeholderResolver) { return resolveResourceTransformer(address.iterator(), null, placeholderResolver); }
[ "public", "ResourceTransformerEntry", "resolveResourceTransformer", "(", "final", "PathAddress", "address", ",", "final", "PlaceholderResolver", "placeholderResolver", ")", "{", "return", "resolveResourceTransformer", "(", "address", ".", "iterator", "(", ")", ",", "null"...
Resolve a resource transformer for a given address. @param address the address @param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration @return the resource transformer
[ "Resolve", "a", "resource", "transformer", "for", "a", "given", "address", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/registry/OperationTransformerRegistry.java#L95-L97
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/registry/OperationTransformerRegistry.java
OperationTransformerRegistry.resolveOperationTransformer
public OperationTransformerEntry resolveOperationTransformer(final PathAddress address, final String operationName, PlaceholderResolver placeholderResolver) { final Iterator<PathElement> iterator = address.iterator(); final OperationTransformerEntry entry = resolveOperationTransformer(iterator, operatio...
java
public OperationTransformerEntry resolveOperationTransformer(final PathAddress address, final String operationName, PlaceholderResolver placeholderResolver) { final Iterator<PathElement> iterator = address.iterator(); final OperationTransformerEntry entry = resolveOperationTransformer(iterator, operatio...
[ "public", "OperationTransformerEntry", "resolveOperationTransformer", "(", "final", "PathAddress", "address", ",", "final", "String", "operationName", ",", "PlaceholderResolver", "placeholderResolver", ")", "{", "final", "Iterator", "<", "PathElement", ">", "iterator", "=...
Resolve an operation transformer entry. @param address the address @param operationName the operation name @param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration @return the transformer entry
[ "Resolve", "an", "operation", "transformer", "entry", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/registry/OperationTransformerRegistry.java#L107-L115
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/registry/OperationTransformerRegistry.java
OperationTransformerRegistry.mergeSubsystem
public void mergeSubsystem(final GlobalTransformerRegistry registry, String subsystemName, ModelVersion version) { final PathElement element = PathElement.pathElement(SUBSYSTEM, subsystemName); registry.mergeSubtree(this, PathAddress.EMPTY_ADDRESS.append(element), version); }
java
public void mergeSubsystem(final GlobalTransformerRegistry registry, String subsystemName, ModelVersion version) { final PathElement element = PathElement.pathElement(SUBSYSTEM, subsystemName); registry.mergeSubtree(this, PathAddress.EMPTY_ADDRESS.append(element), version); }
[ "public", "void", "mergeSubsystem", "(", "final", "GlobalTransformerRegistry", "registry", ",", "String", "subsystemName", ",", "ModelVersion", "version", ")", "{", "final", "PathElement", "element", "=", "PathElement", ".", "pathElement", "(", "SUBSYSTEM", ",", "su...
Merge a new subsystem from the global registration. @param registry the global registry @param subsystemName the subsystem name @param version the subsystem version
[ "Merge", "a", "new", "subsystem", "from", "the", "global", "registration", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/registry/OperationTransformerRegistry.java#L124-L127
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/registry/OperationTransformerRegistry.java
OperationTransformerRegistry.getPathTransformations
public List<PathAddressTransformer> getPathTransformations(final PathAddress address, PlaceholderResolver placeholderResolver) { final List<PathAddressTransformer> list = new ArrayList<PathAddressTransformer>(); final Iterator<PathElement> iterator = address.iterator(); resolvePathTransformers(i...
java
public List<PathAddressTransformer> getPathTransformations(final PathAddress address, PlaceholderResolver placeholderResolver) { final List<PathAddressTransformer> list = new ArrayList<PathAddressTransformer>(); final Iterator<PathElement> iterator = address.iterator(); resolvePathTransformers(i...
[ "public", "List", "<", "PathAddressTransformer", ">", "getPathTransformations", "(", "final", "PathAddress", "address", ",", "PlaceholderResolver", "placeholderResolver", ")", "{", "final", "List", "<", "PathAddressTransformer", ">", "list", "=", "new", "ArrayList", "...
Get a list of path transformers for a given address. @param address the path address @param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration @return a list of path transformations
[ "Get", "a", "list", "of", "path", "transformers", "for", "a", "given", "address", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/registry/OperationTransformerRegistry.java#L136-L147
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java
ModificationBuilderTarget.addContentModification
public T addContentModification(final ContentModification modification) { if (itemFilter.accepts(modification.getItem())) { internalAddModification(modification); } return returnThis(); }
java
public T addContentModification(final ContentModification modification) { if (itemFilter.accepts(modification.getItem())) { internalAddModification(modification); } return returnThis(); }
[ "public", "T", "addContentModification", "(", "final", "ContentModification", "modification", ")", "{", "if", "(", "itemFilter", ".", "accepts", "(", "modification", ".", "getItem", "(", ")", ")", ")", "{", "internalAddModification", "(", "modification", ")", ";...
Add a content modification. @param modification the content modification
[ "Add", "a", "content", "modification", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java#L57-L62
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java
ModificationBuilderTarget.addBundle
public T addBundle(final String moduleName, final String slot, final byte[] newHash) { final ContentItem item = createBundleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.ADD, NO_CONTENT)); return returnThis(); }
java
public T addBundle(final String moduleName, final String slot, final byte[] newHash) { final ContentItem item = createBundleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.ADD, NO_CONTENT)); return returnThis(); }
[ "public", "T", "addBundle", "(", "final", "String", "moduleName", ",", "final", "String", "slot", ",", "final", "byte", "[", "]", "newHash", ")", "{", "final", "ContentItem", "item", "=", "createBundleItem", "(", "moduleName", ",", "slot", ",", "newHash", ...
Add a bundle. @param moduleName the module name @param slot the module slot @param newHash the new hash of the added content @return the builder
[ "Add", "a", "bundle", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java#L72-L76
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java
ModificationBuilderTarget.modifyBundle
public T modifyBundle(final String moduleName, final String slot, final byte[] existingHash, final byte[] newHash) { final ContentItem item = createBundleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.MODIFY, existingHash)); return return...
java
public T modifyBundle(final String moduleName, final String slot, final byte[] existingHash, final byte[] newHash) { final ContentItem item = createBundleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.MODIFY, existingHash)); return return...
[ "public", "T", "modifyBundle", "(", "final", "String", "moduleName", ",", "final", "String", "slot", ",", "final", "byte", "[", "]", "existingHash", ",", "final", "byte", "[", "]", "newHash", ")", "{", "final", "ContentItem", "item", "=", "createBundleItem",...
Modify a bundle. @param moduleName the module name @param slot the module slot @param existingHash the existing hash @param newHash the new hash of the modified content @return the builder
[ "Modify", "a", "bundle", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java#L87-L91
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java
ModificationBuilderTarget.removeBundle
public T removeBundle(final String moduleName, final String slot, final byte[] existingHash) { final ContentItem item = createBundleItem(moduleName, slot, NO_CONTENT); addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash)); return returnThis(); }
java
public T removeBundle(final String moduleName, final String slot, final byte[] existingHash) { final ContentItem item = createBundleItem(moduleName, slot, NO_CONTENT); addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash)); return returnThis(); }
[ "public", "T", "removeBundle", "(", "final", "String", "moduleName", ",", "final", "String", "slot", ",", "final", "byte", "[", "]", "existingHash", ")", "{", "final", "ContentItem", "item", "=", "createBundleItem", "(", "moduleName", ",", "slot", ",", "NO_C...
Remove a bundle. @param moduleName the module name @param slot the module slot @param existingHash the existing hash @return the builder
[ "Remove", "a", "bundle", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java#L101-L105
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java
ModificationBuilderTarget.addFile
public T addFile(final String name, final List<String> path, final byte[] newHash, final boolean isDirectory) { return addFile(name, path, newHash, isDirectory, null); }
java
public T addFile(final String name, final List<String> path, final byte[] newHash, final boolean isDirectory) { return addFile(name, path, newHash, isDirectory, null); }
[ "public", "T", "addFile", "(", "final", "String", "name", ",", "final", "List", "<", "String", ">", "path", ",", "final", "byte", "[", "]", "newHash", ",", "final", "boolean", "isDirectory", ")", "{", "return", "addFile", "(", "name", ",", "path", ",",...
Add a misc file. @param name the file name @param path the relative path @param newHash the new hash of the added content @param isDirectory whether the file is a directory or not @return the builder
[ "Add", "a", "misc", "file", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java#L116-L118
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java
ModificationBuilderTarget.modifyFile
public T modifyFile(final String name, final List<String> path, final byte[] existingHash, final byte[] newHash, final boolean isDirectory) { return modifyFile(name, path, existingHash, newHash, isDirectory, null); }
java
public T modifyFile(final String name, final List<String> path, final byte[] existingHash, final byte[] newHash, final boolean isDirectory) { return modifyFile(name, path, existingHash, newHash, isDirectory, null); }
[ "public", "T", "modifyFile", "(", "final", "String", "name", ",", "final", "List", "<", "String", ">", "path", ",", "final", "byte", "[", "]", "existingHash", ",", "final", "byte", "[", "]", "newHash", ",", "final", "boolean", "isDirectory", ")", "{", ...
Modify a misc file. @param name the file name @param path the relative path @param existingHash the existing hash @param newHash the new hash of the modified content @param isDirectory whether the file is a directory or not @return the builder
[ "Modify", "a", "misc", "file", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java#L136-L138
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java
ModificationBuilderTarget.removeFile
public T removeFile(final String name, final List<String> path, final byte[] existingHash, final boolean isDirectory) { return removeFile(name, path, existingHash, isDirectory, null); }
java
public T removeFile(final String name, final List<String> path, final byte[] existingHash, final boolean isDirectory) { return removeFile(name, path, existingHash, isDirectory, null); }
[ "public", "T", "removeFile", "(", "final", "String", "name", ",", "final", "List", "<", "String", ">", "path", ",", "final", "byte", "[", "]", "existingHash", ",", "final", "boolean", "isDirectory", ")", "{", "return", "removeFile", "(", "name", ",", "pa...
Remove a misc file. @param name the file name @param path the relative path @param existingHash the existing hash @param isDirectory whether the file is a directory or not @return the builder
[ "Remove", "a", "misc", "file", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java#L155-L157
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java
ModificationBuilderTarget.addModule
public T addModule(final String moduleName, final String slot, final byte[] newHash) { final ContentItem item = createModuleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.ADD, NO_CONTENT)); return returnThis(); }
java
public T addModule(final String moduleName, final String slot, final byte[] newHash) { final ContentItem item = createModuleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.ADD, NO_CONTENT)); return returnThis(); }
[ "public", "T", "addModule", "(", "final", "String", "moduleName", ",", "final", "String", "slot", ",", "final", "byte", "[", "]", "newHash", ")", "{", "final", "ContentItem", "item", "=", "createModuleItem", "(", "moduleName", ",", "slot", ",", "newHash", ...
Add a module. @param moduleName the module name @param slot the module slot @param newHash the new hash of the added content @return the builder
[ "Add", "a", "module", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java#L174-L178
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java
ModificationBuilderTarget.modifyModule
public T modifyModule(final String moduleName, final String slot, final byte[] existingHash, final byte[] newHash) { final ContentItem item = createModuleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.MODIFY, existingHash)); return return...
java
public T modifyModule(final String moduleName, final String slot, final byte[] existingHash, final byte[] newHash) { final ContentItem item = createModuleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.MODIFY, existingHash)); return return...
[ "public", "T", "modifyModule", "(", "final", "String", "moduleName", ",", "final", "String", "slot", ",", "final", "byte", "[", "]", "existingHash", ",", "final", "byte", "[", "]", "newHash", ")", "{", "final", "ContentItem", "item", "=", "createModuleItem",...
Modify a module. @param moduleName the module name @param slot the module slot @param existingHash the existing hash @param newHash the new hash of the modified content @return the builder
[ "Modify", "a", "module", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java#L189-L193
train
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java
ModificationBuilderTarget.removeModule
public T removeModule(final String moduleName, final String slot, final byte[] existingHash) { final ContentItem item = createModuleItem(moduleName, slot, NO_CONTENT); addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash)); return returnThis(); }
java
public T removeModule(final String moduleName, final String slot, final byte[] existingHash) { final ContentItem item = createModuleItem(moduleName, slot, NO_CONTENT); addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash)); return returnThis(); }
[ "public", "T", "removeModule", "(", "final", "String", "moduleName", ",", "final", "String", "slot", ",", "final", "byte", "[", "]", "existingHash", ")", "{", "final", "ContentItem", "item", "=", "createModuleItem", "(", "moduleName", ",", "slot", ",", "NO_C...
Remove a module. @param moduleName the module name @param slot the module slot @param existingHash the existing hash @return the builder
[ "Remove", "a", "module", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/metadata/ModificationBuilderTarget.java#L203-L207
train
wildfly/wildfly-core
logging/src/main/java/org/jboss/as/logging/loggers/LoggerOperations.java
LoggerOperations.getLogManagerLoggerName
private static String getLogManagerLoggerName(final String name) { return (name.equals(RESOURCE_NAME) ? CommonAttributes.ROOT_LOGGER_NAME : name); }
java
private static String getLogManagerLoggerName(final String name) { return (name.equals(RESOURCE_NAME) ? CommonAttributes.ROOT_LOGGER_NAME : name); }
[ "private", "static", "String", "getLogManagerLoggerName", "(", "final", "String", "name", ")", "{", "return", "(", "name", ".", "equals", "(", "RESOURCE_NAME", ")", "?", "CommonAttributes", ".", "ROOT_LOGGER_NAME", ":", "name", ")", ";", "}" ]
Returns the logger name that should be used in the log manager. @param name the name of the logger from the resource @return the name of the logger
[ "Returns", "the", "logger", "name", "that", "should", "be", "used", "in", "the", "log", "manager", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/logging/src/main/java/org/jboss/as/logging/loggers/LoggerOperations.java#L302-L304
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/parsing/ParseUtils.java
ParseUtils.unexpectedEndElement
public static XMLStreamException unexpectedEndElement(final XMLExtendedStreamReader reader) { return ControllerLogger.ROOT_LOGGER.unexpectedEndElement(reader.getName(), reader.getLocation()); }
java
public static XMLStreamException unexpectedEndElement(final XMLExtendedStreamReader reader) { return ControllerLogger.ROOT_LOGGER.unexpectedEndElement(reader.getName(), reader.getLocation()); }
[ "public", "static", "XMLStreamException", "unexpectedEndElement", "(", "final", "XMLExtendedStreamReader", "reader", ")", "{", "return", "ControllerLogger", ".", "ROOT_LOGGER", ".", "unexpectedEndElement", "(", "reader", ".", "getName", "(", ")", ",", "reader", ".", ...
Get an exception reporting an unexpected end tag for an XML element. @param reader the stream reader @return the exception
[ "Get", "an", "exception", "reporting", "an", "unexpected", "end", "tag", "for", "an", "XML", "element", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/parsing/ParseUtils.java#L124-L126
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/parsing/ParseUtils.java
ParseUtils.missingRequiredElement
public static XMLStreamException missingRequiredElement(final XMLExtendedStreamReader reader, final Set<?> required) { final StringBuilder b = new StringBuilder(); Iterator<?> iterator = required.iterator(); while (iterator.hasNext()) { final Object o = iterator.next(); b...
java
public static XMLStreamException missingRequiredElement(final XMLExtendedStreamReader reader, final Set<?> required) { final StringBuilder b = new StringBuilder(); Iterator<?> iterator = required.iterator(); while (iterator.hasNext()) { final Object o = iterator.next(); b...
[ "public", "static", "XMLStreamException", "missingRequiredElement", "(", "final", "XMLExtendedStreamReader", "reader", ",", "final", "Set", "<", "?", ">", "required", ")", "{", "final", "StringBuilder", "b", "=", "new", "StringBuilder", "(", ")", ";", "Iterator", ...
Get an exception reporting a missing, required XML child element. @param reader the stream reader @param required a set of enums whose toString method returns the attribute name @return the exception
[ "Get", "an", "exception", "reporting", "a", "missing", "required", "XML", "child", "element", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/parsing/ParseUtils.java#L246-L268
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/parsing/ParseUtils.java
ParseUtils.requireNamespace
public static void requireNamespace(final XMLExtendedStreamReader reader, final Namespace requiredNs) throws XMLStreamException { Namespace actualNs = Namespace.forUri(reader.getNamespaceURI()); if (actualNs != requiredNs) { throw unexpectedElement(reader); } }
java
public static void requireNamespace(final XMLExtendedStreamReader reader, final Namespace requiredNs) throws XMLStreamException { Namespace actualNs = Namespace.forUri(reader.getNamespaceURI()); if (actualNs != requiredNs) { throw unexpectedElement(reader); } }
[ "public", "static", "void", "requireNamespace", "(", "final", "XMLExtendedStreamReader", "reader", ",", "final", "Namespace", "requiredNs", ")", "throws", "XMLStreamException", "{", "Namespace", "actualNs", "=", "Namespace", ".", "forUri", "(", "reader", ".", "getNa...
Require that the namespace of the current element matches the required namespace. @param reader the reader @param requiredNs the namespace required @throws XMLStreamException if the current namespace does not match the required namespace
[ "Require", "that", "the", "namespace", "of", "the", "current", "element", "matches", "the", "required", "namespace", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/parsing/ParseUtils.java#L333-L338
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/parsing/ParseUtils.java
ParseUtils.readBooleanAttributeElement
public static boolean readBooleanAttributeElement(final XMLExtendedStreamReader reader, final String attributeName) throws XMLStreamException { requireSingleAttribute(reader, attributeName); final boolean value = Boolean.parseBoolean(reader.getAttributeValue(0)); requireNoContent(rea...
java
public static boolean readBooleanAttributeElement(final XMLExtendedStreamReader reader, final String attributeName) throws XMLStreamException { requireSingleAttribute(reader, attributeName); final boolean value = Boolean.parseBoolean(reader.getAttributeValue(0)); requireNoContent(rea...
[ "public", "static", "boolean", "readBooleanAttributeElement", "(", "final", "XMLExtendedStreamReader", "reader", ",", "final", "String", "attributeName", ")", "throws", "XMLStreamException", "{", "requireSingleAttribute", "(", "reader", ",", "attributeName", ")", ";", "...
Read an element which contains only a single boolean attribute. @param reader the reader @param attributeName the attribute name, usually "value" @return the boolean value @throws javax.xml.stream.XMLStreamException if an error occurs or if the element does not contain the specified attribute, contains other attributes...
[ "Read", "an", "element", "which", "contains", "only", "a", "single", "boolean", "attribute", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/parsing/ParseUtils.java#L384-L390
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/parsing/ParseUtils.java
ParseUtils.readListAttributeElement
@SuppressWarnings({"unchecked", "WeakerAccess"}) public static <T> List<T> readListAttributeElement(final XMLExtendedStreamReader reader, final String attributeName, final Class<T> type) throws XMLStreamException { requireSingleAttribute(reader, attributeName); // todo: fix this when thi...
java
@SuppressWarnings({"unchecked", "WeakerAccess"}) public static <T> List<T> readListAttributeElement(final XMLExtendedStreamReader reader, final String attributeName, final Class<T> type) throws XMLStreamException { requireSingleAttribute(reader, attributeName); // todo: fix this when thi...
[ "@", "SuppressWarnings", "(", "{", "\"unchecked\"", ",", "\"WeakerAccess\"", "}", ")", "public", "static", "<", "T", ">", "List", "<", "T", ">", "readListAttributeElement", "(", "final", "XMLExtendedStreamReader", "reader", ",", "final", "String", "attributeName",...
Read an element which contains only a single list attribute of a given type. @param reader the reader @param attributeName the attribute name, usually "value" @param type the value type class @param <T> the value type @return the value list @throws javax.xml.stream.XMLStreamException if an error occurs or if the elemen...
[ "Read", "an", "element", "which", "contains", "only", "a", "single", "list", "attribute", "of", "a", "given", "type", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/parsing/ParseUtils.java#L421-L429
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/parsing/ParseUtils.java
ParseUtils.readArrayAttributeElement
@SuppressWarnings({ "unchecked" }) public static <T> T[] readArrayAttributeElement(final XMLExtendedStreamReader reader, final String attributeName, final Class<T> type) throws XMLStreamException { final List<T> list = readListAttributeElement(reader, attributeName, type); return list.to...
java
@SuppressWarnings({ "unchecked" }) public static <T> T[] readArrayAttributeElement(final XMLExtendedStreamReader reader, final String attributeName, final Class<T> type) throws XMLStreamException { final List<T> list = readListAttributeElement(reader, attributeName, type); return list.to...
[ "@", "SuppressWarnings", "(", "{", "\"unchecked\"", "}", ")", "public", "static", "<", "T", ">", "T", "[", "]", "readArrayAttributeElement", "(", "final", "XMLExtendedStreamReader", "reader", ",", "final", "String", "attributeName", ",", "final", "Class", "<", ...
Read an element which contains only a single list attribute of a given type, returning it as an array. @param reader the reader @param attributeName the attribute name, usually "value" @param type the value type class @param <T> the value type @return the value list as an array @throws javax.xml.stream.XMLStreamExcepti...
[ "Read", "an", "element", "which", "contains", "only", "a", "single", "list", "attribute", "of", "a", "given", "type", "returning", "it", "as", "an", "array", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/parsing/ParseUtils.java#L478-L483
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/ObjectTypeAttributeDefinition.java
ObjectTypeAttributeDefinition.resolveValue
@Override public ModelNode resolveValue(ExpressionResolver resolver, ModelNode value) throws OperationFailedException { // Pass non-OBJECT values through the superclass so it can reject weird values and, in the odd chance // that's how this object is set up, turn undefined into a default list value...
java
@Override public ModelNode resolveValue(ExpressionResolver resolver, ModelNode value) throws OperationFailedException { // Pass non-OBJECT values through the superclass so it can reject weird values and, in the odd chance // that's how this object is set up, turn undefined into a default list value...
[ "@", "Override", "public", "ModelNode", "resolveValue", "(", "ExpressionResolver", "resolver", ",", "ModelNode", "value", ")", "throws", "OperationFailedException", "{", "// Pass non-OBJECT values through the superclass so it can reject weird values and, in the odd chance", "// that'...
Overrides the superclass implementation to allow the AttributeDefinition for each field in the object to in turn resolve that field. {@inheritDoc}
[ "Overrides", "the", "superclass", "implementation", "to", "allow", "the", "AttributeDefinition", "for", "each", "field", "in", "the", "object", "to", "in", "turn", "resolve", "that", "field", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/ObjectTypeAttributeDefinition.java#L202-L238
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/remote/ResponseAttachmentInputStreamSupport.java
ResponseAttachmentInputStreamSupport.handleDomainOperationResponseStreams
public static void handleDomainOperationResponseStreams(final OperationContext context, final ModelNode responseNode, final List<OperationResponse.StreamEntry> streams) { if (responseNode.has...
java
public static void handleDomainOperationResponseStreams(final OperationContext context, final ModelNode responseNode, final List<OperationResponse.StreamEntry> streams) { if (responseNode.has...
[ "public", "static", "void", "handleDomainOperationResponseStreams", "(", "final", "OperationContext", "context", ",", "final", "ModelNode", "responseNode", ",", "final", "List", "<", "OperationResponse", ".", "StreamEntry", ">", "streams", ")", "{", "if", "(", "resp...
Deal with streams attached to an operation response from a proxied domain process. @param context the context of the operation @param responseNode the DMR response from the proxied process @param streams the streams associated with the response
[ "Deal", "with", "streams", "attached", "to", "an", "operation", "response", "from", "a", "proxied", "domain", "process", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/remote/ResponseAttachmentInputStreamSupport.java#L75-L91
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/remote/ResponseAttachmentInputStreamSupport.java
ResponseAttachmentInputStreamSupport.shutdown
public final synchronized void shutdown() { // synchronize on 'this' to avoid races with registerStreams stopped = true; // If the cleanup task is running tell it to stop looping, and then remove it from the scheduled executor if (cleanupTaskFuture != null) { cleanupTaskFuture.cance...
java
public final synchronized void shutdown() { // synchronize on 'this' to avoid races with registerStreams stopped = true; // If the cleanup task is running tell it to stop looping, and then remove it from the scheduled executor if (cleanupTaskFuture != null) { cleanupTaskFuture.cance...
[ "public", "final", "synchronized", "void", "shutdown", "(", ")", "{", "// synchronize on 'this' to avoid races with registerStreams", "stopped", "=", "true", ";", "// If the cleanup task is running tell it to stop looping, and then remove it from the scheduled executor", "if", "(", "...
Closes any registered stream entries that have not yet been consumed
[ "Closes", "any", "registered", "stream", "entries", "that", "have", "not", "yet", "been", "consumed" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/remote/ResponseAttachmentInputStreamSupport.java#L184-L200
train
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/remote/ResponseAttachmentInputStreamSupport.java
ResponseAttachmentInputStreamSupport.gc
void gc() { if (stopped) { return; } long expirationTime = System.currentTimeMillis() - timeout; for (Iterator<Map.Entry<InputStreamKey, TimedStreamEntry>> iter = streamMap.entrySet().iterator(); iter.hasNext();) { if (stopped) { return; ...
java
void gc() { if (stopped) { return; } long expirationTime = System.currentTimeMillis() - timeout; for (Iterator<Map.Entry<InputStreamKey, TimedStreamEntry>> iter = streamMap.entrySet().iterator(); iter.hasNext();) { if (stopped) { return; ...
[ "void", "gc", "(", ")", "{", "if", "(", "stopped", ")", "{", "return", ";", "}", "long", "expirationTime", "=", "System", ".", "currentTimeMillis", "(", ")", "-", "timeout", ";", "for", "(", "Iterator", "<", "Map", ".", "Entry", "<", "InputStreamKey", ...
Close and remove expired streams. Package protected to allow unit tests to invoke it.
[ "Close", "and", "remove", "expired", "streams", ".", "Package", "protected", "to", "allow", "unit", "tests", "to", "invoke", "it", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/remote/ResponseAttachmentInputStreamSupport.java#L203-L223
train
wildfly/wildfly-core
security-manager/src/main/java/org/wildfly/extension/security/manager/SecurityManagerSubsystemAdd.java
SecurityManagerSubsystemAdd.retrievePermissionSet
private List<PermissionFactory> retrievePermissionSet(final OperationContext context, final ModelNode node) throws OperationFailedException { final List<PermissionFactory> permissions = new ArrayList<>(); if (node != null && node.isDefined()) { for (ModelNode permissionNode : node.asList()...
java
private List<PermissionFactory> retrievePermissionSet(final OperationContext context, final ModelNode node) throws OperationFailedException { final List<PermissionFactory> permissions = new ArrayList<>(); if (node != null && node.isDefined()) { for (ModelNode permissionNode : node.asList()...
[ "private", "List", "<", "PermissionFactory", ">", "retrievePermissionSet", "(", "final", "OperationContext", "context", ",", "final", "ModelNode", "node", ")", "throws", "OperationFailedException", "{", "final", "List", "<", "PermissionFactory", ">", "permissions", "=...
This method retrieves all security permissions contained within the specified node. @param context the {@link OperationContext} used to resolve the permission attributes. @param node the {@link ModelNode} that might contain security permissions metadata. @return a {@link List} containing the retrieved permissions. The...
[ "This", "method", "retrieves", "all", "security", "permissions", "contained", "within", "the", "specified", "node", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/security-manager/src/main/java/org/wildfly/extension/security/manager/SecurityManagerSubsystemAdd.java#L128-L159
train