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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
58,400 | bmwcarit/joynr | java/messaging/messaging-service/src/main/java/io/joynr/messaging/service/MessagingServiceRestAdapter.java | MessagingServiceRestAdapter.postMessage | @POST
@Produces({ MediaType.APPLICATION_OCTET_STREAM })
public Response postMessage(@PathParam("ccid") String ccid, byte[] serializedMessage) {
ImmutableMessage message;
try {
message = new ImmutableMessage(serializedMessage);
} catch (EncodingException | UnsuppportedVersion... | java | @POST
@Produces({ MediaType.APPLICATION_OCTET_STREAM })
public Response postMessage(@PathParam("ccid") String ccid, byte[] serializedMessage) {
ImmutableMessage message;
try {
message = new ImmutableMessage(serializedMessage);
} catch (EncodingException | UnsuppportedVersion... | [
"@",
"POST",
"@",
"Produces",
"(",
"{",
"MediaType",
".",
"APPLICATION_OCTET_STREAM",
"}",
")",
"public",
"Response",
"postMessage",
"(",
"@",
"PathParam",
"(",
"\"ccid\"",
")",
"String",
"ccid",
",",
"byte",
"[",
"]",
"serializedMessage",
")",
"{",
"Immutab... | Send a message.
@param ccid
channel id of the receiver.
@param message
the content being sent (serialized SMRF message).
@return a location for querying the message status | [
"Send",
"a",
"message",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/messaging-service/src/main/java/io/joynr/messaging/service/MessagingServiceRestAdapter.java#L91-L169 |
58,401 | bmwcarit/joynr | java/core/libjoynr/src/main/java/io/joynr/arbitration/ArbitratorFactory.java | ArbitratorFactory.create | public static Arbitrator create(final Set<String> domains,
final String interfaceName,
final Version interfaceVersion,
final DiscoveryQos discoveryQos,
DiscoveryAsync localDisc... | java | public static Arbitrator create(final Set<String> domains,
final String interfaceName,
final Version interfaceVersion,
final DiscoveryQos discoveryQos,
DiscoveryAsync localDisc... | [
"public",
"static",
"Arbitrator",
"create",
"(",
"final",
"Set",
"<",
"String",
">",
"domains",
",",
"final",
"String",
"interfaceName",
",",
"final",
"Version",
"interfaceVersion",
",",
"final",
"DiscoveryQos",
"discoveryQos",
",",
"DiscoveryAsync",
"localDiscovery... | Creates an arbitrator defined by the arbitrationStrategy set in the discoveryQos.
@param domains
Set of domains of the provider.
@param interfaceName
Provided interface.
@param interfaceVersion
the Version of the interface being looked for.
@param discoveryQos
Arbitration settings like arbitration strategy, timeout an... | [
"Creates",
"an",
"arbitrator",
"defined",
"by",
"the",
"arbitrationStrategy",
"set",
"in",
"the",
"discoveryQos",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/core/libjoynr/src/main/java/io/joynr/arbitration/ArbitratorFactory.java#L79-L114 |
58,402 | bmwcarit/joynr | java/messaging/messaging-common/src/main/java/io/joynr/runtime/PropertyLoader.java | PropertyLoader.loadProperties | public static Properties loadProperties(String fileName) {
LowerCaseProperties properties = new LowerCaseProperties();
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
URL url = classLoader.getResource(fileName);
// try opening from classpath
if (url != ... | java | public static Properties loadProperties(String fileName) {
LowerCaseProperties properties = new LowerCaseProperties();
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
URL url = classLoader.getResource(fileName);
// try opening from classpath
if (url != ... | [
"public",
"static",
"Properties",
"loadProperties",
"(",
"String",
"fileName",
")",
"{",
"LowerCaseProperties",
"properties",
"=",
"new",
"LowerCaseProperties",
"(",
")",
";",
"ClassLoader",
"classLoader",
"=",
"Thread",
".",
"currentThread",
"(",
")",
".",
"getCo... | load properties from file
@param fileName The filename of the file in which the properties are stored
@return The loaded properties. | [
"load",
"properties",
"from",
"file"
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/messaging-common/src/main/java/io/joynr/runtime/PropertyLoader.java#L79-L109 |
58,403 | bmwcarit/joynr | java/messaging/bounceproxy-controller-service/src/main/java/io/joynr/messaging/service/MonitoringServiceRestAdapter.java | MonitoringServiceRestAdapter.getBounceProxies | @GET
@Produces({ MediaType.APPLICATION_JSON })
public GenericEntity<List<BounceProxyStatusInformation>> getBounceProxies() {
return new GenericEntity<List<BounceProxyStatusInformation>>(monitoringService.getRegisteredBounceProxies()) {
};
} | java | @GET
@Produces({ MediaType.APPLICATION_JSON })
public GenericEntity<List<BounceProxyStatusInformation>> getBounceProxies() {
return new GenericEntity<List<BounceProxyStatusInformation>>(monitoringService.getRegisteredBounceProxies()) {
};
} | [
"@",
"GET",
"@",
"Produces",
"(",
"{",
"MediaType",
".",
"APPLICATION_JSON",
"}",
")",
"public",
"GenericEntity",
"<",
"List",
"<",
"BounceProxyStatusInformation",
">",
">",
"getBounceProxies",
"(",
")",
"{",
"return",
"new",
"GenericEntity",
"<",
"List",
"<",... | Returns a list of bounce proxies that are registered with the bounceproxy
controller.
@return a list of bounce proxies that are registered with the bounceproxy
controller | [
"Returns",
"a",
"list",
"of",
"bounce",
"proxies",
"that",
"are",
"registered",
"with",
"the",
"bounceproxy",
"controller",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/bounceproxy-controller-service/src/main/java/io/joynr/messaging/service/MonitoringServiceRestAdapter.java#L70-L75 |
58,404 | bmwcarit/joynr | java/messaging/bounceproxy/bounceproxy-controller/src/main/java/io/joynr/messaging/bounceproxy/controller/RemoteBounceProxyFacade.java | RemoteBounceProxyFacade.createChannel | public URI createChannel(ControlledBounceProxyInformation bpInfo,
String ccid,
String trackingId) throws JoynrProtocolException {
try {
// Try to create a channel on a bounce proxy with maximum number of
// retries.
r... | java | public URI createChannel(ControlledBounceProxyInformation bpInfo,
String ccid,
String trackingId) throws JoynrProtocolException {
try {
// Try to create a channel on a bounce proxy with maximum number of
// retries.
r... | [
"public",
"URI",
"createChannel",
"(",
"ControlledBounceProxyInformation",
"bpInfo",
",",
"String",
"ccid",
",",
"String",
"trackingId",
")",
"throws",
"JoynrProtocolException",
"{",
"try",
"{",
"// Try to create a channel on a bounce proxy with maximum number of",
"// retries.... | Creates a channel on the remote bounce proxy.
@param bpInfo information for a bounce proxy, including the cluster the
bounce proxy is running on
@param ccid the channel id
@param trackingId the tracking id
@return URI representing the channel
@throws JoynrProtocolException
if the bounce proxy rejects channel creation | [
"Creates",
"a",
"channel",
"on",
"the",
"remote",
"bounce",
"proxy",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/bounceproxy/bounceproxy-controller/src/main/java/io/joynr/messaging/bounceproxy/controller/RemoteBounceProxyFacade.java#L78-L98 |
58,405 | bmwcarit/joynr | java/messaging/bounceproxy/bounceproxy-controller/src/main/java/io/joynr/messaging/bounceproxy/controller/RemoteBounceProxyFacade.java | RemoteBounceProxyFacade.createChannelLoop | private URI createChannelLoop(ControlledBounceProxyInformation bpInfo,
String ccid,
String trackingId,
int retries) throws JoynrProtocolException {
while (retries > 0) {
retries--;
try ... | java | private URI createChannelLoop(ControlledBounceProxyInformation bpInfo,
String ccid,
String trackingId,
int retries) throws JoynrProtocolException {
while (retries > 0) {
retries--;
try ... | [
"private",
"URI",
"createChannelLoop",
"(",
"ControlledBounceProxyInformation",
"bpInfo",
",",
"String",
"ccid",
",",
"String",
"trackingId",
",",
"int",
"retries",
")",
"throws",
"JoynrProtocolException",
"{",
"while",
"(",
"retries",
">",
"0",
")",
"{",
"retries... | Starts a loop to send createChannel requests to a bounce proxy with a
maximum number of retries.
@param bpInfo
information about the bounce proxy to create the channel at
@param ccid
the channel ID for the channel to create
@param trackingId
a tracking ID necessary for long polling
@param retries
the maximum number of... | [
"Starts",
"a",
"loop",
"to",
"send",
"createChannel",
"requests",
"to",
"a",
"bounce",
"proxy",
"with",
"a",
"maximum",
"number",
"of",
"retries",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/bounceproxy/bounceproxy-controller/src/main/java/io/joynr/messaging/bounceproxy/controller/RemoteBounceProxyFacade.java#L117-L143 |
58,406 | bmwcarit/joynr | java/messaging/bounceproxy/controlled-bounceproxy/src/main/java/io/joynr/messaging/bounceproxy/monitoring/BounceProxyStartupReporter.java | BounceProxyStartupReporter.cancelReporting | public void cancelReporting() {
if (startupReportFuture != null) {
startupReportFuture.cancel(true);
}
if (execService != null) {
// interrupt reporting loop
execService.shutdownNow();
}
} | java | public void cancelReporting() {
if (startupReportFuture != null) {
startupReportFuture.cancel(true);
}
if (execService != null) {
// interrupt reporting loop
execService.shutdownNow();
}
} | [
"public",
"void",
"cancelReporting",
"(",
")",
"{",
"if",
"(",
"startupReportFuture",
"!=",
"null",
")",
"{",
"startupReportFuture",
".",
"cancel",
"(",
"true",
")",
";",
"}",
"if",
"(",
"execService",
"!=",
"null",
")",
"{",
"// interrupt reporting loop",
"... | Cancels startup reporting. | [
"Cancels",
"startup",
"reporting",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/bounceproxy/controlled-bounceproxy/src/main/java/io/joynr/messaging/bounceproxy/monitoring/BounceProxyStartupReporter.java#L183-L191 |
58,407 | bmwcarit/joynr | java/messaging/bounceproxy/controlled-bounceproxy/src/main/java/io/joynr/messaging/bounceproxy/monitoring/BounceProxyStartupReporter.java | BounceProxyStartupReporter.reportEventAsHttpRequest | private void reportEventAsHttpRequest() throws IOException {
final String url = bounceProxyControllerUrl.buildReportStartupUrl(controlledBounceProxyUrl);
logger.debug("Using monitoring service URL: {}", url);
HttpPut putReportStartup = new HttpPut(url.trim());
CloseableHttpResponse re... | java | private void reportEventAsHttpRequest() throws IOException {
final String url = bounceProxyControllerUrl.buildReportStartupUrl(controlledBounceProxyUrl);
logger.debug("Using monitoring service URL: {}", url);
HttpPut putReportStartup = new HttpPut(url.trim());
CloseableHttpResponse re... | [
"private",
"void",
"reportEventAsHttpRequest",
"(",
")",
"throws",
"IOException",
"{",
"final",
"String",
"url",
"=",
"bounceProxyControllerUrl",
".",
"buildReportStartupUrl",
"(",
"controlledBounceProxyUrl",
")",
";",
"logger",
".",
"debug",
"(",
"\"Using monitoring se... | Reports the lifecycle event to the monitoring service as HTTP request.
@throws IOException
if the connection with the bounce proxy controller could not
be established
@throws JoynrHttpException
if the bounce proxy responded that registering the bounce
proxy did not succeed | [
"Reports",
"the",
"lifecycle",
"event",
"to",
"the",
"monitoring",
"service",
"as",
"HTTP",
"request",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/bounceproxy/controlled-bounceproxy/src/main/java/io/joynr/messaging/bounceproxy/monitoring/BounceProxyStartupReporter.java#L252-L290 |
58,408 | bmwcarit/joynr | java/javaapi/src/main/java/joynr/OnChangeSubscriptionQos.java | OnChangeSubscriptionQos.setMinIntervalMsInternal | private OnChangeSubscriptionQos setMinIntervalMsInternal(final long minIntervalMs) {
if (minIntervalMs < MIN_MIN_INTERVAL_MS) {
this.minIntervalMs = MIN_MIN_INTERVAL_MS;
logger.warn("minIntervalMs < MIN_MIN_INTERVAL_MS. Using MIN_MIN_INTERVAL_MS: {}", MIN_MIN_INTERVAL_MS);
} else... | java | private OnChangeSubscriptionQos setMinIntervalMsInternal(final long minIntervalMs) {
if (minIntervalMs < MIN_MIN_INTERVAL_MS) {
this.minIntervalMs = MIN_MIN_INTERVAL_MS;
logger.warn("minIntervalMs < MIN_MIN_INTERVAL_MS. Using MIN_MIN_INTERVAL_MS: {}", MIN_MIN_INTERVAL_MS);
} else... | [
"private",
"OnChangeSubscriptionQos",
"setMinIntervalMsInternal",
"(",
"final",
"long",
"minIntervalMs",
")",
"{",
"if",
"(",
"minIntervalMs",
"<",
"MIN_MIN_INTERVAL_MS",
")",
"{",
"this",
".",
"minIntervalMs",
"=",
"MIN_MIN_INTERVAL_MS",
";",
"logger",
".",
"warn",
... | internal method required to prevent findbugs warning | [
"internal",
"method",
"required",
"to",
"prevent",
"findbugs",
"warning"
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/javaapi/src/main/java/joynr/OnChangeSubscriptionQos.java#L150-L162 |
58,409 | bmwcarit/joynr | java/backend-services/domain-access-controller/src/main/java/io/joynr/accesscontrol/global/GlobalDomainAccessControlListEditorProviderImpl.java | GlobalDomainAccessControlListEditorProviderImpl.hasRoleMaster | private boolean hasRoleMaster(String userId, String domain) {
DomainRoleEntry domainRole = domainAccessStore.getDomainRole(userId, Role.MASTER);
if (domainRole == null || !Arrays.asList(domainRole.getDomains()).contains(domain)) {
return false;
}
return true;
} | java | private boolean hasRoleMaster(String userId, String domain) {
DomainRoleEntry domainRole = domainAccessStore.getDomainRole(userId, Role.MASTER);
if (domainRole == null || !Arrays.asList(domainRole.getDomains()).contains(domain)) {
return false;
}
return true;
} | [
"private",
"boolean",
"hasRoleMaster",
"(",
"String",
"userId",
",",
"String",
"domain",
")",
"{",
"DomainRoleEntry",
"domainRole",
"=",
"domainAccessStore",
".",
"getDomainRole",
"(",
"userId",
",",
"Role",
".",
"MASTER",
")",
";",
"if",
"(",
"domainRole",
"=... | Indicates if the given user has master role for the given domain | [
"Indicates",
"if",
"the",
"given",
"user",
"has",
"master",
"role",
"for",
"the",
"given",
"domain"
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/backend-services/domain-access-controller/src/main/java/io/joynr/accesscontrol/global/GlobalDomainAccessControlListEditorProviderImpl.java#L86-L94 |
58,410 | bmwcarit/joynr | java/messaging/messaging-common/src/main/java/io/joynr/messaging/routing/MessageQueue.java | MessageQueue.put | public void put(DelayableImmutableMessage delayableImmutableMessage) {
if (messagePersister.persist(messageQueueId, delayableImmutableMessage)) {
logger.trace("Message {} was persisted for messageQueueId {}",
delayableImmutableMessage.getMessage(),
m... | java | public void put(DelayableImmutableMessage delayableImmutableMessage) {
if (messagePersister.persist(messageQueueId, delayableImmutableMessage)) {
logger.trace("Message {} was persisted for messageQueueId {}",
delayableImmutableMessage.getMessage(),
m... | [
"public",
"void",
"put",
"(",
"DelayableImmutableMessage",
"delayableImmutableMessage",
")",
"{",
"if",
"(",
"messagePersister",
".",
"persist",
"(",
"messageQueueId",
",",
"delayableImmutableMessage",
")",
")",
"{",
"logger",
".",
"trace",
"(",
"\"Message {} was pers... | Add the passed in message to the queue of messages to be processed.
Also offer the message for persisting.
@param delayableImmutableMessage the message to add. | [
"Add",
"the",
"passed",
"in",
"message",
"to",
"the",
"queue",
"of",
"messages",
"to",
"be",
"processed",
".",
"Also",
"offer",
"the",
"message",
"for",
"persisting",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/messaging-common/src/main/java/io/joynr/messaging/routing/MessageQueue.java#L159-L170 |
58,411 | bmwcarit/joynr | java/messaging/messaging-common/src/main/java/io/joynr/messaging/routing/MessageQueue.java | MessageQueue.poll | public DelayableImmutableMessage poll(long timeout, TimeUnit unit) throws InterruptedException {
DelayableImmutableMessage message = delayableImmutableMessages.poll(timeout, unit);
if (message != null) {
messagePersister.remove(messageQueueId, message);
}
return message;
... | java | public DelayableImmutableMessage poll(long timeout, TimeUnit unit) throws InterruptedException {
DelayableImmutableMessage message = delayableImmutableMessages.poll(timeout, unit);
if (message != null) {
messagePersister.remove(messageQueueId, message);
}
return message;
... | [
"public",
"DelayableImmutableMessage",
"poll",
"(",
"long",
"timeout",
",",
"TimeUnit",
"unit",
")",
"throws",
"InterruptedException",
"{",
"DelayableImmutableMessage",
"message",
"=",
"delayableImmutableMessages",
".",
"poll",
"(",
"timeout",
",",
"unit",
")",
";",
... | Polls the message queue for a period no longer than the timeout specified for a new message.
If a message is successfully obtained, before returning it, a message persister is called in order to remove
this message from the persistence (in case it was persisted at all).
@param timeout the maximum time to wait for a m... | [
"Polls",
"the",
"message",
"queue",
"for",
"a",
"period",
"no",
"longer",
"than",
"the",
"timeout",
"specified",
"for",
"a",
"new",
"message",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/messaging-common/src/main/java/io/joynr/messaging/routing/MessageQueue.java#L183-L189 |
58,412 | bmwcarit/joynr | java/messaging/bounceproxy/controlled-bounceproxy/src/main/java/io/joynr/messaging/bounceproxy/monitoring/BounceProxyPerformanceReporter.java | BounceProxyPerformanceReporter.startReporting | public void startReporting() {
if (executorService == null) {
throw new IllegalStateException("MonitoringServiceClient already shutdown");
}
if (scheduledFuture != null) {
logger.error("only one performance reporting thread can be started");
return;
... | java | public void startReporting() {
if (executorService == null) {
throw new IllegalStateException("MonitoringServiceClient already shutdown");
}
if (scheduledFuture != null) {
logger.error("only one performance reporting thread can be started");
return;
... | [
"public",
"void",
"startReporting",
"(",
")",
"{",
"if",
"(",
"executorService",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"MonitoringServiceClient already shutdown\"",
")",
";",
"}",
"if",
"(",
"scheduledFuture",
"!=",
"null",
")",
... | Starts a reporting loop that sends performance measures to the monitoring
service in a certain frequency. | [
"Starts",
"a",
"reporting",
"loop",
"that",
"sends",
"performance",
"measures",
"to",
"the",
"monitoring",
"service",
"in",
"a",
"certain",
"frequency",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/bounceproxy/controlled-bounceproxy/src/main/java/io/joynr/messaging/bounceproxy/monitoring/BounceProxyPerformanceReporter.java#L91-L127 |
58,413 | bmwcarit/joynr | java/messaging/bounceproxy/controlled-bounceproxy/src/main/java/io/joynr/messaging/bounceproxy/monitoring/BounceProxyPerformanceReporter.java | BounceProxyPerformanceReporter.sendPerformanceReportAsHttpRequest | private void sendPerformanceReportAsHttpRequest() throws IOException {
final String url = bounceProxyControllerUrl.buildReportPerformanceUrl();
logger.debug("Using monitoring service URL: {}", url);
Map<String, Integer> performanceMap = bounceProxyPerformanceMonitor.getAsKeyValuePairs();
... | java | private void sendPerformanceReportAsHttpRequest() throws IOException {
final String url = bounceProxyControllerUrl.buildReportPerformanceUrl();
logger.debug("Using monitoring service URL: {}", url);
Map<String, Integer> performanceMap = bounceProxyPerformanceMonitor.getAsKeyValuePairs();
... | [
"private",
"void",
"sendPerformanceReportAsHttpRequest",
"(",
")",
"throws",
"IOException",
"{",
"final",
"String",
"url",
"=",
"bounceProxyControllerUrl",
".",
"buildReportPerformanceUrl",
"(",
")",
";",
"logger",
".",
"debug",
"(",
"\"Using monitoring service URL: {}\""... | Sends an HTTP request to the monitoring service to report performance
measures of a bounce proxy instance.
@throws IOException | [
"Sends",
"an",
"HTTP",
"request",
"to",
"the",
"monitoring",
"service",
"to",
"report",
"performance",
"measures",
"of",
"a",
"bounce",
"proxy",
"instance",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/bounceproxy/controlled-bounceproxy/src/main/java/io/joynr/messaging/bounceproxy/monitoring/BounceProxyPerformanceReporter.java#L135-L165 |
58,414 | bmwcarit/joynr | java/messaging/bounceproxy/controlled-bounceproxy/src/main/java/io/joynr/messaging/bounceproxy/monitoring/BounceProxyPerformanceReporter.java | BounceProxyPerformanceReporter.stopReporting | public boolean stopReporting() {
// quit the bounce proxy heartbeat but let a possibly running request
// finish
if (scheduledFuture != null) {
return scheduledFuture.cancel(false);
}
executorService.shutdown();
executorService = null;
return false;
... | java | public boolean stopReporting() {
// quit the bounce proxy heartbeat but let a possibly running request
// finish
if (scheduledFuture != null) {
return scheduledFuture.cancel(false);
}
executorService.shutdown();
executorService = null;
return false;
... | [
"public",
"boolean",
"stopReporting",
"(",
")",
"{",
"// quit the bounce proxy heartbeat but let a possibly running request",
"// finish",
"if",
"(",
"scheduledFuture",
"!=",
"null",
")",
"{",
"return",
"scheduledFuture",
".",
"cancel",
"(",
"false",
")",
";",
"}",
"e... | Stops the performance reporting loop.
@return <code>false</code> if the reporing task could not be cancelled
(maybe because it has already completed normally),
<code>true</code> otherwise | [
"Stops",
"the",
"performance",
"reporting",
"loop",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/bounceproxy/controlled-bounceproxy/src/main/java/io/joynr/messaging/bounceproxy/monitoring/BounceProxyPerformanceReporter.java#L174-L185 |
58,415 | bmwcarit/joynr | java/messaging/messaging-common/src/main/java/io/joynr/arbitration/DiscoveryQos.java | DiscoveryQos.setArbitrationStrategy | public void setArbitrationStrategy(ArbitrationStrategy arbitrationStrategy) {
if (arbitrationStrategy.equals(ArbitrationStrategy.Custom)) {
throw new IllegalStateException("A Custom strategy can only be set by passing an arbitration strategy function to the DiscoveryQos constructor");
}
... | java | public void setArbitrationStrategy(ArbitrationStrategy arbitrationStrategy) {
if (arbitrationStrategy.equals(ArbitrationStrategy.Custom)) {
throw new IllegalStateException("A Custom strategy can only be set by passing an arbitration strategy function to the DiscoveryQos constructor");
}
... | [
"public",
"void",
"setArbitrationStrategy",
"(",
"ArbitrationStrategy",
"arbitrationStrategy",
")",
"{",
"if",
"(",
"arbitrationStrategy",
".",
"equals",
"(",
"ArbitrationStrategy",
".",
"Custom",
")",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"A Custo... | The discovery process outputs a list of matching providers. The arbitration strategy then chooses one or more of
them to be used by the proxy.
@param arbitrationStrategy
Defines the strategy used to choose the "best" provider. | [
"The",
"discovery",
"process",
"outputs",
"a",
"list",
"of",
"matching",
"providers",
".",
"The",
"arbitration",
"strategy",
"then",
"chooses",
"one",
"or",
"more",
"of",
"them",
"to",
"be",
"used",
"by",
"the",
"proxy",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/messaging/messaging-common/src/main/java/io/joynr/arbitration/DiscoveryQos.java#L187-L192 |
58,416 | bmwcarit/joynr | java/javaapi/src/main/java/io/joynr/proxy/Future.java | Future.onSuccess | public void onSuccess(T result) {
try {
statusLock.lock();
value = result;
status = new RequestStatus(RequestStatusCode.OK);
statusLockChangedCondition.signalAll();
} catch (Exception e) {
status = new RequestStatus(RequestStatusCode.ERROR);
... | java | public void onSuccess(T result) {
try {
statusLock.lock();
value = result;
status = new RequestStatus(RequestStatusCode.OK);
statusLockChangedCondition.signalAll();
} catch (Exception e) {
status = new RequestStatus(RequestStatusCode.ERROR);
... | [
"public",
"void",
"onSuccess",
"(",
"T",
"result",
")",
"{",
"try",
"{",
"statusLock",
".",
"lock",
"(",
")",
";",
"value",
"=",
"result",
";",
"status",
"=",
"new",
"RequestStatus",
"(",
"RequestStatusCode",
".",
"OK",
")",
";",
"statusLockChangedConditio... | Resolves the future using the given result
@param result
the result of the asynchronous call | [
"Resolves",
"the",
"future",
"using",
"the",
"given",
"result"
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/javaapi/src/main/java/io/joynr/proxy/Future.java#L118-L130 |
58,417 | bmwcarit/joynr | java/javaapi/src/main/java/io/joynr/proxy/Future.java | Future.onFailure | public void onFailure(JoynrException newException) {
exception = newException;
status = new RequestStatus(RequestStatusCode.ERROR);
try {
statusLock.lock();
statusLockChangedCondition.signalAll();
} finally {
statusLock.unlock();
}
} | java | public void onFailure(JoynrException newException) {
exception = newException;
status = new RequestStatus(RequestStatusCode.ERROR);
try {
statusLock.lock();
statusLockChangedCondition.signalAll();
} finally {
statusLock.unlock();
}
} | [
"public",
"void",
"onFailure",
"(",
"JoynrException",
"newException",
")",
"{",
"exception",
"=",
"newException",
";",
"status",
"=",
"new",
"RequestStatus",
"(",
"RequestStatusCode",
".",
"ERROR",
")",
";",
"try",
"{",
"statusLock",
".",
"lock",
"(",
")",
"... | Terminates the future in error
@param newException
that caused the failure | [
"Terminates",
"the",
"future",
"in",
"error"
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/javaapi/src/main/java/io/joynr/proxy/Future.java#L138-L147 |
58,418 | bmwcarit/joynr | java/javaapi/src/main/java/io/joynr/exceptions/MultiDomainNoCompatibleProviderFoundException.java | MultiDomainNoCompatibleProviderFoundException.getDiscoveredVersionsForDomain | public Set<Version> getDiscoveredVersionsForDomain(String domain) {
Set<Version> result = new HashSet<>();
if (hasExceptionForDomain(domain)) {
result.addAll(exceptionsByDomain.get(domain).getDiscoveredVersions());
}
return result;
} | java | public Set<Version> getDiscoveredVersionsForDomain(String domain) {
Set<Version> result = new HashSet<>();
if (hasExceptionForDomain(domain)) {
result.addAll(exceptionsByDomain.get(domain).getDiscoveredVersions());
}
return result;
} | [
"public",
"Set",
"<",
"Version",
">",
"getDiscoveredVersionsForDomain",
"(",
"String",
"domain",
")",
"{",
"Set",
"<",
"Version",
">",
"result",
"=",
"new",
"HashSet",
"<>",
"(",
")",
";",
"if",
"(",
"hasExceptionForDomain",
"(",
"domain",
")",
")",
"{",
... | Returns the set of versions which were discovered for a given domain.
@param domain
the domain for which to return the set of versions which were found by that domain.
@return the set of discovered versions for the given domain, or an empty set if no discovered versions are
available for that domain. Will never be <c... | [
"Returns",
"the",
"set",
"of",
"versions",
"which",
"were",
"discovered",
"for",
"a",
"given",
"domain",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/javaapi/src/main/java/io/joynr/exceptions/MultiDomainNoCompatibleProviderFoundException.java#L104-L110 |
58,419 | bmwcarit/joynr | java/core/libjoynr/src/main/java/io/joynr/proxy/ConnectorFactory.java | ConnectorFactory.create | @CheckForNull
public ConnectorInvocationHandler create(final String fromParticipantId,
final ArbitrationResult arbitrationResult,
final MessagingQos qosSettings,
String statelessAsy... | java | @CheckForNull
public ConnectorInvocationHandler create(final String fromParticipantId,
final ArbitrationResult arbitrationResult,
final MessagingQos qosSettings,
String statelessAsy... | [
"@",
"CheckForNull",
"public",
"ConnectorInvocationHandler",
"create",
"(",
"final",
"String",
"fromParticipantId",
",",
"final",
"ArbitrationResult",
"arbitrationResult",
",",
"final",
"MessagingQos",
"qosSettings",
",",
"String",
"statelessAsyncParticipantId",
")",
"{",
... | Creates a new connector object using concrete connector factories chosen by the endpointAddress which is passed
in.
@param fromParticipantId origin participant id
@param arbitrationResult result of arbitration
@param qosSettings QOS settings
@param statelessAsyncParticipantId
@return connector object | [
"Creates",
"a",
"new",
"connector",
"object",
"using",
"concrete",
"connector",
"factories",
"chosen",
"by",
"the",
"endpointAddress",
"which",
"is",
"passed",
"in",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/core/libjoynr/src/main/java/io/joynr/proxy/ConnectorFactory.java#L64-L85 |
58,420 | bmwcarit/joynr | java/javaapi/src/main/java/io/joynr/provider/AbstractSubscriptionPublisher.java | AbstractSubscriptionPublisher.registerAttributeListener | @Override
public void registerAttributeListener(String attributeName, AttributeListener attributeListener) {
attributeListeners.putIfAbsent(attributeName, new ArrayList<AttributeListener>());
List<AttributeListener> listeners = attributeListeners.get(attributeName);
synchronized (listeners) ... | java | @Override
public void registerAttributeListener(String attributeName, AttributeListener attributeListener) {
attributeListeners.putIfAbsent(attributeName, new ArrayList<AttributeListener>());
List<AttributeListener> listeners = attributeListeners.get(attributeName);
synchronized (listeners) ... | [
"@",
"Override",
"public",
"void",
"registerAttributeListener",
"(",
"String",
"attributeName",
",",
"AttributeListener",
"attributeListener",
")",
"{",
"attributeListeners",
".",
"putIfAbsent",
"(",
"attributeName",
",",
"new",
"ArrayList",
"<",
"AttributeListener",
">... | Registers an attribute listener that gets notified in case the attribute
changes. This is used for on change subscriptions.
@param attributeName the attribute name as defined in the Franca model
to subscribe to.
@param attributeListener the listener to add. | [
"Registers",
"an",
"attribute",
"listener",
"that",
"gets",
"notified",
"in",
"case",
"the",
"attribute",
"changes",
".",
"This",
"is",
"used",
"for",
"on",
"change",
"subscriptions",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/javaapi/src/main/java/io/joynr/provider/AbstractSubscriptionPublisher.java#L127-L134 |
58,421 | bmwcarit/joynr | java/javaapi/src/main/java/io/joynr/provider/AbstractSubscriptionPublisher.java | AbstractSubscriptionPublisher.unregisterAttributeListener | @Override
public void unregisterAttributeListener(String attributeName, AttributeListener attributeListener) {
List<AttributeListener> listeners = attributeListeners.get(attributeName);
if (listeners == null) {
LOG.error("trying to unregister an attribute listener for attribute \"" + att... | java | @Override
public void unregisterAttributeListener(String attributeName, AttributeListener attributeListener) {
List<AttributeListener> listeners = attributeListeners.get(attributeName);
if (listeners == null) {
LOG.error("trying to unregister an attribute listener for attribute \"" + att... | [
"@",
"Override",
"public",
"void",
"unregisterAttributeListener",
"(",
"String",
"attributeName",
",",
"AttributeListener",
"attributeListener",
")",
"{",
"List",
"<",
"AttributeListener",
">",
"listeners",
"=",
"attributeListeners",
".",
"get",
"(",
"attributeName",
... | Unregisters an attribute listener.
@param attributeName the attribute name as defined in the Franca model
to unsubscribe from.
@param attributeListener the listener to remove. | [
"Unregisters",
"an",
"attribute",
"listener",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/javaapi/src/main/java/io/joynr/provider/AbstractSubscriptionPublisher.java#L143-L159 |
58,422 | bmwcarit/joynr | java/javaapi/src/main/java/io/joynr/provider/AbstractSubscriptionPublisher.java | AbstractSubscriptionPublisher.registerBroadcastListener | @Override
public void registerBroadcastListener(String broadcastName, BroadcastListener broadcastListener) {
broadcastListeners.putIfAbsent(broadcastName, new ArrayList<BroadcastListener>());
List<BroadcastListener> listeners = broadcastListeners.get(broadcastName);
synchronized (listeners) ... | java | @Override
public void registerBroadcastListener(String broadcastName, BroadcastListener broadcastListener) {
broadcastListeners.putIfAbsent(broadcastName, new ArrayList<BroadcastListener>());
List<BroadcastListener> listeners = broadcastListeners.get(broadcastName);
synchronized (listeners) ... | [
"@",
"Override",
"public",
"void",
"registerBroadcastListener",
"(",
"String",
"broadcastName",
",",
"BroadcastListener",
"broadcastListener",
")",
"{",
"broadcastListeners",
".",
"putIfAbsent",
"(",
"broadcastName",
",",
"new",
"ArrayList",
"<",
"BroadcastListener",
">... | Registers a broadcast listener that gets notified in case the broadcast
is fired.
@param broadcastName the broadcast name as defined in the Franca model
to subscribe to.
@param broadcastListener the listener to add. | [
"Registers",
"a",
"broadcast",
"listener",
"that",
"gets",
"notified",
"in",
"case",
"the",
"broadcast",
"is",
"fired",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/javaapi/src/main/java/io/joynr/provider/AbstractSubscriptionPublisher.java#L169-L176 |
58,423 | bmwcarit/joynr | java/javaapi/src/main/java/io/joynr/provider/AbstractSubscriptionPublisher.java | AbstractSubscriptionPublisher.unregisterBroadcastListener | @Override
public void unregisterBroadcastListener(String broadcastName, BroadcastListener broadcastListener) {
List<BroadcastListener> listeners = broadcastListeners.get(broadcastName);
if (listeners == null) {
LOG.error("trying to unregister a listener for broadcast \"" + broadcastName
... | java | @Override
public void unregisterBroadcastListener(String broadcastName, BroadcastListener broadcastListener) {
List<BroadcastListener> listeners = broadcastListeners.get(broadcastName);
if (listeners == null) {
LOG.error("trying to unregister a listener for broadcast \"" + broadcastName
... | [
"@",
"Override",
"public",
"void",
"unregisterBroadcastListener",
"(",
"String",
"broadcastName",
",",
"BroadcastListener",
"broadcastListener",
")",
"{",
"List",
"<",
"BroadcastListener",
">",
"listeners",
"=",
"broadcastListeners",
".",
"get",
"(",
"broadcastName",
... | Unregisters a broadcast listener.
@param broadcastName the broadcast name as defined in the Franca model
to unsubscribe from.
@param broadcastListener the listener to remove. | [
"Unregisters",
"a",
"broadcast",
"listener",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/javaapi/src/main/java/io/joynr/provider/AbstractSubscriptionPublisher.java#L185-L201 |
58,424 | bmwcarit/joynr | java/javaapi/src/main/java/io/joynr/provider/AbstractSubscriptionPublisher.java | AbstractSubscriptionPublisher.addBroadcastFilter | @Override
public void addBroadcastFilter(BroadcastFilterImpl filter) {
if (broadcastFilters.containsKey(filter.getName())) {
broadcastFilters.get(filter.getName()).add(filter);
} else {
ArrayList<BroadcastFilter> list = new ArrayList<BroadcastFilter>();
list.add(f... | java | @Override
public void addBroadcastFilter(BroadcastFilterImpl filter) {
if (broadcastFilters.containsKey(filter.getName())) {
broadcastFilters.get(filter.getName()).add(filter);
} else {
ArrayList<BroadcastFilter> list = new ArrayList<BroadcastFilter>();
list.add(f... | [
"@",
"Override",
"public",
"void",
"addBroadcastFilter",
"(",
"BroadcastFilterImpl",
"filter",
")",
"{",
"if",
"(",
"broadcastFilters",
".",
"containsKey",
"(",
"filter",
".",
"getName",
"(",
")",
")",
")",
"{",
"broadcastFilters",
".",
"get",
"(",
"filter",
... | Adds a broadcast filter to the provider. The filter is specific for a
single broadcast as defined in the Franca model. It will be executed
once for each subscribed client whenever the broadcast is fired. Clients
set individual filter parameters to control filter behavior.
@param filter the filter to add. | [
"Adds",
"a",
"broadcast",
"filter",
"to",
"the",
"provider",
".",
"The",
"filter",
"is",
"specific",
"for",
"a",
"single",
"broadcast",
"as",
"defined",
"in",
"the",
"Franca",
"model",
".",
"It",
"will",
"be",
"executed",
"once",
"for",
"each",
"subscribed... | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/javaapi/src/main/java/io/joynr/provider/AbstractSubscriptionPublisher.java#L225-L234 |
58,425 | bmwcarit/joynr | java/javaapi/src/main/java/io/joynr/provider/AbstractSubscriptionPublisher.java | AbstractSubscriptionPublisher.addBroadcastFilter | @Override
public void addBroadcastFilter(BroadcastFilterImpl... filters) {
List<BroadcastFilterImpl> filtersList = Arrays.asList(filters);
for (BroadcastFilterImpl filter : filtersList) {
addBroadcastFilter(filter);
}
} | java | @Override
public void addBroadcastFilter(BroadcastFilterImpl... filters) {
List<BroadcastFilterImpl> filtersList = Arrays.asList(filters);
for (BroadcastFilterImpl filter : filtersList) {
addBroadcastFilter(filter);
}
} | [
"@",
"Override",
"public",
"void",
"addBroadcastFilter",
"(",
"BroadcastFilterImpl",
"...",
"filters",
")",
"{",
"List",
"<",
"BroadcastFilterImpl",
">",
"filtersList",
"=",
"Arrays",
".",
"asList",
"(",
"filters",
")",
";",
"for",
"(",
"BroadcastFilterImpl",
"f... | Adds multiple broadcast filters to the provider.
@param filters the filters to add.
@see AbstractSubscriptionPublisher#addBroadcastFilter(BroadcastFilterImpl filter) | [
"Adds",
"multiple",
"broadcast",
"filters",
"to",
"the",
"provider",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/javaapi/src/main/java/io/joynr/provider/AbstractSubscriptionPublisher.java#L242-L249 |
58,426 | bmwcarit/joynr | java/javaapi/src/main/java/io/joynr/provider/PromiseKeeper.java | PromiseKeeper.getValues | @CheckForNull
public Object[] getValues(long timeout) throws InterruptedException {
if (!isSettled()) {
synchronized (this) {
wait(timeout);
}
}
if (values == null) {
return null;
}
return Arrays.copyOf(values, values.length... | java | @CheckForNull
public Object[] getValues(long timeout) throws InterruptedException {
if (!isSettled()) {
synchronized (this) {
wait(timeout);
}
}
if (values == null) {
return null;
}
return Arrays.copyOf(values, values.length... | [
"@",
"CheckForNull",
"public",
"Object",
"[",
"]",
"getValues",
"(",
"long",
"timeout",
")",
"throws",
"InterruptedException",
"{",
"if",
"(",
"!",
"isSettled",
"(",
")",
")",
"{",
"synchronized",
"(",
"this",
")",
"{",
"wait",
"(",
"timeout",
")",
";",
... | Get the resolved values of the promise. If the promise is not settled,
the call blocks until the promise is settled or timeout is reached.
@param timeout the maximum time to wait in milliseconds.
@return the resolved values or null in case of timeout.
@throws InterruptedException if the thread is interrupted. | [
"Get",
"the",
"resolved",
"values",
"of",
"the",
"promise",
".",
"If",
"the",
"promise",
"is",
"not",
"settled",
"the",
"call",
"blocks",
"until",
"the",
"promise",
"is",
"settled",
"or",
"timeout",
"is",
"reached",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/javaapi/src/main/java/io/joynr/provider/PromiseKeeper.java#L74-L85 |
58,427 | bmwcarit/joynr | java/core/clustercontroller/src/main/java/io/joynr/accesscontrol/AccessControllerImpl.java | AccessControllerImpl.getCapabilityEntry | private void getCapabilityEntry(ImmutableMessage message, CapabilityCallback callback) {
long cacheMaxAge = Long.MAX_VALUE;
DiscoveryQos discoveryQos = new DiscoveryQos(DiscoveryQos.NO_MAX_AGE,
ArbitrationStrategy.NotSet,
... | java | private void getCapabilityEntry(ImmutableMessage message, CapabilityCallback callback) {
long cacheMaxAge = Long.MAX_VALUE;
DiscoveryQos discoveryQos = new DiscoveryQos(DiscoveryQos.NO_MAX_AGE,
ArbitrationStrategy.NotSet,
... | [
"private",
"void",
"getCapabilityEntry",
"(",
"ImmutableMessage",
"message",
",",
"CapabilityCallback",
"callback",
")",
"{",
"long",
"cacheMaxAge",
"=",
"Long",
".",
"MAX_VALUE",
";",
"DiscoveryQos",
"discoveryQos",
"=",
"new",
"DiscoveryQos",
"(",
"DiscoveryQos",
... | Get the capability entry for the given message | [
"Get",
"the",
"capability",
"entry",
"for",
"the",
"given",
"message"
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/core/clustercontroller/src/main/java/io/joynr/accesscontrol/AccessControllerImpl.java#L173-L183 |
58,428 | bmwcarit/joynr | java/javaapi/src/main/java/io/joynr/util/JoynrUtil.java | JoynrUtil.copyDirectory | public static void copyDirectory(File sourceLocation, File targetLocation) throws IOException {
if (sourceLocation.isDirectory()) {
if (!targetLocation.exists()) {
if (targetLocation.mkdir() == false) {
logger.debug("Creating target directory " + targetLocation +... | java | public static void copyDirectory(File sourceLocation, File targetLocation) throws IOException {
if (sourceLocation.isDirectory()) {
if (!targetLocation.exists()) {
if (targetLocation.mkdir() == false) {
logger.debug("Creating target directory " + targetLocation +... | [
"public",
"static",
"void",
"copyDirectory",
"(",
"File",
"sourceLocation",
",",
"File",
"targetLocation",
")",
"throws",
"IOException",
"{",
"if",
"(",
"sourceLocation",
".",
"isDirectory",
"(",
")",
")",
"{",
"if",
"(",
"!",
"targetLocation",
".",
"exists",
... | If targetLocation does not exist, it will be created. | [
"If",
"targetLocation",
"does",
"not",
"exist",
"it",
"will",
"be",
"created",
"."
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/javaapi/src/main/java/io/joynr/util/JoynrUtil.java#L126-L159 |
58,429 | bmwcarit/joynr | java/core/libjoynr/src/main/java/io/joynr/arbitration/VersionCompatibilityChecker.java | VersionCompatibilityChecker.check | public boolean check(Version caller, Version provider) {
if (caller == null || provider == null) {
throw new IllegalArgumentException(format("Both caller (%s) and provider (%s) must be non-null.",
caller,
... | java | public boolean check(Version caller, Version provider) {
if (caller == null || provider == null) {
throw new IllegalArgumentException(format("Both caller (%s) and provider (%s) must be non-null.",
caller,
... | [
"public",
"boolean",
"check",
"(",
"Version",
"caller",
",",
"Version",
"provider",
")",
"{",
"if",
"(",
"caller",
"==",
"null",
"||",
"provider",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"format",
"(",
"\"Both caller (%s) and p... | Compatibility of two versions is defined as the caller and provider versions having the same major version, and
the provider having the same or a higher minor version as the caller.
@param caller
the version of the participant performing the call. Must not be <code>null</code>. If either major or
minor is <code>null</... | [
"Compatibility",
"of",
"two",
"versions",
"is",
"defined",
"as",
"the",
"caller",
"and",
"provider",
"versions",
"having",
"the",
"same",
"major",
"version",
"and",
"the",
"provider",
"having",
"the",
"same",
"or",
"a",
"higher",
"minor",
"version",
"as",
"t... | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/core/libjoynr/src/main/java/io/joynr/arbitration/VersionCompatibilityChecker.java#L48-L67 |
58,430 | bmwcarit/joynr | java/common/discovery-common/src/main/java/io/joynr/capabilities/CapabilityUtils.java | CapabilityUtils.newGlobalDiscoveryEntry | public static GlobalDiscoveryEntry newGlobalDiscoveryEntry(Version providerVesion,
String domain,
String interfaceName,
String part... | java | public static GlobalDiscoveryEntry newGlobalDiscoveryEntry(Version providerVesion,
String domain,
String interfaceName,
String part... | [
"public",
"static",
"GlobalDiscoveryEntry",
"newGlobalDiscoveryEntry",
"(",
"Version",
"providerVesion",
",",
"String",
"domain",
",",
"String",
"interfaceName",
",",
"String",
"participantId",
",",
"ProviderQos",
"qos",
",",
"Long",
"lastSeenDateMs",
",",
"Long",
"ex... | CHECKSTYLE IGNORE ParameterNumber FOR NEXT 1 LINES | [
"CHECKSTYLE",
"IGNORE",
"ParameterNumber",
"FOR",
"NEXT",
"1",
"LINES"
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/common/discovery-common/src/main/java/io/joynr/capabilities/CapabilityUtils.java#L67-L86 |
58,431 | bmwcarit/joynr | java/core/libjoynr/src/main/java/io/joynr/proxy/ProxyInvocationHandler.java | ProxyInvocationHandler.invoke | @Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
if (throwable != null) {
throw throwable;
}
try {
return invokeInternal(proxy, method, args);
} catch (Exception e) {
if (this.throwable != null) {
... | java | @Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
if (throwable != null) {
throw throwable;
}
try {
return invokeInternal(proxy, method, args);
} catch (Exception e) {
if (this.throwable != null) {
... | [
"@",
"Override",
"public",
"Object",
"invoke",
"(",
"Object",
"proxy",
",",
"Method",
"method",
",",
"Object",
"[",
"]",
"args",
")",
"throws",
"Throwable",
"{",
"if",
"(",
"throwable",
"!=",
"null",
")",
"{",
"throw",
"throwable",
";",
"}",
"try",
"{"... | The InvocationHandler invoke method is mapped to the ProxyInvocationHandler.invokeInternal | [
"The",
"InvocationHandler",
"invoke",
"method",
"is",
"mapped",
"to",
"the",
"ProxyInvocationHandler",
".",
"invokeInternal"
] | b7a92bad1cf2f093de080facd2c803560f4c6c26 | https://github.com/bmwcarit/joynr/blob/b7a92bad1cf2f093de080facd2c803560f4c6c26/java/core/libjoynr/src/main/java/io/joynr/proxy/ProxyInvocationHandler.java#L55-L70 |
58,432 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractEndEventBuilder.java | AbstractEndEventBuilder.error | public B error(String errorCode) {
ErrorEventDefinition errorEventDefinition = createErrorEventDefinition(errorCode);
element.getEventDefinitions().add(errorEventDefinition);
return myself;
} | java | public B error(String errorCode) {
ErrorEventDefinition errorEventDefinition = createErrorEventDefinition(errorCode);
element.getEventDefinitions().add(errorEventDefinition);
return myself;
} | [
"public",
"B",
"error",
"(",
"String",
"errorCode",
")",
"{",
"ErrorEventDefinition",
"errorEventDefinition",
"=",
"createErrorEventDefinition",
"(",
"errorCode",
")",
";",
"element",
".",
"getEventDefinitions",
"(",
")",
".",
"add",
"(",
"errorEventDefinition",
")"... | Sets an error definition for the given error code. If already an error
with this code exists it will be used, otherwise a new error is created.
@param errorCode the code of the error
@return the builder object | [
"Sets",
"an",
"error",
"definition",
"for",
"the",
"given",
"error",
"code",
".",
"If",
"already",
"an",
"error",
"with",
"this",
"code",
"exists",
"it",
"will",
"be",
"used",
"otherwise",
"a",
"new",
"error",
"is",
"created",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractEndEventBuilder.java#L39-L44 |
58,433 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBaseElementBuilder.java | AbstractBaseElementBuilder.addExtensionElement | public B addExtensionElement(BpmnModelElementInstance extensionElement) {
ExtensionElements extensionElements = getCreateSingleChild(ExtensionElements.class);
extensionElements.addChildElement(extensionElement);
return myself;
} | java | public B addExtensionElement(BpmnModelElementInstance extensionElement) {
ExtensionElements extensionElements = getCreateSingleChild(ExtensionElements.class);
extensionElements.addChildElement(extensionElement);
return myself;
} | [
"public",
"B",
"addExtensionElement",
"(",
"BpmnModelElementInstance",
"extensionElement",
")",
"{",
"ExtensionElements",
"extensionElements",
"=",
"getCreateSingleChild",
"(",
"ExtensionElements",
".",
"class",
")",
";",
"extensionElements",
".",
"addChildElement",
"(",
... | Add an extension element to the element.
@param extensionElement the extension element to add
@return the builder object | [
"Add",
"an",
"extension",
"element",
"to",
"the",
"element",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBaseElementBuilder.java#L254-L258 |
58,434 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractFlowNodeBuilder.java | AbstractFlowNodeBuilder.camundaFailedJobRetryTimeCycle | public B camundaFailedJobRetryTimeCycle(String retryTimeCycle) {
CamundaFailedJobRetryTimeCycle failedJobRetryTimeCycle = createInstance(CamundaFailedJobRetryTimeCycle.class);
failedJobRetryTimeCycle.setTextContent(retryTimeCycle);
addExtensionElement(failedJobRetryTimeCycle);
return myself;
} | java | public B camundaFailedJobRetryTimeCycle(String retryTimeCycle) {
CamundaFailedJobRetryTimeCycle failedJobRetryTimeCycle = createInstance(CamundaFailedJobRetryTimeCycle.class);
failedJobRetryTimeCycle.setTextContent(retryTimeCycle);
addExtensionElement(failedJobRetryTimeCycle);
return myself;
} | [
"public",
"B",
"camundaFailedJobRetryTimeCycle",
"(",
"String",
"retryTimeCycle",
")",
"{",
"CamundaFailedJobRetryTimeCycle",
"failedJobRetryTimeCycle",
"=",
"createInstance",
"(",
"CamundaFailedJobRetryTimeCycle",
".",
"class",
")",
";",
"failedJobRetryTimeCycle",
".",
"setT... | Sets the camunda failedJobRetryTimeCycle attribute for the build flow node.
@param retryTimeCycle
the retry time cycle value to set
@return the builder object | [
"Sets",
"the",
"camunda",
"failedJobRetryTimeCycle",
"attribute",
"for",
"the",
"build",
"flow",
"node",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractFlowNodeBuilder.java#L409-L416 |
58,435 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSendTaskBuilder.java | AbstractSendTaskBuilder.message | public B message(String messageName) {
Message message = findMessageForName(messageName);
return message(message);
} | java | public B message(String messageName) {
Message message = findMessageForName(messageName);
return message(message);
} | [
"public",
"B",
"message",
"(",
"String",
"messageName",
")",
"{",
"Message",
"message",
"=",
"findMessageForName",
"(",
"messageName",
")",
";",
"return",
"message",
"(",
"message",
")",
";",
"}"
] | Sets the message with the given message name. If already a message
with this name exists it will be used, otherwise a new message is created.
@param messageName the name of the message
@return the builder object | [
"Sets",
"the",
"message",
"with",
"the",
"given",
"message",
"name",
".",
"If",
"already",
"a",
"message",
"with",
"this",
"name",
"exists",
"it",
"will",
"be",
"used",
"otherwise",
"a",
"new",
"message",
"is",
"created",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSendTaskBuilder.java#L61-L64 |
58,436 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java | AbstractCallActivityBuilder.camundaOut | public B camundaOut(String source, String target) {
CamundaOut param = modelInstance.newInstance(CamundaOut.class);
param.setCamundaSource(source);
param.setCamundaTarget(target);
addExtensionElement(param);
return myself;
} | java | public B camundaOut(String source, String target) {
CamundaOut param = modelInstance.newInstance(CamundaOut.class);
param.setCamundaSource(source);
param.setCamundaTarget(target);
addExtensionElement(param);
return myself;
} | [
"public",
"B",
"camundaOut",
"(",
"String",
"source",
",",
"String",
"target",
")",
"{",
"CamundaOut",
"param",
"=",
"modelInstance",
".",
"newInstance",
"(",
"CamundaOut",
".",
"class",
")",
";",
"param",
".",
"setCamundaSource",
"(",
"source",
")",
";",
... | Sets a "camunda out" parameter to pass a variable from a sub process instance to the super process instance
@param source the name of variable in the sub process instance
@param target the name of the variable in the super process instance
@return the builder object | [
"Sets",
"a",
"camunda",
"out",
"parameter",
"to",
"pass",
"a",
"variable",
"from",
"a",
"sub",
"process",
"instance",
"to",
"the",
"super",
"process",
"instance"
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java#L181-L187 |
58,437 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java | AbstractCatchEventBuilder.message | public B message(String messageName) {
MessageEventDefinition messageEventDefinition = createMessageEventDefinition(messageName);
element.getEventDefinitions().add(messageEventDefinition);
return myself;
} | java | public B message(String messageName) {
MessageEventDefinition messageEventDefinition = createMessageEventDefinition(messageName);
element.getEventDefinitions().add(messageEventDefinition);
return myself;
} | [
"public",
"B",
"message",
"(",
"String",
"messageName",
")",
"{",
"MessageEventDefinition",
"messageEventDefinition",
"=",
"createMessageEventDefinition",
"(",
"messageName",
")",
";",
"element",
".",
"getEventDefinitions",
"(",
")",
".",
"add",
"(",
"messageEventDefi... | Sets an event definition for the given message name. If already a message
with this name exists it will be used, otherwise a new message is created.
@param messageName the name of the message
@return the builder object | [
"Sets",
"an",
"event",
"definition",
"for",
"the",
"given",
"message",
"name",
".",
"If",
"already",
"a",
"message",
"with",
"this",
"name",
"exists",
"it",
"will",
"be",
"used",
"otherwise",
"a",
"new",
"message",
"is",
"created",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java#L58-L63 |
58,438 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java | AbstractCatchEventBuilder.signal | public B signal(String signalName) {
SignalEventDefinition signalEventDefinition = createSignalEventDefinition(signalName);
element.getEventDefinitions().add(signalEventDefinition);
return myself;
} | java | public B signal(String signalName) {
SignalEventDefinition signalEventDefinition = createSignalEventDefinition(signalName);
element.getEventDefinitions().add(signalEventDefinition);
return myself;
} | [
"public",
"B",
"signal",
"(",
"String",
"signalName",
")",
"{",
"SignalEventDefinition",
"signalEventDefinition",
"=",
"createSignalEventDefinition",
"(",
"signalName",
")",
";",
"element",
".",
"getEventDefinitions",
"(",
")",
".",
"add",
"(",
"signalEventDefinition"... | Sets an event definition for the given signal name. If already a signal
with this name exists it will be used, otherwise a new signal is created.
@param signalName the name of the signal
@return the builder object | [
"Sets",
"an",
"event",
"definition",
"for",
"the",
"given",
"signal",
"name",
".",
"If",
"already",
"a",
"signal",
"with",
"this",
"name",
"exists",
"it",
"will",
"be",
"used",
"otherwise",
"a",
"new",
"signal",
"is",
"created",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java#L72-L77 |
58,439 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java | AbstractCatchEventBuilder.timerWithDate | public B timerWithDate(String timerDate) {
TimeDate timeDate = createInstance(TimeDate.class);
timeDate.setTextContent(timerDate);
TimerEventDefinition timerEventDefinition = createInstance(TimerEventDefinition.class);
timerEventDefinition.setTimeDate(timeDate);
element.getEventDefinitions().add(t... | java | public B timerWithDate(String timerDate) {
TimeDate timeDate = createInstance(TimeDate.class);
timeDate.setTextContent(timerDate);
TimerEventDefinition timerEventDefinition = createInstance(TimerEventDefinition.class);
timerEventDefinition.setTimeDate(timeDate);
element.getEventDefinitions().add(t... | [
"public",
"B",
"timerWithDate",
"(",
"String",
"timerDate",
")",
"{",
"TimeDate",
"timeDate",
"=",
"createInstance",
"(",
"TimeDate",
".",
"class",
")",
";",
"timeDate",
".",
"setTextContent",
"(",
"timerDate",
")",
";",
"TimerEventDefinition",
"timerEventDefiniti... | Sets an event definition for the timer with a time date.
@param timerDate the time date of the timer
@return the builder object | [
"Sets",
"an",
"event",
"definition",
"for",
"the",
"timer",
"with",
"a",
"time",
"date",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java#L86-L96 |
58,440 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java | AbstractCatchEventBuilder.timerWithDuration | public B timerWithDuration(String timerDuration) {
TimeDuration timeDuration = createInstance(TimeDuration.class);
timeDuration.setTextContent(timerDuration);
TimerEventDefinition timerEventDefinition = createInstance(TimerEventDefinition.class);
timerEventDefinition.setTimeDuration(timeDuration);
... | java | public B timerWithDuration(String timerDuration) {
TimeDuration timeDuration = createInstance(TimeDuration.class);
timeDuration.setTextContent(timerDuration);
TimerEventDefinition timerEventDefinition = createInstance(TimerEventDefinition.class);
timerEventDefinition.setTimeDuration(timeDuration);
... | [
"public",
"B",
"timerWithDuration",
"(",
"String",
"timerDuration",
")",
"{",
"TimeDuration",
"timeDuration",
"=",
"createInstance",
"(",
"TimeDuration",
".",
"class",
")",
";",
"timeDuration",
".",
"setTextContent",
"(",
"timerDuration",
")",
";",
"TimerEventDefini... | Sets an event definition for the timer with a time duration.
@param timerDuration the time duration of the timer
@return the builder object | [
"Sets",
"an",
"event",
"definition",
"for",
"the",
"timer",
"with",
"a",
"time",
"duration",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java#L104-L114 |
58,441 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java | AbstractCatchEventBuilder.timerWithCycle | public B timerWithCycle(String timerCycle) {
TimeCycle timeCycle = createInstance(TimeCycle.class);
timeCycle.setTextContent(timerCycle);
TimerEventDefinition timerEventDefinition = createInstance(TimerEventDefinition.class);
timerEventDefinition.setTimeCycle(timeCycle);
element.getEventDefinition... | java | public B timerWithCycle(String timerCycle) {
TimeCycle timeCycle = createInstance(TimeCycle.class);
timeCycle.setTextContent(timerCycle);
TimerEventDefinition timerEventDefinition = createInstance(TimerEventDefinition.class);
timerEventDefinition.setTimeCycle(timeCycle);
element.getEventDefinition... | [
"public",
"B",
"timerWithCycle",
"(",
"String",
"timerCycle",
")",
"{",
"TimeCycle",
"timeCycle",
"=",
"createInstance",
"(",
"TimeCycle",
".",
"class",
")",
";",
"timeCycle",
".",
"setTextContent",
"(",
"timerCycle",
")",
";",
"TimerEventDefinition",
"timerEventD... | Sets an event definition for the timer with a time cycle.
@param timerCycle the time cycle of the timer
@return the builder object | [
"Sets",
"an",
"event",
"definition",
"for",
"the",
"timer",
"with",
"a",
"time",
"cycle",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java#L122-L132 |
58,442 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBpmnModelElementBuilder.java | AbstractBpmnModelElementBuilder.subProcessDone | public SubProcessBuilder subProcessDone() {
BpmnModelElementInstance lastSubProcess = element.getScope();
if (lastSubProcess != null && lastSubProcess instanceof SubProcess) {
return ((SubProcess) lastSubProcess).builder();
}
else {
throw new BpmnModelException("Unable to find a parent subPr... | java | public SubProcessBuilder subProcessDone() {
BpmnModelElementInstance lastSubProcess = element.getScope();
if (lastSubProcess != null && lastSubProcess instanceof SubProcess) {
return ((SubProcess) lastSubProcess).builder();
}
else {
throw new BpmnModelException("Unable to find a parent subPr... | [
"public",
"SubProcessBuilder",
"subProcessDone",
"(",
")",
"{",
"BpmnModelElementInstance",
"lastSubProcess",
"=",
"element",
".",
"getScope",
"(",
")",
";",
"if",
"(",
"lastSubProcess",
"!=",
"null",
"&&",
"lastSubProcess",
"instanceof",
"SubProcess",
")",
"{",
"... | Finishes the building of an embedded sub-process.
@return the parent sub-process builder
@throws BpmnModelException if no parent sub-process can be found | [
"Finishes",
"the",
"building",
"of",
"an",
"embedded",
"sub",
"-",
"process",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBpmnModelElementBuilder.java#L59-L67 |
58,443 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java | AbstractBoundaryEventBuilder.error | public B error() {
ErrorEventDefinition errorEventDefinition = createInstance(ErrorEventDefinition.class);
element.getEventDefinitions().add(errorEventDefinition);
return myself;
} | java | public B error() {
ErrorEventDefinition errorEventDefinition = createInstance(ErrorEventDefinition.class);
element.getEventDefinitions().add(errorEventDefinition);
return myself;
} | [
"public",
"B",
"error",
"(",
")",
"{",
"ErrorEventDefinition",
"errorEventDefinition",
"=",
"createInstance",
"(",
"ErrorEventDefinition",
".",
"class",
")",
";",
"element",
".",
"getEventDefinitions",
"(",
")",
".",
"add",
"(",
"errorEventDefinition",
")",
";",
... | Sets a catch all error definition.
@return the builder object | [
"Sets",
"a",
"catch",
"all",
"error",
"definition",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java#L52-L57 |
58,444 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java | AbstractBoundaryEventBuilder.errorEventDefinition | public ErrorEventDefinitionBuilder errorEventDefinition(String id) {
ErrorEventDefinition errorEventDefinition = createEmptyErrorEventDefinition();
if (id != null) {
errorEventDefinition.setId(id);
}
element.getEventDefinitions().add(errorEventDefinition);
return new ErrorEventDefinitionBuild... | java | public ErrorEventDefinitionBuilder errorEventDefinition(String id) {
ErrorEventDefinition errorEventDefinition = createEmptyErrorEventDefinition();
if (id != null) {
errorEventDefinition.setId(id);
}
element.getEventDefinitions().add(errorEventDefinition);
return new ErrorEventDefinitionBuild... | [
"public",
"ErrorEventDefinitionBuilder",
"errorEventDefinition",
"(",
"String",
"id",
")",
"{",
"ErrorEventDefinition",
"errorEventDefinition",
"=",
"createEmptyErrorEventDefinition",
"(",
")",
";",
"if",
"(",
"id",
"!=",
"null",
")",
"{",
"errorEventDefinition",
".",
... | Creates an error event definition with an unique id
and returns a builder for the error event definition.
@return the error event definition builder object | [
"Creates",
"an",
"error",
"event",
"definition",
"with",
"an",
"unique",
"id",
"and",
"returns",
"a",
"builder",
"for",
"the",
"error",
"event",
"definition",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java#L79-L87 |
58,445 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java | AbstractBoundaryEventBuilder.errorEventDefinition | public ErrorEventDefinitionBuilder errorEventDefinition() {
ErrorEventDefinition errorEventDefinition = createEmptyErrorEventDefinition();
element.getEventDefinitions().add(errorEventDefinition);
return new ErrorEventDefinitionBuilder(modelInstance, errorEventDefinition);
} | java | public ErrorEventDefinitionBuilder errorEventDefinition() {
ErrorEventDefinition errorEventDefinition = createEmptyErrorEventDefinition();
element.getEventDefinitions().add(errorEventDefinition);
return new ErrorEventDefinitionBuilder(modelInstance, errorEventDefinition);
} | [
"public",
"ErrorEventDefinitionBuilder",
"errorEventDefinition",
"(",
")",
"{",
"ErrorEventDefinition",
"errorEventDefinition",
"=",
"createEmptyErrorEventDefinition",
"(",
")",
";",
"element",
".",
"getEventDefinitions",
"(",
")",
".",
"add",
"(",
"errorEventDefinition",
... | Creates an error event definition
and returns a builder for the error event definition.
@return the error event definition builder object | [
"Creates",
"an",
"error",
"event",
"definition",
"and",
"returns",
"a",
"builder",
"for",
"the",
"error",
"event",
"definition",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java#L95-L99 |
58,446 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java | AbstractBoundaryEventBuilder.escalation | public B escalation() {
EscalationEventDefinition escalationEventDefinition = createInstance(EscalationEventDefinition.class);
element.getEventDefinitions().add(escalationEventDefinition);
return myself;
} | java | public B escalation() {
EscalationEventDefinition escalationEventDefinition = createInstance(EscalationEventDefinition.class);
element.getEventDefinitions().add(escalationEventDefinition);
return myself;
} | [
"public",
"B",
"escalation",
"(",
")",
"{",
"EscalationEventDefinition",
"escalationEventDefinition",
"=",
"createInstance",
"(",
"EscalationEventDefinition",
".",
"class",
")",
";",
"element",
".",
"getEventDefinitions",
"(",
")",
".",
"add",
"(",
"escalationEventDef... | Sets a catch all escalation definition.
@return the builder object | [
"Sets",
"a",
"catch",
"all",
"escalation",
"definition",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java#L106-L111 |
58,447 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java | AbstractBoundaryEventBuilder.escalation | public B escalation(String escalationCode) {
EscalationEventDefinition escalationEventDefinition = createEscalationEventDefinition(escalationCode);
element.getEventDefinitions().add(escalationEventDefinition);
return myself;
} | java | public B escalation(String escalationCode) {
EscalationEventDefinition escalationEventDefinition = createEscalationEventDefinition(escalationCode);
element.getEventDefinitions().add(escalationEventDefinition);
return myself;
} | [
"public",
"B",
"escalation",
"(",
"String",
"escalationCode",
")",
"{",
"EscalationEventDefinition",
"escalationEventDefinition",
"=",
"createEscalationEventDefinition",
"(",
"escalationCode",
")",
";",
"element",
".",
"getEventDefinitions",
"(",
")",
".",
"add",
"(",
... | Sets an escalation definition for the given escalation code. If already an escalation
with this code exists it will be used, otherwise a new escalation is created.
@param escalationCode the code of the escalation
@return the builder object | [
"Sets",
"an",
"escalation",
"definition",
"for",
"the",
"given",
"escalation",
"code",
".",
"If",
"already",
"an",
"escalation",
"with",
"this",
"code",
"exists",
"it",
"will",
"be",
"used",
"otherwise",
"a",
"new",
"escalation",
"is",
"created",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java#L120-L125 |
58,448 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractUserTaskBuilder.java | AbstractUserTaskBuilder.camundaFormField | public CamundaUserTaskFormFieldBuilder camundaFormField() {
CamundaFormData camundaFormData = getCreateSingleExtensionElement(CamundaFormData.class);
CamundaFormField camundaFormField = createChild(camundaFormData, CamundaFormField.class);
return new CamundaUserTaskFormFieldBuilder(modelInstance, element, c... | java | public CamundaUserTaskFormFieldBuilder camundaFormField() {
CamundaFormData camundaFormData = getCreateSingleExtensionElement(CamundaFormData.class);
CamundaFormField camundaFormField = createChild(camundaFormData, CamundaFormField.class);
return new CamundaUserTaskFormFieldBuilder(modelInstance, element, c... | [
"public",
"CamundaUserTaskFormFieldBuilder",
"camundaFormField",
"(",
")",
"{",
"CamundaFormData",
"camundaFormData",
"=",
"getCreateSingleExtensionElement",
"(",
"CamundaFormData",
".",
"class",
")",
";",
"CamundaFormField",
"camundaFormField",
"=",
"createChild",
"(",
"ca... | Creates a new camunda form field extension element.
@return the builder object | [
"Creates",
"a",
"new",
"camunda",
"form",
"field",
"extension",
"element",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractUserTaskBuilder.java#L176-L180 |
58,449 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractComplexGatewayBuilder.java | AbstractComplexGatewayBuilder.activationCondition | public B activationCondition(String conditionExpression) {
ActivationCondition activationCondition = createInstance(ActivationCondition.class);
activationCondition.setTextContent(conditionExpression);
element.setActivationCondition(activationCondition);
return myself;
} | java | public B activationCondition(String conditionExpression) {
ActivationCondition activationCondition = createInstance(ActivationCondition.class);
activationCondition.setTextContent(conditionExpression);
element.setActivationCondition(activationCondition);
return myself;
} | [
"public",
"B",
"activationCondition",
"(",
"String",
"conditionExpression",
")",
"{",
"ActivationCondition",
"activationCondition",
"=",
"createInstance",
"(",
"ActivationCondition",
".",
"class",
")",
";",
"activationCondition",
".",
"setTextContent",
"(",
"conditionExpr... | Sets the activation condition expression for the build complex gateway
@param conditionExpression the activation condition expression to set
@return the builder object | [
"Sets",
"the",
"activation",
"condition",
"expression",
"for",
"the",
"build",
"complex",
"gateway"
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractComplexGatewayBuilder.java#L50-L55 |
58,450 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java | AbstractMultiInstanceLoopCharacteristicsBuilder.cardinality | public B cardinality(String expression) {
LoopCardinality cardinality = getCreateSingleChild(LoopCardinality.class);
cardinality.setTextContent(expression);
return myself;
} | java | public B cardinality(String expression) {
LoopCardinality cardinality = getCreateSingleChild(LoopCardinality.class);
cardinality.setTextContent(expression);
return myself;
} | [
"public",
"B",
"cardinality",
"(",
"String",
"expression",
")",
"{",
"LoopCardinality",
"cardinality",
"=",
"getCreateSingleChild",
"(",
"LoopCardinality",
".",
"class",
")",
";",
"cardinality",
".",
"setTextContent",
"(",
"expression",
")",
";",
"return",
"myself... | Sets the cardinality expression.
@param expression the cardinality expression
@return the builder object | [
"Sets",
"the",
"cardinality",
"expression",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java#L62-L67 |
58,451 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java | AbstractMultiInstanceLoopCharacteristicsBuilder.completionCondition | public B completionCondition(String expression) {
CompletionCondition condition = getCreateSingleChild(CompletionCondition.class);
condition.setTextContent(expression);
return myself;
} | java | public B completionCondition(String expression) {
CompletionCondition condition = getCreateSingleChild(CompletionCondition.class);
condition.setTextContent(expression);
return myself;
} | [
"public",
"B",
"completionCondition",
"(",
"String",
"expression",
")",
"{",
"CompletionCondition",
"condition",
"=",
"getCreateSingleChild",
"(",
"CompletionCondition",
".",
"class",
")",
";",
"condition",
".",
"setTextContent",
"(",
"expression",
")",
";",
"return... | Sets the completion condition expression.
@param expression the completion condition expression
@return the builder object | [
"Sets",
"the",
"completion",
"condition",
"expression",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java#L75-L80 |
58,452 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java | AbstractMultiInstanceLoopCharacteristicsBuilder.multiInstanceDone | @SuppressWarnings({ "rawtypes", "unchecked" })
public <T extends AbstractActivityBuilder> T multiInstanceDone() {
return (T) ((Activity) element.getParentElement()).builder();
} | java | @SuppressWarnings({ "rawtypes", "unchecked" })
public <T extends AbstractActivityBuilder> T multiInstanceDone() {
return (T) ((Activity) element.getParentElement()).builder();
} | [
"@",
"SuppressWarnings",
"(",
"{",
"\"rawtypes\"",
",",
"\"unchecked\"",
"}",
")",
"public",
"<",
"T",
"extends",
"AbstractActivityBuilder",
">",
"T",
"multiInstanceDone",
"(",
")",
"{",
"return",
"(",
"T",
")",
"(",
"(",
"Activity",
")",
"element",
".",
"... | Finishes the building of a multi instance loop characteristics.
@return the parent activity builder | [
"Finishes",
"the",
"building",
"of",
"a",
"multi",
"instance",
"loop",
"characteristics",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java#L111-L114 |
58,453 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractConditionalEventDefinitionBuilder.java | AbstractConditionalEventDefinitionBuilder.condition | public B condition(String conditionText) {
Condition condition = createInstance(Condition.class);
condition.setTextContent(conditionText);
element.setCondition(condition);
return myself;
} | java | public B condition(String conditionText) {
Condition condition = createInstance(Condition.class);
condition.setTextContent(conditionText);
element.setCondition(condition);
return myself;
} | [
"public",
"B",
"condition",
"(",
"String",
"conditionText",
")",
"{",
"Condition",
"condition",
"=",
"createInstance",
"(",
"Condition",
".",
"class",
")",
";",
"condition",
".",
"setTextContent",
"(",
"conditionText",
")",
";",
"element",
".",
"setCondition",
... | Sets the condition of the conditional event definition.
@param conditionText the condition which should be evaluate to true or false
@return the builder object | [
"Sets",
"the",
"condition",
"of",
"the",
"conditional",
"event",
"definition",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractConditionalEventDefinitionBuilder.java#L43-L48 |
58,454 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractConditionalEventDefinitionBuilder.java | AbstractConditionalEventDefinitionBuilder.conditionalEventDefinitionDone | @SuppressWarnings({ "rawtypes", "unchecked" })
public <T extends AbstractFlowNodeBuilder> T conditionalEventDefinitionDone() {
return (T) ((Event) element.getParentElement()).builder();
} | java | @SuppressWarnings({ "rawtypes", "unchecked" })
public <T extends AbstractFlowNodeBuilder> T conditionalEventDefinitionDone() {
return (T) ((Event) element.getParentElement()).builder();
} | [
"@",
"SuppressWarnings",
"(",
"{",
"\"rawtypes\"",
",",
"\"unchecked\"",
"}",
")",
"public",
"<",
"T",
"extends",
"AbstractFlowNodeBuilder",
">",
"T",
"conditionalEventDefinitionDone",
"(",
")",
"{",
"return",
"(",
"T",
")",
"(",
"(",
"Event",
")",
"element",
... | Finishes the building of a conditional event definition.
@param <T>
@return the parent event builder | [
"Finishes",
"the",
"building",
"of",
"a",
"conditional",
"event",
"definition",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractConditionalEventDefinitionBuilder.java#L92-L95 |
58,455 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractErrorEventDefinitionBuilder.java | AbstractErrorEventDefinitionBuilder.errorEventDefinitionDone | @SuppressWarnings({ "rawtypes", "unchecked" })
public <T extends AbstractFlowNodeBuilder> T errorEventDefinitionDone() {
return (T) ((Event) element.getParentElement()).builder();
} | java | @SuppressWarnings({ "rawtypes", "unchecked" })
public <T extends AbstractFlowNodeBuilder> T errorEventDefinitionDone() {
return (T) ((Event) element.getParentElement()).builder();
} | [
"@",
"SuppressWarnings",
"(",
"{",
"\"rawtypes\"",
",",
"\"unchecked\"",
"}",
")",
"public",
"<",
"T",
"extends",
"AbstractFlowNodeBuilder",
">",
"T",
"errorEventDefinitionDone",
"(",
")",
"{",
"return",
"(",
"T",
")",
"(",
"(",
"Event",
")",
"element",
".",... | Finishes the building of a error event definition.
@param <T>
@return the parent event builder | [
"Finishes",
"the",
"building",
"of",
"a",
"error",
"event",
"definition",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractErrorEventDefinitionBuilder.java#L70-L73 |
58,456 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractEventBuilder.java | AbstractEventBuilder.camundaInputParameter | public B camundaInputParameter(String name, String value) {
CamundaInputOutput camundaInputOutput = getCreateSingleExtensionElement(CamundaInputOutput.class);
CamundaInputParameter camundaInputParameter = createChild(camundaInputOutput, CamundaInputParameter.class);
camundaInputParameter.setCamundaName(nam... | java | public B camundaInputParameter(String name, String value) {
CamundaInputOutput camundaInputOutput = getCreateSingleExtensionElement(CamundaInputOutput.class);
CamundaInputParameter camundaInputParameter = createChild(camundaInputOutput, CamundaInputParameter.class);
camundaInputParameter.setCamundaName(nam... | [
"public",
"B",
"camundaInputParameter",
"(",
"String",
"name",
",",
"String",
"value",
")",
"{",
"CamundaInputOutput",
"camundaInputOutput",
"=",
"getCreateSingleExtensionElement",
"(",
"CamundaInputOutput",
".",
"class",
")",
";",
"CamundaInputParameter",
"camundaInputPa... | Creates a new camunda input parameter extension element with the
given name and value.
@param name the name of the input parameter
@param value the value of the input parameter
@return the builder object | [
"Creates",
"a",
"new",
"camunda",
"input",
"parameter",
"extension",
"element",
"with",
"the",
"given",
"name",
"and",
"value",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractEventBuilder.java#L42-L50 |
58,457 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractEventBuilder.java | AbstractEventBuilder.camundaOutputParameter | public B camundaOutputParameter(String name, String value) {
CamundaInputOutput camundaInputOutput = getCreateSingleExtensionElement(CamundaInputOutput.class);
CamundaOutputParameter camundaOutputParameter = createChild(camundaInputOutput, CamundaOutputParameter.class);
camundaOutputParameter.setCamundaNam... | java | public B camundaOutputParameter(String name, String value) {
CamundaInputOutput camundaInputOutput = getCreateSingleExtensionElement(CamundaInputOutput.class);
CamundaOutputParameter camundaOutputParameter = createChild(camundaInputOutput, CamundaOutputParameter.class);
camundaOutputParameter.setCamundaNam... | [
"public",
"B",
"camundaOutputParameter",
"(",
"String",
"name",
",",
"String",
"value",
")",
"{",
"CamundaInputOutput",
"camundaInputOutput",
"=",
"getCreateSingleExtensionElement",
"(",
"CamundaInputOutput",
".",
"class",
")",
";",
"CamundaOutputParameter",
"camundaOutpu... | Creates a new camunda output parameter extension element with the
given name and value.
@param name the name of the output parameter
@param value the value of the output parameter
@return the builder object | [
"Creates",
"a",
"new",
"camunda",
"output",
"parameter",
"extension",
"element",
"with",
"the",
"given",
"name",
"and",
"value",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractEventBuilder.java#L60-L68 |
58,458 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractThrowEventBuilder.java | AbstractThrowEventBuilder.messageEventDefinition | public MessageEventDefinitionBuilder messageEventDefinition(String id) {
MessageEventDefinition messageEventDefinition = createEmptyMessageEventDefinition();
if (id != null) {
messageEventDefinition.setId(id);
}
element.getEventDefinitions().add(messageEventDefinition);
return new MessageEven... | java | public MessageEventDefinitionBuilder messageEventDefinition(String id) {
MessageEventDefinition messageEventDefinition = createEmptyMessageEventDefinition();
if (id != null) {
messageEventDefinition.setId(id);
}
element.getEventDefinitions().add(messageEventDefinition);
return new MessageEven... | [
"public",
"MessageEventDefinitionBuilder",
"messageEventDefinition",
"(",
"String",
"id",
")",
"{",
"MessageEventDefinition",
"messageEventDefinition",
"=",
"createEmptyMessageEventDefinition",
"(",
")",
";",
"if",
"(",
"id",
"!=",
"null",
")",
"{",
"messageEventDefinitio... | Creates an empty message event definition with the given id
and returns a builder for the message event definition.
@param id the id of the message event definition
@return the message event definition builder object | [
"Creates",
"an",
"empty",
"message",
"event",
"definition",
"with",
"the",
"given",
"id",
"and",
"returns",
"a",
"builder",
"for",
"the",
"message",
"event",
"definition",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractThrowEventBuilder.java#L66-L74 |
58,459 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractThrowEventBuilder.java | AbstractThrowEventBuilder.signalEventDefinition | public SignalEventDefinitionBuilder signalEventDefinition(String signalName) {
SignalEventDefinition signalEventDefinition = createSignalEventDefinition(signalName);
element.getEventDefinitions().add(signalEventDefinition);
return new SignalEventDefinitionBuilder(modelInstance, signalEventDefinition);
} | java | public SignalEventDefinitionBuilder signalEventDefinition(String signalName) {
SignalEventDefinition signalEventDefinition = createSignalEventDefinition(signalName);
element.getEventDefinitions().add(signalEventDefinition);
return new SignalEventDefinitionBuilder(modelInstance, signalEventDefinition);
} | [
"public",
"SignalEventDefinitionBuilder",
"signalEventDefinition",
"(",
"String",
"signalName",
")",
"{",
"SignalEventDefinition",
"signalEventDefinition",
"=",
"createSignalEventDefinition",
"(",
"signalName",
")",
";",
"element",
".",
"getEventDefinitions",
"(",
")",
".",... | Sets an event definition for the given Signal name. If a signal with this
name already exists it will be used, otherwise a new signal is created.
It returns a builder for the Signal Event Definition.
@param signalName the name of the signal
@return the signal event definition builder object | [
"Sets",
"an",
"event",
"definition",
"for",
"the",
"given",
"Signal",
"name",
".",
"If",
"a",
"signal",
"with",
"this",
"name",
"already",
"exists",
"it",
"will",
"be",
"used",
"otherwise",
"a",
"new",
"signal",
"is",
"created",
".",
"It",
"returns",
"a"... | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractThrowEventBuilder.java#L98-L103 |
58,460 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSequenceFlowBuilder.java | AbstractSequenceFlowBuilder.from | public B from(FlowNode source) {
element.setSource(source);
source.getOutgoing().add(element);
return myself;
} | java | public B from(FlowNode source) {
element.setSource(source);
source.getOutgoing().add(element);
return myself;
} | [
"public",
"B",
"from",
"(",
"FlowNode",
"source",
")",
"{",
"element",
".",
"setSource",
"(",
"source",
")",
";",
"source",
".",
"getOutgoing",
"(",
")",
".",
"add",
"(",
"element",
")",
";",
"return",
"myself",
";",
"}"
] | Sets the source flow node of this sequence flow.
@param source the source of this sequence flow
@return the builder object | [
"Sets",
"the",
"source",
"flow",
"node",
"of",
"this",
"sequence",
"flow",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSequenceFlowBuilder.java#L39-L43 |
58,461 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSequenceFlowBuilder.java | AbstractSequenceFlowBuilder.to | public B to(FlowNode target) {
element.setTarget(target);
target.getIncoming().add(element);
return myself;
} | java | public B to(FlowNode target) {
element.setTarget(target);
target.getIncoming().add(element);
return myself;
} | [
"public",
"B",
"to",
"(",
"FlowNode",
"target",
")",
"{",
"element",
".",
"setTarget",
"(",
"target",
")",
";",
"target",
".",
"getIncoming",
"(",
")",
".",
"add",
"(",
"element",
")",
";",
"return",
"myself",
";",
"}"
] | Sets the target flow node of this sequence flow.
@param target the target of this sequence flow
@return the builder object | [
"Sets",
"the",
"target",
"flow",
"node",
"of",
"this",
"sequence",
"flow",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSequenceFlowBuilder.java#L51-L55 |
58,462 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMessageEventDefinitionBuilder.java | AbstractMessageEventDefinitionBuilder.messageEventDefinitionDone | @SuppressWarnings({ "rawtypes", "unchecked" })
public <T extends AbstractFlowNodeBuilder> T messageEventDefinitionDone() {
return (T) ((Event) element.getParentElement()).builder();
} | java | @SuppressWarnings({ "rawtypes", "unchecked" })
public <T extends AbstractFlowNodeBuilder> T messageEventDefinitionDone() {
return (T) ((Event) element.getParentElement()).builder();
} | [
"@",
"SuppressWarnings",
"(",
"{",
"\"rawtypes\"",
",",
"\"unchecked\"",
"}",
")",
"public",
"<",
"T",
"extends",
"AbstractFlowNodeBuilder",
">",
"T",
"messageEventDefinitionDone",
"(",
")",
"{",
"return",
"(",
"T",
")",
"(",
"(",
"Event",
")",
"element",
".... | Finishes the building of a message event definition.
@param <T>
@return the parent event builder | [
"Finishes",
"the",
"building",
"of",
"a",
"message",
"event",
"definition",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMessageEventDefinitionBuilder.java#L92-L95 |
58,463 | camunda/camunda-bpmn-model | src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractStartEventBuilder.java | AbstractStartEventBuilder.compensation | public B compensation() {
CompensateEventDefinition compensateEventDefinition = createCompensateEventDefinition();
element.getEventDefinitions().add(compensateEventDefinition);
return myself;
} | java | public B compensation() {
CompensateEventDefinition compensateEventDefinition = createCompensateEventDefinition();
element.getEventDefinitions().add(compensateEventDefinition);
return myself;
} | [
"public",
"B",
"compensation",
"(",
")",
"{",
"CompensateEventDefinition",
"compensateEventDefinition",
"=",
"createCompensateEventDefinition",
"(",
")",
";",
"element",
".",
"getEventDefinitions",
"(",
")",
".",
"add",
"(",
"compensateEventDefinition",
")",
";",
"ret... | Sets a catch compensation definition.
@return the builder object | [
"Sets",
"a",
"catch",
"compensation",
"definition",
"."
] | debcadf041d10fa62b799de0307b832cea84e5d4 | https://github.com/camunda/camunda-bpmn-model/blob/debcadf041d10fa62b799de0307b832cea84e5d4/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractStartEventBuilder.java#L194-L199 |
58,464 | netty/netty-tcnative | openssl-dynamic/src/main/java/io/netty/internal/tcnative/SSLContext.java | SSLContext.setSessionTicketKeys | public static void setSessionTicketKeys(long ctx, SessionTicketKey[] keys) {
if (keys == null || keys.length == 0) {
throw new IllegalArgumentException("Length of the keys should be longer than 0.");
}
byte[] binaryKeys = new byte[keys.length * SessionTicketKey.TICKET_KEY_SIZE];
... | java | public static void setSessionTicketKeys(long ctx, SessionTicketKey[] keys) {
if (keys == null || keys.length == 0) {
throw new IllegalArgumentException("Length of the keys should be longer than 0.");
}
byte[] binaryKeys = new byte[keys.length * SessionTicketKey.TICKET_KEY_SIZE];
... | [
"public",
"static",
"void",
"setSessionTicketKeys",
"(",
"long",
"ctx",
",",
"SessionTicketKey",
"[",
"]",
"keys",
")",
"{",
"if",
"(",
"keys",
"==",
"null",
"||",
"keys",
".",
"length",
"==",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",... | Set TLS session ticket keys.
<p> The first key in the list is the primary key. Tickets dervied from the other keys
in the list will be accepted but updated to a new ticket using the primary key. This
is useful for implementing ticket key rotation.
See <a href="https://tools.ietf.org/html/rfc5077">RFC 5077</a>
@param ... | [
"Set",
"TLS",
"session",
"ticket",
"keys",
"."
] | 4a5d7330c6c36cff2bebbb465571cab1cf7a4063 | https://github.com/netty/netty-tcnative/blob/4a5d7330c6c36cff2bebbb465571cab1cf7a4063/openssl-dynamic/src/main/java/io/netty/internal/tcnative/SSLContext.java#L423-L438 |
58,465 | netty/netty-tcnative | openssl-dynamic/src/main/java/io/netty/internal/tcnative/Library.java | Library.calculatePackagePrefix | private static String calculatePackagePrefix() {
String maybeShaded = Library.class.getName();
// Use ! instead of . to avoid shading utilities from modifying the string
String expected = "io!netty!internal!tcnative!Library".replace('!', '.');
if (!maybeShaded.endsWith(expected)) {
... | java | private static String calculatePackagePrefix() {
String maybeShaded = Library.class.getName();
// Use ! instead of . to avoid shading utilities from modifying the string
String expected = "io!netty!internal!tcnative!Library".replace('!', '.');
if (!maybeShaded.endsWith(expected)) {
... | [
"private",
"static",
"String",
"calculatePackagePrefix",
"(",
")",
"{",
"String",
"maybeShaded",
"=",
"Library",
".",
"class",
".",
"getName",
"(",
")",
";",
"// Use ! instead of . to avoid shading utilities from modifying the string",
"String",
"expected",
"=",
"\"io!net... | The shading prefix added to this class's full name.
@throws UnsatisfiedLinkError if the shader used something other than a prefix | [
"The",
"shading",
"prefix",
"added",
"to",
"this",
"class",
"s",
"full",
"name",
"."
] | 4a5d7330c6c36cff2bebbb465571cab1cf7a4063 | https://github.com/netty/netty-tcnative/blob/4a5d7330c6c36cff2bebbb465571cab1cf7a4063/openssl-dynamic/src/main/java/io/netty/internal/tcnative/Library.java#L103-L113 |
58,466 | netty/netty-tcnative | openssl-dynamic/src/main/java/io/netty/internal/tcnative/Library.java | Library.initialize | public static boolean initialize(String libraryName, String engine) throws Exception {
if (_instance == null) {
_instance = libraryName == null ? new Library() : new Library(libraryName);
if (aprMajorVersion() < 1) {
throw new UnsatisfiedLinkError("Unsupported APR Versio... | java | public static boolean initialize(String libraryName, String engine) throws Exception {
if (_instance == null) {
_instance = libraryName == null ? new Library() : new Library(libraryName);
if (aprMajorVersion() < 1) {
throw new UnsatisfiedLinkError("Unsupported APR Versio... | [
"public",
"static",
"boolean",
"initialize",
"(",
"String",
"libraryName",
",",
"String",
"engine",
")",
"throws",
"Exception",
"{",
"if",
"(",
"_instance",
"==",
"null",
")",
"{",
"_instance",
"=",
"libraryName",
"==",
"null",
"?",
"new",
"Library",
"(",
... | Setup native library. This is the first method that must be called!
@param libraryName the name of the library to load
@param engine Support for external a Crypto Device ("engine"), usually
@return {@code true} if initialization was successful
@throws Exception if an error happens during initialization | [
"Setup",
"native",
"library",
".",
"This",
"is",
"the",
"first",
"method",
"that",
"must",
"be",
"called!"
] | 4a5d7330c6c36cff2bebbb465571cab1cf7a4063 | https://github.com/netty/netty-tcnative/blob/4a5d7330c6c36cff2bebbb465571cab1cf7a4063/openssl-dynamic/src/main/java/io/netty/internal/tcnative/Library.java#L145-L159 |
58,467 | GoogleCloudPlatform/app-gradle-plugin | src/main/java/com/google/cloud/tools/gradle/appengine/util/NullSafe.java | NullSafe.convert | public static <S, R> List<R> convert(List<S> source, Function<S, R> converter) {
return (source == null)
? null
: source
.stream()
.filter(Objects::nonNull)
.map(converter)
.filter(Objects::nonNull)
.collect(Collectors.toList());
} | java | public static <S, R> List<R> convert(List<S> source, Function<S, R> converter) {
return (source == null)
? null
: source
.stream()
.filter(Objects::nonNull)
.map(converter)
.filter(Objects::nonNull)
.collect(Collectors.toList());
} | [
"public",
"static",
"<",
"S",
",",
"R",
">",
"List",
"<",
"R",
">",
"convert",
"(",
"List",
"<",
"S",
">",
"source",
",",
"Function",
"<",
"S",
",",
"R",
">",
"converter",
")",
"{",
"return",
"(",
"source",
"==",
"null",
")",
"?",
"null",
":",
... | Convert a list of a given type using converter.
@param source a list to convert
@param converter the map function to apply
@param <S> type to convert from
@param <R> type to convert to
@return A converted List with all pre-conversion and post-conversion null values removed. Can
return an empty list. Will return null i... | [
"Convert",
"a",
"list",
"of",
"a",
"given",
"type",
"using",
"converter",
"."
] | 86d44fe0668e28f55eee9e002d5e19f0041efa3c | https://github.com/GoogleCloudPlatform/app-gradle-plugin/blob/86d44fe0668e28f55eee9e002d5e19f0041efa3c/src/main/java/com/google/cloud/tools/gradle/appengine/util/NullSafe.java#L40-L49 |
58,468 | GoogleCloudPlatform/app-gradle-plugin | src/main/java/com/google/cloud/tools/gradle/appengine/core/CloudSdkOperations.java | CloudSdkOperations.getDefaultHandler | public static ProcessHandler getDefaultHandler(Logger logger) {
return LegacyProcessHandler.builder()
.addStdErrLineListener(logger::lifecycle)
.addStdOutLineListener(logger::lifecycle)
.setExitListener(new NonZeroExceptionExitListener())
.build();
} | java | public static ProcessHandler getDefaultHandler(Logger logger) {
return LegacyProcessHandler.builder()
.addStdErrLineListener(logger::lifecycle)
.addStdOutLineListener(logger::lifecycle)
.setExitListener(new NonZeroExceptionExitListener())
.build();
} | [
"public",
"static",
"ProcessHandler",
"getDefaultHandler",
"(",
"Logger",
"logger",
")",
"{",
"return",
"LegacyProcessHandler",
".",
"builder",
"(",
")",
".",
"addStdErrLineListener",
"(",
"logger",
"::",
"lifecycle",
")",
".",
"addStdOutLineListener",
"(",
"logger"... | Create a return a new default configured process handler. | [
"Create",
"a",
"return",
"a",
"new",
"default",
"configured",
"process",
"handler",
"."
] | 86d44fe0668e28f55eee9e002d5e19f0041efa3c | https://github.com/GoogleCloudPlatform/app-gradle-plugin/blob/86d44fe0668e28f55eee9e002d5e19f0041efa3c/src/main/java/com/google/cloud/tools/gradle/appengine/core/CloudSdkOperations.java#L82-L88 |
58,469 | GoogleCloudPlatform/app-gradle-plugin | src/main/java/com/google/cloud/tools/gradle/appengine/standard/ExplodeWarTask.java | ExplodeWarTask.setExplodedAppDirectory | public void setExplodedAppDirectory(File explodedAppDirectory) {
this.explodedAppDirectory = explodedAppDirectory;
into(explodedAppDirectory);
preserve(
patternFilterable ->
patternFilterable.include("WEB-INF/appengine-generated/datastore-indexes-auto.xml"));
} | java | public void setExplodedAppDirectory(File explodedAppDirectory) {
this.explodedAppDirectory = explodedAppDirectory;
into(explodedAppDirectory);
preserve(
patternFilterable ->
patternFilterable.include("WEB-INF/appengine-generated/datastore-indexes-auto.xml"));
} | [
"public",
"void",
"setExplodedAppDirectory",
"(",
"File",
"explodedAppDirectory",
")",
"{",
"this",
".",
"explodedAppDirectory",
"=",
"explodedAppDirectory",
";",
"into",
"(",
"explodedAppDirectory",
")",
";",
"preserve",
"(",
"patternFilterable",
"->",
"patternFilterab... | Sets the output directory of Sync Task and preserves the setting so it can be recovered later
via getter. | [
"Sets",
"the",
"output",
"directory",
"of",
"Sync",
"Task",
"and",
"preserves",
"the",
"setting",
"so",
"it",
"can",
"be",
"recovered",
"later",
"via",
"getter",
"."
] | 86d44fe0668e28f55eee9e002d5e19f0041efa3c | https://github.com/GoogleCloudPlatform/app-gradle-plugin/blob/86d44fe0668e28f55eee9e002d5e19f0041efa3c/src/main/java/com/google/cloud/tools/gradle/appengine/standard/ExplodeWarTask.java#L37-L43 |
58,470 | GoogleCloudPlatform/app-gradle-plugin | src/main/java/com/google/cloud/tools/gradle/appengine/appyaml/StageAppYamlExtension.java | StageAppYamlExtension.getExtraFilesDirectoriesAsInputFiles | @Optional
@InputFiles
public FileCollection getExtraFilesDirectoriesAsInputFiles() {
if (extraFilesDirectories == null) {
return null;
}
FileCollection files = project.files();
for (File directory : extraFilesDirectories) {
files = files.plus(project.fileTree(directory));
}
retur... | java | @Optional
@InputFiles
public FileCollection getExtraFilesDirectoriesAsInputFiles() {
if (extraFilesDirectories == null) {
return null;
}
FileCollection files = project.files();
for (File directory : extraFilesDirectories) {
files = files.plus(project.fileTree(directory));
}
retur... | [
"@",
"Optional",
"@",
"InputFiles",
"public",
"FileCollection",
"getExtraFilesDirectoriesAsInputFiles",
"(",
")",
"{",
"if",
"(",
"extraFilesDirectories",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"FileCollection",
"files",
"=",
"project",
".",
"files",
... | This method is purely for incremental build calculations. | [
"This",
"method",
"is",
"purely",
"for",
"incremental",
"build",
"calculations",
"."
] | 86d44fe0668e28f55eee9e002d5e19f0041efa3c | https://github.com/GoogleCloudPlatform/app-gradle-plugin/blob/86d44fe0668e28f55eee9e002d5e19f0041efa3c/src/main/java/com/google/cloud/tools/gradle/appengine/appyaml/StageAppYamlExtension.java#L87-L98 |
58,471 | GoogleCloudPlatform/app-gradle-plugin | src/main/java/com/google/cloud/tools/gradle/appengine/core/AppEngineCorePluginConfiguration.java | AppEngineCorePluginConfiguration.configureCoreProperties | public void configureCoreProperties(
Project project,
AppEngineCoreExtensionProperties appEngineCoreExtensionProperties,
String taskGroup,
boolean requiresAppEngineJava) {
project
.getLogger()
.warn(
"WARNING: You are a using release candidate "
+ ... | java | public void configureCoreProperties(
Project project,
AppEngineCoreExtensionProperties appEngineCoreExtensionProperties,
String taskGroup,
boolean requiresAppEngineJava) {
project
.getLogger()
.warn(
"WARNING: You are a using release candidate "
+ ... | [
"public",
"void",
"configureCoreProperties",
"(",
"Project",
"project",
",",
"AppEngineCoreExtensionProperties",
"appEngineCoreExtensionProperties",
",",
"String",
"taskGroup",
",",
"boolean",
"requiresAppEngineJava",
")",
"{",
"project",
".",
"getLogger",
"(",
")",
".",
... | Configure core tasks for appengine app.yaml and appengine-web.xml based project plugins. | [
"Configure",
"core",
"tasks",
"for",
"appengine",
"app",
".",
"yaml",
"and",
"appengine",
"-",
"web",
".",
"xml",
"based",
"project",
"plugins",
"."
] | 86d44fe0668e28f55eee9e002d5e19f0041efa3c | https://github.com/GoogleCloudPlatform/app-gradle-plugin/blob/86d44fe0668e28f55eee9e002d5e19f0041efa3c/src/main/java/com/google/cloud/tools/gradle/appengine/core/AppEngineCorePluginConfiguration.java#L59-L97 |
58,472 | GoogleCloudPlatform/app-gradle-plugin | src/main/java/com/google/cloud/tools/gradle/appengine/util/AppEngineWebXml.java | AppEngineWebXml.isVm | public boolean isVm() {
try {
XPath xpath = XPathFactory.newInstance().newXPath();
String expression = "/appengine-web-app/vm/text()='true'";
return (Boolean) xpath.evaluate(expression, document, XPathConstants.BOOLEAN);
} catch (XPathExpressionException e) {
throw new GradleException("X... | java | public boolean isVm() {
try {
XPath xpath = XPathFactory.newInstance().newXPath();
String expression = "/appengine-web-app/vm/text()='true'";
return (Boolean) xpath.evaluate(expression, document, XPathConstants.BOOLEAN);
} catch (XPathExpressionException e) {
throw new GradleException("X... | [
"public",
"boolean",
"isVm",
"(",
")",
"{",
"try",
"{",
"XPath",
"xpath",
"=",
"XPathFactory",
".",
"newInstance",
"(",
")",
".",
"newXPath",
"(",
")",
";",
"String",
"expression",
"=",
"\"/appengine-web-app/vm/text()='true'\"",
";",
"return",
"(",
"Boolean",
... | Check if vm = true. | [
"Check",
"if",
"vm",
"=",
"true",
"."
] | 86d44fe0668e28f55eee9e002d5e19f0041efa3c | https://github.com/GoogleCloudPlatform/app-gradle-plugin/blob/86d44fe0668e28f55eee9e002d5e19f0041efa3c/src/main/java/com/google/cloud/tools/gradle/appengine/util/AppEngineWebXml.java#L53-L61 |
58,473 | GoogleCloudPlatform/app-gradle-plugin | src/main/java/com/google/cloud/tools/gradle/appengine/core/ManagedCloudSdkFactory.java | ManagedCloudSdkFactory.newManagedSdk | public ManagedCloudSdk newManagedSdk()
throws UnsupportedOsException, BadCloudSdkVersionException {
if (Strings.isNullOrEmpty(version)) {
return ManagedCloudSdk.newManagedSdk();
} else {
return ManagedCloudSdk.newManagedSdk(new Version(version));
}
} | java | public ManagedCloudSdk newManagedSdk()
throws UnsupportedOsException, BadCloudSdkVersionException {
if (Strings.isNullOrEmpty(version)) {
return ManagedCloudSdk.newManagedSdk();
} else {
return ManagedCloudSdk.newManagedSdk(new Version(version));
}
} | [
"public",
"ManagedCloudSdk",
"newManagedSdk",
"(",
")",
"throws",
"UnsupportedOsException",
",",
"BadCloudSdkVersionException",
"{",
"if",
"(",
"Strings",
".",
"isNullOrEmpty",
"(",
"version",
")",
")",
"{",
"return",
"ManagedCloudSdk",
".",
"newManagedSdk",
"(",
")... | Build a new ManagedCloudSdk from a given version. | [
"Build",
"a",
"new",
"ManagedCloudSdk",
"from",
"a",
"given",
"version",
"."
] | 86d44fe0668e28f55eee9e002d5e19f0041efa3c | https://github.com/GoogleCloudPlatform/app-gradle-plugin/blob/86d44fe0668e28f55eee9e002d5e19f0041efa3c/src/main/java/com/google/cloud/tools/gradle/appengine/core/ManagedCloudSdkFactory.java#L35-L42 |
58,474 | GoogleCloudPlatform/app-gradle-plugin | src/main/java/com/google/cloud/tools/gradle/appengine/util/ExtensionUtil.java | ExtensionUtil.get | @SuppressWarnings("unchecked")
public <T> T get(String... path) {
ExtensionAware root = searchRoot;
for (String name : path) {
ExtensionContainer children = root.getExtensions();
root = (ExtensionAware) children.getByName(name);
}
return (T) root; // this is potentially unchecked.
} | java | @SuppressWarnings("unchecked")
public <T> T get(String... path) {
ExtensionAware root = searchRoot;
for (String name : path) {
ExtensionContainer children = root.getExtensions();
root = (ExtensionAware) children.getByName(name);
}
return (T) root; // this is potentially unchecked.
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
">",
"T",
"get",
"(",
"String",
"...",
"path",
")",
"{",
"ExtensionAware",
"root",
"=",
"searchRoot",
";",
"for",
"(",
"String",
"name",
":",
"path",
")",
"{",
"ExtensionContainer",
... | Get an extension by it's path, potentially will throw all kinds of exceptions. Be very careful. | [
"Get",
"an",
"extension",
"by",
"it",
"s",
"path",
"potentially",
"will",
"throw",
"all",
"kinds",
"of",
"exceptions",
".",
"Be",
"very",
"careful",
"."
] | 86d44fe0668e28f55eee9e002d5e19f0041efa3c | https://github.com/GoogleCloudPlatform/app-gradle-plugin/blob/86d44fe0668e28f55eee9e002d5e19f0041efa3c/src/main/java/com/google/cloud/tools/gradle/appengine/util/ExtensionUtil.java#L34-L42 |
58,475 | GoogleCloudPlatform/app-gradle-plugin | src/main/java/com/google/cloud/tools/gradle/appengine/sourcecontext/SourceContextPlugin.java | SourceContextPlugin.configureArchiveTask | private void configureArchiveTask(AbstractArchiveTask archiveTask) {
if (archiveTask == null) {
return;
}
archiveTask.dependsOn("_createSourceContext");
archiveTask.from(extension.getOutputDirectory(), copySpec -> copySpec.into("WEB-INF/classes"));
} | java | private void configureArchiveTask(AbstractArchiveTask archiveTask) {
if (archiveTask == null) {
return;
}
archiveTask.dependsOn("_createSourceContext");
archiveTask.from(extension.getOutputDirectory(), copySpec -> copySpec.into("WEB-INF/classes"));
} | [
"private",
"void",
"configureArchiveTask",
"(",
"AbstractArchiveTask",
"archiveTask",
")",
"{",
"if",
"(",
"archiveTask",
"==",
"null",
")",
"{",
"return",
";",
"}",
"archiveTask",
".",
"dependsOn",
"(",
"\"_createSourceContext\"",
")",
";",
"archiveTask",
".",
... | inject source-context into the META-INF directory of a jar or war | [
"inject",
"source",
"-",
"context",
"into",
"the",
"META",
"-",
"INF",
"directory",
"of",
"a",
"jar",
"or",
"war"
] | 86d44fe0668e28f55eee9e002d5e19f0041efa3c | https://github.com/GoogleCloudPlatform/app-gradle-plugin/blob/86d44fe0668e28f55eee9e002d5e19f0041efa3c/src/main/java/com/google/cloud/tools/gradle/appengine/sourcecontext/SourceContextPlugin.java#L96-L102 |
58,476 | dmart28/reveno | reveno-metrics/src/main/java/org/reveno/atp/metrics/impl/PickledGraphite.java | PickledGraphite.writeMetrics | private void writeMetrics() throws IOException {
if (metrics.size() > 0) {
try {
byte[] payload = pickleMetrics(metrics);
byte[] header = ByteBuffer.allocate(4).putInt(payload.length).array();
OutputStream outputStream = socket.getOutputStream();
... | java | private void writeMetrics() throws IOException {
if (metrics.size() > 0) {
try {
byte[] payload = pickleMetrics(metrics);
byte[] header = ByteBuffer.allocate(4).putInt(payload.length).array();
OutputStream outputStream = socket.getOutputStream();
... | [
"private",
"void",
"writeMetrics",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"metrics",
".",
"size",
"(",
")",
">",
"0",
")",
"{",
"try",
"{",
"byte",
"[",
"]",
"payload",
"=",
"pickleMetrics",
"(",
"metrics",
")",
";",
"byte",
"[",
"]",
"... | 1. Run the pickler script to package all the pending metrics into a single message
2. Send the message to graphite
3. Clear out the list of metrics | [
"1",
".",
"Run",
"the",
"pickler",
"script",
"to",
"package",
"all",
"the",
"pending",
"metrics",
"into",
"a",
"single",
"message",
"2",
".",
"Send",
"the",
"message",
"to",
"graphite",
"3",
".",
"Clear",
"out",
"the",
"list",
"of",
"metrics"
] | 33617651fab8f0c0af70e7d3af7273cdbfe164d2 | https://github.com/dmart28/reveno/blob/33617651fab8f0c0af70e7d3af7273cdbfe164d2/reveno-metrics/src/main/java/org/reveno/atp/metrics/impl/PickledGraphite.java#L224-L248 |
58,477 | dmart28/reveno | reveno-core/src/main/java/org/reveno/atp/core/restore/DefaultSystemStateRestorer.java | DefaultSystemStateRestorer.restore | @Override
public SystemState restore(long fromVersion, TxRepository repository) {
workflowContext.repository(repository);
final long snapshotTransactionId = repository.getO(SystemInfo.class, 0L).orElse(new SystemInfo(0L)).lastTransactionId;
final long[] transactionId = {snapshotTransactionId... | java | @Override
public SystemState restore(long fromVersion, TxRepository repository) {
workflowContext.repository(repository);
final long snapshotTransactionId = repository.getO(SystemInfo.class, 0L).orElse(new SystemInfo(0L)).lastTransactionId;
final long[] transactionId = {snapshotTransactionId... | [
"@",
"Override",
"public",
"SystemState",
"restore",
"(",
"long",
"fromVersion",
",",
"TxRepository",
"repository",
")",
"{",
"workflowContext",
".",
"repository",
"(",
"repository",
")",
";",
"final",
"long",
"snapshotTransactionId",
"=",
"repository",
".",
"getO... | Reads all journals and restores all previous system mode state from them
into the given repository. Also, re-publish all events that were not sent
by the reason of failure, abortion, etc.
@param repository into which latest state of model will be loaded
@return information about last system state, such as last transac... | [
"Reads",
"all",
"journals",
"and",
"restores",
"all",
"previous",
"system",
"mode",
"state",
"from",
"them",
"into",
"the",
"given",
"repository",
".",
"Also",
"re",
"-",
"publish",
"all",
"events",
"that",
"were",
"not",
"sent",
"by",
"the",
"reason",
"of... | 33617651fab8f0c0af70e7d3af7273cdbfe164d2 | https://github.com/dmart28/reveno/blob/33617651fab8f0c0af70e7d3af7273cdbfe164d2/reveno-core/src/main/java/org/reveno/atp/core/restore/DefaultSystemStateRestorer.java#L39-L65 |
58,478 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/util/db/DbUtils.java | DbUtils.printStackTrace | public static void printStackTrace(SQLException e, PrintWriter pw) {
SQLException next = e;
while (next != null) {
next.printStackTrace(pw);
next = next.getNextException();
if (next != null) {
pw.println("Next SQLException:");
}
}
... | java | public static void printStackTrace(SQLException e, PrintWriter pw) {
SQLException next = e;
while (next != null) {
next.printStackTrace(pw);
next = next.getNextException();
if (next != null) {
pw.println("Next SQLException:");
}
}
... | [
"public",
"static",
"void",
"printStackTrace",
"(",
"SQLException",
"e",
",",
"PrintWriter",
"pw",
")",
"{",
"SQLException",
"next",
"=",
"e",
";",
"while",
"(",
"next",
"!=",
"null",
")",
"{",
"next",
".",
"printStackTrace",
"(",
"pw",
")",
";",
"next",... | Print the stack trace for a SQLException to a
specified PrintWriter.
@param e SQLException to print stack trace of
@param pw PrintWriter to print to | [
"Print",
"the",
"stack",
"trace",
"for",
"a",
"SQLException",
"to",
"a",
"specified",
"PrintWriter",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/util/db/DbUtils.java#L207-L217 |
58,479 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/util/db/DbUtils.java | DbUtils.printWarnings | public static void printWarnings(Connection conn, PrintWriter pw) {
if (conn != null) {
try {
printStackTrace(conn.getWarnings(), pw);
} catch (SQLException e) {
printStackTrace(e, pw);
}
}
} | java | public static void printWarnings(Connection conn, PrintWriter pw) {
if (conn != null) {
try {
printStackTrace(conn.getWarnings(), pw);
} catch (SQLException e) {
printStackTrace(e, pw);
}
}
} | [
"public",
"static",
"void",
"printWarnings",
"(",
"Connection",
"conn",
",",
"PrintWriter",
"pw",
")",
"{",
"if",
"(",
"conn",
"!=",
"null",
")",
"{",
"try",
"{",
"printStackTrace",
"(",
"conn",
".",
"getWarnings",
"(",
")",
",",
"pw",
")",
";",
"}",
... | Print warnings on a Connection to a specified PrintWriter.
@param conn Connection to print warnings from
@param pw PrintWriter to print to | [
"Print",
"warnings",
"on",
"a",
"Connection",
"to",
"a",
"specified",
"PrintWriter",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/util/db/DbUtils.java#L234-L242 |
58,480 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/BootstrapSocketConnector.java | BootstrapSocketConnector.connect | public XComponentContext connect(String host, int port) throws BootstrapException {
String unoConnectString = "uno:socket,host=" + host + ",port=" + port + ";urp;StarOffice.ComponentContext";
return connect(unoConnectString);
} | java | public XComponentContext connect(String host, int port) throws BootstrapException {
String unoConnectString = "uno:socket,host=" + host + ",port=" + port + ";urp;StarOffice.ComponentContext";
return connect(unoConnectString);
} | [
"public",
"XComponentContext",
"connect",
"(",
"String",
"host",
",",
"int",
"port",
")",
"throws",
"BootstrapException",
"{",
"String",
"unoConnectString",
"=",
"\"uno:socket,host=\"",
"+",
"host",
"+",
"\",port=\"",
"+",
"port",
"+",
"\";urp;StarOffice.ComponentCont... | Connects to an OOo server using the specified host and port for the
socket and returns a component context for using the connection to the
OOo server.
@param host The host
@param port The port
@return The component context | [
"Connects",
"to",
"an",
"OOo",
"server",
"using",
"the",
"specified",
"host",
"and",
"port",
"for",
"the",
"socket",
"and",
"returns",
"a",
"component",
"context",
"for",
"using",
"the",
"connection",
"to",
"the",
"OOo",
"server",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/BootstrapSocketConnector.java#L45-L48 |
58,481 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/xls/AreaDependencyManager.java | AreaDependencyManager.addDependency | public void addDependency(Area main, Area dependent) {
List<Area> set = areasDependency.get(main);
if (set == null) {
set = new ArrayList<Area>();
areasDependency.put(main, set);
}
set.add(dependent);
} | java | public void addDependency(Area main, Area dependent) {
List<Area> set = areasDependency.get(main);
if (set == null) {
set = new ArrayList<Area>();
areasDependency.put(main, set);
}
set.add(dependent);
} | [
"public",
"void",
"addDependency",
"(",
"Area",
"main",
",",
"Area",
"dependent",
")",
"{",
"List",
"<",
"Area",
">",
"set",
"=",
"areasDependency",
".",
"get",
"(",
"main",
")",
";",
"if",
"(",
"set",
"==",
"null",
")",
"{",
"set",
"=",
"new",
"Ar... | Adds area dependency for formula calculations
@param main Main area
@param dependent Dependent area | [
"Adds",
"area",
"dependency",
"for",
"formula",
"calculations"
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/xls/AreaDependencyManager.java#L40-L48 |
58,482 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/OOServer.java | OOServer.kill | public synchronized void kill() {
if (oooProcess != null) {
log.info("OOServer is killing office instance with port {}", port);
List<Long> pids = processManager.findPid(host, port);
processManager.kill(oooProcess, pids);
oooProcess = null;
}
} | java | public synchronized void kill() {
if (oooProcess != null) {
log.info("OOServer is killing office instance with port {}", port);
List<Long> pids = processManager.findPid(host, port);
processManager.kill(oooProcess, pids);
oooProcess = null;
}
} | [
"public",
"synchronized",
"void",
"kill",
"(",
")",
"{",
"if",
"(",
"oooProcess",
"!=",
"null",
")",
"{",
"log",
".",
"info",
"(",
"\"OOServer is killing office instance with port {}\"",
",",
"port",
")",
";",
"List",
"<",
"Long",
">",
"pids",
"=",
"processM... | Kills the OOo server process from the previous start.
If there has been no previous start of the OOo server, the kill does
nothing.
If there has been a previous start, kill destroys the process. | [
"Kills",
"the",
"OOo",
"server",
"process",
"from",
"the",
"previous",
"start",
".",
"If",
"there",
"has",
"been",
"no",
"previous",
"start",
"of",
"the",
"OOo",
"server",
"the",
"kill",
"does",
"nothing",
".",
"If",
"there",
"has",
"been",
"a",
"previou... | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/OOServer.java#L130-L137 |
58,483 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/BootstrapConnector.java | BootstrapConnector.connect | public XComponentContext connect(String oooConnectionString) throws BootstrapException {
this.oooConnectionString = oooConnectionString;
XComponentContext xContext = null;
try {
// get local context
XComponentContext xLocalContext = getLocalContext();
oooSe... | java | public XComponentContext connect(String oooConnectionString) throws BootstrapException {
this.oooConnectionString = oooConnectionString;
XComponentContext xContext = null;
try {
// get local context
XComponentContext xLocalContext = getLocalContext();
oooSe... | [
"public",
"XComponentContext",
"connect",
"(",
"String",
"oooConnectionString",
")",
"throws",
"BootstrapException",
"{",
"this",
".",
"oooConnectionString",
"=",
"oooConnectionString",
";",
"XComponentContext",
"xContext",
"=",
"null",
";",
"try",
"{",
"// get local co... | Connects to an OOo server using the specified accept option and
connection string and returns a component context for using the
connection to the OOo server.
The accept option and the connection string should match to get a
connection. OOo provides to different types of connections:
1) The socket connection
2) The nam... | [
"Connects",
"to",
"an",
"OOo",
"server",
"using",
"the",
"specified",
"accept",
"option",
"and",
"connection",
"string",
"and",
"returns",
"a",
"component",
"context",
"for",
"using",
"the",
"connection",
"to",
"the",
"OOo",
"server",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/BootstrapConnector.java#L94-L133 |
58,484 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/BootstrapConnector.java | BootstrapConnector.disconnect | public void disconnect() {
if (oooConnectionString == null)
return;
// call office to terminate itself
try {
// get local context
XComponentContext xLocalContext = getLocalContext();
// create a URL resolver
XUnoUrlResolver xUrlResol... | java | public void disconnect() {
if (oooConnectionString == null)
return;
// call office to terminate itself
try {
// get local context
XComponentContext xLocalContext = getLocalContext();
// create a URL resolver
XUnoUrlResolver xUrlResol... | [
"public",
"void",
"disconnect",
"(",
")",
"{",
"if",
"(",
"oooConnectionString",
"==",
"null",
")",
"return",
";",
"// call office to terminate itself",
"try",
"{",
"// get local context",
"XComponentContext",
"xLocalContext",
"=",
"getLocalContext",
"(",
")",
";",
... | Disconnects from an OOo server using the connection string from the
previous connect.
If there has been no previous connect, the disconnects does nothing.
If there has been a previous connect, disconnect tries to terminate
the OOo server and kills the OOo server process the connect started. | [
"Disconnects",
"from",
"an",
"OOo",
"server",
"using",
"the",
"connection",
"string",
"from",
"the",
"previous",
"connect",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/BootstrapConnector.java#L144-L171 |
58,485 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/BootstrapConnector.java | BootstrapConnector.getLocalContext | protected XComponentContext getLocalContext() throws BootstrapException, Exception {
XComponentContext xLocalContext = Bootstrap.createInitialComponentContext(null);
if (xLocalContext == null) {
throw new BootstrapException("no local component context!");
}
return xLocalCont... | java | protected XComponentContext getLocalContext() throws BootstrapException, Exception {
XComponentContext xLocalContext = Bootstrap.createInitialComponentContext(null);
if (xLocalContext == null) {
throw new BootstrapException("no local component context!");
}
return xLocalCont... | [
"protected",
"XComponentContext",
"getLocalContext",
"(",
")",
"throws",
"BootstrapException",
",",
"Exception",
"{",
"XComponentContext",
"xLocalContext",
"=",
"Bootstrap",
".",
"createInitialComponentContext",
"(",
"null",
")",
";",
"if",
"(",
"xLocalContext",
"==",
... | Create default local component context.
@return The default local component context | [
"Create",
"default",
"local",
"component",
"context",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/BootstrapConnector.java#L178-L185 |
58,486 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/BootstrapConnector.java | BootstrapConnector.getRemoteContext | protected XComponentContext getRemoteContext(XUnoUrlResolver xUrlResolver) throws BootstrapException, ConnectionSetupException, IllegalArgumentException, NoConnectException {
Object context = xUrlResolver.resolve(oooConnectionString);
XComponentContext xContext = (XComponentContext) UnoRuntime.queryInt... | java | protected XComponentContext getRemoteContext(XUnoUrlResolver xUrlResolver) throws BootstrapException, ConnectionSetupException, IllegalArgumentException, NoConnectException {
Object context = xUrlResolver.resolve(oooConnectionString);
XComponentContext xContext = (XComponentContext) UnoRuntime.queryInt... | [
"protected",
"XComponentContext",
"getRemoteContext",
"(",
"XUnoUrlResolver",
"xUrlResolver",
")",
"throws",
"BootstrapException",
",",
"ConnectionSetupException",
",",
"IllegalArgumentException",
",",
"NoConnectException",
"{",
"Object",
"context",
"=",
"xUrlResolver",
".",
... | Try to connect to office.
@return The remote component context | [
"Try",
"to",
"connect",
"to",
"office",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/doc/connector/BootstrapConnector.java#L192-L200 |
58,487 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/jasper/JRBandDataDataSource.java | JRBandDataDataSource.next | @Override
public boolean next() throws JRException {
List<BandData> children = currentBand.getChildrenList();
if (children != null && !children.isEmpty() && !visitedBands.containsKey(currentBand)) {
currentIterator = children.iterator();
visitedBands.put(currentBand, current... | java | @Override
public boolean next() throws JRException {
List<BandData> children = currentBand.getChildrenList();
if (children != null && !children.isEmpty() && !visitedBands.containsKey(currentBand)) {
currentIterator = children.iterator();
visitedBands.put(currentBand, current... | [
"@",
"Override",
"public",
"boolean",
"next",
"(",
")",
"throws",
"JRException",
"{",
"List",
"<",
"BandData",
">",
"children",
"=",
"currentBand",
".",
"getChildrenList",
"(",
")",
";",
"if",
"(",
"children",
"!=",
"null",
"&&",
"!",
"children",
".",
"i... | Maintains visitedBands to continue bypass on the same
level after return from deeper level of hierarchy.
Creates iterator for each level. | [
"Maintains",
"visitedBands",
"to",
"continue",
"bypass",
"on",
"the",
"same",
"level",
"after",
"return",
"from",
"deeper",
"level",
"of",
"hierarchy",
".",
"Creates",
"iterator",
"for",
"each",
"level",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/jasper/JRBandDataDataSource.java#L54-L81 |
58,488 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/jasper/JRBandDataDataSource.java | JRBandDataDataSource.subDataSource | public JRBandDataDataSource subDataSource(String bandName) {
if (containsVisitedBand(bandName))
return null;
BandData newParentBand = createNewBand(bandName);
currentBand = root;
currentIterator = root.getChildrenList().iterator();
visitedBands.put(root, currentIter... | java | public JRBandDataDataSource subDataSource(String bandName) {
if (containsVisitedBand(bandName))
return null;
BandData newParentBand = createNewBand(bandName);
currentBand = root;
currentIterator = root.getChildrenList().iterator();
visitedBands.put(root, currentIter... | [
"public",
"JRBandDataDataSource",
"subDataSource",
"(",
"String",
"bandName",
")",
"{",
"if",
"(",
"containsVisitedBand",
"(",
"bandName",
")",
")",
"return",
"null",
";",
"BandData",
"newParentBand",
"=",
"createNewBand",
"(",
"bandName",
")",
";",
"currentBand",... | Search for first level children band with specified name
and return new datasource with this band as root element. | [
"Search",
"for",
"first",
"level",
"children",
"band",
"with",
"specified",
"name",
"and",
"return",
"new",
"datasource",
"with",
"this",
"band",
"as",
"root",
"element",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/jasper/JRBandDataDataSource.java#L99-L110 |
58,489 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/util/db/QueryRunner.java | QueryRunner.query | public <T> T query(Connection conn, String sql, Object param,
ResultSetHandler<T> rsh) throws SQLException {
return this.query(conn, sql, new Object[] { param }, rsh);
} | java | public <T> T query(Connection conn, String sql, Object param,
ResultSetHandler<T> rsh) throws SQLException {
return this.query(conn, sql, new Object[] { param }, rsh);
} | [
"public",
"<",
"T",
">",
"T",
"query",
"(",
"Connection",
"conn",
",",
"String",
"sql",
",",
"Object",
"param",
",",
"ResultSetHandler",
"<",
"T",
">",
"rsh",
")",
"throws",
"SQLException",
"{",
"return",
"this",
".",
"query",
"(",
"conn",
",",
"sql",
... | Execute an SQL SELECT query with a single replacement parameter. The
caller is responsible for closing the connection.
@param conn The connection to execute the query in.
@param sql The query to execute.
@param param The replacement parameter.
@param rsh The handler that converts the results into an object.
@return Th... | [
"Execute",
"an",
"SQL",
"SELECT",
"query",
"with",
"a",
"single",
"replacement",
"parameter",
".",
"The",
"caller",
"is",
"responsible",
"for",
"closing",
"the",
"connection",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/util/db/QueryRunner.java#L265-L269 |
58,490 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/util/db/QueryRunner.java | QueryRunner.query | public <T> T query(Connection conn, String sql, Object[] params,
ResultSetHandler<T> rsh) throws SQLException {
PreparedStatement stmt = null;
ResultSet rs = null;
T result = null;
try {
stmt = this.prepareStatement(conn, sql);
this.fillStatement(stm... | java | public <T> T query(Connection conn, String sql, Object[] params,
ResultSetHandler<T> rsh) throws SQLException {
PreparedStatement stmt = null;
ResultSet rs = null;
T result = null;
try {
stmt = this.prepareStatement(conn, sql);
this.fillStatement(stm... | [
"public",
"<",
"T",
">",
"T",
"query",
"(",
"Connection",
"conn",
",",
"String",
"sql",
",",
"Object",
"[",
"]",
"params",
",",
"ResultSetHandler",
"<",
"T",
">",
"rsh",
")",
"throws",
"SQLException",
"{",
"PreparedStatement",
"stmt",
"=",
"null",
";",
... | Execute an SQL SELECT query with replacement parameters. The
caller is responsible for closing the connection.
@param conn The connection to execute the query in.
@param sql The query to execute.
@param params The replacement parameters.
@param rsh The handler that converts the results into an object.
@return The obj... | [
"Execute",
"an",
"SQL",
"SELECT",
"query",
"with",
"replacement",
"parameters",
".",
"The",
"caller",
"is",
"responsible",
"for",
"closing",
"the",
"connection",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/util/db/QueryRunner.java#L282-L307 |
58,491 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/util/db/QueryRunner.java | QueryRunner.update | public int update(Connection conn, String sql) throws SQLException {
return this.update(conn, sql, (Object[]) null);
} | java | public int update(Connection conn, String sql) throws SQLException {
return this.update(conn, sql, (Object[]) null);
} | [
"public",
"int",
"update",
"(",
"Connection",
"conn",
",",
"String",
"sql",
")",
"throws",
"SQLException",
"{",
"return",
"this",
".",
"update",
"(",
"conn",
",",
"sql",
",",
"(",
"Object",
"[",
"]",
")",
"null",
")",
";",
"}"
] | Execute an SQL INSERT, UPDATE, or DELETE query without replacement
parameters.
@param conn The connection to use to run the query.
@param sql The SQL to execute.
@return The number of rows updated.
@throws java.sql.SQLException if a database access error occurs | [
"Execute",
"an",
"SQL",
"INSERT",
"UPDATE",
"or",
"DELETE",
"query",
"without",
"replacement",
"parameters",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/util/db/QueryRunner.java#L443-L445 |
58,492 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/util/db/QueryRunner.java | QueryRunner.update | public int update(Connection conn, String sql, Object param)
throws SQLException {
return this.update(conn, sql, new Object[] { param });
} | java | public int update(Connection conn, String sql, Object param)
throws SQLException {
return this.update(conn, sql, new Object[] { param });
} | [
"public",
"int",
"update",
"(",
"Connection",
"conn",
",",
"String",
"sql",
",",
"Object",
"param",
")",
"throws",
"SQLException",
"{",
"return",
"this",
".",
"update",
"(",
"conn",
",",
"sql",
",",
"new",
"Object",
"[",
"]",
"{",
"param",
"}",
")",
... | Execute an SQL INSERT, UPDATE, or DELETE query with a single replacement
parameter.
@param conn The connection to use to run the query.
@param sql The SQL to execute.
@param param The replacement parameter.
@return The number of rows updated.
@throws java.sql.SQLException if a database access error occurs | [
"Execute",
"an",
"SQL",
"INSERT",
"UPDATE",
"or",
"DELETE",
"query",
"with",
"a",
"single",
"replacement",
"parameter",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/util/db/QueryRunner.java#L457-L461 |
58,493 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/util/db/QueryRunner.java | QueryRunner.update | public int update(Connection conn, String sql, Object[] params, int[] paramTypes)
throws SQLException {
if ((paramTypes != null) && params.length != paramTypes.length) {
throw new IllegalArgumentException("Sizes of params and paramTypes must be equal!");
}
PreparedStatement... | java | public int update(Connection conn, String sql, Object[] params, int[] paramTypes)
throws SQLException {
if ((paramTypes != null) && params.length != paramTypes.length) {
throw new IllegalArgumentException("Sizes of params and paramTypes must be equal!");
}
PreparedStatement... | [
"public",
"int",
"update",
"(",
"Connection",
"conn",
",",
"String",
"sql",
",",
"Object",
"[",
"]",
"params",
",",
"int",
"[",
"]",
"paramTypes",
")",
"throws",
"SQLException",
"{",
"if",
"(",
"(",
"paramTypes",
"!=",
"null",
")",
"&&",
"params",
".",... | Execute an SQL INSERT, UPDATE, or DELETE query.
@param conn The connection to use to run the query.
@param sql The SQL to execute.
@param params The query replacement parameters.
@param paramTypes The query replacement parameters.
@return The number of rows updated.
@throws java.sql.SQLException if a database access e... | [
"Execute",
"an",
"SQL",
"INSERT",
"UPDATE",
"or",
"DELETE",
"query",
"."
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/util/db/QueryRunner.java#L488-L511 |
58,494 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/XLSFormatter.java | XLSFormatter.copyMergeRegions | protected void copyMergeRegions(HSSFSheet resultSheet, String rangeName,
int firstTargetRangeRow, int firstTargetRangeColumn) {
int rangeNameIdx = templateWorkbook.getNameIndex(rangeName);
if (rangeNameIdx == -1) return;
HSSFName aNamedRange = templateWorkboo... | java | protected void copyMergeRegions(HSSFSheet resultSheet, String rangeName,
int firstTargetRangeRow, int firstTargetRangeColumn) {
int rangeNameIdx = templateWorkbook.getNameIndex(rangeName);
if (rangeNameIdx == -1) return;
HSSFName aNamedRange = templateWorkboo... | [
"protected",
"void",
"copyMergeRegions",
"(",
"HSSFSheet",
"resultSheet",
",",
"String",
"rangeName",
",",
"int",
"firstTargetRangeRow",
",",
"int",
"firstTargetRangeColumn",
")",
"{",
"int",
"rangeNameIdx",
"=",
"templateWorkbook",
".",
"getNameIndex",
"(",
"rangeNam... | Create new merge regions in result sheet identically to range's merge regions from template.
Not support copy of frames and rules
@param resultSheet - result sheet
@param rangeName - range name
@param firstTargetRangeRow - first column of target range
@param firstTargetRangeColumn - first co... | [
"Create",
"new",
"merge",
"regions",
"in",
"result",
"sheet",
"identically",
"to",
"range",
"s",
"merge",
"regions",
"from",
"template",
".",
"Not",
"support",
"copy",
"of",
"frames",
"and",
"rules"
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/XLSFormatter.java#L526-L573 |
58,495 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/XLSFormatter.java | XLSFormatter.copyCellFromTemplate | private HSSFCell copyCellFromTemplate(HSSFCell templateCell, HSSFRow resultRow, int resultColumn, BandData band) {
checkThreadInterrupted();
if (templateCell == null) return null;
HSSFCell resultCell = resultRow.createCell(resultColumn);
HSSFCellStyle templateStyle = templateCell.getCe... | java | private HSSFCell copyCellFromTemplate(HSSFCell templateCell, HSSFRow resultRow, int resultColumn, BandData band) {
checkThreadInterrupted();
if (templateCell == null) return null;
HSSFCell resultCell = resultRow.createCell(resultColumn);
HSSFCellStyle templateStyle = templateCell.getCe... | [
"private",
"HSSFCell",
"copyCellFromTemplate",
"(",
"HSSFCell",
"templateCell",
",",
"HSSFRow",
"resultRow",
",",
"int",
"resultColumn",
",",
"BandData",
"band",
")",
"{",
"checkThreadInterrupted",
"(",
")",
";",
"if",
"(",
"templateCell",
"==",
"null",
")",
"re... | copies template cell to result row into result column. Fills this cell with data from band
@param templateCell - template cell
@param resultRow - result row
@param resultColumn - result column
@param band - band | [
"copies",
"template",
"cell",
"to",
"result",
"row",
"into",
"result",
"column",
".",
"Fills",
"this",
"cell",
"with",
"data",
"from",
"band"
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/XLSFormatter.java#L595-L624 |
58,496 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/XLSFormatter.java | XLSFormatter.updateValueCell | protected void updateValueCell(BandData rootBand, BandData bandData, String templateCellValue, HSSFCell resultCell, HSSFPatriarch patriarch) {
String parameterName = templateCellValue;
parameterName = unwrapParameterName(parameterName);
String fullParameterName = bandData.getName() + "." + param... | java | protected void updateValueCell(BandData rootBand, BandData bandData, String templateCellValue, HSSFCell resultCell, HSSFPatriarch patriarch) {
String parameterName = templateCellValue;
parameterName = unwrapParameterName(parameterName);
String fullParameterName = bandData.getName() + "." + param... | [
"protected",
"void",
"updateValueCell",
"(",
"BandData",
"rootBand",
",",
"BandData",
"bandData",
",",
"String",
"templateCellValue",
",",
"HSSFCell",
"resultCell",
",",
"HSSFPatriarch",
"patriarch",
")",
"{",
"String",
"parameterName",
"=",
"templateCellValue",
";",
... | Copies template cell to result cell and fills it with bandData data
@param bandData - bandData
@param templateCellValue - template cell value
@param resultCell - result cell | [
"Copies",
"template",
"cell",
"to",
"result",
"cell",
"and",
"fills",
"it",
"with",
"bandData",
"data"
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/XLSFormatter.java#L633-L670 |
58,497 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/XLSFormatter.java | XLSFormatter.addRangeBounds | protected void addRangeBounds(BandData band, CellReference[] crefs) {
if (templateBounds.containsKey(band.getName()))
return;
Bounds bounds = new Bounds(crefs[0].getRow(), crefs[0].getCol(), crefs[crefs.length - 1].getRow(), crefs[crefs.length - 1].getCol());
templateBounds.put(band.... | java | protected void addRangeBounds(BandData band, CellReference[] crefs) {
if (templateBounds.containsKey(band.getName()))
return;
Bounds bounds = new Bounds(crefs[0].getRow(), crefs[0].getCol(), crefs[crefs.length - 1].getRow(), crefs[crefs.length - 1].getCol());
templateBounds.put(band.... | [
"protected",
"void",
"addRangeBounds",
"(",
"BandData",
"band",
",",
"CellReference",
"[",
"]",
"crefs",
")",
"{",
"if",
"(",
"templateBounds",
".",
"containsKey",
"(",
"band",
".",
"getName",
"(",
")",
")",
")",
"return",
";",
"Bounds",
"bounds",
"=",
"... | This method adds range bounds to cache. Key is bandName
@param band - band
@param crefs - range | [
"This",
"method",
"adds",
"range",
"bounds",
"to",
"cache",
".",
"Key",
"is",
"bandName"
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/XLSFormatter.java#L710-L715 |
58,498 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/XLSFormatter.java | XLSFormatter.getEscherAggregate | protected EscherAggregate getEscherAggregate(HSSFSheet sheet) {
EscherAggregate agg = sheetToEscherAggregate.get(sheet.getSheetName());
if (agg == null) {
agg = sheet.getDrawingEscherAggregate();
sheetToEscherAggregate.put(sheet.getSheetName(), agg);
}
return agg;... | java | protected EscherAggregate getEscherAggregate(HSSFSheet sheet) {
EscherAggregate agg = sheetToEscherAggregate.get(sheet.getSheetName());
if (agg == null) {
agg = sheet.getDrawingEscherAggregate();
sheetToEscherAggregate.put(sheet.getSheetName(), agg);
}
return agg;... | [
"protected",
"EscherAggregate",
"getEscherAggregate",
"(",
"HSSFSheet",
"sheet",
")",
"{",
"EscherAggregate",
"agg",
"=",
"sheetToEscherAggregate",
".",
"get",
"(",
"sheet",
".",
"getSheetName",
"(",
")",
")",
";",
"if",
"(",
"agg",
"==",
"null",
")",
"{",
"... | Returns EscherAggregate from sheet
@param sheet - HSSFSheet
@return - EscherAggregate from sheet | [
"Returns",
"EscherAggregate",
"from",
"sheet"
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/XLSFormatter.java#L784-L791 |
58,499 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/XLSFormatter.java | XLSFormatter.copyPicturesFromTemplateToResult | protected void copyPicturesFromTemplateToResult(HSSFSheet templateSheet, HSSFSheet resultSheet) {
List<HSSFClientAnchor> list = getAllAnchors(getEscherAggregate(templateSheet));
int i = 0;
if (CollectionUtils.isNotEmpty(orderedPicturesId)) {//just a shitty workaround for anchors without picture... | java | protected void copyPicturesFromTemplateToResult(HSSFSheet templateSheet, HSSFSheet resultSheet) {
List<HSSFClientAnchor> list = getAllAnchors(getEscherAggregate(templateSheet));
int i = 0;
if (CollectionUtils.isNotEmpty(orderedPicturesId)) {//just a shitty workaround for anchors without picture... | [
"protected",
"void",
"copyPicturesFromTemplateToResult",
"(",
"HSSFSheet",
"templateSheet",
",",
"HSSFSheet",
"resultSheet",
")",
"{",
"List",
"<",
"HSSFClientAnchor",
">",
"list",
"=",
"getAllAnchors",
"(",
"getEscherAggregate",
"(",
"templateSheet",
")",
")",
";",
... | Copies all pictures from template sheet to result sheet, shift picture depending on area dependencies
@param templateSheet - template sheet
@param resultSheet - result sheet | [
"Copies",
"all",
"pictures",
"from",
"template",
"sheet",
"to",
"result",
"sheet",
"shift",
"picture",
"depending",
"on",
"area",
"dependencies"
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/XLSFormatter.java#L799-L818 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.