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,800 | wildfly/wildfly-core | patching/src/main/java/org/jboss/as/patching/runner/IdentityPatchContext.java | IdentityPatchContext.writePatch | static void writePatch(final Patch rollbackPatch, final File file) throws IOException {
final File parent = file.getParentFile();
if (!parent.isDirectory()) {
if (!parent.mkdirs() && !parent.exists()) {
throw PatchLogger.ROOT_LOGGER.cannotCreateDirectory(file.getAbsolutePath(... | java | static void writePatch(final Patch rollbackPatch, final File file) throws IOException {
final File parent = file.getParentFile();
if (!parent.isDirectory()) {
if (!parent.mkdirs() && !parent.exists()) {
throw PatchLogger.ROOT_LOGGER.cannotCreateDirectory(file.getAbsolutePath(... | [
"static",
"void",
"writePatch",
"(",
"final",
"Patch",
"rollbackPatch",
",",
"final",
"File",
"file",
")",
"throws",
"IOException",
"{",
"final",
"File",
"parent",
"=",
"file",
".",
"getParentFile",
"(",
")",
";",
"if",
"(",
"!",
"parent",
".",
"isDirector... | Write the patch.xml
@param rollbackPatch the patch
@param file the target file
@throws IOException | [
"Write",
"the",
"patch",
".",
"xml"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/runner/IdentityPatchContext.java#L1073-L1087 |
158,801 | wildfly/wildfly-core | launcher/src/main/java/org/wildfly/core/launcher/CliCommandBuilder.java | CliCommandBuilder.setController | public CliCommandBuilder setController(final String hostname, final int port) {
setController(formatAddress(null, hostname, port));
return this;
} | java | public CliCommandBuilder setController(final String hostname, final int port) {
setController(formatAddress(null, hostname, port));
return this;
} | [
"public",
"CliCommandBuilder",
"setController",
"(",
"final",
"String",
"hostname",
",",
"final",
"int",
"port",
")",
"{",
"setController",
"(",
"formatAddress",
"(",
"null",
",",
"hostname",
",",
"port",
")",
")",
";",
"return",
"this",
";",
"}"
] | Sets the hostname and port to connect to.
@param hostname the host name
@param port the port
@return the builder | [
"Sets",
"the",
"hostname",
"and",
"port",
"to",
"connect",
"to",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/launcher/src/main/java/org/wildfly/core/launcher/CliCommandBuilder.java#L199-L202 |
158,802 | wildfly/wildfly-core | launcher/src/main/java/org/wildfly/core/launcher/CliCommandBuilder.java | CliCommandBuilder.setController | public CliCommandBuilder setController(final String protocol, final String hostname, final int port) {
setController(formatAddress(protocol, hostname, port));
return this;
} | java | public CliCommandBuilder setController(final String protocol, final String hostname, final int port) {
setController(formatAddress(protocol, hostname, port));
return this;
} | [
"public",
"CliCommandBuilder",
"setController",
"(",
"final",
"String",
"protocol",
",",
"final",
"String",
"hostname",
",",
"final",
"int",
"port",
")",
"{",
"setController",
"(",
"formatAddress",
"(",
"protocol",
",",
"hostname",
",",
"port",
")",
")",
";",
... | Sets the protocol, hostname and port to connect to.
@param protocol the protocol to use
@param hostname the host name
@param port the port
@return the builder | [
"Sets",
"the",
"protocol",
"hostname",
"and",
"port",
"to",
"connect",
"to",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/launcher/src/main/java/org/wildfly/core/launcher/CliCommandBuilder.java#L213-L216 |
158,803 | wildfly/wildfly-core | launcher/src/main/java/org/wildfly/core/launcher/CliCommandBuilder.java | CliCommandBuilder.setTimeout | public CliCommandBuilder setTimeout(final int timeout) {
if (timeout > 0) {
addCliArgument(CliArgument.TIMEOUT, Integer.toString(timeout));
} else {
addCliArgument(CliArgument.TIMEOUT, null);
}
return this;
} | java | public CliCommandBuilder setTimeout(final int timeout) {
if (timeout > 0) {
addCliArgument(CliArgument.TIMEOUT, Integer.toString(timeout));
} else {
addCliArgument(CliArgument.TIMEOUT, null);
}
return this;
} | [
"public",
"CliCommandBuilder",
"setTimeout",
"(",
"final",
"int",
"timeout",
")",
"{",
"if",
"(",
"timeout",
">",
"0",
")",
"{",
"addCliArgument",
"(",
"CliArgument",
".",
"TIMEOUT",
",",
"Integer",
".",
"toString",
"(",
"timeout",
")",
")",
";",
"}",
"e... | Sets the timeout used when connecting to the server.
@param timeout the time out to use
@return the builder | [
"Sets",
"the",
"timeout",
"used",
"when",
"connecting",
"to",
"the",
"server",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/launcher/src/main/java/org/wildfly/core/launcher/CliCommandBuilder.java#L332-L339 |
158,804 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/Services.java | Services.addServerExecutorDependency | @Deprecated
public static <T> ServiceBuilder<T> addServerExecutorDependency(ServiceBuilder<T> builder, Injector<ExecutorService> injector) {
return builder.addDependency(ServerService.MANAGEMENT_EXECUTOR, ExecutorService.class, injector);
} | java | @Deprecated
public static <T> ServiceBuilder<T> addServerExecutorDependency(ServiceBuilder<T> builder, Injector<ExecutorService> injector) {
return builder.addDependency(ServerService.MANAGEMENT_EXECUTOR, ExecutorService.class, injector);
} | [
"@",
"Deprecated",
"public",
"static",
"<",
"T",
">",
"ServiceBuilder",
"<",
"T",
">",
"addServerExecutorDependency",
"(",
"ServiceBuilder",
"<",
"T",
">",
"builder",
",",
"Injector",
"<",
"ExecutorService",
">",
"injector",
")",
"{",
"return",
"builder",
".",... | Creates dependency on management executor.
@param builder the builder
@param injector the injector
@param <T> the parameter type
@return service builder instance
@deprecated Use {@link #requireServerExecutor(ServiceBuilder)} instead. This method will be removed in the future. | [
"Creates",
"dependency",
"on",
"management",
"executor",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/Services.java#L84-L87 |
158,805 | wildfly/wildfly-core | protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java | AbstractMessageHandler.handleChannelClosed | public void handleChannelClosed(final Channel closed, final IOException e) {
for(final ActiveOperationImpl<?, ?> activeOperation : activeRequests.values()) {
if (activeOperation.getChannel() == closed) {
// Only call cancel, to also interrupt still active threads
acti... | java | public void handleChannelClosed(final Channel closed, final IOException e) {
for(final ActiveOperationImpl<?, ?> activeOperation : activeRequests.values()) {
if (activeOperation.getChannel() == closed) {
// Only call cancel, to also interrupt still active threads
acti... | [
"public",
"void",
"handleChannelClosed",
"(",
"final",
"Channel",
"closed",
",",
"final",
"IOException",
"e",
")",
"{",
"for",
"(",
"final",
"ActiveOperationImpl",
"<",
"?",
",",
"?",
">",
"activeOperation",
":",
"activeRequests",
".",
"values",
"(",
")",
")... | Receive a notification that the channel was closed.
This is used for the {@link ManagementClientChannelStrategy.Establishing} since it might use multiple channels.
@param closed the closed resource
@param e the exception which occurred during close, if any | [
"Receive",
"a",
"notification",
"that",
"the",
"channel",
"was",
"closed",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java#L114-L121 |
158,806 | wildfly/wildfly-core | protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java | AbstractMessageHandler.awaitCompletion | @Override
public boolean awaitCompletion(long timeout, TimeUnit unit) throws InterruptedException {
long deadline = unit.toMillis(timeout) + System.currentTimeMillis();
lock.lock(); try {
assert shutdown;
while(activeCount != 0) {
long remaining = deadline - S... | java | @Override
public boolean awaitCompletion(long timeout, TimeUnit unit) throws InterruptedException {
long deadline = unit.toMillis(timeout) + System.currentTimeMillis();
lock.lock(); try {
assert shutdown;
while(activeCount != 0) {
long remaining = deadline - S... | [
"@",
"Override",
"public",
"boolean",
"awaitCompletion",
"(",
"long",
"timeout",
",",
"TimeUnit",
"unit",
")",
"throws",
"InterruptedException",
"{",
"long",
"deadline",
"=",
"unit",
".",
"toMillis",
"(",
"timeout",
")",
"+",
"System",
".",
"currentTimeMillis",
... | Await the completion of all currently active operations.
@param timeout the timeout
@param unit the time unit
@return {@code } false if the timeout was reached and there were still active operations
@throws InterruptedException | [
"Await",
"the",
"completion",
"of",
"all",
"currently",
"active",
"operations",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java#L161-L181 |
158,807 | wildfly/wildfly-core | protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java | AbstractMessageHandler.registerActiveOperation | protected <T, A> ActiveOperation<T, A> registerActiveOperation(final Integer id, A attachment, ActiveOperation.CompletedCallback<T> callback) {
lock.lock();
try {
// Check that we still allow registration
// TODO WFCORE-199 distinguish client uses from server uses and limit this ... | java | protected <T, A> ActiveOperation<T, A> registerActiveOperation(final Integer id, A attachment, ActiveOperation.CompletedCallback<T> callback) {
lock.lock();
try {
// Check that we still allow registration
// TODO WFCORE-199 distinguish client uses from server uses and limit this ... | [
"protected",
"<",
"T",
",",
"A",
">",
"ActiveOperation",
"<",
"T",
",",
"A",
">",
"registerActiveOperation",
"(",
"final",
"Integer",
"id",
",",
"A",
"attachment",
",",
"ActiveOperation",
".",
"CompletedCallback",
"<",
"T",
">",
"callback",
")",
"{",
"lock... | Register an active operation with a specific operation id.
@param id the operation id
@param attachment the shared attachment
@param callback the completed callback
@return the created active operation
@throws java.lang.IllegalStateException if an operation with the same id is already registered | [
"Register",
"an",
"active",
"operation",
"with",
"a",
"specific",
"operation",
"id",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java#L380-L410 |
158,808 | wildfly/wildfly-core | protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java | AbstractMessageHandler.getActiveOperation | protected <T, A> ActiveOperation<T, A> getActiveOperation(final ManagementRequestHeader header) {
return getActiveOperation(header.getBatchId());
} | java | protected <T, A> ActiveOperation<T, A> getActiveOperation(final ManagementRequestHeader header) {
return getActiveOperation(header.getBatchId());
} | [
"protected",
"<",
"T",
",",
"A",
">",
"ActiveOperation",
"<",
"T",
",",
"A",
">",
"getActiveOperation",
"(",
"final",
"ManagementRequestHeader",
"header",
")",
"{",
"return",
"getActiveOperation",
"(",
"header",
".",
"getBatchId",
"(",
")",
")",
";",
"}"
] | Get an active operation.
@param header the request header
@return the active operation, {@code null} if if there is no registered operation | [
"Get",
"an",
"active",
"operation",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java#L418-L420 |
158,809 | wildfly/wildfly-core | protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java | AbstractMessageHandler.getActiveOperation | protected <T, A> ActiveOperation<T, A> getActiveOperation(final Integer id) {
//noinspection unchecked
return (ActiveOperation<T, A>) activeRequests.get(id);
} | java | protected <T, A> ActiveOperation<T, A> getActiveOperation(final Integer id) {
//noinspection unchecked
return (ActiveOperation<T, A>) activeRequests.get(id);
} | [
"protected",
"<",
"T",
",",
"A",
">",
"ActiveOperation",
"<",
"T",
",",
"A",
">",
"getActiveOperation",
"(",
"final",
"Integer",
"id",
")",
"{",
"//noinspection unchecked",
"return",
"(",
"ActiveOperation",
"<",
"T",
",",
"A",
">",
")",
"activeRequests",
"... | Get the active operation.
@param id the active operation id
@return the active operation, {@code null} if if there is no registered operation | [
"Get",
"the",
"active",
"operation",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java#L428-L431 |
158,810 | wildfly/wildfly-core | protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java | AbstractMessageHandler.cancelAllActiveOperations | protected List<Integer> cancelAllActiveOperations() {
final List<Integer> operations = new ArrayList<Integer>();
for(final ActiveOperationImpl<?, ?> activeOperation : activeRequests.values()) {
activeOperation.asyncCancel(false);
operations.add(activeOperation.getOperationId());
... | java | protected List<Integer> cancelAllActiveOperations() {
final List<Integer> operations = new ArrayList<Integer>();
for(final ActiveOperationImpl<?, ?> activeOperation : activeRequests.values()) {
activeOperation.asyncCancel(false);
operations.add(activeOperation.getOperationId());
... | [
"protected",
"List",
"<",
"Integer",
">",
"cancelAllActiveOperations",
"(",
")",
"{",
"final",
"List",
"<",
"Integer",
">",
"operations",
"=",
"new",
"ArrayList",
"<",
"Integer",
">",
"(",
")",
";",
"for",
"(",
"final",
"ActiveOperationImpl",
"<",
"?",
","... | Cancel all currently active operations.
@return a list of cancelled operations | [
"Cancel",
"all",
"currently",
"active",
"operations",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java#L438-L445 |
158,811 | wildfly/wildfly-core | protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java | AbstractMessageHandler.removeActiveOperation | protected <T, A> ActiveOperation<T, A> removeActiveOperation(Integer id) {
final ActiveOperation<T, A> removed = removeUnderLock(id);
if(removed != null) {
for(final Map.Entry<Integer, ActiveRequest<?, ?>> requestEntry : requests.entrySet()) {
final ActiveRequest<?, ?> reques... | java | protected <T, A> ActiveOperation<T, A> removeActiveOperation(Integer id) {
final ActiveOperation<T, A> removed = removeUnderLock(id);
if(removed != null) {
for(final Map.Entry<Integer, ActiveRequest<?, ?>> requestEntry : requests.entrySet()) {
final ActiveRequest<?, ?> reques... | [
"protected",
"<",
"T",
",",
"A",
">",
"ActiveOperation",
"<",
"T",
",",
"A",
">",
"removeActiveOperation",
"(",
"Integer",
"id",
")",
"{",
"final",
"ActiveOperation",
"<",
"T",
",",
"A",
">",
"removed",
"=",
"removeUnderLock",
"(",
"id",
")",
";",
"if"... | Remove an active operation.
@param id the operation id
@return the removed active operation, {@code null} if there was no registered operation | [
"Remove",
"an",
"active",
"operation",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java#L453-L464 |
158,812 | wildfly/wildfly-core | protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java | AbstractMessageHandler.safeWriteErrorResponse | protected static void safeWriteErrorResponse(final Channel channel, final ManagementProtocolHeader header, final Throwable error) {
if(header.getType() == ManagementProtocol.TYPE_REQUEST) {
try {
writeErrorResponse(channel, (ManagementRequestHeader) header, error);
} catc... | java | protected static void safeWriteErrorResponse(final Channel channel, final ManagementProtocolHeader header, final Throwable error) {
if(header.getType() == ManagementProtocol.TYPE_REQUEST) {
try {
writeErrorResponse(channel, (ManagementRequestHeader) header, error);
} catc... | [
"protected",
"static",
"void",
"safeWriteErrorResponse",
"(",
"final",
"Channel",
"channel",
",",
"final",
"ManagementProtocolHeader",
"header",
",",
"final",
"Throwable",
"error",
")",
"{",
"if",
"(",
"header",
".",
"getType",
"(",
")",
"==",
"ManagementProtocol"... | Safe write error response.
@param channel the channel
@param header the request header
@param error the exception | [
"Safe",
"write",
"error",
"response",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java#L489-L497 |
158,813 | wildfly/wildfly-core | protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java | AbstractMessageHandler.writeErrorResponse | protected static void writeErrorResponse(final Channel channel, final ManagementRequestHeader header, final Throwable error) throws IOException {
final ManagementResponseHeader response = ManagementResponseHeader.create(header, error);
final MessageOutputStream output = channel.writeMessage();
t... | java | protected static void writeErrorResponse(final Channel channel, final ManagementRequestHeader header, final Throwable error) throws IOException {
final ManagementResponseHeader response = ManagementResponseHeader.create(header, error);
final MessageOutputStream output = channel.writeMessage();
t... | [
"protected",
"static",
"void",
"writeErrorResponse",
"(",
"final",
"Channel",
"channel",
",",
"final",
"ManagementRequestHeader",
"header",
",",
"final",
"Throwable",
"error",
")",
"throws",
"IOException",
"{",
"final",
"ManagementResponseHeader",
"response",
"=",
"Ma... | Write an error response.
@param channel the channel
@param header the request
@param error the error
@throws IOException | [
"Write",
"an",
"error",
"response",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java#L507-L516 |
158,814 | wildfly/wildfly-core | protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java | AbstractMessageHandler.writeHeader | protected static FlushableDataOutput writeHeader(final ManagementProtocolHeader header, final OutputStream os) throws IOException {
final FlushableDataOutput output = FlushableDataOutputImpl.create(os);
header.write(output);
return output;
} | java | protected static FlushableDataOutput writeHeader(final ManagementProtocolHeader header, final OutputStream os) throws IOException {
final FlushableDataOutput output = FlushableDataOutputImpl.create(os);
header.write(output);
return output;
} | [
"protected",
"static",
"FlushableDataOutput",
"writeHeader",
"(",
"final",
"ManagementProtocolHeader",
"header",
",",
"final",
"OutputStream",
"os",
")",
"throws",
"IOException",
"{",
"final",
"FlushableDataOutput",
"output",
"=",
"FlushableDataOutputImpl",
".",
"create",... | Write the management protocol header.
@param header the mgmt protocol header
@param os the output stream
@throws IOException | [
"Write",
"the",
"management",
"protocol",
"header",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java#L525-L529 |
158,815 | wildfly/wildfly-core | protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java | AbstractMessageHandler.getFallbackHandler | protected static <T, A> ManagementRequestHandler<T, A> getFallbackHandler(final ManagementRequestHeader header) {
return new ManagementRequestHandler<T, A>() {
@Override
public void handleRequest(final DataInput input, ActiveOperation.ResultHandler<T> resultHandler, ManagementRequestCont... | java | protected static <T, A> ManagementRequestHandler<T, A> getFallbackHandler(final ManagementRequestHeader header) {
return new ManagementRequestHandler<T, A>() {
@Override
public void handleRequest(final DataInput input, ActiveOperation.ResultHandler<T> resultHandler, ManagementRequestCont... | [
"protected",
"static",
"<",
"T",
",",
"A",
">",
"ManagementRequestHandler",
"<",
"T",
",",
"A",
">",
"getFallbackHandler",
"(",
"final",
"ManagementRequestHeader",
"header",
")",
"{",
"return",
"new",
"ManagementRequestHandler",
"<",
"T",
",",
"A",
">",
"(",
... | Get a fallback handler.
@param header the protocol header
@return the fallback handler | [
"Get",
"a",
"fallback",
"handler",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/protocol/src/main/java/org/jboss/as/protocol/mgmt/AbstractMessageHandler.java#L537-L547 |
158,816 | wildfly/wildfly-core | patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java | PatchModuleInvalidationUtils.processFile | static void processFile(final IdentityPatchContext context, final File file, final PatchingTaskContext.Mode mode) throws IOException {
if (mode == PatchingTaskContext.Mode.APPLY) {
if (ENABLE_INVALIDATION) {
updateJar(file, GOOD_ENDSIG_PATTERN, BAD_BYTE_SKIP, CRIPPLED_ENDSIG, GOOD_EN... | java | static void processFile(final IdentityPatchContext context, final File file, final PatchingTaskContext.Mode mode) throws IOException {
if (mode == PatchingTaskContext.Mode.APPLY) {
if (ENABLE_INVALIDATION) {
updateJar(file, GOOD_ENDSIG_PATTERN, BAD_BYTE_SKIP, CRIPPLED_ENDSIG, GOOD_EN... | [
"static",
"void",
"processFile",
"(",
"final",
"IdentityPatchContext",
"context",
",",
"final",
"File",
"file",
",",
"final",
"PatchingTaskContext",
".",
"Mode",
"mode",
")",
"throws",
"IOException",
"{",
"if",
"(",
"mode",
"==",
"PatchingTaskContext",
".",
"Mod... | Process a file.
@param file the file to be processed
@param mode the patching mode
@throws IOException | [
"Process",
"a",
"file",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java#L150-L162 |
158,817 | wildfly/wildfly-core | patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java | PatchModuleInvalidationUtils.updateJar | private static void updateJar(final File file, final byte[] searchPattern, final int[] badSkipBytes, final int newSig, final int endSig) throws IOException {
final RandomAccessFile raf = new RandomAccessFile(file, "rw");
try {
final FileChannel channel = raf.getChannel();
try {
... | java | private static void updateJar(final File file, final byte[] searchPattern, final int[] badSkipBytes, final int newSig, final int endSig) throws IOException {
final RandomAccessFile raf = new RandomAccessFile(file, "rw");
try {
final FileChannel channel = raf.getChannel();
try {
... | [
"private",
"static",
"void",
"updateJar",
"(",
"final",
"File",
"file",
",",
"final",
"byte",
"[",
"]",
"searchPattern",
",",
"final",
"int",
"[",
"]",
"badSkipBytes",
",",
"final",
"int",
"newSig",
",",
"final",
"int",
"endSig",
")",
"throws",
"IOExceptio... | Update the central directory signature of a .jar.
@param file the file to process
@param searchPattern the search patter to use
@param badSkipBytes the bad bytes skip table
@param newSig the new signature
@param endSig the expected signature
@throws IOException | [
"Update",
"the",
"central",
"directory",
"signature",
"of",
"a",
".",
"jar",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java#L174-L214 |
158,818 | wildfly/wildfly-core | patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java | PatchModuleInvalidationUtils.validateEndRecord | private static boolean validateEndRecord(File file, FileChannel channel, long startEndRecord, long endSig) throws IOException {
try {
channel.position(startEndRecord);
final ByteBuffer endDirHeader = getByteBuffer(ENDLEN);
read(endDirHeader, channel);
if (endDir... | java | private static boolean validateEndRecord(File file, FileChannel channel, long startEndRecord, long endSig) throws IOException {
try {
channel.position(startEndRecord);
final ByteBuffer endDirHeader = getByteBuffer(ENDLEN);
read(endDirHeader, channel);
if (endDir... | [
"private",
"static",
"boolean",
"validateEndRecord",
"(",
"File",
"file",
",",
"FileChannel",
"channel",
",",
"long",
"startEndRecord",
",",
"long",
"endSig",
")",
"throws",
"IOException",
"{",
"try",
"{",
"channel",
".",
"position",
"(",
"startEndRecord",
")",
... | Validates that the data structure at position startEndRecord has a field in the expected position
that points to the start of the first central directory file, and, if so, that the file
has a complete end of central directory record comment at the end.
@param file the file being checked
@param channel ... | [
"Validates",
"that",
"the",
"data",
"structure",
"at",
"position",
"startEndRecord",
"has",
"a",
"field",
"in",
"the",
"expected",
"position",
"that",
"points",
"to",
"the",
"start",
"of",
"the",
"first",
"central",
"directory",
"file",
"and",
"if",
"so",
"t... | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java#L257-L317 |
158,819 | wildfly/wildfly-core | patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java | PatchModuleInvalidationUtils.scanForEndSig | private static long scanForEndSig(final File file, final FileChannel channel, final ScanContext context) throws IOException {
// TODO Consider just reading in MAX_REVERSE_SCAN bytes -- increased peak memory cost but less complex
ByteBuffer bb = getByteBuffer(CHUNK_SIZE);
long start = channel... | java | private static long scanForEndSig(final File file, final FileChannel channel, final ScanContext context) throws IOException {
// TODO Consider just reading in MAX_REVERSE_SCAN bytes -- increased peak memory cost but less complex
ByteBuffer bb = getByteBuffer(CHUNK_SIZE);
long start = channel... | [
"private",
"static",
"long",
"scanForEndSig",
"(",
"final",
"File",
"file",
",",
"final",
"FileChannel",
"channel",
",",
"final",
"ScanContext",
"context",
")",
"throws",
"IOException",
"{",
"// TODO Consider just reading in MAX_REVERSE_SCAN bytes -- increased peak memory cos... | Boyer Moore scan that proceeds backwards from the end of the file looking for endsig
@param file the file being checked
@param channel the channel
@param context the scan context
@return
@throws IOException | [
"Boyer",
"Moore",
"scan",
"that",
"proceeds",
"backwards",
"from",
"the",
"end",
"of",
"the",
"file",
"looking",
"for",
"endsig"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java#L328-L399 |
158,820 | wildfly/wildfly-core | patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java | PatchModuleInvalidationUtils.scanForLocSig | private static long scanForLocSig(FileChannel channel) throws IOException {
channel.position(0);
ByteBuffer bb = getByteBuffer(CHUNK_SIZE);
long end = channel.size();
while (channel.position() <= end) {
read(bb, channel);
int bufferPos = 0;
while (... | java | private static long scanForLocSig(FileChannel channel) throws IOException {
channel.position(0);
ByteBuffer bb = getByteBuffer(CHUNK_SIZE);
long end = channel.size();
while (channel.position() <= end) {
read(bb, channel);
int bufferPos = 0;
while (... | [
"private",
"static",
"long",
"scanForLocSig",
"(",
"FileChannel",
"channel",
")",
"throws",
"IOException",
"{",
"channel",
".",
"position",
"(",
"0",
")",
";",
"ByteBuffer",
"bb",
"=",
"getByteBuffer",
"(",
"CHUNK_SIZE",
")",
";",
"long",
"end",
"=",
"channe... | Boyer Moore scan that proceeds forwards from the end of the file looking for the first LOCSIG | [
"Boyer",
"Moore",
"scan",
"that",
"proceeds",
"forwards",
"from",
"the",
"end",
"of",
"the",
"file",
"looking",
"for",
"the",
"first",
"LOCSIG"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java#L404-L460 |
158,821 | wildfly/wildfly-core | patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java | PatchModuleInvalidationUtils.validateLocalFileRecord | private static boolean validateLocalFileRecord(FileChannel channel, long startLocRecord, long compressedSize) throws IOException {
ByteBuffer lfhBuffer = getByteBuffer(LOCLEN);
read(lfhBuffer, channel, startLocRecord);
if (lfhBuffer.limit() < LOCLEN || getUnsignedInt(lfhBuffer, 0) != LOCSIG) {
... | java | private static boolean validateLocalFileRecord(FileChannel channel, long startLocRecord, long compressedSize) throws IOException {
ByteBuffer lfhBuffer = getByteBuffer(LOCLEN);
read(lfhBuffer, channel, startLocRecord);
if (lfhBuffer.limit() < LOCLEN || getUnsignedInt(lfhBuffer, 0) != LOCSIG) {
... | [
"private",
"static",
"boolean",
"validateLocalFileRecord",
"(",
"FileChannel",
"channel",
",",
"long",
"startLocRecord",
",",
"long",
"compressedSize",
")",
"throws",
"IOException",
"{",
"ByteBuffer",
"lfhBuffer",
"=",
"getByteBuffer",
"(",
"LOCLEN",
")",
";",
"read... | Checks that the data starting at startLocRecord looks like a local file record header.
@param channel the channel
@param startLocRecord offset into channel of the start of the local record
@param compressedSize expected compressed size of the file, or -1 to indicate this isn't known | [
"Checks",
"that",
"the",
"data",
"starting",
"at",
"startLocRecord",
"looks",
"like",
"a",
"local",
"file",
"record",
"header",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java#L469-L489 |
158,822 | wildfly/wildfly-core | patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java | PatchModuleInvalidationUtils.computeBadByteSkipArray | private static void computeBadByteSkipArray(byte[] pattern, int[] badByteArray) {
for (int a = 0; a < ALPHABET_SIZE; a++) {
badByteArray[a] = pattern.length;
}
for (int j = 0; j < pattern.length - 1; j++) {
badByteArray[pattern[j] - Byte.MIN_VALUE] = pattern.length - j -... | java | private static void computeBadByteSkipArray(byte[] pattern, int[] badByteArray) {
for (int a = 0; a < ALPHABET_SIZE; a++) {
badByteArray[a] = pattern.length;
}
for (int j = 0; j < pattern.length - 1; j++) {
badByteArray[pattern[j] - Byte.MIN_VALUE] = pattern.length - j -... | [
"private",
"static",
"void",
"computeBadByteSkipArray",
"(",
"byte",
"[",
"]",
"pattern",
",",
"int",
"[",
"]",
"badByteArray",
")",
"{",
"for",
"(",
"int",
"a",
"=",
"0",
";",
"a",
"<",
"ALPHABET_SIZE",
";",
"a",
"++",
")",
"{",
"badByteArray",
"[",
... | Fills the Boyer Moore "bad character array" for the given pattern | [
"Fills",
"the",
"Boyer",
"Moore",
"bad",
"character",
"array",
"for",
"the",
"given",
"pattern"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java#L520-L528 |
158,823 | wildfly/wildfly-core | embedded/src/main/java/org/wildfly/core/embedded/EmbeddedProcessFactory.java | EmbeddedProcessFactory.createHostController | public static HostController createHostController(String jbossHomePath, String modulePath, String[] systemPackages, String[] cmdargs) {
if (jbossHomePath == null || jbossHomePath.isEmpty()) {
throw EmbeddedLogger.ROOT_LOGGER.invalidJBossHome(jbossHomePath);
}
File jbossHomeDir = new ... | java | public static HostController createHostController(String jbossHomePath, String modulePath, String[] systemPackages, String[] cmdargs) {
if (jbossHomePath == null || jbossHomePath.isEmpty()) {
throw EmbeddedLogger.ROOT_LOGGER.invalidJBossHome(jbossHomePath);
}
File jbossHomeDir = new ... | [
"public",
"static",
"HostController",
"createHostController",
"(",
"String",
"jbossHomePath",
",",
"String",
"modulePath",
",",
"String",
"[",
"]",
"systemPackages",
",",
"String",
"[",
"]",
"cmdargs",
")",
"{",
"if",
"(",
"jbossHomePath",
"==",
"null",
"||",
... | Create an embedded host controller.
@param jbossHomePath the location of the root of the host controller installation. Cannot be {@code null} or empty.
@param modulePath the location of the root of the module repository. May be {@code null} if the standard
location under {@code jbossHomePath} should be used
@param sys... | [
"Create",
"an",
"embedded",
"host",
"controller",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/embedded/src/main/java/org/wildfly/core/embedded/EmbeddedProcessFactory.java#L206-L221 |
158,824 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/deployment/service/ServiceActivatorDependencyProcessor.java | ServiceActivatorDependencyProcessor.deploy | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final ResourceRoot deploymentRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT);
final ModuleSpecification moduleSpecification = phaseContext.getDeploymentUnit().getAttachme... | java | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final ResourceRoot deploymentRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT);
final ModuleSpecification moduleSpecification = phaseContext.getDeploymentUnit().getAttachme... | [
"public",
"void",
"deploy",
"(",
"DeploymentPhaseContext",
"phaseContext",
")",
"throws",
"DeploymentUnitProcessingException",
"{",
"final",
"ResourceRoot",
"deploymentRoot",
"=",
"phaseContext",
".",
"getDeploymentUnit",
"(",
")",
".",
"getAttachment",
"(",
"Attachments"... | Add the dependencies if the deployment contains a service activator loader entry.
@param phaseContext the deployment unit context
@throws DeploymentUnitProcessingException | [
"Add",
"the",
"dependencies",
"if",
"the",
"deployment",
"contains",
"a",
"service",
"activator",
"loader",
"entry",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deployment/service/ServiceActivatorDependencyProcessor.java#L52-L62 |
158,825 | wildfly/wildfly-core | request-controller/src/main/java/org/wildfly/extension/requestcontroller/ControlPoint.java | ControlPoint.pause | public void pause(ServerActivityCallback requestCountListener) {
if (paused) {
throw ServerLogger.ROOT_LOGGER.serverAlreadyPaused();
}
this.paused = true;
listenerUpdater.set(this, requestCountListener);
if (activeRequestCountUpdater.get(this) == 0) {
if (... | java | public void pause(ServerActivityCallback requestCountListener) {
if (paused) {
throw ServerLogger.ROOT_LOGGER.serverAlreadyPaused();
}
this.paused = true;
listenerUpdater.set(this, requestCountListener);
if (activeRequestCountUpdater.get(this) == 0) {
if (... | [
"public",
"void",
"pause",
"(",
"ServerActivityCallback",
"requestCountListener",
")",
"{",
"if",
"(",
"paused",
")",
"{",
"throw",
"ServerLogger",
".",
"ROOT_LOGGER",
".",
"serverAlreadyPaused",
"(",
")",
";",
"}",
"this",
".",
"paused",
"=",
"true",
";",
"... | Pause the current entry point, and invoke the provided listener when all current requests have finished.
If individual control point tracking is not enabled then the listener will be invoked straight away
@param requestCountListener The listener to invoke | [
"Pause",
"the",
"current",
"entry",
"point",
"and",
"invoke",
"the",
"provided",
"listener",
"when",
"all",
"current",
"requests",
"have",
"finished",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/request-controller/src/main/java/org/wildfly/extension/requestcontroller/ControlPoint.java#L95-L106 |
158,826 | wildfly/wildfly-core | request-controller/src/main/java/org/wildfly/extension/requestcontroller/ControlPoint.java | ControlPoint.resume | public void resume() {
this.paused = false;
ServerActivityCallback listener = listenerUpdater.get(this);
if (listener != null) {
listenerUpdater.compareAndSet(this, listener, null);
}
} | java | public void resume() {
this.paused = false;
ServerActivityCallback listener = listenerUpdater.get(this);
if (listener != null) {
listenerUpdater.compareAndSet(this, listener, null);
}
} | [
"public",
"void",
"resume",
"(",
")",
"{",
"this",
".",
"paused",
"=",
"false",
";",
"ServerActivityCallback",
"listener",
"=",
"listenerUpdater",
".",
"get",
"(",
"this",
")",
";",
"if",
"(",
"listener",
"!=",
"null",
")",
"{",
"listenerUpdater",
".",
"... | Cancel the pause operation | [
"Cancel",
"the",
"pause",
"operation"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/request-controller/src/main/java/org/wildfly/extension/requestcontroller/ControlPoint.java#L111-L117 |
158,827 | wildfly/wildfly-core | host-controller/src/main/java/org/jboss/as/host/controller/mgmt/HostInfo.java | HostInfo.createLocalHostHostInfo | public static ModelNode createLocalHostHostInfo(final LocalHostControllerInfo hostInfo, final ProductConfig productConfig,
final IgnoredDomainResourceRegistry ignoredResourceRegistry, final Resource hostModelResource) {
final ModelNode info = new ModelNode();
... | java | public static ModelNode createLocalHostHostInfo(final LocalHostControllerInfo hostInfo, final ProductConfig productConfig,
final IgnoredDomainResourceRegistry ignoredResourceRegistry, final Resource hostModelResource) {
final ModelNode info = new ModelNode();
... | [
"public",
"static",
"ModelNode",
"createLocalHostHostInfo",
"(",
"final",
"LocalHostControllerInfo",
"hostInfo",
",",
"final",
"ProductConfig",
"productConfig",
",",
"final",
"IgnoredDomainResourceRegistry",
"ignoredResourceRegistry",
",",
"final",
"Resource",
"hostModelResourc... | Create the metadata which gets send to the DC when registering.
@param hostInfo the local host info
@param productConfig the product config
@param ignoredResourceRegistry registry of ignored resources
@return the host info | [
"Create",
"the",
"metadata",
"which",
"gets",
"send",
"to",
"the",
"DC",
"when",
"registering",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/mgmt/HostInfo.java#L85-L109 |
158,828 | wildfly/wildfly-core | launcher/src/main/java/org/wildfly/core/launcher/Environment.java | Environment.addModuleDir | public void addModuleDir(final String moduleDir) {
if (moduleDir == null) {
throw LauncherMessages.MESSAGES.nullParam("moduleDir");
}
// Validate the path
final Path path = Paths.get(moduleDir).normalize();
modulesDirs.add(path.toString());
} | java | public void addModuleDir(final String moduleDir) {
if (moduleDir == null) {
throw LauncherMessages.MESSAGES.nullParam("moduleDir");
}
// Validate the path
final Path path = Paths.get(moduleDir).normalize();
modulesDirs.add(path.toString());
} | [
"public",
"void",
"addModuleDir",
"(",
"final",
"String",
"moduleDir",
")",
"{",
"if",
"(",
"moduleDir",
"==",
"null",
")",
"{",
"throw",
"LauncherMessages",
".",
"MESSAGES",
".",
"nullParam",
"(",
"\"moduleDir\"",
")",
";",
"}",
"// Validate the path",
"final... | Adds a directory to the collection of module paths.
@param moduleDir the module directory to add
@throws java.lang.IllegalArgumentException if the path is {@code null} | [
"Adds",
"a",
"directory",
"to",
"the",
"collection",
"of",
"module",
"paths",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/launcher/src/main/java/org/wildfly/core/launcher/Environment.java#L93-L100 |
158,829 | wildfly/wildfly-core | launcher/src/main/java/org/wildfly/core/launcher/Environment.java | Environment.getModulePaths | public String getModulePaths() {
final StringBuilder result = new StringBuilder();
if (addDefaultModuleDir) {
result.append(wildflyHome.resolve("modules").toString());
}
if (!modulesDirs.isEmpty()) {
if (addDefaultModuleDir) result.append(File.pathSeparator);
... | java | public String getModulePaths() {
final StringBuilder result = new StringBuilder();
if (addDefaultModuleDir) {
result.append(wildflyHome.resolve("modules").toString());
}
if (!modulesDirs.isEmpty()) {
if (addDefaultModuleDir) result.append(File.pathSeparator);
... | [
"public",
"String",
"getModulePaths",
"(",
")",
"{",
"final",
"StringBuilder",
"result",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"addDefaultModuleDir",
")",
"{",
"result",
".",
"append",
"(",
"wildflyHome",
".",
"resolve",
"(",
"\"modules\"",
... | Returns the modules paths used on the command line.
@return the paths separated by the {@link File#pathSeparator path separator} | [
"Returns",
"the",
"modules",
"paths",
"used",
"on",
"the",
"command",
"line",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/launcher/src/main/java/org/wildfly/core/launcher/Environment.java#L171-L186 |
158,830 | wildfly/wildfly-core | controller-client/src/main/java/org/jboss/as/controller/client/impl/ExistingChannelModelControllerClient.java | ExistingChannelModelControllerClient.createAndAdd | public static ModelControllerClient createAndAdd(final ManagementChannelHandler handler) {
final ExistingChannelModelControllerClient client = new ExistingChannelModelControllerClient(handler);
handler.addHandlerFactory(client);
return client;
} | java | public static ModelControllerClient createAndAdd(final ManagementChannelHandler handler) {
final ExistingChannelModelControllerClient client = new ExistingChannelModelControllerClient(handler);
handler.addHandlerFactory(client);
return client;
} | [
"public",
"static",
"ModelControllerClient",
"createAndAdd",
"(",
"final",
"ManagementChannelHandler",
"handler",
")",
"{",
"final",
"ExistingChannelModelControllerClient",
"client",
"=",
"new",
"ExistingChannelModelControllerClient",
"(",
"handler",
")",
";",
"handler",
".... | Create and add model controller handler to an existing management channel handler.
@param handler the channel handler
@return the created client | [
"Create",
"and",
"add",
"model",
"controller",
"handler",
"to",
"an",
"existing",
"management",
"channel",
"handler",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller-client/src/main/java/org/jboss/as/controller/client/impl/ExistingChannelModelControllerClient.java#L63-L67 |
158,831 | wildfly/wildfly-core | controller-client/src/main/java/org/jboss/as/controller/client/impl/ExistingChannelModelControllerClient.java | ExistingChannelModelControllerClient.createReceiving | public static ModelControllerClient createReceiving(final Channel channel, final ExecutorService executorService) {
final ManagementClientChannelStrategy strategy = ManagementClientChannelStrategy.create(channel);
final ManagementChannelHandler handler = new ManagementChannelHandler(strategy, executorSe... | java | public static ModelControllerClient createReceiving(final Channel channel, final ExecutorService executorService) {
final ManagementClientChannelStrategy strategy = ManagementClientChannelStrategy.create(channel);
final ManagementChannelHandler handler = new ManagementChannelHandler(strategy, executorSe... | [
"public",
"static",
"ModelControllerClient",
"createReceiving",
"(",
"final",
"Channel",
"channel",
",",
"final",
"ExecutorService",
"executorService",
")",
"{",
"final",
"ManagementClientChannelStrategy",
"strategy",
"=",
"ManagementClientChannelStrategy",
".",
"create",
"... | Create a model controller client which is exclusively receiving messages on an existing channel.
@param channel the channel
@param executorService an executor
@return the created client | [
"Create",
"a",
"model",
"controller",
"client",
"which",
"is",
"exclusively",
"receiving",
"messages",
"on",
"an",
"existing",
"channel",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller-client/src/main/java/org/jboss/as/controller/client/impl/ExistingChannelModelControllerClient.java#L76-L96 |
158,832 | wildfly/wildfly-core | domain-management/src/main/java/org/jboss/as/domain/management/security/UserPropertiesFileLoader.java | UserPropertiesFileLoader.addLineContent | @Override
protected void addLineContent(BufferedReader bufferedFileReader, List<String> content, String line) throws IOException {
// Is the line an empty comment "#" ?
if (line.startsWith(COMMENT_PREFIX) && line.length() == 1) {
String nextLine = bufferedFileReader.readLine();
... | java | @Override
protected void addLineContent(BufferedReader bufferedFileReader, List<String> content, String line) throws IOException {
// Is the line an empty comment "#" ?
if (line.startsWith(COMMENT_PREFIX) && line.length() == 1) {
String nextLine = bufferedFileReader.readLine();
... | [
"@",
"Override",
"protected",
"void",
"addLineContent",
"(",
"BufferedReader",
"bufferedFileReader",
",",
"List",
"<",
"String",
">",
"content",
",",
"String",
"line",
")",
"throws",
"IOException",
"{",
"// Is the line an empty comment \"#\" ?",
"if",
"(",
"line",
"... | Remove the realm name block.
@see PropertiesFileLoader#addLineContent(java.io.BufferedReader, java.util.List, String) | [
"Remove",
"the",
"realm",
"name",
"block",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/domain-management/src/main/java/org/jboss/as/domain/management/security/UserPropertiesFileLoader.java#L170-L193 |
158,833 | wildfly/wildfly-core | controller/src/main/java/org/jboss/as/controller/OperationDefinition.java | OperationDefinition.validateOperation | @Deprecated
public void validateOperation(final ModelNode operation) throws OperationFailedException {
if (operation.hasDefined(ModelDescriptionConstants.OPERATION_NAME) && deprecationData != null && deprecationData.isNotificationUseful()) {
ControllerLogger.DEPRECATED_LOGGER.operationDeprecated... | java | @Deprecated
public void validateOperation(final ModelNode operation) throws OperationFailedException {
if (operation.hasDefined(ModelDescriptionConstants.OPERATION_NAME) && deprecationData != null && deprecationData.isNotificationUseful()) {
ControllerLogger.DEPRECATED_LOGGER.operationDeprecated... | [
"@",
"Deprecated",
"public",
"void",
"validateOperation",
"(",
"final",
"ModelNode",
"operation",
")",
"throws",
"OperationFailedException",
"{",
"if",
"(",
"operation",
".",
"hasDefined",
"(",
"ModelDescriptionConstants",
".",
"OPERATION_NAME",
")",
"&&",
"deprecatio... | Validates operation model against the definition and its parameters
@param operation model node of type {@link ModelType#OBJECT}, representing an operation request
@throws OperationFailedException if the value is not valid
@deprecated Not used by the WildFly management kernel; will be removed in a future release | [
"Validates",
"operation",
"model",
"against",
"the",
"definition",
"and",
"its",
"parameters"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/OperationDefinition.java#L172-L181 |
158,834 | wildfly/wildfly-core | controller/src/main/java/org/jboss/as/controller/OperationDefinition.java | OperationDefinition.validateAndSet | @SuppressWarnings("deprecation")
@Deprecated
public final void validateAndSet(ModelNode operationObject, final ModelNode model) throws OperationFailedException {
validateOperation(operationObject);
for (AttributeDefinition ad : this.parameters) {
ad.validateAndSet(operationObject, mo... | java | @SuppressWarnings("deprecation")
@Deprecated
public final void validateAndSet(ModelNode operationObject, final ModelNode model) throws OperationFailedException {
validateOperation(operationObject);
for (AttributeDefinition ad : this.parameters) {
ad.validateAndSet(operationObject, mo... | [
"@",
"SuppressWarnings",
"(",
"\"deprecation\"",
")",
"@",
"Deprecated",
"public",
"final",
"void",
"validateAndSet",
"(",
"ModelNode",
"operationObject",
",",
"final",
"ModelNode",
"model",
")",
"throws",
"OperationFailedException",
"{",
"validateOperation",
"(",
"op... | validates operation against the definition and sets model for the parameters passed.
@param operationObject model node of type {@link ModelType#OBJECT}, typically representing an operation request
@param model model node in which the value should be stored
@throws OperationFailedException if the value is not... | [
"validates",
"operation",
"against",
"the",
"definition",
"and",
"sets",
"model",
"for",
"the",
"parameters",
"passed",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/OperationDefinition.java#L192-L199 |
158,835 | wildfly/wildfly-core | patching/src/main/java/org/jboss/as/patching/validation/BasicArtifactProcessor.java | BasicArtifactProcessor.getHandlerForArtifact | <P extends PatchingArtifact.ArtifactState, S extends PatchingArtifact.ArtifactState> PatchingArtifactStateHandler<S> getHandlerForArtifact(PatchingArtifact<P, S> artifact) {
return handlers.get(artifact);
} | java | <P extends PatchingArtifact.ArtifactState, S extends PatchingArtifact.ArtifactState> PatchingArtifactStateHandler<S> getHandlerForArtifact(PatchingArtifact<P, S> artifact) {
return handlers.get(artifact);
} | [
"<",
"P",
"extends",
"PatchingArtifact",
".",
"ArtifactState",
",",
"S",
"extends",
"PatchingArtifact",
".",
"ArtifactState",
">",
"PatchingArtifactStateHandler",
"<",
"S",
">",
"getHandlerForArtifact",
"(",
"PatchingArtifact",
"<",
"P",
",",
"S",
">",
"artifact",
... | Get a state handler for a given patching artifact.
@param artifact the patching artifact
@param <P>
@param <S>
@return the state handler, {@code null} if there is no handler registered for the given artifact | [
"Get",
"a",
"state",
"handler",
"for",
"a",
"given",
"patching",
"artifact",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/validation/BasicArtifactProcessor.java#L123-L125 |
158,836 | wildfly/wildfly-core | controller/src/main/java/org/jboss/as/controller/capability/registry/CapabilityResolutionContext.java | CapabilityResolutionContext.getAttachment | public <V> V getAttachment(final AttachmentKey<V> key) {
assert key != null;
return key.cast(contextAttachments.get(key));
} | java | public <V> V getAttachment(final AttachmentKey<V> key) {
assert key != null;
return key.cast(contextAttachments.get(key));
} | [
"public",
"<",
"V",
">",
"V",
"getAttachment",
"(",
"final",
"AttachmentKey",
"<",
"V",
">",
"key",
")",
"{",
"assert",
"key",
"!=",
"null",
";",
"return",
"key",
".",
"cast",
"(",
"contextAttachments",
".",
"get",
"(",
"key",
")",
")",
";",
"}"
] | Retrieves an object that has been attached to this context.
@param key the key to the attachment.
@param <V> the value type of the attachment.
@return the attachment if found otherwise {@code null}. | [
"Retrieves",
"an",
"object",
"that",
"has",
"been",
"attached",
"to",
"this",
"context",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/capability/registry/CapabilityResolutionContext.java#L54-L57 |
158,837 | wildfly/wildfly-core | controller/src/main/java/org/jboss/as/controller/capability/registry/CapabilityResolutionContext.java | CapabilityResolutionContext.attach | public <V> V attach(final AttachmentKey<V> key, final V value) {
assert key != null;
return key.cast(contextAttachments.put(key, value));
} | java | public <V> V attach(final AttachmentKey<V> key, final V value) {
assert key != null;
return key.cast(contextAttachments.put(key, value));
} | [
"public",
"<",
"V",
">",
"V",
"attach",
"(",
"final",
"AttachmentKey",
"<",
"V",
">",
"key",
",",
"final",
"V",
"value",
")",
"{",
"assert",
"key",
"!=",
"null",
";",
"return",
"key",
".",
"cast",
"(",
"contextAttachments",
".",
"put",
"(",
"key",
... | Attaches an arbitrary object to this context.
@param key they attachment key used to ensure uniqueness and used for retrieval of the value.
@param value the value to store.
@param <V> the value type of the attachment.
@return the previous value associated with the key or {@code null} if there was no previous valu... | [
"Attaches",
"an",
"arbitrary",
"object",
"to",
"this",
"context",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/capability/registry/CapabilityResolutionContext.java#L68-L71 |
158,838 | wildfly/wildfly-core | controller/src/main/java/org/jboss/as/controller/capability/registry/CapabilityResolutionContext.java | CapabilityResolutionContext.attachIfAbsent | public <V> V attachIfAbsent(final AttachmentKey<V> key, final V value) {
assert key != null;
return key.cast(contextAttachments.putIfAbsent(key, value));
} | java | public <V> V attachIfAbsent(final AttachmentKey<V> key, final V value) {
assert key != null;
return key.cast(contextAttachments.putIfAbsent(key, value));
} | [
"public",
"<",
"V",
">",
"V",
"attachIfAbsent",
"(",
"final",
"AttachmentKey",
"<",
"V",
">",
"key",
",",
"final",
"V",
"value",
")",
"{",
"assert",
"key",
"!=",
"null",
";",
"return",
"key",
".",
"cast",
"(",
"contextAttachments",
".",
"putIfAbsent",
... | Attaches an arbitrary object to this context only if the object was not already attached. If a value has already
been attached with the key provided, the current value associated with the key is returned.
@param key they attachment key used to ensure uniqueness and used for retrieval of the value.
@param value the v... | [
"Attaches",
"an",
"arbitrary",
"object",
"to",
"this",
"context",
"only",
"if",
"the",
"object",
"was",
"not",
"already",
"attached",
".",
"If",
"a",
"value",
"has",
"already",
"been",
"attached",
"with",
"the",
"key",
"provided",
"the",
"current",
"value",
... | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/capability/registry/CapabilityResolutionContext.java#L83-L86 |
158,839 | wildfly/wildfly-core | controller/src/main/java/org/jboss/as/controller/capability/registry/CapabilityResolutionContext.java | CapabilityResolutionContext.detach | public <V> V detach(final AttachmentKey<V> key) {
assert key != null;
return key.cast(contextAttachments.remove(key));
} | java | public <V> V detach(final AttachmentKey<V> key) {
assert key != null;
return key.cast(contextAttachments.remove(key));
} | [
"public",
"<",
"V",
">",
"V",
"detach",
"(",
"final",
"AttachmentKey",
"<",
"V",
">",
"key",
")",
"{",
"assert",
"key",
"!=",
"null",
";",
"return",
"key",
".",
"cast",
"(",
"contextAttachments",
".",
"remove",
"(",
"key",
")",
")",
";",
"}"
] | Detaches or removes the value from this context.
@param key the key to the attachment.
@param <V> the value type of the attachment.
@return the attachment if found otherwise {@code null}. | [
"Detaches",
"or",
"removes",
"the",
"value",
"from",
"this",
"context",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/capability/registry/CapabilityResolutionContext.java#L96-L99 |
158,840 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/parsing/InterfacesXml.java | InterfacesXml.writeInterfaceCriteria | private void writeInterfaceCriteria(final XMLExtendedStreamWriter writer, final ModelNode subModel, final boolean nested) throws XMLStreamException {
for (final Property property : subModel.asPropertyList()) {
if (property.getValue().isDefined()) {
writeInterfaceCriteria(writer, prop... | java | private void writeInterfaceCriteria(final XMLExtendedStreamWriter writer, final ModelNode subModel, final boolean nested) throws XMLStreamException {
for (final Property property : subModel.asPropertyList()) {
if (property.getValue().isDefined()) {
writeInterfaceCriteria(writer, prop... | [
"private",
"void",
"writeInterfaceCriteria",
"(",
"final",
"XMLExtendedStreamWriter",
"writer",
",",
"final",
"ModelNode",
"subModel",
",",
"final",
"boolean",
"nested",
")",
"throws",
"XMLStreamException",
"{",
"for",
"(",
"final",
"Property",
"property",
":",
"sub... | Write the criteria elements, extracting the information of the sub-model.
@param writer the xml stream writer
@param subModel the interface model
@param nested whether it the criteria elements are nested as part of <not /> or <any />
@throws XMLStreamException | [
"Write",
"the",
"criteria",
"elements",
"extracting",
"the",
"information",
"of",
"the",
"sub",
"-",
"model",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/parsing/InterfacesXml.java#L280-L286 |
158,841 | wildfly/wildfly-core | host-controller/src/main/java/org/jboss/as/host/controller/ConfigurationPersisterFactory.java | ConfigurationPersisterFactory.createHostXmlConfigurationPersister | public static ExtensibleConfigurationPersister createHostXmlConfigurationPersister(final ConfigurationFile file, final HostControllerEnvironment environment,
final ExecutorService executorService, final ExtensionRegistry hostExtensio... | java | public static ExtensibleConfigurationPersister createHostXmlConfigurationPersister(final ConfigurationFile file, final HostControllerEnvironment environment,
final ExecutorService executorService, final ExtensionRegistry hostExtensio... | [
"public",
"static",
"ExtensibleConfigurationPersister",
"createHostXmlConfigurationPersister",
"(",
"final",
"ConfigurationFile",
"file",
",",
"final",
"HostControllerEnvironment",
"environment",
",",
"final",
"ExecutorService",
"executorService",
",",
"final",
"ExtensionRegistry... | host.xml | [
"host",
".",
"xml"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ConfigurationPersisterFactory.java#L67-L86 |
158,842 | wildfly/wildfly-core | host-controller/src/main/java/org/jboss/as/host/controller/ConfigurationPersisterFactory.java | ConfigurationPersisterFactory.createDomainXmlConfigurationPersister | public static ExtensibleConfigurationPersister createDomainXmlConfigurationPersister(final ConfigurationFile file, ExecutorService executorService, ExtensionRegistry extensionRegistry, final HostControllerEnvironment environment) {
DomainXml domainXml = new DomainXml(Module.getBootModuleLoader(), executorServic... | java | public static ExtensibleConfigurationPersister createDomainXmlConfigurationPersister(final ConfigurationFile file, ExecutorService executorService, ExtensionRegistry extensionRegistry, final HostControllerEnvironment environment) {
DomainXml domainXml = new DomainXml(Module.getBootModuleLoader(), executorServic... | [
"public",
"static",
"ExtensibleConfigurationPersister",
"createDomainXmlConfigurationPersister",
"(",
"final",
"ConfigurationFile",
"file",
",",
"ExecutorService",
"executorService",
",",
"ExtensionRegistry",
"extensionRegistry",
",",
"final",
"HostControllerEnvironment",
"environm... | domain.xml | [
"domain",
".",
"xml"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ConfigurationPersisterFactory.java#L89-L112 |
158,843 | wildfly/wildfly-core | host-controller/src/main/java/org/jboss/as/host/controller/ConfigurationPersisterFactory.java | ConfigurationPersisterFactory.createTransientDomainXmlConfigurationPersister | public static ExtensibleConfigurationPersister createTransientDomainXmlConfigurationPersister(ExecutorService executorService, ExtensionRegistry extensionRegistry) {
DomainXml domainXml = new DomainXml(Module.getBootModuleLoader(), executorService, extensionRegistry);
ExtensibleConfigurationPersister pe... | java | public static ExtensibleConfigurationPersister createTransientDomainXmlConfigurationPersister(ExecutorService executorService, ExtensionRegistry extensionRegistry) {
DomainXml domainXml = new DomainXml(Module.getBootModuleLoader(), executorService, extensionRegistry);
ExtensibleConfigurationPersister pe... | [
"public",
"static",
"ExtensibleConfigurationPersister",
"createTransientDomainXmlConfigurationPersister",
"(",
"ExecutorService",
"executorService",
",",
"ExtensionRegistry",
"extensionRegistry",
")",
"{",
"DomainXml",
"domainXml",
"=",
"new",
"DomainXml",
"(",
"Module",
".",
... | slave=true | [
"slave",
"=",
"true"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/host/controller/ConfigurationPersisterFactory.java#L135-L140 |
158,844 | wildfly/wildfly-core | patching/src/main/java/org/jboss/as/patching/runner/PatchingTasks.java | PatchingTasks.apply | static void apply(final String patchId, final Collection<ContentModification> modifications, final PatchEntry patchEntry, final ContentItemFilter filter) {
for (final ContentModification modification : modifications) {
final ContentItem item = modification.getItem();
// Check if we acce... | java | static void apply(final String patchId, final Collection<ContentModification> modifications, final PatchEntry patchEntry, final ContentItemFilter filter) {
for (final ContentModification modification : modifications) {
final ContentItem item = modification.getItem();
// Check if we acce... | [
"static",
"void",
"apply",
"(",
"final",
"String",
"patchId",
",",
"final",
"Collection",
"<",
"ContentModification",
">",
"modifications",
",",
"final",
"PatchEntry",
"patchEntry",
",",
"final",
"ContentItemFilter",
"filter",
")",
"{",
"for",
"(",
"final",
"Con... | Apply modifications to a content task definition.
@param patchId the patch id
@param modifications the modifications
@param definitions the task definitions
@param filter the content item filter | [
"Apply",
"modifications",
"to",
"a",
"content",
"task",
"definition",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/runner/PatchingTasks.java#L165-L184 |
158,845 | wildfly/wildfly-core | controller/src/main/java/org/jboss/as/controller/ServiceRemoveStepHandler.java | ServiceRemoveStepHandler.serviceName | protected ServiceName serviceName(final String name) {
return baseServiceName != null ? baseServiceName.append(name) : null;
} | java | protected ServiceName serviceName(final String name) {
return baseServiceName != null ? baseServiceName.append(name) : null;
} | [
"protected",
"ServiceName",
"serviceName",
"(",
"final",
"String",
"name",
")",
"{",
"return",
"baseServiceName",
"!=",
"null",
"?",
"baseServiceName",
".",
"append",
"(",
"name",
")",
":",
"null",
";",
"}"
] | The service name to be removed. Can be overridden for unusual service naming patterns
@param name The name of the resource being removed
@return The service name to remove. May return {@code null} if only removal based on {@code unavailableCapabilities}
passed to the constructor are to be performed | [
"The",
"service",
"name",
"to",
"be",
"removed",
".",
"Can",
"be",
"overridden",
"for",
"unusual",
"service",
"naming",
"patterns"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/ServiceRemoveStepHandler.java#L152-L154 |
158,846 | wildfly/wildfly-core | cli/src/main/java/org/jboss/as/cli/handlers/ModuleNameTabCompleter.java | ModuleNameTabCompleter.subModuleExists | private boolean subModuleExists(File dir) {
if (isSlotDirectory(dir)) {
return true;
} else {
File[] children = dir.listFiles(File::isDirectory);
for (File child : children) {
if (subModuleExists(child)) {
return true;
... | java | private boolean subModuleExists(File dir) {
if (isSlotDirectory(dir)) {
return true;
} else {
File[] children = dir.listFiles(File::isDirectory);
for (File child : children) {
if (subModuleExists(child)) {
return true;
... | [
"private",
"boolean",
"subModuleExists",
"(",
"File",
"dir",
")",
"{",
"if",
"(",
"isSlotDirectory",
"(",
"dir",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"{",
"File",
"[",
"]",
"children",
"=",
"dir",
".",
"listFiles",
"(",
"File",
"::",
"i... | depth- first search for any module - just to check that the suggestion has any chance of delivering correct result | [
"depth",
"-",
"first",
"search",
"for",
"any",
"module",
"-",
"just",
"to",
"check",
"that",
"the",
"suggestion",
"has",
"any",
"chance",
"of",
"delivering",
"correct",
"result"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/handlers/ModuleNameTabCompleter.java#L169-L182 |
158,847 | wildfly/wildfly-core | cli/src/main/java/org/jboss/as/cli/handlers/ModuleNameTabCompleter.java | ModuleNameTabCompleter.tail | private String tail(String moduleName) {
if (moduleName.indexOf(MODULE_NAME_SEPARATOR) > 0) {
return moduleName.substring(moduleName.indexOf(MODULE_NAME_SEPARATOR) + 1);
} else {
return "";
}
} | java | private String tail(String moduleName) {
if (moduleName.indexOf(MODULE_NAME_SEPARATOR) > 0) {
return moduleName.substring(moduleName.indexOf(MODULE_NAME_SEPARATOR) + 1);
} else {
return "";
}
} | [
"private",
"String",
"tail",
"(",
"String",
"moduleName",
")",
"{",
"if",
"(",
"moduleName",
".",
"indexOf",
"(",
"MODULE_NAME_SEPARATOR",
")",
">",
"0",
")",
"{",
"return",
"moduleName",
".",
"substring",
"(",
"moduleName",
".",
"indexOf",
"(",
"MODULE_NAME... | get all parts of module name apart from first | [
"get",
"all",
"parts",
"of",
"module",
"name",
"apart",
"from",
"first"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/handlers/ModuleNameTabCompleter.java#L210-L216 |
158,848 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/mgmt/domain/HostControllerClient.java | HostControllerClient.resolveBootUpdates | void resolveBootUpdates(final ModelController controller, final ActiveOperation.CompletedCallback<ModelNode> callback) throws Exception {
connection.openConnection(controller, callback);
// Keep a reference to the the controller
this.controller = controller;
} | java | void resolveBootUpdates(final ModelController controller, final ActiveOperation.CompletedCallback<ModelNode> callback) throws Exception {
connection.openConnection(controller, callback);
// Keep a reference to the the controller
this.controller = controller;
} | [
"void",
"resolveBootUpdates",
"(",
"final",
"ModelController",
"controller",
",",
"final",
"ActiveOperation",
".",
"CompletedCallback",
"<",
"ModelNode",
">",
"callback",
")",
"throws",
"Exception",
"{",
"connection",
".",
"openConnection",
"(",
"controller",
",",
"... | Resolve the boot updates and register at the local HC.
@param controller the model controller
@param callback the completed callback
@throws Exception for any error | [
"Resolve",
"the",
"boot",
"updates",
"and",
"register",
"at",
"the",
"local",
"HC",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/mgmt/domain/HostControllerClient.java#L111-L115 |
158,849 | wildfly/wildfly-core | cli/src/main/java/org/jboss/as/cli/impl/VaultConfig.java | VaultConfig.loadExternalFile | static VaultConfig loadExternalFile(File f) throws XMLStreamException {
if(f == null) {
throw new IllegalArgumentException("File is null");
}
if(!f.exists()) {
throw new XMLStreamException("Failed to locate vault file " + f.getAbsolutePath());
}
final Vau... | java | static VaultConfig loadExternalFile(File f) throws XMLStreamException {
if(f == null) {
throw new IllegalArgumentException("File is null");
}
if(!f.exists()) {
throw new XMLStreamException("Failed to locate vault file " + f.getAbsolutePath());
}
final Vau... | [
"static",
"VaultConfig",
"loadExternalFile",
"(",
"File",
"f",
")",
"throws",
"XMLStreamException",
"{",
"if",
"(",
"f",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"File is null\"",
")",
";",
"}",
"if",
"(",
"!",
"f",
".",
"... | In the 2.0 xsd the vault is in an external file, which has no namespace, using the output of the vault tool.
@param f the file containing the external vault configuration as generated by the vault tool
@return the vault config | [
"In",
"the",
"2",
".",
"0",
"xsd",
"the",
"vault",
"is",
"in",
"an",
"external",
"file",
"which",
"has",
"no",
"namespace",
"using",
"the",
"output",
"of",
"the",
"vault",
"tool",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/impl/VaultConfig.java#L68-L95 |
158,850 | wildfly/wildfly-core | cli/src/main/java/org/jboss/as/cli/impl/VaultConfig.java | VaultConfig.readVaultElement_3_0 | static VaultConfig readVaultElement_3_0(XMLExtendedStreamReader reader, Namespace expectedNs) throws XMLStreamException {
final VaultConfig config = new VaultConfig();
final int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
final String value = reader.getAttr... | java | static VaultConfig readVaultElement_3_0(XMLExtendedStreamReader reader, Namespace expectedNs) throws XMLStreamException {
final VaultConfig config = new VaultConfig();
final int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
final String value = reader.getAttr... | [
"static",
"VaultConfig",
"readVaultElement_3_0",
"(",
"XMLExtendedStreamReader",
"reader",
",",
"Namespace",
"expectedNs",
")",
"throws",
"XMLStreamException",
"{",
"final",
"VaultConfig",
"config",
"=",
"new",
"VaultConfig",
"(",
")",
";",
"final",
"int",
"count",
... | In the 3.0 xsd the vault configuration and its options are part of the vault xsd.
@param reader the reader at the vault element
@param expectedNs the namespace
@return the vault configuration | [
"In",
"the",
"3",
".",
"0",
"xsd",
"the",
"vault",
"configuration",
"and",
"its",
"options",
"are",
"part",
"of",
"the",
"vault",
"xsd",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/impl/VaultConfig.java#L104-L125 |
158,851 | wildfly/wildfly-core | controller/src/main/java/org/jboss/as/controller/transform/RejectExpressionValuesTransformer.java | RejectExpressionValuesTransformer.checkModel | private Set<String> checkModel(final ModelNode model, TransformationContext context) throws OperationFailedException {
final Set<String> attributes = new HashSet<String>();
AttributeTransformationRequirementChecker checker;
for (final String attribute : attributeNames) {
if (model.ha... | java | private Set<String> checkModel(final ModelNode model, TransformationContext context) throws OperationFailedException {
final Set<String> attributes = new HashSet<String>();
AttributeTransformationRequirementChecker checker;
for (final String attribute : attributeNames) {
if (model.ha... | [
"private",
"Set",
"<",
"String",
">",
"checkModel",
"(",
"final",
"ModelNode",
"model",
",",
"TransformationContext",
"context",
")",
"throws",
"OperationFailedException",
"{",
"final",
"Set",
"<",
"String",
">",
"attributes",
"=",
"new",
"HashSet",
"<",
"String... | Check the model for expression values.
@param model the model
@return the attribute containing an expression | [
"Check",
"the",
"model",
"for",
"expression",
"values",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/transform/RejectExpressionValuesTransformer.java#L173-L188 |
158,852 | wildfly/wildfly-core | cli/src/main/java/org/jboss/as/cli/gui/OperationDialog.java | OperationDialog.setValue | public void setValue(String propName, Object value) {
for (RequestProp prop : props) {
if (prop.getName().equals(propName)) {
JComponent valComp = prop.getValueComponent();
if (valComp instanceof JTextComponent) {
((JTextComponent)valComp).setText(... | java | public void setValue(String propName, Object value) {
for (RequestProp prop : props) {
if (prop.getName().equals(propName)) {
JComponent valComp = prop.getValueComponent();
if (valComp instanceof JTextComponent) {
((JTextComponent)valComp).setText(... | [
"public",
"void",
"setValue",
"(",
"String",
"propName",
",",
"Object",
"value",
")",
"{",
"for",
"(",
"RequestProp",
"prop",
":",
"props",
")",
"{",
"if",
"(",
"prop",
".",
"getName",
"(",
")",
".",
"equals",
"(",
"propName",
")",
")",
"{",
"JCompon... | Set the value of the underlying component. Note that this will
not work for ListEditor components. Also, note that for a JComboBox,
The value object must have the same identity as an object in the drop-down.
@param propName The DMR property name to set.
@param value The value. | [
"Set",
"the",
"value",
"of",
"the",
"underlying",
"component",
".",
"Note",
"that",
"this",
"will",
"not",
"work",
"for",
"ListEditor",
"components",
".",
"Also",
"note",
"that",
"for",
"a",
"JComboBox",
"The",
"value",
"object",
"must",
"have",
"the",
"sa... | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/gui/OperationDialog.java#L120-L136 |
158,853 | wildfly/wildfly-core | elytron/src/main/java/org/wildfly/extension/elytron/SecurityPropertiesWriteHandler.java | SecurityPropertiesWriteHandler.doDifference | static void doDifference(
Map<String, String> left,
Map<String, String> right,
Map<String, String> onlyOnLeft,
Map<String, String> onlyOnRight,
Map<String, String> updated
) {
onlyOnRight.clear();
onlyOnRight.putAll(right);
for (Map... | java | static void doDifference(
Map<String, String> left,
Map<String, String> right,
Map<String, String> onlyOnLeft,
Map<String, String> onlyOnRight,
Map<String, String> updated
) {
onlyOnRight.clear();
onlyOnRight.putAll(right);
for (Map... | [
"static",
"void",
"doDifference",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"left",
",",
"Map",
"<",
"String",
",",
"String",
">",
"right",
",",
"Map",
"<",
"String",
",",
"String",
">",
"onlyOnLeft",
",",
"Map",
"<",
"String",
",",
"String",
">... | calculate the difference of the two maps, so we know what was added, removed & updated
@param left
@param right
@param onlyOnLeft
@param onlyOnRight
@param updated | [
"calculate",
"the",
"difference",
"of",
"the",
"two",
"maps",
"so",
"we",
"know",
"what",
"was",
"added",
"removed",
"&",
"updated"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/elytron/src/main/java/org/wildfly/extension/elytron/SecurityPropertiesWriteHandler.java#L109-L130 |
158,854 | wildfly/wildfly-core | network/src/main/java/org/jboss/as/network/OutboundSocketBinding.java | OutboundSocketBinding.close | public void close() throws IOException {
final ManagedBinding binding = this.socketBindingManager.getNamedRegistry().getManagedBinding(this.name);
if (binding == null) {
return;
}
binding.close();
} | java | public void close() throws IOException {
final ManagedBinding binding = this.socketBindingManager.getNamedRegistry().getManagedBinding(this.name);
if (binding == null) {
return;
}
binding.close();
} | [
"public",
"void",
"close",
"(",
")",
"throws",
"IOException",
"{",
"final",
"ManagedBinding",
"binding",
"=",
"this",
".",
"socketBindingManager",
".",
"getNamedRegistry",
"(",
")",
".",
"getManagedBinding",
"(",
"this",
".",
"name",
")",
";",
"if",
"(",
"bi... | Closes the outbound socket binding connection.
@throws IOException | [
"Closes",
"the",
"outbound",
"socket",
"binding",
"connection",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/network/src/main/java/org/jboss/as/network/OutboundSocketBinding.java#L247-L253 |
158,855 | wildfly/wildfly-core | logging/src/main/java/org/jboss/as/logging/Logging.java | Logging.requiresReload | public static boolean requiresReload(final Set<Flag> flags) {
return flags.contains(Flag.RESTART_ALL_SERVICES) || flags.contains(Flag.RESTART_RESOURCE_SERVICES);
} | java | public static boolean requiresReload(final Set<Flag> flags) {
return flags.contains(Flag.RESTART_ALL_SERVICES) || flags.contains(Flag.RESTART_RESOURCE_SERVICES);
} | [
"public",
"static",
"boolean",
"requiresReload",
"(",
"final",
"Set",
"<",
"Flag",
">",
"flags",
")",
"{",
"return",
"flags",
".",
"contains",
"(",
"Flag",
".",
"RESTART_ALL_SERVICES",
")",
"||",
"flags",
".",
"contains",
"(",
"Flag",
".",
"RESTART_RESOURCE_... | Checks to see within the flags if a reload, i.e. not a full restart, is required.
@param flags the flags to check
@return {@code true} if a reload is required, otherwise {@code false} | [
"Checks",
"to",
"see",
"within",
"the",
"flags",
"if",
"a",
"reload",
"i",
".",
"e",
".",
"not",
"a",
"full",
"restart",
"is",
"required",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/logging/src/main/java/org/jboss/as/logging/Logging.java#L61-L63 |
158,856 | wildfly/wildfly-core | patching/src/main/java/org/jboss/as/patching/installation/InstalledIdentityImpl.java | InstalledIdentityImpl.updateState | @Override
protected void updateState(final String name, final InstallationModificationImpl modification, final InstallationModificationImpl.InstallationState state) {
final PatchableTarget.TargetInfo identityInfo = modification.getModifiedState();
this.identity = new Identity() {
@Overri... | java | @Override
protected void updateState(final String name, final InstallationModificationImpl modification, final InstallationModificationImpl.InstallationState state) {
final PatchableTarget.TargetInfo identityInfo = modification.getModifiedState();
this.identity = new Identity() {
@Overri... | [
"@",
"Override",
"protected",
"void",
"updateState",
"(",
"final",
"String",
"name",
",",
"final",
"InstallationModificationImpl",
"modification",
",",
"final",
"InstallationModificationImpl",
".",
"InstallationState",
"state",
")",
"{",
"final",
"PatchableTarget",
".",... | Update the installed identity using the modified state from the modification.
@param name the identity name
@param modification the modification
@param state the installation state
@return the installed identity | [
"Update",
"the",
"installed",
"identity",
"using",
"the",
"modified",
"state",
"from",
"the",
"modification",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/installation/InstalledIdentityImpl.java#L115-L153 |
158,857 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/deploymentoverlay/AffectedDeploymentOverlay.java | AffectedDeploymentOverlay.listAllLinks | public static Set<String> listAllLinks(OperationContext context, String overlay) {
Set<String> serverGoupNames = listServerGroupsReferencingOverlay(context.readResourceFromRoot(PathAddress.EMPTY_ADDRESS), overlay);
Set<String> links = new HashSet<>();
for (String serverGoupName : serverGoupNames... | java | public static Set<String> listAllLinks(OperationContext context, String overlay) {
Set<String> serverGoupNames = listServerGroupsReferencingOverlay(context.readResourceFromRoot(PathAddress.EMPTY_ADDRESS), overlay);
Set<String> links = new HashSet<>();
for (String serverGoupName : serverGoupNames... | [
"public",
"static",
"Set",
"<",
"String",
">",
"listAllLinks",
"(",
"OperationContext",
"context",
",",
"String",
"overlay",
")",
"{",
"Set",
"<",
"String",
">",
"serverGoupNames",
"=",
"listServerGroupsReferencingOverlay",
"(",
"context",
".",
"readResourceFromRoot... | Returns all the deployment runtime names associated with an overlay accross all server groups.
@param context the current OperationContext.
@param overlay the name of the overlay.
@return all the deployment runtime names associated with an overlay accross all server groups. | [
"Returns",
"all",
"the",
"deployment",
"runtime",
"names",
"associated",
"with",
"an",
"overlay",
"accross",
"all",
"server",
"groups",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deploymentoverlay/AffectedDeploymentOverlay.java#L73-L82 |
158,858 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/deploymentoverlay/AffectedDeploymentOverlay.java | AffectedDeploymentOverlay.listLinks | public static Set<String> listLinks(OperationContext context, PathAddress overlayAddress) {
Resource overlayResource = context.readResourceFromRoot(overlayAddress);
if (overlayResource.hasChildren(DEPLOYMENT)) {
return overlayResource.getChildrenNames(DEPLOYMENT);
}
return Co... | java | public static Set<String> listLinks(OperationContext context, PathAddress overlayAddress) {
Resource overlayResource = context.readResourceFromRoot(overlayAddress);
if (overlayResource.hasChildren(DEPLOYMENT)) {
return overlayResource.getChildrenNames(DEPLOYMENT);
}
return Co... | [
"public",
"static",
"Set",
"<",
"String",
">",
"listLinks",
"(",
"OperationContext",
"context",
",",
"PathAddress",
"overlayAddress",
")",
"{",
"Resource",
"overlayResource",
"=",
"context",
".",
"readResourceFromRoot",
"(",
"overlayAddress",
")",
";",
"if",
"(",
... | Returns all the deployment runtime names associated with an overlay.
@param context the current OperationContext.
@param overlayAddress the address for the averlay.
@return all the deployment runtime names associated with an overlay. | [
"Returns",
"all",
"the",
"deployment",
"runtime",
"names",
"associated",
"with",
"an",
"overlay",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deploymentoverlay/AffectedDeploymentOverlay.java#L91-L97 |
158,859 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/deploymentoverlay/AffectedDeploymentOverlay.java | AffectedDeploymentOverlay.redeployDeployments | public static void redeployDeployments(OperationContext context, PathAddress deploymentsRootAddress, Set<String> deploymentNames) throws OperationFailedException {
for (String deploymentName : deploymentNames) {
PathAddress address = deploymentsRootAddress.append(DEPLOYMENT, deploymentName);
... | java | public static void redeployDeployments(OperationContext context, PathAddress deploymentsRootAddress, Set<String> deploymentNames) throws OperationFailedException {
for (String deploymentName : deploymentNames) {
PathAddress address = deploymentsRootAddress.append(DEPLOYMENT, deploymentName);
... | [
"public",
"static",
"void",
"redeployDeployments",
"(",
"OperationContext",
"context",
",",
"PathAddress",
"deploymentsRootAddress",
",",
"Set",
"<",
"String",
">",
"deploymentNames",
")",
"throws",
"OperationFailedException",
"{",
"for",
"(",
"String",
"deploymentName"... | We are adding a redeploy operation step for each specified deployment runtime name.
@param context
@param deploymentsRootAddress
@param deploymentNames
@throws OperationFailedException | [
"We",
"are",
"adding",
"a",
"redeploy",
"operation",
"step",
"for",
"each",
"specified",
"deployment",
"runtime",
"name",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deploymentoverlay/AffectedDeploymentOverlay.java#L128-L138 |
158,860 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/deploymentoverlay/AffectedDeploymentOverlay.java | AffectedDeploymentOverlay.redeployLinksAndTransformOperation | public static void redeployLinksAndTransformOperation(OperationContext context, ModelNode removeOperation, PathAddress deploymentsRootAddress, Set<String> runtimeNames) throws OperationFailedException {
Set<String> deploymentNames = listDeployments(context.readResourceFromRoot(deploymentsRootAddress), runtimeNa... | java | public static void redeployLinksAndTransformOperation(OperationContext context, ModelNode removeOperation, PathAddress deploymentsRootAddress, Set<String> runtimeNames) throws OperationFailedException {
Set<String> deploymentNames = listDeployments(context.readResourceFromRoot(deploymentsRootAddress), runtimeNa... | [
"public",
"static",
"void",
"redeployLinksAndTransformOperation",
"(",
"OperationContext",
"context",
",",
"ModelNode",
"removeOperation",
",",
"PathAddress",
"deploymentsRootAddress",
",",
"Set",
"<",
"String",
">",
"runtimeNames",
")",
"throws",
"OperationFailedException"... | It will look for all the deployments under the deploymentsRootAddress with a runtimeName in the specified list of
runtime names and then transform the operation so that every server having those deployments will redeploy the
affected deployments.
@see #transformOperation
@param removeOperation
@param context
@param de... | [
"It",
"will",
"look",
"for",
"all",
"the",
"deployments",
"under",
"the",
"deploymentsRootAddress",
"with",
"a",
"runtimeName",
"in",
"the",
"specified",
"list",
"of",
"runtime",
"names",
"and",
"then",
"transform",
"the",
"operation",
"so",
"that",
"every",
"... | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deploymentoverlay/AffectedDeploymentOverlay.java#L196-L216 |
158,861 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/deploymentoverlay/AffectedDeploymentOverlay.java | AffectedDeploymentOverlay.listDeployments | public static Set<String> listDeployments(Resource deploymentRootResource, Set<String> runtimeNames) {
Set<Pattern> set = new HashSet<>();
for (String wildcardExpr : runtimeNames) {
Pattern pattern = DeploymentOverlayIndex.getPattern(wildcardExpr);
set.add(pattern);
... | java | public static Set<String> listDeployments(Resource deploymentRootResource, Set<String> runtimeNames) {
Set<Pattern> set = new HashSet<>();
for (String wildcardExpr : runtimeNames) {
Pattern pattern = DeploymentOverlayIndex.getPattern(wildcardExpr);
set.add(pattern);
... | [
"public",
"static",
"Set",
"<",
"String",
">",
"listDeployments",
"(",
"Resource",
"deploymentRootResource",
",",
"Set",
"<",
"String",
">",
"runtimeNames",
")",
"{",
"Set",
"<",
"Pattern",
">",
"set",
"=",
"new",
"HashSet",
"<>",
"(",
")",
";",
"for",
"... | Returns the deployment names with the specified runtime names at the specified deploymentRootAddress.
@param deploymentRootResource
@param runtimeNames
@return the deployment names with the specified runtime names at the specified deploymentRootAddress. | [
"Returns",
"the",
"deployment",
"names",
"with",
"the",
"specified",
"runtime",
"names",
"at",
"the",
"specified",
"deploymentRootAddress",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deploymentoverlay/AffectedDeploymentOverlay.java#L225-L232 |
158,862 | wildfly/wildfly-core | cli/src/main/java/org/jboss/as/cli/impl/CommandExecutor.java | CommandExecutor.execute | public void execute(CommandHandler handler,
int timeout,
TimeUnit unit) throws
CommandLineException,
InterruptedException, ExecutionException, TimeoutException {
ExecutableBuilder builder = new ExecutableBuilder() {
CommandContext c = newTimeoutCommand... | java | public void execute(CommandHandler handler,
int timeout,
TimeUnit unit) throws
CommandLineException,
InterruptedException, ExecutionException, TimeoutException {
ExecutableBuilder builder = new ExecutableBuilder() {
CommandContext c = newTimeoutCommand... | [
"public",
"void",
"execute",
"(",
"CommandHandler",
"handler",
",",
"int",
"timeout",
",",
"TimeUnit",
"unit",
")",
"throws",
"CommandLineException",
",",
"InterruptedException",
",",
"ExecutionException",
",",
"TimeoutException",
"{",
"ExecutableBuilder",
"builder",
... | public for testing purpose | [
"public",
"for",
"testing",
"purpose"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/impl/CommandExecutor.java#L675-L695 |
158,863 | wildfly/wildfly-core | cli/src/main/java/org/jboss/as/cli/impl/CommandExecutor.java | CommandExecutor.execute | void execute(ExecutableBuilder builder,
int timeout,
TimeUnit unit) throws
CommandLineException,
InterruptedException, ExecutionException, TimeoutException {
Future<Void> task = executorService.submit(() -> {
builder.build().execute();
retu... | java | void execute(ExecutableBuilder builder,
int timeout,
TimeUnit unit) throws
CommandLineException,
InterruptedException, ExecutionException, TimeoutException {
Future<Void> task = executorService.submit(() -> {
builder.build().execute();
retu... | [
"void",
"execute",
"(",
"ExecutableBuilder",
"builder",
",",
"int",
"timeout",
",",
"TimeUnit",
"unit",
")",
"throws",
"CommandLineException",
",",
"InterruptedException",
",",
"ExecutionException",
",",
"TimeoutException",
"{",
"Future",
"<",
"Void",
">",
"task",
... | The CommandContext can be retrieved thatnks to the ExecutableBuilder. | [
"The",
"CommandContext",
"can",
"be",
"retrieved",
"thatnks",
"to",
"the",
"ExecutableBuilder",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/impl/CommandExecutor.java#L702-L739 |
158,864 | wildfly/wildfly-core | cli/src/main/java/org/jboss/as/cli/impl/ArgumentWithValue.java | ArgumentWithValue.getOriginalValue | public String getOriginalValue(ParsedCommandLine parsedLine, boolean required) throws CommandFormatException {
String value = null;
if(parsedLine.hasProperties()) {
if(index >= 0) {
List<String> others = parsedLine.getOtherProperties();
if(others.size() > inde... | java | public String getOriginalValue(ParsedCommandLine parsedLine, boolean required) throws CommandFormatException {
String value = null;
if(parsedLine.hasProperties()) {
if(index >= 0) {
List<String> others = parsedLine.getOtherProperties();
if(others.size() > inde... | [
"public",
"String",
"getOriginalValue",
"(",
"ParsedCommandLine",
"parsedLine",
",",
"boolean",
"required",
")",
"throws",
"CommandFormatException",
"{",
"String",
"value",
"=",
"null",
";",
"if",
"(",
"parsedLine",
".",
"hasProperties",
"(",
")",
")",
"{",
"if"... | Returns value as it appeared on the command line with escape sequences
and system properties not resolved. The variables, though, are resolved
during the initial parsing of the command line.
@param parsedLine parsed command line
@param required whether the argument is required
@return argument value as it appears o... | [
"Returns",
"value",
"as",
"it",
"appeared",
"on",
"the",
"command",
"line",
"with",
"escape",
"sequences",
"and",
"system",
"properties",
"not",
"resolved",
".",
"The",
"variables",
"though",
"are",
"resolved",
"during",
"the",
"initial",
"parsing",
"of",
"the... | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/impl/ArgumentWithValue.java#L159-L183 |
158,865 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/SystemExiter.java | SystemExiter.logBeforeExit | public static void logBeforeExit(ExitLogger logger) {
try {
if (logged.compareAndSet(false, true)) {
logger.logExit();
}
} catch (Throwable ignored){
// ignored
}
} | java | public static void logBeforeExit(ExitLogger logger) {
try {
if (logged.compareAndSet(false, true)) {
logger.logExit();
}
} catch (Throwable ignored){
// ignored
}
} | [
"public",
"static",
"void",
"logBeforeExit",
"(",
"ExitLogger",
"logger",
")",
"{",
"try",
"{",
"if",
"(",
"logged",
".",
"compareAndSet",
"(",
"false",
",",
"true",
")",
")",
"{",
"logger",
".",
"logExit",
"(",
")",
";",
"}",
"}",
"catch",
"(",
"Thr... | Invokes the exit logger if and only if no ExitLogger was previously invoked.
@param logger the logger. Cannot be {@code null} | [
"Invokes",
"the",
"exit",
"logger",
"if",
"and",
"only",
"if",
"no",
"ExitLogger",
"was",
"previously",
"invoked",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/SystemExiter.java#L81-L89 |
158,866 | wildfly/wildfly-core | cli/src/main/java/org/jboss/as/cli/handlers/DeploymentOverlayHandler.java | DeploymentOverlayHandler.getName | private String getName(CommandContext ctx, boolean failInBatch) throws CommandLineException {
final ParsedCommandLine args = ctx.getParsedCommandLine();
final String name = this.name.getValue(args, true);
if (name == null) {
throw new CommandFormatException(this.name + " is missing v... | java | private String getName(CommandContext ctx, boolean failInBatch) throws CommandLineException {
final ParsedCommandLine args = ctx.getParsedCommandLine();
final String name = this.name.getValue(args, true);
if (name == null) {
throw new CommandFormatException(this.name + " is missing v... | [
"private",
"String",
"getName",
"(",
"CommandContext",
"ctx",
",",
"boolean",
"failInBatch",
")",
"throws",
"CommandLineException",
"{",
"final",
"ParsedCommandLine",
"args",
"=",
"ctx",
".",
"getParsedCommandLine",
"(",
")",
";",
"final",
"String",
"name",
"=",
... | Validate that the overlay exists. If it doesn't exist, throws an
exception if not in batch mode or if failInBatch is true. In batch mode,
we could be in the case that the overlay doesn't exist yet. | [
"Validate",
"that",
"the",
"overlay",
"exists",
".",
"If",
"it",
"doesn",
"t",
"exist",
"throws",
"an",
"exception",
"if",
"not",
"in",
"batch",
"mode",
"or",
"if",
"failInBatch",
"is",
"true",
".",
"In",
"batch",
"mode",
"we",
"could",
"be",
"in",
"th... | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/handlers/DeploymentOverlayHandler.java#L545-L557 |
158,867 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/moduleservice/ServiceModuleLoader.java | ServiceModuleLoader.moduleSpecServiceName | public static ServiceName moduleSpecServiceName(ModuleIdentifier identifier) {
if (!isDynamicModule(identifier)) {
throw ServerLogger.ROOT_LOGGER.missingModulePrefix(identifier, MODULE_PREFIX);
}
return MODULE_SPEC_SERVICE_PREFIX.append(identifier.getName()).append(identifier.getSlot... | java | public static ServiceName moduleSpecServiceName(ModuleIdentifier identifier) {
if (!isDynamicModule(identifier)) {
throw ServerLogger.ROOT_LOGGER.missingModulePrefix(identifier, MODULE_PREFIX);
}
return MODULE_SPEC_SERVICE_PREFIX.append(identifier.getName()).append(identifier.getSlot... | [
"public",
"static",
"ServiceName",
"moduleSpecServiceName",
"(",
"ModuleIdentifier",
"identifier",
")",
"{",
"if",
"(",
"!",
"isDynamicModule",
"(",
"identifier",
")",
")",
"{",
"throw",
"ServerLogger",
".",
"ROOT_LOGGER",
".",
"missingModulePrefix",
"(",
"identifie... | Returns the corresponding ModuleSpec service name for the given module.
@param identifier The module identifier
@return The service name of the ModuleSpec service | [
"Returns",
"the",
"corresponding",
"ModuleSpec",
"service",
"name",
"for",
"the",
"given",
"module",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/moduleservice/ServiceModuleLoader.java#L214-L219 |
158,868 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/moduleservice/ServiceModuleLoader.java | ServiceModuleLoader.moduleResolvedServiceName | public static ServiceName moduleResolvedServiceName(ModuleIdentifier identifier) {
if (!isDynamicModule(identifier)) {
throw ServerLogger.ROOT_LOGGER.missingModulePrefix(identifier, MODULE_PREFIX);
}
return MODULE_RESOLVED_SERVICE_PREFIX.append(identifier.getName()).append(identifier... | java | public static ServiceName moduleResolvedServiceName(ModuleIdentifier identifier) {
if (!isDynamicModule(identifier)) {
throw ServerLogger.ROOT_LOGGER.missingModulePrefix(identifier, MODULE_PREFIX);
}
return MODULE_RESOLVED_SERVICE_PREFIX.append(identifier.getName()).append(identifier... | [
"public",
"static",
"ServiceName",
"moduleResolvedServiceName",
"(",
"ModuleIdentifier",
"identifier",
")",
"{",
"if",
"(",
"!",
"isDynamicModule",
"(",
"identifier",
")",
")",
"{",
"throw",
"ServerLogger",
".",
"ROOT_LOGGER",
".",
"missingModulePrefix",
"(",
"ident... | Returns the corresponding module resolved service name for the given module.
The module resolved service is basically a latch that prevents the module from being loaded
until all the transitive dependencies that it depends upon have have their module spec services
come up.
@param identifier The module identifier
@ret... | [
"Returns",
"the",
"corresponding",
"module",
"resolved",
"service",
"name",
"for",
"the",
"given",
"module",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/moduleservice/ServiceModuleLoader.java#L238-L243 |
158,869 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/moduleservice/ServiceModuleLoader.java | ServiceModuleLoader.moduleServiceName | public static ServiceName moduleServiceName(ModuleIdentifier identifier) {
if (!identifier.getName().startsWith(MODULE_PREFIX)) {
throw ServerLogger.ROOT_LOGGER.missingModulePrefix(identifier, MODULE_PREFIX);
}
return MODULE_SERVICE_PREFIX.append(identifier.getName()).append(identifi... | java | public static ServiceName moduleServiceName(ModuleIdentifier identifier) {
if (!identifier.getName().startsWith(MODULE_PREFIX)) {
throw ServerLogger.ROOT_LOGGER.missingModulePrefix(identifier, MODULE_PREFIX);
}
return MODULE_SERVICE_PREFIX.append(identifier.getName()).append(identifi... | [
"public",
"static",
"ServiceName",
"moduleServiceName",
"(",
"ModuleIdentifier",
"identifier",
")",
"{",
"if",
"(",
"!",
"identifier",
".",
"getName",
"(",
")",
".",
"startsWith",
"(",
"MODULE_PREFIX",
")",
")",
"{",
"throw",
"ServerLogger",
".",
"ROOT_LOGGER",
... | Returns the corresponding ModuleLoadService service name for the given module.
@param identifier The module identifier
@return The service name of the ModuleLoadService service | [
"Returns",
"the",
"corresponding",
"ModuleLoadService",
"service",
"name",
"for",
"the",
"given",
"module",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/moduleservice/ServiceModuleLoader.java#L258-L263 |
158,870 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/deployment/service/ServiceActivatorProcessor.java | ServiceActivatorProcessor.deploy | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ServicesAttachment servicesAttachment = deploymentUnit.getAttachment(Attachments.SERVICES);
if (servicesAttachment == n... | java | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ServicesAttachment servicesAttachment = deploymentUnit.getAttachment(Attachments.SERVICES);
if (servicesAttachment == n... | [
"public",
"void",
"deploy",
"(",
"DeploymentPhaseContext",
"phaseContext",
")",
"throws",
"DeploymentUnitProcessingException",
"{",
"final",
"DeploymentUnit",
"deploymentUnit",
"=",
"phaseContext",
".",
"getDeploymentUnit",
"(",
")",
";",
"final",
"ServicesAttachment",
"s... | If the deployment has a module attached it will ask the module to load the ServiceActivator services.
@param phaseContext the deployment unit context | [
"If",
"the",
"deployment",
"has",
"a",
"module",
"attached",
"it",
"will",
"ask",
"the",
"module",
"to",
"load",
"the",
"ServiceActivator",
"services",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deployment/service/ServiceActivatorProcessor.java#L53-L102 |
158,871 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/mgmt/domain/HostControllerConnection.java | HostControllerConnection.openConnection | synchronized void openConnection(final ModelController controller, final ActiveOperation.CompletedCallback<ModelNode> callback) throws Exception {
boolean ok = false;
final Connection connection = connectionManager.connect();
try {
channelHandler.executeRequest(new ServerRegisterRequ... | java | synchronized void openConnection(final ModelController controller, final ActiveOperation.CompletedCallback<ModelNode> callback) throws Exception {
boolean ok = false;
final Connection connection = connectionManager.connect();
try {
channelHandler.executeRequest(new ServerRegisterRequ... | [
"synchronized",
"void",
"openConnection",
"(",
"final",
"ModelController",
"controller",
",",
"final",
"ActiveOperation",
".",
"CompletedCallback",
"<",
"ModelNode",
">",
"callback",
")",
"throws",
"Exception",
"{",
"boolean",
"ok",
"=",
"false",
";",
"final",
"Co... | Connect to the HC and retrieve the current model updates.
@param controller the server controller
@param callback the operation completed callback
@throws IOException for any error | [
"Connect",
"to",
"the",
"HC",
"and",
"retrieve",
"the",
"current",
"model",
"updates",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/mgmt/domain/HostControllerConnection.java#L126-L141 |
158,872 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/mgmt/domain/HostControllerConnection.java | HostControllerConnection.asyncReconnect | synchronized void asyncReconnect(final URI reconnectUri, String authKey, final ReconnectCallback callback) {
if (getState() != State.OPEN) {
return;
}
// Update the configuration with the new credentials
final ProtocolConnectionConfiguration config = ProtocolConnectionConfigu... | java | synchronized void asyncReconnect(final URI reconnectUri, String authKey, final ReconnectCallback callback) {
if (getState() != State.OPEN) {
return;
}
// Update the configuration with the new credentials
final ProtocolConnectionConfiguration config = ProtocolConnectionConfigu... | [
"synchronized",
"void",
"asyncReconnect",
"(",
"final",
"URI",
"reconnectUri",
",",
"String",
"authKey",
",",
"final",
"ReconnectCallback",
"callback",
")",
"{",
"if",
"(",
"getState",
"(",
")",
"!=",
"State",
".",
"OPEN",
")",
"{",
"return",
";",
"}",
"//... | This continuously tries to reconnect in a separate thread and will only stop if the connection was established
successfully or the server gets shutdown. If there is currently a reconnect task active the connection paramaters
and callback will get updated.
@param reconnectUri the updated connection uri
@param authKe... | [
"This",
"continuously",
"tries",
"to",
"reconnect",
"in",
"a",
"separate",
"thread",
"and",
"will",
"only",
"stop",
"if",
"the",
"connection",
"was",
"established",
"successfully",
"or",
"the",
"server",
"gets",
"shutdown",
".",
"If",
"there",
"is",
"currently... | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/mgmt/domain/HostControllerConnection.java#L152-L170 |
158,873 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/mgmt/domain/HostControllerConnection.java | HostControllerConnection.doReConnect | synchronized boolean doReConnect() throws IOException {
// In case we are still connected, test the connection and see if we can reuse it
if(connectionManager.isConnected()) {
try {
final Future<Long> result = channelHandler.executeRequest(ManagementPingRequest.INSTANCE, nul... | java | synchronized boolean doReConnect() throws IOException {
// In case we are still connected, test the connection and see if we can reuse it
if(connectionManager.isConnected()) {
try {
final Future<Long> result = channelHandler.executeRequest(ManagementPingRequest.INSTANCE, nul... | [
"synchronized",
"boolean",
"doReConnect",
"(",
")",
"throws",
"IOException",
"{",
"// In case we are still connected, test the connection and see if we can reuse it",
"if",
"(",
"connectionManager",
".",
"isConnected",
"(",
")",
")",
"{",
"try",
"{",
"final",
"Future",
"<... | Reconnect to the HC.
@return whether the server is still in sync
@throws IOException | [
"Reconnect",
"to",
"the",
"HC",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/mgmt/domain/HostControllerConnection.java#L178-L222 |
158,874 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/mgmt/domain/HostControllerConnection.java | HostControllerConnection.started | synchronized void started() {
try {
if(isConnected()) {
channelHandler.executeRequest(new ServerStartedRequest(), null).getResult().await();
}
} catch (Exception e) {
ServerLogger.AS_ROOT_LOGGER.debugf(e, "failed to send started notification");
... | java | synchronized void started() {
try {
if(isConnected()) {
channelHandler.executeRequest(new ServerStartedRequest(), null).getResult().await();
}
} catch (Exception e) {
ServerLogger.AS_ROOT_LOGGER.debugf(e, "failed to send started notification");
... | [
"synchronized",
"void",
"started",
"(",
")",
"{",
"try",
"{",
"if",
"(",
"isConnected",
"(",
")",
")",
"{",
"channelHandler",
".",
"executeRequest",
"(",
"new",
"ServerStartedRequest",
"(",
")",
",",
"null",
")",
".",
"getResult",
"(",
")",
".",
"await",... | Send the started notification | [
"Send",
"the",
"started",
"notification"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/mgmt/domain/HostControllerConnection.java#L227-L235 |
158,875 | wildfly/wildfly-core | host-controller/src/main/java/org/jboss/as/domain/controller/plan/ServerTaskExecutor.java | ServerTaskExecutor.executeTask | public int executeTask(final TransactionalProtocolClient.TransactionalOperationListener<ServerOperation> listener, final ServerUpdateTask task) {
try {
return execute(listener, task.getServerIdentity(), task.getOperation());
} catch (OperationFailedException e) {
// Handle failur... | java | public int executeTask(final TransactionalProtocolClient.TransactionalOperationListener<ServerOperation> listener, final ServerUpdateTask task) {
try {
return execute(listener, task.getServerIdentity(), task.getOperation());
} catch (OperationFailedException e) {
// Handle failur... | [
"public",
"int",
"executeTask",
"(",
"final",
"TransactionalProtocolClient",
".",
"TransactionalOperationListener",
"<",
"ServerOperation",
">",
"listener",
",",
"final",
"ServerUpdateTask",
"task",
")",
"{",
"try",
"{",
"return",
"execute",
"(",
"listener",
",",
"t... | Execute a server task.
@param listener the transactional server listener
@param task the server task
@return time to wait in ms for a response from the server, or {@code -1} if the task execution failed locally | [
"Execute",
"a",
"server",
"task",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/domain/controller/plan/ServerTaskExecutor.java#L81-L94 |
158,876 | wildfly/wildfly-core | host-controller/src/main/java/org/jboss/as/domain/controller/plan/ServerTaskExecutor.java | ServerTaskExecutor.executeOperation | protected boolean executeOperation(final TransactionalProtocolClient.TransactionalOperationListener<ServerOperation> listener, TransactionalProtocolClient client, final ServerIdentity identity, final ModelNode operation, final OperationResultTransformer transformer) {
if(client == null) {
return fal... | java | protected boolean executeOperation(final TransactionalProtocolClient.TransactionalOperationListener<ServerOperation> listener, TransactionalProtocolClient client, final ServerIdentity identity, final ModelNode operation, final OperationResultTransformer transformer) {
if(client == null) {
return fal... | [
"protected",
"boolean",
"executeOperation",
"(",
"final",
"TransactionalProtocolClient",
".",
"TransactionalOperationListener",
"<",
"ServerOperation",
">",
"listener",
",",
"TransactionalProtocolClient",
"client",
",",
"final",
"ServerIdentity",
"identity",
",",
"final",
"... | Execute the operation.
@param listener the transactional operation listener
@param client the transactional protocol client
@param identity the server identity
@param operation the operation
@param transformer the operation result transformer
@return whether the operation was executed | [
"Execute",
"the",
"operation",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/domain/controller/plan/ServerTaskExecutor.java#L113-L130 |
158,877 | wildfly/wildfly-core | host-controller/src/main/java/org/jboss/as/domain/controller/plan/ServerTaskExecutor.java | ServerTaskExecutor.recordPreparedOperation | void recordPreparedOperation(final TransactionalProtocolClient.PreparedOperation<ServerTaskExecutor.ServerOperation> preparedOperation) {
recordPreparedTask(new ServerTaskExecutor.ServerPreparedResponse(preparedOperation));
} | java | void recordPreparedOperation(final TransactionalProtocolClient.PreparedOperation<ServerTaskExecutor.ServerOperation> preparedOperation) {
recordPreparedTask(new ServerTaskExecutor.ServerPreparedResponse(preparedOperation));
} | [
"void",
"recordPreparedOperation",
"(",
"final",
"TransactionalProtocolClient",
".",
"PreparedOperation",
"<",
"ServerTaskExecutor",
".",
"ServerOperation",
">",
"preparedOperation",
")",
"{",
"recordPreparedTask",
"(",
"new",
"ServerTaskExecutor",
".",
"ServerPreparedRespons... | Record a prepare operation.
@param preparedOperation the prepared operation | [
"Record",
"a",
"prepare",
"operation",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/domain/controller/plan/ServerTaskExecutor.java#L148-L150 |
158,878 | wildfly/wildfly-core | host-controller/src/main/java/org/jboss/as/domain/controller/plan/ServerTaskExecutor.java | ServerTaskExecutor.recordOperationPrepareTimeout | void recordOperationPrepareTimeout(final BlockingQueueOperationListener.FailedOperation<ServerOperation> failedOperation) {
recordPreparedTask(new ServerTaskExecutor.ServerPreparedResponse(failedOperation));
// Swap out the submitted task so we don't wait for the final result. Use a future the returns
... | java | void recordOperationPrepareTimeout(final BlockingQueueOperationListener.FailedOperation<ServerOperation> failedOperation) {
recordPreparedTask(new ServerTaskExecutor.ServerPreparedResponse(failedOperation));
// Swap out the submitted task so we don't wait for the final result. Use a future the returns
... | [
"void",
"recordOperationPrepareTimeout",
"(",
"final",
"BlockingQueueOperationListener",
".",
"FailedOperation",
"<",
"ServerOperation",
">",
"failedOperation",
")",
"{",
"recordPreparedTask",
"(",
"new",
"ServerTaskExecutor",
".",
"ServerPreparedResponse",
"(",
"failedOperat... | Record a prepare operation timeout.
@param failedOperation the prepared operation | [
"Record",
"a",
"prepare",
"operation",
"timeout",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/domain/controller/plan/ServerTaskExecutor.java#L157-L166 |
158,879 | wildfly/wildfly-core | patching/src/main/java/org/jboss/as/patching/installation/InstallationManagerService.java | InstallationManagerService.installService | public static ServiceController<InstallationManager> installService(ServiceTarget serviceTarget) {
final InstallationManagerService service = new InstallationManagerService();
return serviceTarget.addService(InstallationManagerService.NAME, service)
.addDependency(JBOSS_PRODUCT_CONFIG_SE... | java | public static ServiceController<InstallationManager> installService(ServiceTarget serviceTarget) {
final InstallationManagerService service = new InstallationManagerService();
return serviceTarget.addService(InstallationManagerService.NAME, service)
.addDependency(JBOSS_PRODUCT_CONFIG_SE... | [
"public",
"static",
"ServiceController",
"<",
"InstallationManager",
">",
"installService",
"(",
"ServiceTarget",
"serviceTarget",
")",
"{",
"final",
"InstallationManagerService",
"service",
"=",
"new",
"InstallationManagerService",
"(",
")",
";",
"return",
"serviceTarget... | Install the installation manager service.
@param serviceTarget
@return the service controller for the installed installation manager | [
"Install",
"the",
"installation",
"manager",
"service",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/patching/src/main/java/org/jboss/as/patching/installation/InstallationManagerService.java#L48-L54 |
158,880 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/deployment/reflect/ClassReflectionIndex.java | ClassReflectionIndex.getMethod | public Method getMethod(Method method) {
return getMethod(method.getReturnType(), method.getName(), method.getParameterTypes());
} | java | public Method getMethod(Method method) {
return getMethod(method.getReturnType(), method.getName(), method.getParameterTypes());
} | [
"public",
"Method",
"getMethod",
"(",
"Method",
"method",
")",
"{",
"return",
"getMethod",
"(",
"method",
".",
"getReturnType",
"(",
")",
",",
"method",
".",
"getName",
"(",
")",
",",
"method",
".",
"getParameterTypes",
"(",
")",
")",
";",
"}"
] | Get the canonical method declared on this object.
@param method the method to look up
@return the canonical method object, or {@code null} if no matching method exists | [
"Get",
"the",
"canonical",
"method",
"declared",
"on",
"this",
"object",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deployment/reflect/ClassReflectionIndex.java#L223-L225 |
158,881 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/deployment/reflect/ClassReflectionIndex.java | ClassReflectionIndex.getAllMethods | public Collection<Method> getAllMethods(String name) {
final Map<ParamList, Map<Class<?>, Method>> nameMap = methods.get(name);
if (nameMap == null) {
return Collections.emptySet();
}
final Collection<Method> methods = new ArrayList<Method>();
for (Map<Class<?>, Metho... | java | public Collection<Method> getAllMethods(String name) {
final Map<ParamList, Map<Class<?>, Method>> nameMap = methods.get(name);
if (nameMap == null) {
return Collections.emptySet();
}
final Collection<Method> methods = new ArrayList<Method>();
for (Map<Class<?>, Metho... | [
"public",
"Collection",
"<",
"Method",
">",
"getAllMethods",
"(",
"String",
"name",
")",
"{",
"final",
"Map",
"<",
"ParamList",
",",
"Map",
"<",
"Class",
"<",
"?",
">",
",",
"Method",
">",
">",
"nameMap",
"=",
"methods",
".",
"get",
"(",
"name",
")",... | Get a collection of methods declared on this object by method name.
@param name the name of the method
@return the (possibly empty) collection of methods with the given name | [
"Get",
"a",
"collection",
"of",
"methods",
"declared",
"on",
"this",
"object",
"by",
"method",
"name",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deployment/reflect/ClassReflectionIndex.java#L309-L319 |
158,882 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/deployment/reflect/ClassReflectionIndex.java | ClassReflectionIndex.getAllMethods | public Collection<Method> getAllMethods(String name, int paramCount) {
final Map<ParamList, Map<Class<?>, Method>> nameMap = methods.get(name);
if (nameMap == null) {
return Collections.emptySet();
}
final Collection<Method> methods = new ArrayList<Method>();
for (Map... | java | public Collection<Method> getAllMethods(String name, int paramCount) {
final Map<ParamList, Map<Class<?>, Method>> nameMap = methods.get(name);
if (nameMap == null) {
return Collections.emptySet();
}
final Collection<Method> methods = new ArrayList<Method>();
for (Map... | [
"public",
"Collection",
"<",
"Method",
">",
"getAllMethods",
"(",
"String",
"name",
",",
"int",
"paramCount",
")",
"{",
"final",
"Map",
"<",
"ParamList",
",",
"Map",
"<",
"Class",
"<",
"?",
">",
",",
"Method",
">",
">",
"nameMap",
"=",
"methods",
".",
... | Get a collection of methods declared on this object by method name and parameter count.
@param name the name of the method
@param paramCount the number of parameters
@return the (possibly empty) collection of methods with the given name and parameter count | [
"Get",
"a",
"collection",
"of",
"methods",
"declared",
"on",
"this",
"object",
"by",
"method",
"name",
"and",
"parameter",
"count",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/deployment/reflect/ClassReflectionIndex.java#L328-L342 |
158,883 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/DomainServerCommunicationServices.java | DomainServerCommunicationServices.create | public static ServiceActivator create(final ModelNode endpointConfig, final URI managementURI, final String serverName, final String serverProcessName,
final String authKey, final boolean managementSubsystemEndpoint, final Supplier<SSLContext> sslContextSupplier) {
ret... | java | public static ServiceActivator create(final ModelNode endpointConfig, final URI managementURI, final String serverName, final String serverProcessName,
final String authKey, final boolean managementSubsystemEndpoint, final Supplier<SSLContext> sslContextSupplier) {
ret... | [
"public",
"static",
"ServiceActivator",
"create",
"(",
"final",
"ModelNode",
"endpointConfig",
",",
"final",
"URI",
"managementURI",
",",
"final",
"String",
"serverName",
",",
"final",
"String",
"serverProcessName",
",",
"final",
"String",
"authKey",
",",
"final",
... | Create a new service activator for the domain server communication services.
@param endpointConfig the endpoint configuration
@param managementURI the management connection URI
@param serverName the server name
@param serverProcessName the server process name
@param authKey the authentication key
@param managementSubs... | [
"Create",
"a",
"new",
"service",
"activator",
"for",
"the",
"domain",
"server",
"communication",
"services",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/DomainServerCommunicationServices.java#L127-L131 |
158,884 | wildfly/wildfly-core | network/src/main/java/org/jboss/as/network/SocketBinding.java | SocketBinding.getMulticastSocketAddress | public InetSocketAddress getMulticastSocketAddress() {
if (multicastAddress == null) {
throw MESSAGES.noMulticastBinding(name);
}
return new InetSocketAddress(multicastAddress, multicastPort);
} | java | public InetSocketAddress getMulticastSocketAddress() {
if (multicastAddress == null) {
throw MESSAGES.noMulticastBinding(name);
}
return new InetSocketAddress(multicastAddress, multicastPort);
} | [
"public",
"InetSocketAddress",
"getMulticastSocketAddress",
"(",
")",
"{",
"if",
"(",
"multicastAddress",
"==",
"null",
")",
"{",
"throw",
"MESSAGES",
".",
"noMulticastBinding",
"(",
"name",
")",
";",
"}",
"return",
"new",
"InetSocketAddress",
"(",
"multicastAddre... | Get the multicast socket address.
@return the multicast address | [
"Get",
"the",
"multicast",
"socket",
"address",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/network/src/main/java/org/jboss/as/network/SocketBinding.java#L139-L144 |
158,885 | wildfly/wildfly-core | network/src/main/java/org/jboss/as/network/SocketBinding.java | SocketBinding.createServerSocket | public ServerSocket createServerSocket() throws IOException {
final ServerSocket socket = getServerSocketFactory().createServerSocket(name);
socket.bind(getSocketAddress());
return socket;
} | java | public ServerSocket createServerSocket() throws IOException {
final ServerSocket socket = getServerSocketFactory().createServerSocket(name);
socket.bind(getSocketAddress());
return socket;
} | [
"public",
"ServerSocket",
"createServerSocket",
"(",
")",
"throws",
"IOException",
"{",
"final",
"ServerSocket",
"socket",
"=",
"getServerSocketFactory",
"(",
")",
".",
"createServerSocket",
"(",
"name",
")",
";",
"socket",
".",
"bind",
"(",
"getSocketAddress",
"(... | Create and bind a server socket
@return the server socket
@throws IOException | [
"Create",
"and",
"bind",
"a",
"server",
"socket"
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/network/src/main/java/org/jboss/as/network/SocketBinding.java#L152-L156 |
158,886 | wildfly/wildfly-core | logging/src/main/java/org/jboss/as/logging/deployments/resources/LoggingDeploymentResources.java | LoggingDeploymentResources.registerDeploymentResource | public static void registerDeploymentResource(final DeploymentResourceSupport deploymentResourceSupport, final LoggingConfigurationService service) {
final PathElement base = PathElement.pathElement("configuration", service.getConfiguration());
deploymentResourceSupport.getDeploymentSubModel(LoggingExte... | java | public static void registerDeploymentResource(final DeploymentResourceSupport deploymentResourceSupport, final LoggingConfigurationService service) {
final PathElement base = PathElement.pathElement("configuration", service.getConfiguration());
deploymentResourceSupport.getDeploymentSubModel(LoggingExte... | [
"public",
"static",
"void",
"registerDeploymentResource",
"(",
"final",
"DeploymentResourceSupport",
"deploymentResourceSupport",
",",
"final",
"LoggingConfigurationService",
"service",
")",
"{",
"final",
"PathElement",
"base",
"=",
"PathElement",
".",
"pathElement",
"(",
... | Registers the deployment resources needed.
@param deploymentResourceSupport the deployment resource support
@param service the service, which may be {@code null}, used to find the resource names that need to be registered | [
"Registers",
"the",
"deployment",
"resources",
"needed",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/logging/src/main/java/org/jboss/as/logging/deployments/resources/LoggingDeploymentResources.java#L110-L123 |
158,887 | wildfly/wildfly-core | domain-http/interface/src/main/java/org/jboss/as/domain/http/server/DomainUtil.java | DomainUtil.constructUrl | public static String constructUrl(final HttpServerExchange exchange, final String path) {
final HeaderMap headers = exchange.getRequestHeaders();
String host = headers.getFirst(HOST);
String protocol = exchange.getConnection().getSslSessionInfo() != null ? "https" : "http";
return proto... | java | public static String constructUrl(final HttpServerExchange exchange, final String path) {
final HeaderMap headers = exchange.getRequestHeaders();
String host = headers.getFirst(HOST);
String protocol = exchange.getConnection().getSslSessionInfo() != null ? "https" : "http";
return proto... | [
"public",
"static",
"String",
"constructUrl",
"(",
"final",
"HttpServerExchange",
"exchange",
",",
"final",
"String",
"path",
")",
"{",
"final",
"HeaderMap",
"headers",
"=",
"exchange",
".",
"getRequestHeaders",
"(",
")",
";",
"String",
"host",
"=",
"headers",
... | Based on the current request represented by the HttpExchange construct a complete URL for the supplied path.
@param exchange - The current HttpExchange
@param path - The path to include in the constructed URL
@return The constructed URL | [
"Based",
"on",
"the",
"current",
"request",
"represented",
"by",
"the",
"HttpExchange",
"construct",
"a",
"complete",
"URL",
"for",
"the",
"supplied",
"path",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/domain-http/interface/src/main/java/org/jboss/as/domain/http/server/DomainUtil.java#L205-L211 |
158,888 | wildfly/wildfly-core | controller/src/main/java/org/jboss/as/controller/PathElement.java | PathElement.matches | public boolean matches(Property property) {
return property.getName().equals(key) && (value == WILDCARD_VALUE || property.getValue().asString().equals(value));
} | java | public boolean matches(Property property) {
return property.getName().equals(key) && (value == WILDCARD_VALUE || property.getValue().asString().equals(value));
} | [
"public",
"boolean",
"matches",
"(",
"Property",
"property",
")",
"{",
"return",
"property",
".",
"getName",
"(",
")",
".",
"equals",
"(",
"key",
")",
"&&",
"(",
"value",
"==",
"WILDCARD_VALUE",
"||",
"property",
".",
"getValue",
"(",
")",
".",
"asString... | Determine whether the given property matches this element.
A property matches this element when property name and this key are equal,
values are equal or this element value is a wildcard.
@param property the property to check
@return {@code true} if the property matches | [
"Determine",
"whether",
"the",
"given",
"property",
"matches",
"this",
"element",
".",
"A",
"property",
"matches",
"this",
"element",
"when",
"property",
"name",
"and",
"this",
"key",
"are",
"equal",
"values",
"are",
"equal",
"or",
"this",
"element",
"value",
... | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/PathElement.java#L177-L179 |
158,889 | wildfly/wildfly-core | controller/src/main/java/org/jboss/as/controller/PathElement.java | PathElement.matches | public boolean matches(PathElement pe) {
return pe.key.equals(key) && (isWildcard() || pe.value.equals(value));
} | java | public boolean matches(PathElement pe) {
return pe.key.equals(key) && (isWildcard() || pe.value.equals(value));
} | [
"public",
"boolean",
"matches",
"(",
"PathElement",
"pe",
")",
"{",
"return",
"pe",
".",
"key",
".",
"equals",
"(",
"key",
")",
"&&",
"(",
"isWildcard",
"(",
")",
"||",
"pe",
".",
"value",
".",
"equals",
"(",
"value",
")",
")",
";",
"}"
] | Determine whether the given element matches this element.
An element matches this element when keys are equal, values are equal
or this element value is a wildcard.
@param pe the element to check
@return {@code true} if the element matches | [
"Determine",
"whether",
"the",
"given",
"element",
"matches",
"this",
"element",
".",
"An",
"element",
"matches",
"this",
"element",
"when",
"keys",
"are",
"equal",
"values",
"are",
"equal",
"or",
"this",
"element",
"value",
"is",
"a",
"wildcard",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/PathElement.java#L188-L190 |
158,890 | wildfly/wildfly-core | logging/src/main/java/org/jboss/as/logging/logmanager/Log4jAppenderHandler.java | Log4jAppenderHandler.setAppender | public void setAppender(final Appender appender) {
if (this.appender != null) {
close();
}
checkAccess(this);
if (applyLayout && appender != null) {
final Formatter formatter = getFormatter();
appender.setLayout(formatter == null ? null : new Formatter... | java | public void setAppender(final Appender appender) {
if (this.appender != null) {
close();
}
checkAccess(this);
if (applyLayout && appender != null) {
final Formatter formatter = getFormatter();
appender.setLayout(formatter == null ? null : new Formatter... | [
"public",
"void",
"setAppender",
"(",
"final",
"Appender",
"appender",
")",
"{",
"if",
"(",
"this",
".",
"appender",
"!=",
"null",
")",
"{",
"close",
"(",
")",
";",
"}",
"checkAccess",
"(",
"this",
")",
";",
"if",
"(",
"applyLayout",
"&&",
"appender",
... | Set the Log4j appender.
@param appender the log4j appender | [
"Set",
"the",
"Log4j",
"appender",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/logging/src/main/java/org/jboss/as/logging/logmanager/Log4jAppenderHandler.java#L114-L124 |
158,891 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/operations/AbstractInstallationReporter.java | AbstractInstallationReporter.createOSNode | private ModelNode createOSNode() throws OperationFailedException {
String osName = getProperty("os.name");
final ModelNode os = new ModelNode();
if (osName != null && osName.toLowerCase().contains("linux")) {
try {
os.set(GnuLinuxDistribution.discover());
... | java | private ModelNode createOSNode() throws OperationFailedException {
String osName = getProperty("os.name");
final ModelNode os = new ModelNode();
if (osName != null && osName.toLowerCase().contains("linux")) {
try {
os.set(GnuLinuxDistribution.discover());
... | [
"private",
"ModelNode",
"createOSNode",
"(",
")",
"throws",
"OperationFailedException",
"{",
"String",
"osName",
"=",
"getProperty",
"(",
"\"os.name\"",
")",
";",
"final",
"ModelNode",
"os",
"=",
"new",
"ModelNode",
"(",
")",
";",
"if",
"(",
"osName",
"!=",
... | Create a ModelNode representing the operating system the instance is running on.
@return a ModelNode representing the operating system the instance is running on.
@throws OperationFailedException | [
"Create",
"a",
"ModelNode",
"representing",
"the",
"operating",
"system",
"the",
"instance",
"is",
"running",
"on",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/operations/AbstractInstallationReporter.java#L87-L100 |
158,892 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/operations/AbstractInstallationReporter.java | AbstractInstallationReporter.createJVMNode | private ModelNode createJVMNode() throws OperationFailedException {
ModelNode jvm = new ModelNode().setEmptyObject();
jvm.get(NAME).set(getProperty("java.vm.name"));
jvm.get(JAVA_VERSION).set(getProperty("java.vm.specification.version"));
jvm.get(JVM_VERSION).set(getProperty("java.versio... | java | private ModelNode createJVMNode() throws OperationFailedException {
ModelNode jvm = new ModelNode().setEmptyObject();
jvm.get(NAME).set(getProperty("java.vm.name"));
jvm.get(JAVA_VERSION).set(getProperty("java.vm.specification.version"));
jvm.get(JVM_VERSION).set(getProperty("java.versio... | [
"private",
"ModelNode",
"createJVMNode",
"(",
")",
"throws",
"OperationFailedException",
"{",
"ModelNode",
"jvm",
"=",
"new",
"ModelNode",
"(",
")",
".",
"setEmptyObject",
"(",
")",
";",
"jvm",
".",
"get",
"(",
"NAME",
")",
".",
"set",
"(",
"getProperty",
... | Create a ModelNode representing the JVM the instance is running on.
@return a ModelNode representing the JVM the instance is running on.
@throws OperationFailedException | [
"Create",
"a",
"ModelNode",
"representing",
"the",
"JVM",
"the",
"instance",
"is",
"running",
"on",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/operations/AbstractInstallationReporter.java#L108-L116 |
158,893 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/operations/AbstractInstallationReporter.java | AbstractInstallationReporter.createCPUNode | private ModelNode createCPUNode() throws OperationFailedException {
ModelNode cpu = new ModelNode().setEmptyObject();
cpu.get(ARCH).set(getProperty("os.arch"));
cpu.get(AVAILABLE_PROCESSORS).set(ProcessorInfo.availableProcessors());
return cpu;
} | java | private ModelNode createCPUNode() throws OperationFailedException {
ModelNode cpu = new ModelNode().setEmptyObject();
cpu.get(ARCH).set(getProperty("os.arch"));
cpu.get(AVAILABLE_PROCESSORS).set(ProcessorInfo.availableProcessors());
return cpu;
} | [
"private",
"ModelNode",
"createCPUNode",
"(",
")",
"throws",
"OperationFailedException",
"{",
"ModelNode",
"cpu",
"=",
"new",
"ModelNode",
"(",
")",
".",
"setEmptyObject",
"(",
")",
";",
"cpu",
".",
"get",
"(",
"ARCH",
")",
".",
"set",
"(",
"getProperty",
... | Create a ModelNode representing the CPU the instance is running on.
@return a ModelNode representing the CPU the instance is running on.
@throws OperationFailedException | [
"Create",
"a",
"ModelNode",
"representing",
"the",
"CPU",
"the",
"instance",
"is",
"running",
"on",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/operations/AbstractInstallationReporter.java#L124-L129 |
158,894 | wildfly/wildfly-core | server/src/main/java/org/jboss/as/server/operations/AbstractInstallationReporter.java | AbstractInstallationReporter.getProperty | private String getProperty(String name) {
return System.getSecurityManager() == null ? System.getProperty(name) : doPrivileged(new ReadPropertyAction(name));
} | java | private String getProperty(String name) {
return System.getSecurityManager() == null ? System.getProperty(name) : doPrivileged(new ReadPropertyAction(name));
} | [
"private",
"String",
"getProperty",
"(",
"String",
"name",
")",
"{",
"return",
"System",
".",
"getSecurityManager",
"(",
")",
"==",
"null",
"?",
"System",
".",
"getProperty",
"(",
"name",
")",
":",
"doPrivileged",
"(",
"new",
"ReadPropertyAction",
"(",
"name... | Get a System property by its name.
@param name the name of the wanted System property.
@return the System property value - null if it is not defined. | [
"Get",
"a",
"System",
"property",
"by",
"its",
"name",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/server/src/main/java/org/jboss/as/server/operations/AbstractInstallationReporter.java#L201-L203 |
158,895 | wildfly/wildfly-core | cli/src/main/java/org/jboss/as/cli/gui/ManagementModelNode.java | ManagementModelNode.explore | public void explore() {
if (isLeaf) return;
if (isGeneric) return;
removeAllChildren();
try {
String addressPath = addressPath();
ModelNode resourceDesc = executor.doCommand(addressPath + ":read-resource-description");
resourceDesc = resourceDesc.get(... | java | public void explore() {
if (isLeaf) return;
if (isGeneric) return;
removeAllChildren();
try {
String addressPath = addressPath();
ModelNode resourceDesc = executor.doCommand(addressPath + ":read-resource-description");
resourceDesc = resourceDesc.get(... | [
"public",
"void",
"explore",
"(",
")",
"{",
"if",
"(",
"isLeaf",
")",
"return",
";",
"if",
"(",
"isGeneric",
")",
"return",
";",
"removeAllChildren",
"(",
")",
";",
"try",
"{",
"String",
"addressPath",
"=",
"addressPath",
"(",
")",
";",
"ModelNode",
"r... | Refresh children using read-resource operation. | [
"Refresh",
"children",
"using",
"read",
"-",
"resource",
"operation",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/gui/ManagementModelNode.java#L73-L107 |
158,896 | wildfly/wildfly-core | cli/src/main/java/org/jboss/as/cli/gui/ManagementModelNode.java | ManagementModelNode.addressPath | public String addressPath() {
if (isLeaf) {
ManagementModelNode parent = (ManagementModelNode)getParent();
return parent.addressPath();
}
StringBuilder builder = new StringBuilder();
for (Object pathElement : getUserObjectPath()) {
UserObject userObj ... | java | public String addressPath() {
if (isLeaf) {
ManagementModelNode parent = (ManagementModelNode)getParent();
return parent.addressPath();
}
StringBuilder builder = new StringBuilder();
for (Object pathElement : getUserObjectPath()) {
UserObject userObj ... | [
"public",
"String",
"addressPath",
"(",
")",
"{",
"if",
"(",
"isLeaf",
")",
"{",
"ManagementModelNode",
"parent",
"=",
"(",
"ManagementModelNode",
")",
"getParent",
"(",
")",
";",
"return",
"parent",
".",
"addressPath",
"(",
")",
";",
"}",
"StringBuilder",
... | Get the DMR path for this node. For leaves, the DMR path is the path of its parent.
@return The DMR path for this node. | [
"Get",
"the",
"DMR",
"path",
"for",
"this",
"node",
".",
"For",
"leaves",
"the",
"DMR",
"path",
"is",
"the",
"path",
"of",
"its",
"parent",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/cli/src/main/java/org/jboss/as/cli/gui/ManagementModelNode.java#L133-L154 |
158,897 | wildfly/wildfly-core | network/src/main/java/org/jboss/as/network/NetworkUtils.java | NetworkUtils.mayBeIPv6Address | private static boolean mayBeIPv6Address(String input) {
if (input == null) {
return false;
}
boolean result = false;
int colonsCounter = 0;
int length = input.length();
for (int i = 0; i < length; i++) {
char c = input.charAt(i);
if (c... | java | private static boolean mayBeIPv6Address(String input) {
if (input == null) {
return false;
}
boolean result = false;
int colonsCounter = 0;
int length = input.length();
for (int i = 0; i < length; i++) {
char c = input.charAt(i);
if (c... | [
"private",
"static",
"boolean",
"mayBeIPv6Address",
"(",
"String",
"input",
")",
"{",
"if",
"(",
"input",
"==",
"null",
")",
"{",
"return",
"false",
";",
"}",
"boolean",
"result",
"=",
"false",
";",
"int",
"colonsCounter",
"=",
"0",
";",
"int",
"length",... | Heuristic check if string might be an IPv6 address.
@param input Any string or null
@return true, if input string contains only hex digits and at least two colons, before '.' or '%' character. | [
"Heuristic",
"check",
"if",
"string",
"might",
"be",
"an",
"IPv6",
"address",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/network/src/main/java/org/jboss/as/network/NetworkUtils.java#L253-L278 |
158,898 | wildfly/wildfly-core | host-controller/src/main/java/org/jboss/as/domain/controller/transformers/DomainTransformers.java | DomainTransformers.initializeDomainRegistry | public static void initializeDomainRegistry(final TransformerRegistry registry) {
//The chains for transforming will be as follows
//For JBoss EAP: 8.0.0 -> 5.0.0 -> 4.0.0 -> 1.8.0 -> 1.7.0 -> 1.6.0 -> 1.5.0
registerRootTransformers(registry);
registerChainedManagementTransformers(regi... | java | public static void initializeDomainRegistry(final TransformerRegistry registry) {
//The chains for transforming will be as follows
//For JBoss EAP: 8.0.0 -> 5.0.0 -> 4.0.0 -> 1.8.0 -> 1.7.0 -> 1.6.0 -> 1.5.0
registerRootTransformers(registry);
registerChainedManagementTransformers(regi... | [
"public",
"static",
"void",
"initializeDomainRegistry",
"(",
"final",
"TransformerRegistry",
"registry",
")",
"{",
"//The chains for transforming will be as follows",
"//For JBoss EAP: 8.0.0 -> 5.0.0 -> 4.0.0 -> 1.8.0 -> 1.7.0 -> 1.6.0 -> 1.5.0",
"registerRootTransformers",
"(",
"registr... | Initialize the domain registry.
@param registry the domain registry | [
"Initialize",
"the",
"domain",
"registry",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/host-controller/src/main/java/org/jboss/as/domain/controller/transformers/DomainTransformers.java#L77-L88 |
158,899 | wildfly/wildfly-core | process-controller/src/main/java/org/jboss/as/process/ProcessUtils.java | ProcessUtils.killProcess | static boolean killProcess(final String processName, int id) {
int pid;
try {
pid = processUtils.resolveProcessId(processName, id);
if(pid > 0) {
try {
Runtime.getRuntime().exec(processUtils.getKillCommand(pid));
return true... | java | static boolean killProcess(final String processName, int id) {
int pid;
try {
pid = processUtils.resolveProcessId(processName, id);
if(pid > 0) {
try {
Runtime.getRuntime().exec(processUtils.getKillCommand(pid));
return true... | [
"static",
"boolean",
"killProcess",
"(",
"final",
"String",
"processName",
",",
"int",
"id",
")",
"{",
"int",
"pid",
";",
"try",
"{",
"pid",
"=",
"processUtils",
".",
"resolveProcessId",
"(",
"processName",
",",
"id",
")",
";",
"if",
"(",
"pid",
">",
"... | Try to kill a given process.
@param processName the process name
@param id the process integer id, or {@code -1} if this is not relevant
@return {@code true} if the command succeeded, {@code false} otherwise | [
"Try",
"to",
"kill",
"a",
"given",
"process",
"."
] | cfaf0479dcbb2d320a44c5374b93b944ec39fade | https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/process-controller/src/main/java/org/jboss/as/process/ProcessUtils.java#L38-L54 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.