id
int32
0
165k
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
158,900
wildfly/wildfly-core
launcher/src/main/java/org/wildfly/core/launcher/Launcher.java
Launcher.addEnvironmentVariable
public Launcher addEnvironmentVariable(final String key, final String value) { env.put(key, value); return this; }
java
public Launcher addEnvironmentVariable(final String key, final String value) { env.put(key, value); return this; }
[ "public", "Launcher", "addEnvironmentVariable", "(", "final", "String", "key", ",", "final", "String", "value", ")", "{", "env", ".", "put", "(", "key", ",", "value", ")", ";", "return", "this", ";", "}" ]
Adds an environment variable to the process being created. @param key they key for the variable @param value the value for the variable @return the launcher
[ "Adds", "an", "environment", "variable", "to", "the", "process", "being", "created", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/launcher/src/main/java/org/wildfly/core/launcher/Launcher.java#L218-L221
158,901
wildfly/wildfly-core
remoting/subsystem/src/main/java/org/jboss/as/remoting/RemotingTransformers.java
RemotingTransformers.buildTransformers_3_0
private void buildTransformers_3_0(ResourceTransformationDescriptionBuilder builder) { /* ====== Resource root address: ["subsystem" => "remoting"] - Current version: 4.0.0; legacy version: 3.0.0 ======= --- Problems for relative address to root ["configuration" => "endpoint"]: Different...
java
private void buildTransformers_3_0(ResourceTransformationDescriptionBuilder builder) { /* ====== Resource root address: ["subsystem" => "remoting"] - Current version: 4.0.0; legacy version: 3.0.0 ======= --- Problems for relative address to root ["configuration" => "endpoint"]: Different...
[ "private", "void", "buildTransformers_3_0", "(", "ResourceTransformationDescriptionBuilder", "builder", ")", "{", "/*\n ====== Resource root address: [\"subsystem\" => \"remoting\"] - Current version: 4.0.0; legacy version: 3.0.0 =======\n --- Problems for relative address to root [\"c...
EAP 7.0
[ "EAP", "7", ".", "0" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/remoting/subsystem/src/main/java/org/jboss/as/remoting/RemotingTransformers.java#L118-L161
158,902
wildfly/wildfly-core
remoting/subsystem/src/main/java/org/jboss/as/remoting/RemotingTransformers.java
RemotingTransformers.buildTransformers_4_0
private void buildTransformers_4_0(ResourceTransformationDescriptionBuilder builder) { // We need to do custom transformation of the attribute in the root resource // related to endpoint configs, as these were moved to the root from a previous child resource EndPointWriteTransformer endPointWri...
java
private void buildTransformers_4_0(ResourceTransformationDescriptionBuilder builder) { // We need to do custom transformation of the attribute in the root resource // related to endpoint configs, as these were moved to the root from a previous child resource EndPointWriteTransformer endPointWri...
[ "private", "void", "buildTransformers_4_0", "(", "ResourceTransformationDescriptionBuilder", "builder", ")", "{", "// We need to do custom transformation of the attribute in the root resource", "// related to endpoint configs, as these were moved to the root from a previous child resource", "End...
EAP 7.1
[ "EAP", "7", ".", "1" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/remoting/subsystem/src/main/java/org/jboss/as/remoting/RemotingTransformers.java#L164-L184
158,903
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.getState
ServerStatus getState() { final InternalState requiredState = this.requiredState; final InternalState state = internalState; if(requiredState == InternalState.FAILED) { return ServerStatus.FAILED; } switch (state) { case STOPPED: return Ser...
java
ServerStatus getState() { final InternalState requiredState = this.requiredState; final InternalState state = internalState; if(requiredState == InternalState.FAILED) { return ServerStatus.FAILED; } switch (state) { case STOPPED: return Ser...
[ "ServerStatus", "getState", "(", ")", "{", "final", "InternalState", "requiredState", "=", "this", ".", "requiredState", ";", "final", "InternalState", "state", "=", "internalState", ";", "if", "(", "requiredState", "==", "InternalState", ".", "FAILED", ")", "{"...
Determine the current state the server is in. @return the server status
[ "Determine", "the", "current", "state", "the", "server", "is", "in", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L200-L219
158,904
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.reload
synchronized boolean reload(int permit, boolean suspend) { return internalSetState(new ReloadTask(permit, suspend), InternalState.SERVER_STARTED, InternalState.RELOADING); }
java
synchronized boolean reload(int permit, boolean suspend) { return internalSetState(new ReloadTask(permit, suspend), InternalState.SERVER_STARTED, InternalState.RELOADING); }
[ "synchronized", "boolean", "reload", "(", "int", "permit", ",", "boolean", "suspend", ")", "{", "return", "internalSetState", "(", "new", "ReloadTask", "(", "permit", ",", "suspend", ")", ",", "InternalState", ".", "SERVER_STARTED", ",", "InternalState", ".", ...
Reload a managed server. @param permit the controller permit @return whether the state was changed successfully or not
[ "Reload", "a", "managed", "server", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L238-L240
158,905
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.start
synchronized void start(final ManagedServerBootCmdFactory factory) { final InternalState required = this.requiredState; // Ignore if the server is already started if(required == InternalState.SERVER_STARTED) { return; } // In case the server failed to start, try to st...
java
synchronized void start(final ManagedServerBootCmdFactory factory) { final InternalState required = this.requiredState; // Ignore if the server is already started if(required == InternalState.SERVER_STARTED) { return; } // In case the server failed to start, try to st...
[ "synchronized", "void", "start", "(", "final", "ManagedServerBootCmdFactory", "factory", ")", "{", "final", "InternalState", "required", "=", "this", ".", "requiredState", ";", "// Ignore if the server is already started", "if", "(", "required", "==", "InternalState", "...
Start a managed server. @param factory the boot command factory
[ "Start", "a", "managed", "server", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L247-L266
158,906
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.stop
synchronized void stop(Integer timeout) { final InternalState required = this.requiredState; if(required != InternalState.STOPPED) { this.requiredState = InternalState.STOPPED; ROOT_LOGGER.stoppingServer(serverName); // Only send the stop operation if the server is st...
java
synchronized void stop(Integer timeout) { final InternalState required = this.requiredState; if(required != InternalState.STOPPED) { this.requiredState = InternalState.STOPPED; ROOT_LOGGER.stoppingServer(serverName); // Only send the stop operation if the server is st...
[ "synchronized", "void", "stop", "(", "Integer", "timeout", ")", "{", "final", "InternalState", "required", "=", "this", ".", "requiredState", ";", "if", "(", "required", "!=", "InternalState", ".", "STOPPED", ")", "{", "this", ".", "requiredState", "=", "Int...
Stop a managed server.
[ "Stop", "a", "managed", "server", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L271-L283
158,907
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.reconnectServerProcess
synchronized void reconnectServerProcess(final ManagedServerBootCmdFactory factory) { if(this.requiredState != InternalState.SERVER_STARTED) { this.bootConfiguration = factory; this.requiredState = InternalState.SERVER_STARTED; ROOT_LOGGER.reconnectingServer(serverName); ...
java
synchronized void reconnectServerProcess(final ManagedServerBootCmdFactory factory) { if(this.requiredState != InternalState.SERVER_STARTED) { this.bootConfiguration = factory; this.requiredState = InternalState.SERVER_STARTED; ROOT_LOGGER.reconnectingServer(serverName); ...
[ "synchronized", "void", "reconnectServerProcess", "(", "final", "ManagedServerBootCmdFactory", "factory", ")", "{", "if", "(", "this", ".", "requiredState", "!=", "InternalState", ".", "SERVER_STARTED", ")", "{", "this", ".", "bootConfiguration", "=", "factory", ";"...
Try to reconnect to a started server.
[ "Try", "to", "reconnect", "to", "a", "started", "server", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L334-L341
158,908
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.removeServerProcess
synchronized void removeServerProcess() { this.requiredState = InternalState.STOPPED; internalSetState(new ProcessRemoveTask(), InternalState.STOPPED, InternalState.PROCESS_REMOVING); }
java
synchronized void removeServerProcess() { this.requiredState = InternalState.STOPPED; internalSetState(new ProcessRemoveTask(), InternalState.STOPPED, InternalState.PROCESS_REMOVING); }
[ "synchronized", "void", "removeServerProcess", "(", ")", "{", "this", ".", "requiredState", "=", "InternalState", ".", "STOPPED", ";", "internalSetState", "(", "new", "ProcessRemoveTask", "(", ")", ",", "InternalState", ".", "STOPPED", ",", "InternalState", ".", ...
On host controller reload, remove a not running server registered in the process controller declared as down.
[ "On", "host", "controller", "reload", "remove", "a", "not", "running", "server", "registered", "in", "the", "process", "controller", "declared", "as", "down", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L346-L349
158,909
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.setServerProcessStopping
synchronized void setServerProcessStopping() { this.requiredState = InternalState.STOPPED; internalSetState(null, InternalState.STOPPED, InternalState.PROCESS_STOPPING); }
java
synchronized void setServerProcessStopping() { this.requiredState = InternalState.STOPPED; internalSetState(null, InternalState.STOPPED, InternalState.PROCESS_STOPPING); }
[ "synchronized", "void", "setServerProcessStopping", "(", ")", "{", "this", ".", "requiredState", "=", "InternalState", ".", "STOPPED", ";", "internalSetState", "(", "null", ",", "InternalState", ".", "STOPPED", ",", "InternalState", ".", "PROCESS_STOPPING", ")", "...
On host controller reload, remove a not running server registered in the process controller declared as stopping.
[ "On", "host", "controller", "reload", "remove", "a", "not", "running", "server", "registered", "in", "the", "process", "controller", "declared", "as", "stopping", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L354-L357
158,910
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.awaitState
boolean awaitState(final InternalState expected) { synchronized (this) { final InternalState initialRequired = this.requiredState; for(;;) { final InternalState required = this.requiredState; // Stop in case the server failed to reach the state ...
java
boolean awaitState(final InternalState expected) { synchronized (this) { final InternalState initialRequired = this.requiredState; for(;;) { final InternalState required = this.requiredState; // Stop in case the server failed to reach the state ...
[ "boolean", "awaitState", "(", "final", "InternalState", "expected", ")", "{", "synchronized", "(", "this", ")", "{", "final", "InternalState", "initialRequired", "=", "this", ".", "requiredState", ";", "for", "(", ";", ";", ")", "{", "final", "InternalState", ...
Await a state. @param expected the expected state @return {@code true} if the state was reached, {@code false} otherwise
[ "Await", "a", "state", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L365-L389
158,911
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.processUnstable
boolean processUnstable() { boolean change = !unstable; if (change) { // Only once until the process is removed. A process is unstable until removed. unstable = true; HostControllerLogger.ROOT_LOGGER.managedServerUnstable(serverName); } return change; }
java
boolean processUnstable() { boolean change = !unstable; if (change) { // Only once until the process is removed. A process is unstable until removed. unstable = true; HostControllerLogger.ROOT_LOGGER.managedServerUnstable(serverName); } return change; }
[ "boolean", "processUnstable", "(", ")", "{", "boolean", "change", "=", "!", "unstable", ";", "if", "(", "change", ")", "{", "// Only once until the process is removed. A process is unstable until removed.", "unstable", "=", "true", ";", "HostControllerLogger", ".", "ROO...
Notification that the process has become unstable. @return {@code true} if this is a change in status
[ "Notification", "that", "the", "process", "has", "become", "unstable", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L410-L417
158,912
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.callbackUnregistered
boolean callbackUnregistered(final TransactionalProtocolClient old, final boolean shuttingDown) { // Disconnect the remote connection. // WFCORE-196 Do this out of the sync block to avoid deadlocks where in-flight requests can't // be informed that the channel has closed protocolClient.d...
java
boolean callbackUnregistered(final TransactionalProtocolClient old, final boolean shuttingDown) { // Disconnect the remote connection. // WFCORE-196 Do this out of the sync block to avoid deadlocks where in-flight requests can't // be informed that the channel has closed protocolClient.d...
[ "boolean", "callbackUnregistered", "(", "final", "TransactionalProtocolClient", "old", ",", "final", "boolean", "shuttingDown", ")", "{", "// Disconnect the remote connection.", "// WFCORE-196 Do this out of the sync block to avoid deadlocks where in-flight requests can't", "// be inform...
Unregister the mgmt channel. @param old the proxy controller to unregister @param shuttingDown whether the server inventory is shutting down @return whether the registration can be removed from the domain-controller
[ "Unregister", "the", "mgmt", "channel", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L465-L496
158,913
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.processFinished
synchronized void processFinished() { final InternalState required = this.requiredState; final InternalState state = this.internalState; // If the server was not stopped if(required == InternalState.STOPPED && state == InternalState.PROCESS_STOPPING) { finishTransition(Intern...
java
synchronized void processFinished() { final InternalState required = this.requiredState; final InternalState state = this.internalState; // If the server was not stopped if(required == InternalState.STOPPED && state == InternalState.PROCESS_STOPPING) { finishTransition(Intern...
[ "synchronized", "void", "processFinished", "(", ")", "{", "final", "InternalState", "required", "=", "this", ".", "requiredState", ";", "final", "InternalState", "state", "=", "this", ".", "internalState", ";", "// If the server was not stopped", "if", "(", "require...
Notification that the server process finished.
[ "Notification", "that", "the", "server", "process", "finished", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L501-L516
158,914
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.transitionFailed
synchronized void transitionFailed(final InternalState state) { final InternalState current = this.internalState; if(state == current) { // Revert transition and mark as failed switch (current) { case PROCESS_ADDING: this.internalState = Intern...
java
synchronized void transitionFailed(final InternalState state) { final InternalState current = this.internalState; if(state == current) { // Revert transition and mark as failed switch (current) { case PROCESS_ADDING: this.internalState = Intern...
[ "synchronized", "void", "transitionFailed", "(", "final", "InternalState", "state", ")", "{", "final", "InternalState", "current", "=", "this", ".", "internalState", ";", "if", "(", "state", "==", "current", ")", "{", "// Revert transition and mark as failed", "swit...
Notification that a state transition failed. @param state the failed transition
[ "Notification", "that", "a", "state", "transition", "failed", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L549-L571
158,915
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
ManagedServer.finishTransition
private synchronized void finishTransition(final InternalState current, final InternalState next) { internalSetState(getTransitionTask(next), current, next); transition(); }
java
private synchronized void finishTransition(final InternalState current, final InternalState next) { internalSetState(getTransitionTask(next), current, next); transition(); }
[ "private", "synchronized", "void", "finishTransition", "(", "final", "InternalState", "current", ",", "final", "InternalState", "next", ")", "{", "internalSetState", "(", "getTransitionTask", "(", "next", ")", ",", "current", ",", "next", ")", ";", "transition", ...
Finish a state transition from a notification. @param current @param next
[ "Finish", "a", "state", "transition", "from", "a", "notification", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java#L600-L603
158,916
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/SimpleResourceDefinition.java
SimpleResourceDefinition.registerCapabilities
@Override public void registerCapabilities(ManagementResourceRegistration resourceRegistration) { if (capabilities!=null) { for (RuntimeCapability c : capabilities) { resourceRegistration.registerCapability(c); } } if (incorporatingCapabilities != null...
java
@Override public void registerCapabilities(ManagementResourceRegistration resourceRegistration) { if (capabilities!=null) { for (RuntimeCapability c : capabilities) { resourceRegistration.registerCapability(c); } } if (incorporatingCapabilities != null...
[ "@", "Override", "public", "void", "registerCapabilities", "(", "ManagementResourceRegistration", "resourceRegistration", ")", "{", "if", "(", "capabilities", "!=", "null", ")", "{", "for", "(", "RuntimeCapability", "c", ":", "capabilities", ")", "{", "resourceRegis...
Register capabilities associated with this resource. <p>Classes that overrides this method <em>MUST</em> call {@code super.registerCapabilities(resourceRegistration)}.</p> @param resourceRegistration a {@link ManagementResourceRegistration} created from this definition
[ "Register", "capabilities", "associated", "with", "this", "resource", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/SimpleResourceDefinition.java#L376-L388
158,917
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/SimpleResourceDefinition.java
SimpleResourceDefinition.registerAddOperation
@Deprecated @SuppressWarnings("deprecation") protected void registerAddOperation(final ManagementResourceRegistration registration, final OperationStepHandler handler, OperationEntry.Flag... flags) { if (handler instanceof DescriptionProvider) { registration.registerOperationHandler(getOpera...
java
@Deprecated @SuppressWarnings("deprecation") protected void registerAddOperation(final ManagementResourceRegistration registration, final OperationStepHandler handler, OperationEntry.Flag... flags) { if (handler instanceof DescriptionProvider) { registration.registerOperationHandler(getOpera...
[ "@", "Deprecated", "@", "SuppressWarnings", "(", "\"deprecation\"", ")", "protected", "void", "registerAddOperation", "(", "final", "ManagementResourceRegistration", "registration", ",", "final", "OperationStepHandler", "handler", ",", "OperationEntry", ".", "Flag", "..."...
Registers add operation @param registration resource on which to register @param handler operation handler to register @param flags with flags @deprecated use {@link #registerAddOperation(org.jboss.as.controller.registry.ManagementResourceRegistration, AbstractAddStepHandler, org.jboss.as.controller.regist...
[ "Registers", "add", "operation" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/SimpleResourceDefinition.java#L415-L430
158,918
wildfly/wildfly-core
protocol/src/main/java/org/jboss/as/protocol/mgmt/ManagementChannelReceiver.java
ManagementChannelReceiver.handlePing
private static void handlePing(final Channel channel, final ManagementProtocolHeader header) throws IOException { final ManagementProtocolHeader response = new ManagementPongHeader(header.getVersion()); final MessageOutputStream output = channel.writeMessage(); try { writeHeader(resp...
java
private static void handlePing(final Channel channel, final ManagementProtocolHeader header) throws IOException { final ManagementProtocolHeader response = new ManagementPongHeader(header.getVersion()); final MessageOutputStream output = channel.writeMessage(); try { writeHeader(resp...
[ "private", "static", "void", "handlePing", "(", "final", "Channel", "channel", ",", "final", "ManagementProtocolHeader", "header", ")", "throws", "IOException", "{", "final", "ManagementProtocolHeader", "response", "=", "new", "ManagementPongHeader", "(", "header", "....
Handle a simple ping request. @param channel the channel @param header the protocol header @throws IOException for any error
[ "Handle", "a", "simple", "ping", "request", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/ManagementChannelReceiver.java#L142-L151
158,919
wildfly/wildfly-core
cli/src/main/java/org/jboss/as/cli/util/CLIExpressionResolver.java
CLIExpressionResolver.resolveOrOriginal
public static String resolveOrOriginal(String input) { try { return resolve(input, true); } catch (UnresolvedExpressionException e) { return input; } }
java
public static String resolveOrOriginal(String input) { try { return resolve(input, true); } catch (UnresolvedExpressionException e) { return input; } }
[ "public", "static", "String", "resolveOrOriginal", "(", "String", "input", ")", "{", "try", "{", "return", "resolve", "(", "input", ",", "true", ")", ";", "}", "catch", "(", "UnresolvedExpressionException", "e", ")", "{", "return", "input", ";", "}", "}" ]
Attempts to substitute all the found expressions in the input with their corresponding resolved values. If any of the found expressions failed to resolve or if the input does not contain any expression, the input is returned as is. @param input the input string @return the input with resolved expressions or the orig...
[ "Attempts", "to", "substitute", "all", "the", "found", "expressions", "in", "the", "input", "with", "their", "corresponding", "resolved", "values", ".", "If", "any", "of", "the", "found", "expressions", "failed", "to", "resolve", "or", "if", "the", "input", ...
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/util/CLIExpressionResolver.java#L79-L85
158,920
wildfly/wildfly-core
controller-client/src/main/java/org/jboss/as/controller/client/impl/AbstractModelControllerClient.java
AbstractModelControllerClient.executeForResult
private OperationResponse executeForResult(final OperationExecutionContext executionContext) throws IOException { try { return execute(executionContext).get(); } catch(Exception e) { throw new IOException(e); } }
java
private OperationResponse executeForResult(final OperationExecutionContext executionContext) throws IOException { try { return execute(executionContext).get(); } catch(Exception e) { throw new IOException(e); } }
[ "private", "OperationResponse", "executeForResult", "(", "final", "OperationExecutionContext", "executionContext", ")", "throws", "IOException", "{", "try", "{", "return", "execute", "(", "executionContext", ")", ".", "get", "(", ")", ";", "}", "catch", "(", "Exce...
Execute for result. @param executionContext the execution context @return the result @throws IOException for any error
[ "Execute", "for", "result", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller-client/src/main/java/org/jboss/as/controller/client/impl/AbstractModelControllerClient.java#L145-L151
158,921
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/installation/LayersConfig.java
LayersConfig.getLayersConfig
public static LayersConfig getLayersConfig(final File repoRoot) throws IOException { final File layersList = new File(repoRoot, LAYERS_CONF); if (!layersList.exists()) { return new LayersConfig(); } final Properties properties = PatchUtils.loadProperties(layersList); ...
java
public static LayersConfig getLayersConfig(final File repoRoot) throws IOException { final File layersList = new File(repoRoot, LAYERS_CONF); if (!layersList.exists()) { return new LayersConfig(); } final Properties properties = PatchUtils.loadProperties(layersList); ...
[ "public", "static", "LayersConfig", "getLayersConfig", "(", "final", "File", "repoRoot", ")", "throws", "IOException", "{", "final", "File", "layersList", "=", "new", "File", "(", "repoRoot", ",", "LAYERS_CONF", ")", ";", "if", "(", "!", "layersList", ".", "...
Process the layers.conf file. @param repoRoot the root @return the layers conf @throws java.io.IOException
[ "Process", "the", "layers", ".", "conf", "file", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/installation/LayersConfig.java#L86-L93
158,922
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/parsing/HostXml_Legacy.java
HostXml_Legacy.parseRemoteDomainControllerAttributes_1_5
private boolean parseRemoteDomainControllerAttributes_1_5(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list, boolean allowDiscoveryOptions) throws XMLStreamException { final ModelNode update = new ModelNode();...
java
private boolean parseRemoteDomainControllerAttributes_1_5(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list, boolean allowDiscoveryOptions) throws XMLStreamException { final ModelNode update = new ModelNode();...
[ "private", "boolean", "parseRemoteDomainControllerAttributes_1_5", "(", "final", "XMLExtendedStreamReader", "reader", ",", "final", "ModelNode", "address", ",", "final", "List", "<", "ModelNode", ">", "list", ",", "boolean", "allowDiscoveryOptions", ")", "throws", "XMLS...
The only difference between version 1.5 and 1.6 of the schema were to make is possible to define discovery options, this resulted in the host and port attributes becoming optional -this method also indicates if discovery options are required where the host and port were not supplied. @param allowDiscoveryOptions i.e. ...
[ "The", "only", "difference", "between", "version", "1", ".", "5", "and", "1", ".", "6", "of", "the", "schema", "were", "to", "make", "is", "possible", "to", "define", "discovery", "options", "this", "resulted", "in", "the", "host", "and", "port", "attrib...
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/parsing/HostXml_Legacy.java#L1359-L1424
158,923
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/remote/RemoteProxyController.java
RemoteProxyController.create
public static RemoteProxyController create(final TransactionalProtocolClient client, final PathAddress pathAddress, final ProxyOperationAddressTranslator addressTranslator, final ModelVersion targetKernelVersion) { ret...
java
public static RemoteProxyController create(final TransactionalProtocolClient client, final PathAddress pathAddress, final ProxyOperationAddressTranslator addressTranslator, final ModelVersion targetKernelVersion) { ret...
[ "public", "static", "RemoteProxyController", "create", "(", "final", "TransactionalProtocolClient", "client", ",", "final", "PathAddress", "pathAddress", ",", "final", "ProxyOperationAddressTranslator", "addressTranslator", ",", "final", "ModelVersion", "targetKernelVersion", ...
Create a new remote proxy controller. @param client the transactional protocol client @param pathAddress the path address @param addressTranslator the address translator @param targetKernelVersion the {@link ModelVersion} of the kernel management API exposed by the proxied process @return the proxy controller
[ "Create", "a", "new", "remote", "proxy", "controller", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/remote/RemoteProxyController.java#L82-L86
158,924
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/remote/RemoteProxyController.java
RemoteProxyController.create
@Deprecated public static RemoteProxyController create(final ManagementChannelHandler channelAssociation, final PathAddress pathAddress, final ProxyOperationAddressTranslator addressTranslator) { final TransactionalProtocolClient client = TransactionalProtocolHandlers.createClient(channelAssociation); ...
java
@Deprecated public static RemoteProxyController create(final ManagementChannelHandler channelAssociation, final PathAddress pathAddress, final ProxyOperationAddressTranslator addressTranslator) { final TransactionalProtocolClient client = TransactionalProtocolHandlers.createClient(channelAssociation); ...
[ "@", "Deprecated", "public", "static", "RemoteProxyController", "create", "(", "final", "ManagementChannelHandler", "channelAssociation", ",", "final", "PathAddress", "pathAddress", ",", "final", "ProxyOperationAddressTranslator", "addressTranslator", ")", "{", "final", "Tr...
Creates a new remote proxy controller using an existing channel. @param channelAssociation the channel association @param pathAddress the address within the model of the created proxy controller @param addressTranslator the translator to use translating the address for the remote proxy @return the proxy controller @d...
[ "Creates", "a", "new", "remote", "proxy", "controller", "using", "an", "existing", "channel", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/remote/RemoteProxyController.java#L98-L103
158,925
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/remote/RemoteProxyController.java
RemoteProxyController.translateOperationForProxy
public ModelNode translateOperationForProxy(final ModelNode op) { return translateOperationForProxy(op, PathAddress.pathAddress(op.get(OP_ADDR))); }
java
public ModelNode translateOperationForProxy(final ModelNode op) { return translateOperationForProxy(op, PathAddress.pathAddress(op.get(OP_ADDR))); }
[ "public", "ModelNode", "translateOperationForProxy", "(", "final", "ModelNode", "op", ")", "{", "return", "translateOperationForProxy", "(", "op", ",", "PathAddress", ".", "pathAddress", "(", "op", ".", "get", "(", "OP_ADDR", ")", ")", ")", ";", "}" ]
Translate the operation address. @param op the operation @return the new operation
[ "Translate", "the", "operation", "address", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/remote/RemoteProxyController.java#L251-L253
158,926
wildfly/wildfly-core
process-controller/src/main/java/org/jboss/as/process/stdin/BaseNCodecOutputStream.java
BaseNCodecOutputStream.flush
private void flush(final boolean propagate) throws IOException { final int avail = baseNCodec.available(context); if (avail > 0) { final byte[] buf = new byte[avail]; final int c = baseNCodec.readResults(buf, 0, avail, context); if (c > 0) { out.write(...
java
private void flush(final boolean propagate) throws IOException { final int avail = baseNCodec.available(context); if (avail > 0) { final byte[] buf = new byte[avail]; final int c = baseNCodec.readResults(buf, 0, avail, context); if (c > 0) { out.write(...
[ "private", "void", "flush", "(", "final", "boolean", "propagate", ")", "throws", "IOException", "{", "final", "int", "avail", "=", "baseNCodec", ".", "available", "(", "context", ")", ";", "if", "(", "avail", ">", "0", ")", "{", "final", "byte", "[", "...
Flushes this output stream and forces any buffered output bytes to be written out to the stream. If propagate is true, the wrapped stream will also be flushed. @param propagate boolean flag to indicate whether the wrapped OutputStream should also be flushed. @throws IOException if an I/O error occurs.
[ "Flushes", "this", "output", "stream", "and", "forces", "any", "buffered", "output", "bytes", "to", "be", "written", "out", "to", "the", "stream", ".", "If", "propagate", "is", "true", "the", "wrapped", "stream", "will", "also", "be", "flushed", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/process-controller/src/main/java/org/jboss/as/process/stdin/BaseNCodecOutputStream.java#L115-L127
158,927
wildfly/wildfly-core
process-controller/src/main/java/org/jboss/as/process/stdin/BaseNCodecOutputStream.java
BaseNCodecOutputStream.close
@Override public void close() throws IOException { // Notify encoder of EOF (-1). if (doEncode) { baseNCodec.encode(singleByte, 0, EOF, context); } else { baseNCodec.decode(singleByte, 0, EOF, context); } flush(); out.close(); }
java
@Override public void close() throws IOException { // Notify encoder of EOF (-1). if (doEncode) { baseNCodec.encode(singleByte, 0, EOF, context); } else { baseNCodec.decode(singleByte, 0, EOF, context); } flush(); out.close(); }
[ "@", "Override", "public", "void", "close", "(", ")", "throws", "IOException", "{", "// Notify encoder of EOF (-1).", "if", "(", "doEncode", ")", "{", "baseNCodec", ".", "encode", "(", "singleByte", ",", "0", ",", "EOF", ",", "context", ")", ";", "}", "els...
Closes this output stream and releases any system resources associated with the stream. @throws IOException if an I/O error occurs.
[ "Closes", "this", "output", "stream", "and", "releases", "any", "system", "resources", "associated", "with", "the", "stream", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/process-controller/src/main/java/org/jboss/as/process/stdin/BaseNCodecOutputStream.java#L146-L156
158,928
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/ExpressionResolverImpl.java
ExpressionResolverImpl.resolveExpressionsRecursively
private ModelNode resolveExpressionsRecursively(final ModelNode node) throws OperationFailedException { if (!node.isDefined()) { return node; } ModelType type = node.getType(); ModelNode resolved; if (type == ModelType.EXPRESSION) { resolved = resolveExpr...
java
private ModelNode resolveExpressionsRecursively(final ModelNode node) throws OperationFailedException { if (!node.isDefined()) { return node; } ModelType type = node.getType(); ModelNode resolved; if (type == ModelType.EXPRESSION) { resolved = resolveExpr...
[ "private", "ModelNode", "resolveExpressionsRecursively", "(", "final", "ModelNode", "node", ")", "throws", "OperationFailedException", "{", "if", "(", "!", "node", ".", "isDefined", "(", ")", ")", "{", "return", "node", ";", "}", "ModelType", "type", "=", "nod...
Examine the given model node, resolving any expressions found within, including within child nodes. @param node the node @return a node with all expressions resolved @throws OperationFailedException if an expression cannot be resolved
[ "Examine", "the", "given", "model", "node", "resolving", "any", "expressions", "found", "within", "including", "within", "child", "nodes", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/ExpressionResolverImpl.java#L76-L106
158,929
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/ExpressionResolverImpl.java
ExpressionResolverImpl.resolveExpressionStringRecursively
private ModelNode resolveExpressionStringRecursively(final String expressionString, final boolean ignoreDMRResolutionFailure, final boolean initial) throws OperationFailedException { ParseAndResolveResult resolved = parseAndResolve(expressionString, ignor...
java
private ModelNode resolveExpressionStringRecursively(final String expressionString, final boolean ignoreDMRResolutionFailure, final boolean initial) throws OperationFailedException { ParseAndResolveResult resolved = parseAndResolve(expressionString, ignor...
[ "private", "ModelNode", "resolveExpressionStringRecursively", "(", "final", "String", "expressionString", ",", "final", "boolean", "ignoreDMRResolutionFailure", ",", "final", "boolean", "initial", ")", "throws", "OperationFailedException", "{", "ParseAndResolveResult", "resol...
Attempt to resolve the given expression string, recursing if resolution of one string produces another expression. @param expressionString the expression string from a node of {@link ModelType#EXPRESSION} @param ignoreDMRResolutionFailure {@code false} if {@link org.jboss.dmr.ModelNode#resolve() basic DMR resolution} ...
[ "Attempt", "to", "resolve", "the", "given", "expression", "string", "recursing", "if", "resolution", "of", "one", "string", "produces", "another", "expression", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/ExpressionResolverImpl.java#L141-L166
158,930
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/ExpressionResolverImpl.java
ExpressionResolverImpl.resolveExpressionString
private String resolveExpressionString(final String unresolvedString) throws OperationFailedException { // parseAndResolve should only be providing expressions with no leading or trailing chars assert unresolvedString.startsWith("${") && unresolvedString.endsWith("}"); // Default result is no ...
java
private String resolveExpressionString(final String unresolvedString) throws OperationFailedException { // parseAndResolve should only be providing expressions with no leading or trailing chars assert unresolvedString.startsWith("${") && unresolvedString.endsWith("}"); // Default result is no ...
[ "private", "String", "resolveExpressionString", "(", "final", "String", "unresolvedString", ")", "throws", "OperationFailedException", "{", "// parseAndResolve should only be providing expressions with no leading or trailing chars", "assert", "unresolvedString", ".", "startsWith", "(...
Resolve the given string using any plugin and the DMR resolve method
[ "Resolve", "the", "given", "string", "using", "any", "plugin", "and", "the", "DMR", "resolve", "method" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/ExpressionResolverImpl.java#L330-L356
158,931
wildfly/wildfly-core
security-manager/src/main/java/org/wildfly/extension/security/manager/deployment/PermissionsParser.java
PermissionsParser.unexpectedElement
private static XMLStreamException unexpectedElement(final XMLStreamReader reader) { return SecurityManagerLogger.ROOT_LOGGER.unexpectedElement(reader.getName(), reader.getLocation()); }
java
private static XMLStreamException unexpectedElement(final XMLStreamReader reader) { return SecurityManagerLogger.ROOT_LOGGER.unexpectedElement(reader.getName(), reader.getLocation()); }
[ "private", "static", "XMLStreamException", "unexpectedElement", "(", "final", "XMLStreamReader", "reader", ")", "{", "return", "SecurityManagerLogger", ".", "ROOT_LOGGER", ".", "unexpectedElement", "(", "reader", ".", "getName", "(", ")", ",", "reader", ".", "getLoc...
Gets an exception reporting an unexpected XML element. @param reader a reference to the stream reader. @return the constructed {@link javax.xml.stream.XMLStreamException}.
[ "Gets", "an", "exception", "reporting", "an", "unexpected", "XML", "element", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/security-manager/src/main/java/org/wildfly/extension/security/manager/deployment/PermissionsParser.java#L263-L265
158,932
wildfly/wildfly-core
security-manager/src/main/java/org/wildfly/extension/security/manager/deployment/PermissionsParser.java
PermissionsParser.unexpectedAttribute
private static XMLStreamException unexpectedAttribute(final XMLStreamReader reader, final int index) { return SecurityManagerLogger.ROOT_LOGGER.unexpectedAttribute(reader.getAttributeName(index), reader.getLocation()); }
java
private static XMLStreamException unexpectedAttribute(final XMLStreamReader reader, final int index) { return SecurityManagerLogger.ROOT_LOGGER.unexpectedAttribute(reader.getAttributeName(index), reader.getLocation()); }
[ "private", "static", "XMLStreamException", "unexpectedAttribute", "(", "final", "XMLStreamReader", "reader", ",", "final", "int", "index", ")", "{", "return", "SecurityManagerLogger", ".", "ROOT_LOGGER", ".", "unexpectedAttribute", "(", "reader", ".", "getAttributeName"...
Gets an exception reporting an unexpected XML attribute. @param reader a reference to the stream reader. @param index the attribute index. @return the constructed {@link javax.xml.stream.XMLStreamException}.
[ "Gets", "an", "exception", "reporting", "an", "unexpected", "XML", "attribute", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/security-manager/src/main/java/org/wildfly/extension/security/manager/deployment/PermissionsParser.java#L274-L276
158,933
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/domain/controller/operations/deployment/DeploymentUploadUtil.java
DeploymentUploadUtil.storeContentAndTransformOperation
public static byte[] storeContentAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws IOException, OperationFailedException { if (!operation.hasDefined(CONTENT)) { throw createFailureException(DomainControllerLogger.ROOT_LOGGER.invalidConte...
java
public static byte[] storeContentAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws IOException, OperationFailedException { if (!operation.hasDefined(CONTENT)) { throw createFailureException(DomainControllerLogger.ROOT_LOGGER.invalidConte...
[ "public", "static", "byte", "[", "]", "storeContentAndTransformOperation", "(", "OperationContext", "context", ",", "ModelNode", "operation", ",", "ContentRepository", "contentRepository", ")", "throws", "IOException", ",", "OperationFailedException", "{", "if", "(", "!...
Store the deployment contents and attach a "transformed" slave operation to the operation context. @param context the operation context @param operation the original operation @param contentRepository the content repository @return the hash of the uploaded deployment content @throws IOException @throws OperationFailed...
[ "Store", "the", "deployment", "contents", "and", "attach", "a", "transformed", "slave", "operation", "to", "the", "operation", "context", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/domain/controller/operations/deployment/DeploymentUploadUtil.java#L91-L112
158,934
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/domain/controller/operations/deployment/DeploymentUploadUtil.java
DeploymentUploadUtil.explodeContentAndTransformOperation
public static byte[] explodeContentAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws OperationFailedException, ExplodedContentException { final Resource deploymentResource = context.readResource(PathAddress.EMPTY_ADDRESS); ModelNode contentI...
java
public static byte[] explodeContentAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws OperationFailedException, ExplodedContentException { final Resource deploymentResource = context.readResource(PathAddress.EMPTY_ADDRESS); ModelNode contentI...
[ "public", "static", "byte", "[", "]", "explodeContentAndTransformOperation", "(", "OperationContext", "context", ",", "ModelNode", "operation", ",", "ContentRepository", "contentRepository", ")", "throws", "OperationFailedException", ",", "ExplodedContentException", "{", "f...
Explode the deployment contents and attach a "transformed" slave operation to the operation context. @param context the operation context @param operation the original operation @param contentRepository the content repository @return the hash of the uploaded deployment content @throws IOException @throws OperationFail...
[ "Explode", "the", "deployment", "contents", "and", "attach", "a", "transformed", "slave", "operation", "to", "the", "operation", "context", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/domain/controller/operations/deployment/DeploymentUploadUtil.java#L143-L168
158,935
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/domain/controller/operations/deployment/DeploymentUploadUtil.java
DeploymentUploadUtil.addContentToExplodedAndTransformOperation
public static byte[] addContentToExplodedAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws OperationFailedException, ExplodedContentException { final Resource deploymentResource = context.readResource(PathAddress.EMPTY_ADDRESS); ModelNode co...
java
public static byte[] addContentToExplodedAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws OperationFailedException, ExplodedContentException { final Resource deploymentResource = context.readResource(PathAddress.EMPTY_ADDRESS); ModelNode co...
[ "public", "static", "byte", "[", "]", "addContentToExplodedAndTransformOperation", "(", "OperationContext", "context", ",", "ModelNode", "operation", ",", "ContentRepository", "contentRepository", ")", "throws", "OperationFailedException", ",", "ExplodedContentException", "{"...
Add contents to the deployment and attach a "transformed" slave operation to the operation context. @param context the operation context @param operation the original operation @param contentRepository the content repository @return the hash of the uploaded deployment content @throws IOException @throws OperationFaile...
[ "Add", "contents", "to", "the", "deployment", "and", "attach", "a", "transformed", "slave", "operation", "to", "the", "operation", "context", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/domain/controller/operations/deployment/DeploymentUploadUtil.java#L180-L215
158,936
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/domain/controller/operations/deployment/DeploymentUploadUtil.java
DeploymentUploadUtil.removeContentFromExplodedAndTransformOperation
public static byte[] removeContentFromExplodedAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws OperationFailedException, ExplodedContentException { final Resource deploymentResource = context.readResource(PathAddress.EMPTY_ADDRESS); ModelNo...
java
public static byte[] removeContentFromExplodedAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws OperationFailedException, ExplodedContentException { final Resource deploymentResource = context.readResource(PathAddress.EMPTY_ADDRESS); ModelNo...
[ "public", "static", "byte", "[", "]", "removeContentFromExplodedAndTransformOperation", "(", "OperationContext", "context", ",", "ModelNode", "operation", ",", "ContentRepository", "contentRepository", ")", "throws", "OperationFailedException", ",", "ExplodedContentException", ...
Remove contents from the deployment and attach a "transformed" slave operation to the operation context. @param context the operation context @param operation the original operation @param contentRepository the content repository @return the hash of the uploaded deployment content @throws IOException @throws Operation...
[ "Remove", "contents", "from", "the", "deployment", "and", "attach", "a", "transformed", "slave", "operation", "to", "the", "operation", "context", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/domain/controller/operations/deployment/DeploymentUploadUtil.java#L227-L245
158,937
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/domain/controller/operations/deployment/DeploymentUploadUtil.java
DeploymentUploadUtil.synchronizeSlaveHostController
public static byte[] synchronizeSlaveHostController(ModelNode operation, final PathAddress address, HostFileRepository fileRepository, ContentRepository contentRepository, boolean backup, byte[] oldHash) { ModelNode operationContentItem = operation.get(DeploymentAttributes.CONTENT_RESOURCE_ALL.getName()).get(0)...
java
public static byte[] synchronizeSlaveHostController(ModelNode operation, final PathAddress address, HostFileRepository fileRepository, ContentRepository contentRepository, boolean backup, byte[] oldHash) { ModelNode operationContentItem = operation.get(DeploymentAttributes.CONTENT_RESOURCE_ALL.getName()).get(0)...
[ "public", "static", "byte", "[", "]", "synchronizeSlaveHostController", "(", "ModelNode", "operation", ",", "final", "PathAddress", "address", ",", "HostFileRepository", "fileRepository", ",", "ContentRepository", "contentRepository", ",", "boolean", "backup", ",", "byt...
Synchronize the required files to a slave HC from the master DC if this is required. @param fileRepository the HostFileRepository of the HC. @param contentRepository the ContentRepository of the HC. @param backup inidcates if this is a DC backup HC. @param oldHash the hash of the deployment to be replaced. @return true...
[ "Synchronize", "the", "required", "files", "to", "a", "slave", "HC", "from", "the", "master", "DC", "if", "this", "is", "required", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/domain/controller/operations/deployment/DeploymentUploadUtil.java#L255-L262
158,938
wildfly/wildfly-core
server/src/main/java/org/jboss/as/server/deployment/annotation/AnnotationIndexProcessor.java
AnnotationIndexProcessor.deploy
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); for (ResourceRoot resourceRoot : DeploymentUtils.allResourceRoots(deploymentUnit)) { ResourceRootIndexer.indexResourceRoo...
java
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); for (ResourceRoot resourceRoot : DeploymentUtils.allResourceRoots(deploymentUnit)) { ResourceRootIndexer.indexResourceRoo...
[ "public", "void", "deploy", "(", "DeploymentPhaseContext", "phaseContext", ")", "throws", "DeploymentUnitProcessingException", "{", "final", "DeploymentUnit", "deploymentUnit", "=", "phaseContext", ".", "getDeploymentUnit", "(", ")", ";", "for", "(", "ResourceRoot", "re...
Process this deployment for annotations. This will use an annotation indexer to create an index of all annotations found in this deployment and attach it to the deployment unit context. @param phaseContext the deployment unit context @throws DeploymentUnitProcessingException
[ "Process", "this", "deployment", "for", "annotations", ".", "This", "will", "use", "an", "annotation", "indexer", "to", "create", "an", "index", "of", "all", "annotations", "found", "in", "this", "deployment", "and", "attach", "it", "to", "the", "deployment", ...
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deployment/annotation/AnnotationIndexProcessor.java#L48-L53
158,939
wildfly/wildfly-core
patching/src/main/java/org/jboss/as/patching/IoUtils.java
IoUtils.newFile
public static File newFile(File baseDir, String... segments) { File f = baseDir; for (String segment : segments) { f = new File(f, segment); } return f; }
java
public static File newFile(File baseDir, String... segments) { File f = baseDir; for (String segment : segments) { f = new File(f, segment); } return f; }
[ "public", "static", "File", "newFile", "(", "File", "baseDir", ",", "String", "...", "segments", ")", "{", "File", "f", "=", "baseDir", ";", "for", "(", "String", "segment", ":", "segments", ")", "{", "f", "=", "new", "File", "(", "f", ",", "segment"...
Return a new File object based on the baseDir and the segments. This method does not perform any operation on the file system.
[ "Return", "a", "new", "File", "object", "based", "on", "the", "baseDir", "and", "the", "segments", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/IoUtils.java#L208-L214
158,940
wildfly/wildfly-core
domain-management/src/main/java/org/jboss/as/domain/management/security/password/PasswordCheckUtil.java
PasswordCheckUtil.check
public PasswordCheckResult check(boolean isAdminitrative, String userName, String password) { // TODO: allow custom restrictions? List<PasswordRestriction> passwordValuesRestrictions = getPasswordRestrictions(); final PasswordStrengthCheckResult strengthResult = this.passwordStrengthChecker.chec...
java
public PasswordCheckResult check(boolean isAdminitrative, String userName, String password) { // TODO: allow custom restrictions? List<PasswordRestriction> passwordValuesRestrictions = getPasswordRestrictions(); final PasswordStrengthCheckResult strengthResult = this.passwordStrengthChecker.chec...
[ "public", "PasswordCheckResult", "check", "(", "boolean", "isAdminitrative", ",", "String", "userName", ",", "String", "password", ")", "{", "// TODO: allow custom restrictions?", "List", "<", "PasswordRestriction", ">", "passwordValuesRestrictions", "=", "getPasswordRestri...
Method which performs strength checks on password. It returns outcome which can be used by CLI. @param isAdminitrative - administrative checks are less restrictive. This means that weak password or one which violates restrictions is not indicated as failure. Administrative checks are usually performed by admin changin...
[ "Method", "which", "performs", "strength", "checks", "on", "password", ".", "It", "returns", "outcome", "which", "can", "be", "used", "by", "CLI", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/domain-management/src/main/java/org/jboss/as/domain/management/security/password/PasswordCheckUtil.java#L246-L290
158,941
wildfly/wildfly-core
cli/src/main/java/org/jboss/as/cli/gui/component/ServerGroupChooser.java
ServerGroupChooser.getCmdLineArg
public String getCmdLineArg() { StringBuilder builder = new StringBuilder(" --server-groups="); boolean foundSelected = false; for (JCheckBox serverGroup : serverGroups) { if (serverGroup.isSelected()) { foundSelected = true; builder.append(serverGrou...
java
public String getCmdLineArg() { StringBuilder builder = new StringBuilder(" --server-groups="); boolean foundSelected = false; for (JCheckBox serverGroup : serverGroups) { if (serverGroup.isSelected()) { foundSelected = true; builder.append(serverGrou...
[ "public", "String", "getCmdLineArg", "(", ")", "{", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", "\" --server-groups=\"", ")", ";", "boolean", "foundSelected", "=", "false", ";", "for", "(", "JCheckBox", "serverGroup", ":", "serverGroups", ")", ...
Return the command line argument @return " --server-groups=" plus a comma-separated list of selected server groups. Return empty String if none selected.
[ "Return", "the", "command", "line", "argument" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/gui/component/ServerGroupChooser.java#L79-L93
158,942
wildfly/wildfly-core
deployment-scanner/src/main/java/org/jboss/as/server/deployment/scanner/ZipCompletionScanner.java
ZipCompletionScanner.isCompleteZip
public static boolean isCompleteZip(File file) throws IOException, NonScannableZipException { FileChannel channel = null; try { channel = new FileInputStream(file).getChannel(); long size = channel.size(); if (size < ENDLEN) { // Obvious case return ...
java
public static boolean isCompleteZip(File file) throws IOException, NonScannableZipException { FileChannel channel = null; try { channel = new FileInputStream(file).getChannel(); long size = channel.size(); if (size < ENDLEN) { // Obvious case return ...
[ "public", "static", "boolean", "isCompleteZip", "(", "File", "file", ")", "throws", "IOException", ",", "NonScannableZipException", "{", "FileChannel", "channel", "=", "null", ";", "try", "{", "channel", "=", "new", "FileInputStream", "(", "file", ")", ".", "g...
Scans the given file looking for a complete zip file format end of central directory record. @param file the file @return true if a complete end of central directory record could be found @throws IOException
[ "Scans", "the", "given", "file", "looking", "for", "a", "complete", "zip", "file", "format", "end", "of", "central", "directory", "record", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/deployment-scanner/src/main/java/org/jboss/as/server/deployment/scanner/ZipCompletionScanner.java#L107-L128
158,943
wildfly/wildfly-core
deployment-scanner/src/main/java/org/jboss/as/server/deployment/scanner/ZipCompletionScanner.java
ZipCompletionScanner.scanForEndSig
private static boolean scanForEndSig(File file, FileChannel channel) throws IOException, NonScannableZipException { // TODO Consider just reading in MAX_REVERSE_SCAN bytes -- increased peak memory cost but less complex ByteBuffer bb = getByteBuffer(CHUNK_SIZE); long start = channel.size(); ...
java
private static boolean scanForEndSig(File file, FileChannel channel) throws IOException, NonScannableZipException { // TODO Consider just reading in MAX_REVERSE_SCAN bytes -- increased peak memory cost but less complex ByteBuffer bb = getByteBuffer(CHUNK_SIZE); long start = channel.size(); ...
[ "private", "static", "boolean", "scanForEndSig", "(", "File", "file", ",", "FileChannel", "channel", ")", "throws", "IOException", ",", "NonScannableZipException", "{", "// TODO Consider just reading in MAX_REVERSE_SCAN bytes -- increased peak memory cost but less complex", "ByteBu...
Boyer Moore scan that proceeds backwards from the end of the file looking for ENDSIG @throws NonScannableZipException
[ "Boyer", "Moore", "scan", "that", "proceeds", "backwards", "from", "the", "end", "of", "the", "file", "looking", "for", "ENDSIG" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/deployment-scanner/src/main/java/org/jboss/as/server/deployment/scanner/ZipCompletionScanner.java#L216-L290
158,944
wildfly/wildfly-core
host-controller/src/main/java/org/jboss/as/host/controller/mgmt/HostControllerRegistrationHandler.java
HostControllerRegistrationHandler.sendFailedResponse
static void sendFailedResponse(final ManagementRequestContext<RegistrationContext> context, final byte errorCode, final String message) throws IOException { final ManagementResponseHeader header = ManagementResponseHeader.create(context.getRequestHeader()); final FlushableDataOutput output = context.wri...
java
static void sendFailedResponse(final ManagementRequestContext<RegistrationContext> context, final byte errorCode, final String message) throws IOException { final ManagementResponseHeader header = ManagementResponseHeader.create(context.getRequestHeader()); final FlushableDataOutput output = context.wri...
[ "static", "void", "sendFailedResponse", "(", "final", "ManagementRequestContext", "<", "RegistrationContext", ">", "context", ",", "final", "byte", "errorCode", ",", "final", "String", "message", ")", "throws", "IOException", "{", "final", "ManagementResponseHeader", ...
Send a failed operation response. @param context the request context @param errorCode the error code @param message the operation message @throws IOException for any error
[ "Send", "a", "failed", "operation", "response", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/mgmt/HostControllerRegistrationHandler.java#L745-L765
158,945
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/resource/InterfaceDefinition.java
InterfaceDefinition.isOperationDefined
public static boolean isOperationDefined(final ModelNode operation) { for (final AttributeDefinition def : ROOT_ATTRIBUTES) { if (operation.hasDefined(def.getName())) { return true; } } return false; }
java
public static boolean isOperationDefined(final ModelNode operation) { for (final AttributeDefinition def : ROOT_ATTRIBUTES) { if (operation.hasDefined(def.getName())) { return true; } } return false; }
[ "public", "static", "boolean", "isOperationDefined", "(", "final", "ModelNode", "operation", ")", "{", "for", "(", "final", "AttributeDefinition", "def", ":", "ROOT_ATTRIBUTES", ")", "{", "if", "(", "operation", ".", "hasDefined", "(", "def", ".", "getName", "...
Test whether the operation has a defined criteria attribute. @param operation the operation @return
[ "Test", "whether", "the", "operation", "has", "a", "defined", "criteria", "attribute", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/resource/InterfaceDefinition.java#L200-L207
158,946
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/resource/InterfaceDefinition.java
InterfaceDefinition.wrapAsList
@Deprecated private static ListAttributeDefinition wrapAsList(final AttributeDefinition def) { final ListAttributeDefinition list = new ListAttributeDefinition(new SimpleListAttributeDefinition.Builder(def.getName(), def) .setElementValidator(def.getValidator())) { @Override ...
java
@Deprecated private static ListAttributeDefinition wrapAsList(final AttributeDefinition def) { final ListAttributeDefinition list = new ListAttributeDefinition(new SimpleListAttributeDefinition.Builder(def.getName(), def) .setElementValidator(def.getValidator())) { @Override ...
[ "@", "Deprecated", "private", "static", "ListAttributeDefinition", "wrapAsList", "(", "final", "AttributeDefinition", "def", ")", "{", "final", "ListAttributeDefinition", "list", "=", "new", "ListAttributeDefinition", "(", "new", "SimpleListAttributeDefinition", ".", "Bui...
Wrap a simple attribute def as list. @param def the attribute definition @return the list attribute def
[ "Wrap", "a", "simple", "attribute", "def", "as", "list", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/resource/InterfaceDefinition.java#L309-L347
158,947
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/BlockingTimeoutImpl.java
BlockingTimeoutImpl.resolveDomainTimeoutAdder
private static int resolveDomainTimeoutAdder() { String propValue = WildFlySecurityManager.getPropertyPrivileged(DOMAIN_TEST_SYSTEM_PROPERTY, DEFAULT_DOMAIN_TIMEOUT_STRING); if (sysPropDomainValue == null || !sysPropDomainValue.equals(propValue)) { // First call or the system property change...
java
private static int resolveDomainTimeoutAdder() { String propValue = WildFlySecurityManager.getPropertyPrivileged(DOMAIN_TEST_SYSTEM_PROPERTY, DEFAULT_DOMAIN_TIMEOUT_STRING); if (sysPropDomainValue == null || !sysPropDomainValue.equals(propValue)) { // First call or the system property change...
[ "private", "static", "int", "resolveDomainTimeoutAdder", "(", ")", "{", "String", "propValue", "=", "WildFlySecurityManager", ".", "getPropertyPrivileged", "(", "DOMAIN_TEST_SYSTEM_PROPERTY", ",", "DEFAULT_DOMAIN_TIMEOUT_STRING", ")", ";", "if", "(", "sysPropDomainValue", ...
Allows testsuites to shorten the domain timeout adder
[ "Allows", "testsuites", "to", "shorten", "the", "domain", "timeout", "adder" ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/BlockingTimeoutImpl.java#L93-L113
158,948
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/transform/TransformerRegistry.java
TransformerRegistry.getDomainRegistration
public TransformersSubRegistration getDomainRegistration(final ModelVersionRange range) { final PathAddress address = PathAddress.EMPTY_ADDRESS; return new TransformersSubRegistrationImpl(range, domain, address); }
java
public TransformersSubRegistration getDomainRegistration(final ModelVersionRange range) { final PathAddress address = PathAddress.EMPTY_ADDRESS; return new TransformersSubRegistrationImpl(range, domain, address); }
[ "public", "TransformersSubRegistration", "getDomainRegistration", "(", "final", "ModelVersionRange", "range", ")", "{", "final", "PathAddress", "address", "=", "PathAddress", ".", "EMPTY_ADDRESS", ";", "return", "new", "TransformersSubRegistrationImpl", "(", "range", ",",...
Get the sub registry for the domain. @param range the version range @return the sub registry
[ "Get", "the", "sub", "registry", "for", "the", "domain", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/transform/TransformerRegistry.java#L163-L166
158,949
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/transform/TransformerRegistry.java
TransformerRegistry.getHostRegistration
public TransformersSubRegistration getHostRegistration(final ModelVersionRange range) { final PathAddress address = PathAddress.EMPTY_ADDRESS.append(HOST); return new TransformersSubRegistrationImpl(range, domain, address); }
java
public TransformersSubRegistration getHostRegistration(final ModelVersionRange range) { final PathAddress address = PathAddress.EMPTY_ADDRESS.append(HOST); return new TransformersSubRegistrationImpl(range, domain, address); }
[ "public", "TransformersSubRegistration", "getHostRegistration", "(", "final", "ModelVersionRange", "range", ")", "{", "final", "PathAddress", "address", "=", "PathAddress", ".", "EMPTY_ADDRESS", ".", "append", "(", "HOST", ")", ";", "return", "new", "TransformersSubRe...
Get the sub registry for the hosts. @param range the version range @return the sub registry
[ "Get", "the", "sub", "registry", "for", "the", "hosts", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/transform/TransformerRegistry.java#L174-L177
158,950
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/transform/TransformerRegistry.java
TransformerRegistry.getServerRegistration
public TransformersSubRegistration getServerRegistration(final ModelVersionRange range) { final PathAddress address = PathAddress.EMPTY_ADDRESS.append(HOST, SERVER); return new TransformersSubRegistrationImpl(range, domain, address); }
java
public TransformersSubRegistration getServerRegistration(final ModelVersionRange range) { final PathAddress address = PathAddress.EMPTY_ADDRESS.append(HOST, SERVER); return new TransformersSubRegistrationImpl(range, domain, address); }
[ "public", "TransformersSubRegistration", "getServerRegistration", "(", "final", "ModelVersionRange", "range", ")", "{", "final", "PathAddress", "address", "=", "PathAddress", ".", "EMPTY_ADDRESS", ".", "append", "(", "HOST", ",", "SERVER", ")", ";", "return", "new",...
Get the sub registry for the servers. @param range the version range @return the sub registry
[ "Get", "the", "sub", "registry", "for", "the", "servers", "." ]
cfaf0479dcbb2d320a44c5374b93b944ec39fade
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/transform/TransformerRegistry.java#L185-L188
158,951
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
158,952
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
158,953
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
158,954
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
158,955
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
158,956
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
158,957
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
158,958
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
158,959
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
158,960
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
158,961
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
158,962
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
158,963
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
158,964
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
158,965
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
158,966
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
158,967
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
158,968
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
158,969
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
158,970
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
158,971
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
158,972
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
158,973
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
158,974
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
158,975
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
158,976
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
158,977
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
158,978
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
158,979
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
158,980
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
158,981
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
158,982
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
158,983
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
158,984
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
158,985
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
158,986
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
158,987
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
158,988
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
158,989
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
158,990
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
158,991
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
158,992
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
158,993
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
158,994
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
158,995
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
158,996
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
158,997
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
158,998
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
158,999
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