repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.deactivate | synchronized void deactivate() {
paused = false;
if (activeTask != null) {
activeTask.cancel();
activeTask = null;
}
this.threadPool = null;
} | java | synchronized void deactivate() {
paused = false;
if (activeTask != null) {
activeTask.cancel();
activeTask = null;
}
this.threadPool = null;
} | [
"synchronized",
"void",
"deactivate",
"(",
")",
"{",
"paused",
"=",
"false",
";",
"if",
"(",
"activeTask",
"!=",
"null",
")",
"{",
"activeTask",
".",
"cancel",
"(",
")",
";",
"activeTask",
"=",
"null",
";",
"}",
"this",
".",
"threadPool",
"=",
"null",
... | Deactivate the controller. Any scheduled tasks will be canceled. | [
"Deactivate",
"the",
"controller",
".",
"Any",
"scheduled",
"tasks",
"will",
"be",
"canceled",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L696-L703 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.resume | synchronized void resume() {
paused = false;
if (activeTask == null) {
activeTask = new IntervalTask(this);
timer.schedule(activeTask, interval, interval);
}
} | java | synchronized void resume() {
paused = false;
if (activeTask == null) {
activeTask = new IntervalTask(this);
timer.schedule(activeTask, interval, interval);
}
} | [
"synchronized",
"void",
"resume",
"(",
")",
"{",
"paused",
"=",
"false",
";",
"if",
"(",
"activeTask",
"==",
"null",
")",
"{",
"activeTask",
"=",
"new",
"IntervalTask",
"(",
"this",
")",
";",
"timer",
".",
"schedule",
"(",
"activeTask",
",",
"interval",
... | Resume monitoring and control of the associated thread pool. | [
"Resume",
"monitoring",
"and",
"control",
"of",
"the",
"associated",
"thread",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L731-L737 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.getThroughputDistribution | ThroughputDistribution getThroughputDistribution(int activeThreads, boolean create) {
if (activeThreads < coreThreads)
activeThreads = coreThreads;
Integer threads = Integer.valueOf(activeThreads);
ThroughputDistribution throughput = threadStats.get(threads);
if ((throughput ... | java | ThroughputDistribution getThroughputDistribution(int activeThreads, boolean create) {
if (activeThreads < coreThreads)
activeThreads = coreThreads;
Integer threads = Integer.valueOf(activeThreads);
ThroughputDistribution throughput = threadStats.get(threads);
if ((throughput ... | [
"ThroughputDistribution",
"getThroughputDistribution",
"(",
"int",
"activeThreads",
",",
"boolean",
"create",
")",
"{",
"if",
"(",
"activeThreads",
"<",
"coreThreads",
")",
"activeThreads",
"=",
"coreThreads",
";",
"Integer",
"threads",
"=",
"Integer",
".",
"valueOf... | Get the throughput distribution data associated with the specified
number of active threads.
@param activeThreads the number of active threads when the data was
collected
@param create whether to create and return a new throughput distribution
if none currently exists
@return the data representing the throughput dis... | [
"Get",
"the",
"throughput",
"distribution",
"data",
"associated",
"with",
"the",
"specified",
"number",
"of",
"active",
"threads",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L752-L763 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.manageIdlePool | boolean manageIdlePool(ThreadPoolExecutor threadPool, long intervalCompleted) {
// Manage the intervalCompleted count
if (intervalCompleted == 0 && threadPool.getActiveCount() == 0) {
consecutiveIdleCount++;
} else {
consecutiveIdleCount = 0;
}
if (conse... | java | boolean manageIdlePool(ThreadPoolExecutor threadPool, long intervalCompleted) {
// Manage the intervalCompleted count
if (intervalCompleted == 0 && threadPool.getActiveCount() == 0) {
consecutiveIdleCount++;
} else {
consecutiveIdleCount = 0;
}
if (conse... | [
"boolean",
"manageIdlePool",
"(",
"ThreadPoolExecutor",
"threadPool",
",",
"long",
"intervalCompleted",
")",
"{",
"// Manage the intervalCompleted count",
"if",
"(",
"intervalCompleted",
"==",
"0",
"&&",
"threadPool",
".",
"getActiveCount",
"(",
")",
"==",
"0",
")",
... | Determine whether or not the thread pool has been idle long enough to
pause the monitoring task.
@param threadPool a reference to the thread pool
@param intervalCompleted the tasks completed this interval
@return true if the controller has been paused | [
"Determine",
"whether",
"or",
"not",
"the",
"thread",
"pool",
"has",
"been",
"idle",
"long",
"enough",
"to",
"pause",
"the",
"monitoring",
"task",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L774-L790 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.handleOutliers | boolean handleOutliers(ThroughputDistribution distribution, double throughput) {
if (throughput < 0.0) {
resetStatistics(false);
return true;
} else if (throughput == 0.0) {
return false;
}
double zScore = distribution.getZScore(throughput);
b... | java | boolean handleOutliers(ThroughputDistribution distribution, double throughput) {
if (throughput < 0.0) {
resetStatistics(false);
return true;
} else if (throughput == 0.0) {
return false;
}
double zScore = distribution.getZScore(throughput);
b... | [
"boolean",
"handleOutliers",
"(",
"ThroughputDistribution",
"distribution",
",",
"double",
"throughput",
")",
"{",
"if",
"(",
"throughput",
"<",
"0.0",
")",
"{",
"resetStatistics",
"(",
"false",
")",
";",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"throu... | Detect and handle aberrant data points by resetting the statistics
in the throughput distribution.
@param distribution the throughput distribution associated with throughput
@param throughput the observed throughput
@return true if the thread pool has been reset due to an aberrant
workload | [
"Detect",
"and",
"handle",
"aberrant",
"data",
"points",
"by",
"resetting",
"the",
"statistics",
"in",
"the",
"throughput",
"distribution",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L802-L872 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.adjustPoolSize | int adjustPoolSize(int poolSize, int poolAdjustment) {
if (threadPool == null)
return poolSize; // arguably should return 0, but "least change" is safer... This happens during shutdown.
int newPoolSize = poolSize + poolAdjustment;
lastAction = LastAction.NONE;
if (poolAdjus... | java | int adjustPoolSize(int poolSize, int poolAdjustment) {
if (threadPool == null)
return poolSize; // arguably should return 0, but "least change" is safer... This happens during shutdown.
int newPoolSize = poolSize + poolAdjustment;
lastAction = LastAction.NONE;
if (poolAdjus... | [
"int",
"adjustPoolSize",
"(",
"int",
"poolSize",
",",
"int",
"poolAdjustment",
")",
"{",
"if",
"(",
"threadPool",
"==",
"null",
")",
"return",
"poolSize",
";",
"// arguably should return 0, but \"least change\" is safer... This happens during shutdown.",
"int",
"newPoolSize... | Adjust the size of the thread pool.
@param poolSize the current pool size
@param poolAdjustment the change to make to the pool
@return the new pool size | [
"Adjust",
"the",
"size",
"of",
"the",
"thread",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1209-L1230 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.poolTputRatioData | private String poolTputRatioData(double poolTputRatio, double poolRatio, double tputRatio,
double smallerPoolTput, double largerPoolTput, int smallerPoolSize, int largerPoolSize) {
StringBuilder sb = new StringBuilder();
sb.append("\n ");
sb.append(String.for... | java | private String poolTputRatioData(double poolTputRatio, double poolRatio, double tputRatio,
double smallerPoolTput, double largerPoolTput, int smallerPoolSize, int largerPoolSize) {
StringBuilder sb = new StringBuilder();
sb.append("\n ");
sb.append(String.for... | [
"private",
"String",
"poolTputRatioData",
"(",
"double",
"poolTputRatio",
",",
"double",
"poolRatio",
",",
"double",
"tputRatio",
",",
"double",
"smallerPoolTput",
",",
"double",
"largerPoolTput",
",",
"int",
"smallerPoolSize",
",",
"int",
"largerPoolSize",
")",
"{"... | Utility method to format pool tput ratio data | [
"Utility",
"method",
"to",
"format",
"pool",
"tput",
"ratio",
"data"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1457-L1470 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.resolveHang | private boolean resolveHang(long tasksCompleted, boolean queueEmpty, int poolSize) {
boolean actionTaken = false;
if (tasksCompleted == 0 && !queueEmpty) {
/**
* When a hang is detected the controller enters hang resolution mode.
* The controller will run on a short... | java | private boolean resolveHang(long tasksCompleted, boolean queueEmpty, int poolSize) {
boolean actionTaken = false;
if (tasksCompleted == 0 && !queueEmpty) {
/**
* When a hang is detected the controller enters hang resolution mode.
* The controller will run on a short... | [
"private",
"boolean",
"resolveHang",
"(",
"long",
"tasksCompleted",
",",
"boolean",
"queueEmpty",
",",
"int",
"poolSize",
")",
"{",
"boolean",
"actionTaken",
"=",
"false",
";",
"if",
"(",
"tasksCompleted",
"==",
"0",
"&&",
"!",
"queueEmpty",
")",
"{",
"/**\n... | Detects a hang in the underlying executor. When a hang is detected, increases the
poolSize in hopes of relieving the hang, unless poolSize has reached maxThreads.
@return true if action was taken to resolve a hang, or false otherwise | [
"Detects",
"a",
"hang",
"in",
"the",
"underlying",
"executor",
".",
"When",
"a",
"hang",
"is",
"detected",
"increases",
"the",
"poolSize",
"in",
"hopes",
"of",
"relieving",
"the",
"hang",
"unless",
"poolSize",
"has",
"reached",
"maxThreads",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1478-L1562 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.pruneData | private boolean pruneData(ThroughputDistribution priorStats, double forecast) {
boolean prune = false;
// if forecast tput is much greater or much smaller than priorStats, we suspect
// priorStats is no longer relevant, so prune it
double tputRatio = forecast / priorStats.getMovingAvera... | java | private boolean pruneData(ThroughputDistribution priorStats, double forecast) {
boolean prune = false;
// if forecast tput is much greater or much smaller than priorStats, we suspect
// priorStats is no longer relevant, so prune it
double tputRatio = forecast / priorStats.getMovingAvera... | [
"private",
"boolean",
"pruneData",
"(",
"ThroughputDistribution",
"priorStats",
",",
"double",
"forecast",
")",
"{",
"boolean",
"prune",
"=",
"false",
";",
"// if forecast tput is much greater or much smaller than priorStats, we suspect",
"// priorStats is no longer relevant, so pr... | Evaluates a ThroughputDistribution for possible removal from the historical dataset.
@param priorStats - ThroughputDistribution under evaluation
@param forecast - expected throughput at the current poolSize
@return - true if priorStats should be removed | [
"Evaluates",
"a",
"ThroughputDistribution",
"for",
"possible",
"removal",
"from",
"the",
"historical",
"dataset",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1583-L1600 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.getSmallestValidPoolSize | private Integer getSmallestValidPoolSize(Integer poolSize, Double forecast) {
Integer smallestPoolSize = threadStats.firstKey();
Integer nextPoolSize = threadStats.higherKey(smallestPoolSize);
Integer pruneSize = -1;
boolean validSmallData = false;
while (!validSmallData && nextP... | java | private Integer getSmallestValidPoolSize(Integer poolSize, Double forecast) {
Integer smallestPoolSize = threadStats.firstKey();
Integer nextPoolSize = threadStats.higherKey(smallestPoolSize);
Integer pruneSize = -1;
boolean validSmallData = false;
while (!validSmallData && nextP... | [
"private",
"Integer",
"getSmallestValidPoolSize",
"(",
"Integer",
"poolSize",
",",
"Double",
"forecast",
")",
"{",
"Integer",
"smallestPoolSize",
"=",
"threadStats",
".",
"firstKey",
"(",
")",
";",
"Integer",
"nextPoolSize",
"=",
"threadStats",
".",
"higherKey",
"... | Returns the smallest valid poolSize in the current historical dataset.
@param poolSize - current poolSize
@param forecast - expected throughput at current poolSize
@return - smallest valid poolSize found | [
"Returns",
"the",
"smallest",
"valid",
"poolSize",
"in",
"the",
"current",
"historical",
"dataset",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1609-L1629 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.getLargestValidPoolSize | private Integer getLargestValidPoolSize(Integer poolSize, Double forecast) {
Integer largestPoolSize = -1;
// find largest poolSize with valid data
boolean validLargeData = false;
while (!validLargeData) {
largestPoolSize = threadStats.lastKey();
ThroughputDistrib... | java | private Integer getLargestValidPoolSize(Integer poolSize, Double forecast) {
Integer largestPoolSize = -1;
// find largest poolSize with valid data
boolean validLargeData = false;
while (!validLargeData) {
largestPoolSize = threadStats.lastKey();
ThroughputDistrib... | [
"private",
"Integer",
"getLargestValidPoolSize",
"(",
"Integer",
"poolSize",
",",
"Double",
"forecast",
")",
"{",
"Integer",
"largestPoolSize",
"=",
"-",
"1",
";",
"// find largest poolSize with valid data",
"boolean",
"validLargeData",
"=",
"false",
";",
"while",
"("... | Returns the largest valid poolSize in the current historical dataset.
@param poolSize - current poolSize
@param forecast - expected throughput at current poolSize
@return - largest valid poolSize found | [
"Returns",
"the",
"largest",
"valid",
"poolSize",
"in",
"the",
"current",
"historical",
"dataset",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1638-L1653 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.leanTowardShrinking | private boolean leanTowardShrinking(Integer smallerPoolSize, int largerPoolSize,
double smallerPoolTput, double largerPoolTput) {
boolean shouldShrink = false;
double poolRatio = largerPoolSize / smallerPoolSize;
double tputRatio = largerPoolTput / smaller... | java | private boolean leanTowardShrinking(Integer smallerPoolSize, int largerPoolSize,
double smallerPoolTput, double largerPoolTput) {
boolean shouldShrink = false;
double poolRatio = largerPoolSize / smallerPoolSize;
double tputRatio = largerPoolTput / smaller... | [
"private",
"boolean",
"leanTowardShrinking",
"(",
"Integer",
"smallerPoolSize",
",",
"int",
"largerPoolSize",
",",
"double",
"smallerPoolTput",
",",
"double",
"largerPoolTput",
")",
"{",
"boolean",
"shouldShrink",
"=",
"false",
";",
"double",
"poolRatio",
"=",
"larg... | Evaluate current poolSize against farthest poolSize to decide whether it makes sense
to shrink. The final outcome is probabilistic, not deterministic.
@param smallerPoolSize - smaller poolSize for comparison
@param largerPoolSize - larger poolSize for comparison
@param smallerPoolTput - tput (historical or expected) o... | [
"Evaluate",
"current",
"poolSize",
"against",
"farthest",
"poolSize",
"to",
"decide",
"whether",
"it",
"makes",
"sense",
"to",
"shrink",
".",
"The",
"final",
"outcome",
"is",
"probabilistic",
"not",
"deterministic",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1665-L1690 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java | TxTMHelper.setConfigurationProvider | protected void setConfigurationProvider(ConfigurationProvider p) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setConfigurationProvider", p);
try {
ConfigurationProviderManager.setConfigurationProvider(p);
// in an osgi environment we may get unconfigured and then reconf... | java | protected void setConfigurationProvider(ConfigurationProvider p) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setConfigurationProvider", p);
try {
ConfigurationProviderManager.setConfigurationProvider(p);
// in an osgi environment we may get unconfigured and then reconf... | [
"protected",
"void",
"setConfigurationProvider",
"(",
"ConfigurationProvider",
"p",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setConfigurationProvider\"",
",",
"p",
")",
";",
"try",
"{",
"Configur... | Called by DS to inject reference to Config Provider
@param p | [
"Called",
"by",
"DS",
"to",
"inject",
"reference",
"to",
"Config",
"Provider"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java#L109-L128 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java | TxTMHelper.setXaResourceFactory | protected void setXaResourceFactory(ServiceReference<ResourceFactory> ref) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setXaResourceFactory, ref " + ref);
_xaResourceFactoryReady = true;
if (ableToStartRecoveryNow()) {
// Can start recovery now
try {
... | java | protected void setXaResourceFactory(ServiceReference<ResourceFactory> ref) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setXaResourceFactory, ref " + ref);
_xaResourceFactoryReady = true;
if (ableToStartRecoveryNow()) {
// Can start recovery now
try {
... | [
"protected",
"void",
"setXaResourceFactory",
"(",
"ServiceReference",
"<",
"ResourceFactory",
">",
"ref",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setXaResourceFactory, ref \"",
"+",
"ref",
")",
... | Called by DS to inject reference to XaResource Factory
@param ref | [
"Called",
"by",
"DS",
"to",
"inject",
"reference",
"to",
"XaResource",
"Factory"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java#L157-L174 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java | TxTMHelper.setRecoveryLogFactory | public void setRecoveryLogFactory(RecoveryLogFactory fac) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setRecoveryLogFactory, factory: " + fac, this);
_recoveryLogFactory = fac;
_recoveryLogFactoryReady = true;
if (ableToStartRecoveryNow()) {
// Can start recovery no... | java | public void setRecoveryLogFactory(RecoveryLogFactory fac) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setRecoveryLogFactory, factory: " + fac, this);
_recoveryLogFactory = fac;
_recoveryLogFactoryReady = true;
if (ableToStartRecoveryNow()) {
// Can start recovery no... | [
"public",
"void",
"setRecoveryLogFactory",
"(",
"RecoveryLogFactory",
"fac",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setRecoveryLogFactory, factory: \"",
"+",
"fac",
",",
"this",
")",
";",
"_rec... | Called by DS to inject reference to RecoveryLog Factory
@param ref | [
"Called",
"by",
"DS",
"to",
"inject",
"reference",
"to",
"RecoveryLog",
"Factory"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java#L186-L202 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java | TxTMHelper.setRecoveryLogService | public void setRecoveryLogService(ServiceReference<RecLogServiceImpl> ref) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setRecoveryLogService", ref);
_recoveryLogServiceReady = true;
if (ableToStartRecoveryNow()) {
// Can start recovery now
try {
... | java | public void setRecoveryLogService(ServiceReference<RecLogServiceImpl> ref) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setRecoveryLogService", ref);
_recoveryLogServiceReady = true;
if (ableToStartRecoveryNow()) {
// Can start recovery now
try {
... | [
"public",
"void",
"setRecoveryLogService",
"(",
"ServiceReference",
"<",
"RecLogServiceImpl",
">",
"ref",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setRecoveryLogService\"",
",",
"ref",
")",
";",
... | Called by DS to inject reference to RecoveryLog Service
@param ref | [
"Called",
"by",
"DS",
"to",
"inject",
"reference",
"to",
"RecoveryLog",
"Service"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java#L214-L230 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java | TxTMHelper.shutdown | public void shutdown(ConfigurationProvider cp) throws Exception {
final int shutdownDelay;
if (cp != null) {
shutdownDelay = cp.getDefaultMaximumShutdownDelay();
} else {
shutdownDelay = 0;
}
shutdown(false, shutdownDelay);
} | java | public void shutdown(ConfigurationProvider cp) throws Exception {
final int shutdownDelay;
if (cp != null) {
shutdownDelay = cp.getDefaultMaximumShutdownDelay();
} else {
shutdownDelay = 0;
}
shutdown(false, shutdownDelay);
} | [
"public",
"void",
"shutdown",
"(",
"ConfigurationProvider",
"cp",
")",
"throws",
"Exception",
"{",
"final",
"int",
"shutdownDelay",
";",
"if",
"(",
"cp",
"!=",
"null",
")",
"{",
"shutdownDelay",
"=",
"cp",
".",
"getDefaultMaximumShutdownDelay",
"(",
")",
";",
... | Used by liberty | [
"Used",
"by",
"liberty"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java#L512-L522 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java | TxTMHelper.retrieveBundleContext | protected void retrieveBundleContext() {
BundleContext bc = TxBundleTools.getBundleContext();
if (tc.isDebugEnabled())
Tr.debug(tc, "retrieveBundleContext, bc " + bc);
_bc = bc;
} | java | protected void retrieveBundleContext() {
BundleContext bc = TxBundleTools.getBundleContext();
if (tc.isDebugEnabled())
Tr.debug(tc, "retrieveBundleContext, bc " + bc);
_bc = bc;
} | [
"protected",
"void",
"retrieveBundleContext",
"(",
")",
"{",
"BundleContext",
"bc",
"=",
"TxBundleTools",
".",
"getBundleContext",
"(",
")",
";",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"retrieveBundleCont... | This method retrieves bundle context. There is a requirement to lookup the DS Services Registry during recovery.
Any bundle context will do for the lookup - this method is overridden in the ws.tx.embeddable bundle so that if that
bundle has started before the tx.jta bundle, then we are still able to access the Service ... | [
"This",
"method",
"retrieves",
"bundle",
"context",
".",
"There",
"is",
"a",
"requirement",
"to",
"lookup",
"the",
"DS",
"Services",
"Registry",
"during",
"recovery",
".",
"Any",
"bundle",
"context",
"will",
"do",
"for",
"the",
"lookup",
"-",
"this",
"method... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java#L685-L691 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java | ReceiveListenerDispatchQueue.enqueue | protected void enqueue (final AbstractInvocation invocation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "enqueue", invocation);
barrier.pass(); // Block until allowed to pass
// We need to ensure that the thread processing this queue does not change the "run... | java | protected void enqueue (final AbstractInvocation invocation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "enqueue", invocation);
barrier.pass(); // Block until allowed to pass
// We need to ensure that the thread processing this queue does not change the "run... | [
"protected",
"void",
"enqueue",
"(",
"final",
"AbstractInvocation",
"invocation",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
... | Enqueue an invocation by adding it to the end of the queue | [
"Enqueue",
"an",
"invocation",
"by",
"adding",
"it",
"to",
"the",
"end",
"of",
"the",
"queue"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java#L251-L302 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java | ReceiveListenerDispatchQueue.dequeue | private AbstractInvocation dequeue() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dequeue");
AbstractInvocation invocation;
synchronized (barrier) {
invocation = queue.remove(0);
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ... | java | private AbstractInvocation dequeue() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dequeue");
AbstractInvocation invocation;
synchronized (barrier) {
invocation = queue.remove(0);
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ... | [
"private",
"AbstractInvocation",
"dequeue",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"dequeue\"",
")",
";",
"... | Dequeue an invocation by removing it from the front of the queue | [
"Dequeue",
"an",
"invocation",
"by",
"removing",
"it",
"from",
"the",
"front",
"of",
"the",
"queue"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java#L306-L317 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java | ReceiveListenerDispatchQueue.unlockBarrier | private void unlockBarrier(final int size, final Conversation.ConversationType conversationType)
{
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unlockBarrier", new Object[]{Integer.valueOf(size), conversationType});
synchronized(barrier)
{
queueSize -= ... | java | private void unlockBarrier(final int size, final Conversation.ConversationType conversationType)
{
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unlockBarrier", new Object[]{Integer.valueOf(size), conversationType});
synchronized(barrier)
{
queueSize -= ... | [
"private",
"void",
"unlockBarrier",
"(",
"final",
"int",
"size",
",",
"final",
"Conversation",
".",
"ConversationType",
"conversationType",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
... | Unlock the barrier.
@param size from last AbstractInvocation
@param conversationType from last AbstractInvocation | [
"Unlock",
"the",
"barrier",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java#L325-L353 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java | ReceiveListenerDispatchQueue.isEmpty | protected boolean isEmpty () {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isEmpty");
boolean rc;
synchronized (barrier) {
rc = queue.isEmpty();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "isEmpty", rc)... | java | protected boolean isEmpty () {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isEmpty");
boolean rc;
synchronized (barrier) {
rc = queue.isEmpty();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "isEmpty", rc)... | [
"protected",
"boolean",
"isEmpty",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"isEmpty\"",
")",
";",
"boolean",... | Return true if the queue is empty | [
"Return",
"true",
"if",
"the",
"queue",
"is",
"empty"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java#L357-L368 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java | ReceiveListenerDispatchQueue.getDepth | protected int getDepth() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getDepth");
int depth;
synchronized (barrier) {
depth = queue.size();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getDepth", depth... | java | protected int getDepth() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getDepth");
int depth;
synchronized (barrier) {
depth = queue.size();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getDepth", depth... | [
"protected",
"int",
"getDepth",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getDepth\"",
")",
";",
"int",
"de... | Return the depth of the queue | [
"Return",
"the",
"depth",
"of",
"the",
"queue"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java#L372-L383 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java | ReceiveListenerDispatchQueue.doesQueueContainConversation | protected boolean doesQueueContainConversation (final Conversation conversation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "doesQueueContainConversation", conversation);
boolean rc = false;
synchronized (barrier) {
for (int i = 0; i < queue.size(); i++)... | java | protected boolean doesQueueContainConversation (final Conversation conversation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "doesQueueContainConversation", conversation);
boolean rc = false;
synchronized (barrier) {
for (int i = 0; i < queue.size(); i++)... | [
"protected",
"boolean",
"doesQueueContainConversation",
"(",
"final",
"Conversation",
"conversation",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this... | Return true if a conversation is already in this queue | [
"Return",
"true",
"if",
"a",
"conversation",
"is",
"already",
"in",
"this",
"queue"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java#L560-L577 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.sweep | public void sweep() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "Sweep : Stateful Beans = " + ivStatefulBeanList.size());
for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
TimeoutElement elt = e.nextEl... | java | public void sweep() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "Sweep : Stateful Beans = " + ivStatefulBeanList.size());
for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
TimeoutElement elt = e.nextEl... | [
"public",
"void",
"sweep",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"Sweep : Stateful Beans = \"",
"+",
"ivStatefulBeanList",
"."... | Go through the list of bean ids and cleanup beans which have timed out. | [
"Go",
"through",
"the",
"list",
"of",
"bean",
"ids",
"and",
"cleanup",
"beans",
"which",
"have",
"timed",
"out",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L189-L213 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.finalSweep | public void finalSweep(StatefulPassivator passivator) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "finalSweep : Stateful Beans = " + ivStatefulBeanList.size());
for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
... | java | public void finalSweep(StatefulPassivator passivator) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "finalSweep : Stateful Beans = " + ivStatefulBeanList.size());
for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
... | [
"public",
"void",
"finalSweep",
"(",
"StatefulPassivator",
"passivator",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"finalSweep : Stateful... | This method is invoked just before container termination to clean
up stateful beans which have been passivated. | [
"This",
"method",
"is",
"invoked",
"just",
"before",
"container",
"termination",
"to",
"clean",
"up",
"stateful",
"beans",
"which",
"have",
"been",
"passivated",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L219-L244 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.beanDoesNotExistOrHasTimedOut | public boolean beanDoesNotExistOrHasTimedOut(TimeoutElement elt, BeanId beanId) {
if (elt == null) {
// Not in the reaper list, but it might be in local
// failover cache if not in reaper list. So check it if
// there is a local SfFailoverCache object (e.g. when SFSB
... | java | public boolean beanDoesNotExistOrHasTimedOut(TimeoutElement elt, BeanId beanId) {
if (elt == null) {
// Not in the reaper list, but it might be in local
// failover cache if not in reaper list. So check it if
// there is a local SfFailoverCache object (e.g. when SFSB
... | [
"public",
"boolean",
"beanDoesNotExistOrHasTimedOut",
"(",
"TimeoutElement",
"elt",
",",
"BeanId",
"beanId",
")",
"{",
"if",
"(",
"elt",
"==",
"null",
")",
"{",
"// Not in the reaper list, but it might be in local",
"// failover cache if not in reaper list. So check it if",
... | LIDB2018-1 renamed old beanTimedOut method and clarified description. | [
"LIDB2018",
"-",
"1",
"renamed",
"old",
"beanTimedOut",
"method",
"and",
"clarified",
"description",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L296-L318 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.add | public void add(StatefulBeanO beanO) {
BeanId id = beanO.beanId;
TimeoutElement elt = beanO.ivTimeoutElement;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "add " + beanO.beanId + ", " + elt.timeout);
// LIDB2775-23.4 Begins
Object ob... | java | public void add(StatefulBeanO beanO) {
BeanId id = beanO.beanId;
TimeoutElement elt = beanO.ivTimeoutElement;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "add " + beanO.beanId + ", " + elt.timeout);
// LIDB2775-23.4 Begins
Object ob... | [
"public",
"void",
"add",
"(",
"StatefulBeanO",
"beanO",
")",
"{",
"BeanId",
"id",
"=",
"beanO",
".",
"beanId",
";",
"TimeoutElement",
"elt",
"=",
"beanO",
".",
"ivTimeoutElement",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
... | Add a new bean to the list of beans to be checked for timeouts | [
"Add",
"a",
"new",
"bean",
"to",
"the",
"list",
"of",
"beans",
"to",
"be",
"checked",
"for",
"timeouts"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L346-L371 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.remove | public boolean remove(BeanId id) // d129562
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "remove (" + id + ")");
TimeoutElement elt = null;
elt = ivStatefulBeanList.remove(id);
synchronized (this) {
if (elt != null) {
... | java | public boolean remove(BeanId id) // d129562
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "remove (" + id + ")");
TimeoutElement elt = null;
elt = ivStatefulBeanList.remove(id);
synchronized (this) {
if (elt != null) {
... | [
"public",
"boolean",
"remove",
"(",
"BeanId",
"id",
")",
"// d129562",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"remove (\"",
"+",
"id"... | Remove a bean from the list and return true if the bean was in the
list and removed successfully; otherwise return false. | [
"Remove",
"a",
"bean",
"from",
"the",
"list",
"and",
"return",
"true",
"if",
"the",
"bean",
"was",
"in",
"the",
"list",
"and",
"removed",
"successfully",
";",
"otherwise",
"return",
"false",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L377-L404 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.getPassivatedStatefulBeanIds | public synchronized Iterator<BeanId> getPassivatedStatefulBeanIds(J2EEName homeName) {
ArrayList<BeanId> beanList = new ArrayList<BeanId>();
for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
TimeoutElement elt = e.nextElement();
if (hom... | java | public synchronized Iterator<BeanId> getPassivatedStatefulBeanIds(J2EEName homeName) {
ArrayList<BeanId> beanList = new ArrayList<BeanId>();
for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
TimeoutElement elt = e.nextElement();
if (hom... | [
"public",
"synchronized",
"Iterator",
"<",
"BeanId",
">",
"getPassivatedStatefulBeanIds",
"(",
"J2EEName",
"homeName",
")",
"{",
"ArrayList",
"<",
"BeanId",
">",
"beanList",
"=",
"new",
"ArrayList",
"<",
"BeanId",
">",
"(",
")",
";",
"for",
"(",
"Enumeration",... | d103404.1 | [
"d103404",
".",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L413-L424 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.getBeanTimeoutTime | public long getBeanTimeoutTime(BeanId beanId) {
TimeoutElement elt = ivStatefulBeanList.get(beanId);
long timeoutTime = 0;
if (elt != null) {
if (elt.timeout != 0) {
timeoutTime = elt.lastAccessTime + elt.timeout;
if (timeoutTime < 0) { // F743-6605.1
... | java | public long getBeanTimeoutTime(BeanId beanId) {
TimeoutElement elt = ivStatefulBeanList.get(beanId);
long timeoutTime = 0;
if (elt != null) {
if (elt.timeout != 0) {
timeoutTime = elt.lastAccessTime + elt.timeout;
if (timeoutTime < 0) { // F743-6605.1
... | [
"public",
"long",
"getBeanTimeoutTime",
"(",
"BeanId",
"beanId",
")",
"{",
"TimeoutElement",
"elt",
"=",
"ivStatefulBeanList",
".",
"get",
"(",
"beanId",
")",
";",
"long",
"timeoutTime",
"=",
"0",
";",
"if",
"(",
"elt",
"!=",
"null",
")",
"{",
"if",
"(",... | LIDB2775-23.4 Begins | [
"LIDB2775",
"-",
"23",
".",
"4",
"Begins"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L427-L439 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.dump | public void dump() {
if (dumped) {
return;
}
try {
Tr.dump(tc, "-- StatefulBeanReaper Dump -- ", this);
synchronized (this) {
Tr.dump(tc, "Number of objects: " + this.numObjects);
Tr.dump(tc, "Number of adds: " + ... | java | public void dump() {
if (dumped) {
return;
}
try {
Tr.dump(tc, "-- StatefulBeanReaper Dump -- ", this);
synchronized (this) {
Tr.dump(tc, "Number of objects: " + this.numObjects);
Tr.dump(tc, "Number of adds: " + ... | [
"public",
"void",
"dump",
"(",
")",
"{",
"if",
"(",
"dumped",
")",
"{",
"return",
";",
"}",
"try",
"{",
"Tr",
".",
"dump",
"(",
"tc",
",",
"\"-- StatefulBeanReaper Dump -- \"",
",",
"this",
")",
";",
"synchronized",
"(",
"this",
")",
"{",
"Tr",
".",
... | Dump the internal state of the cache | [
"Dump",
"the",
"internal",
"state",
"of",
"the",
"cache"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L446-L464 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.cancel | public synchronized void cancel() // d583637
{
ivIsCanceled = true;
stopAlarm();
// F743-33394 - Wait for the sweep to finish.
while (ivIsRunning) {
try {
wait();
} catch (InterruptedException ex) {
if (TraceComponent.isAnyTrac... | java | public synchronized void cancel() // d583637
{
ivIsCanceled = true;
stopAlarm();
// F743-33394 - Wait for the sweep to finish.
while (ivIsRunning) {
try {
wait();
} catch (InterruptedException ex) {
if (TraceComponent.isAnyTrac... | [
"public",
"synchronized",
"void",
"cancel",
"(",
")",
"// d583637",
"{",
"ivIsCanceled",
"=",
"true",
";",
"stopAlarm",
"(",
")",
";",
"// F743-33394 - Wait for the sweep to finish.",
"while",
"(",
"ivIsRunning",
")",
"{",
"try",
"{",
"wait",
"(",
")",
";",
"}... | Cancel this alarm | [
"Cancel",
"this",
"alarm"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L504-L521 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session/src/com/ibm/ws/webcontainer/httpsession/SessionMgrComponentImpl.java | SessionMgrComponentImpl.getServerId | private String getServerId() {
UUID fullServerId = null;
WsLocationAdmin locationService = this.wsLocationAdmin;
if (locationService != null) {
fullServerId = locationService.getServerId();
}
if (fullServerId == null) {
fullServerId = UUID.randomUUID(); //... | java | private String getServerId() {
UUID fullServerId = null;
WsLocationAdmin locationService = this.wsLocationAdmin;
if (locationService != null) {
fullServerId = locationService.getServerId();
}
if (fullServerId == null) {
fullServerId = UUID.randomUUID(); //... | [
"private",
"String",
"getServerId",
"(",
")",
"{",
"UUID",
"fullServerId",
"=",
"null",
";",
"WsLocationAdmin",
"locationService",
"=",
"this",
".",
"wsLocationAdmin",
";",
"if",
"(",
"locationService",
"!=",
"null",
")",
"{",
"fullServerId",
"=",
"locationServi... | Derives a unique identifier for the current server.
The result of this method is used to create a cloneId.
@return a unique identifier for the current server (in lower case) | [
"Derives",
"a",
"unique",
"identifier",
"for",
"the",
"current",
"server",
".",
"The",
"result",
"of",
"this",
"method",
"is",
"used",
"to",
"create",
"a",
"cloneId",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session/src/com/ibm/ws/webcontainer/httpsession/SessionMgrComponentImpl.java#L147-L157 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session/src/com/ibm/ws/webcontainer/httpsession/SessionMgrComponentImpl.java | SessionMgrComponentImpl.initialize | private void initialize() {
if(this.initialized) {
return;
}
if (LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.INFO)) {
if (this.sessionStoreService==null) {
LoggingUtil.SESSION_LOGGER_CORE.logp(Level.INFO, methodClassName, "initialize", "SessionMgrComp... | java | private void initialize() {
if(this.initialized) {
return;
}
if (LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.INFO)) {
if (this.sessionStoreService==null) {
LoggingUtil.SESSION_LOGGER_CORE.logp(Level.INFO, methodClassName, "initialize", "SessionMgrComp... | [
"private",
"void",
"initialize",
"(",
")",
"{",
"if",
"(",
"this",
".",
"initialized",
")",
"{",
"return",
";",
"}",
"if",
"(",
"LoggingUtil",
".",
"SESSION_LOGGER_CORE",
".",
"isLoggable",
"(",
"Level",
".",
"INFO",
")",
")",
"{",
"if",
"(",
"this",
... | Delay initialization until a public method of this service is called | [
"Delay",
"initialization",
"until",
"a",
"public",
"method",
"of",
"this",
"service",
"is",
"called"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session/src/com/ibm/ws/webcontainer/httpsession/SessionMgrComponentImpl.java#L207-L256 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTranManagerSet.java | EmbeddableTranManagerSet.startInactivityTimer | public boolean startInactivityTimer (Transaction t, InactivityTimer iat)
{
if (t != null)
return ((EmbeddableTransactionImpl) t).startInactivityTimer(iat);
return false;
} | java | public boolean startInactivityTimer (Transaction t, InactivityTimer iat)
{
if (t != null)
return ((EmbeddableTransactionImpl) t).startInactivityTimer(iat);
return false;
} | [
"public",
"boolean",
"startInactivityTimer",
"(",
"Transaction",
"t",
",",
"InactivityTimer",
"iat",
")",
"{",
"if",
"(",
"t",
"!=",
"null",
")",
"return",
"(",
"(",
"EmbeddableTransactionImpl",
")",
"t",
")",
".",
"startInactivityTimer",
"(",
"iat",
")",
";... | Start an inactivity timer and call alarm method of parameter when
timeout expires.
Returns false if transaction is not active.
@param t Transaction associated with this timer.
@param iat callback object to be notified when timer expires.
@return boolean to indicate whether timer started | [
"Start",
"an",
"inactivity",
"timer",
"and",
"call",
"alarm",
"method",
"of",
"parameter",
"when",
"timeout",
"expires",
".",
"Returns",
"false",
"if",
"transaction",
"is",
"not",
"active",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTranManagerSet.java#L86-L92 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTranManagerSet.java | EmbeddableTranManagerSet.registerSynchronization | public void registerSynchronization(UOWCoordinator coord,
Synchronization sync)
throws RollbackException, IllegalStateException, SystemException
{
registerSynchronization(coord, sync, EmbeddableWebSphereTransactionManager.SYNC_TIER_NORMAL);
} | java | public void registerSynchronization(UOWCoordinator coord,
Synchronization sync)
throws RollbackException, IllegalStateException, SystemException
{
registerSynchronization(coord, sync, EmbeddableWebSphereTransactionManager.SYNC_TIER_NORMAL);
} | [
"public",
"void",
"registerSynchronization",
"(",
"UOWCoordinator",
"coord",
",",
"Synchronization",
"sync",
")",
"throws",
"RollbackException",
",",
"IllegalStateException",
",",
"SystemException",
"{",
"registerSynchronization",
"(",
"coord",
",",
"sync",
",",
"Embedd... | Method to register synchronization object with JTA tran via UOWCoordinator
for improved performance.
@param coord UOWCoordinator previously obtained from UOWCurrent.
@param sync Synchronization object to be registered.
We should deprecate this now that UOWCoordinator is a javax...Transaction | [
"Method",
"to",
"register",
"synchronization",
"object",
"with",
"JTA",
"tran",
"via",
"UOWCoordinator",
"for",
"improved",
"performance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTranManagerSet.java#L212-L217 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.setDestName | void setDestName(String destName) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setDestName", destName);
if ((null == destName) || ("".equals(destName))) {
// d238447 FFDC review. More likely to be an external rathe... | java | void setDestName(String destName) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setDestName", destName);
if ((null == destName) || ("".equals(destName))) {
// d238447 FFDC review. More likely to be an external rathe... | [
"void",
"setDestName",
"(",
"String",
"destName",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
... | setDestName
Set the destName for this Destination.
@param destName The value for the destName
@exception JMSException Thrown if the destName is null or blank | [
"setDestName",
"Set",
"the",
"destName",
"for",
"this",
"Destination",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L215-L238 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.setDestDiscrim | void setDestDiscrim(String destDiscrim) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setDestDiscrim", destDiscrim);
updateProperty(DEST_DISCRIM, destDiscrim);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
S... | java | void setDestDiscrim(String destDiscrim) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setDestDiscrim", destDiscrim);
updateProperty(DEST_DISCRIM, destDiscrim);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
S... | [
"void",
"setDestDiscrim",
"(",
"String",
"destDiscrim",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setDestDiscrim\"",
... | setDestDiscrim
Set the destDiscrim for this Destination.
@param destDiscrim The value for the destDiscrim | [
"setDestDiscrim",
"Set",
"the",
"destDiscrim",
"for",
"this",
"Destination",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L261-L269 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.getReplyReliability | protected Reliability getReplyReliability() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getReplyReliability");
Reliability result = null;
if (replyReliabilityByte != -1) {
result = Reliability.getReliability(replyReliabilityBy... | java | protected Reliability getReplyReliability() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getReplyReliability");
Reliability result = null;
if (replyReliabilityByte != -1) {
result = Reliability.getReliability(replyReliabilityBy... | [
"protected",
"Reliability",
"getReplyReliability",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getReplyReliability\""... | Get the reply reliability to use for reply mesages on a replyTo destination
@return the reply reliability | [
"Get",
"the",
"reply",
"reliability",
"to",
"use",
"for",
"reply",
"mesages",
"on",
"a",
"replyTo",
"destination"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L521-L531 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.setReplyReliability | protected void setReplyReliability(Reliability replyReliability) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setReplyReliability", replyReliability);
this.replyReliabilityByte = replyReliability.toByte();
if (TraceComponent.isAnyTracingEn... | java | protected void setReplyReliability(Reliability replyReliability) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setReplyReliability", replyReliability);
this.replyReliabilityByte = replyReliability.toByte();
if (TraceComponent.isAnyTracingEn... | [
"protected",
"void",
"setReplyReliability",
"(",
"Reliability",
"replyReliability",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
... | Set the reliability to use for reply messages on a replyTo destination
@param replyReliability The value to be set into this Destination. | [
"Set",
"the",
"reliability",
"to",
"use",
"for",
"reply",
"messages",
"on",
"a",
"replyTo",
"destination"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L538-L544 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.isProducerTypeCheck | protected boolean isProducerTypeCheck() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "isProducerTypeCheck");
boolean checking = true;
// We can carry out checking if there is no FRP, or the FRP has 0 size.
StringArrayWrapper frp = ... | java | protected boolean isProducerTypeCheck() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "isProducerTypeCheck");
boolean checking = true;
// We can carry out checking if there is no FRP, or the FRP has 0 size.
StringArrayWrapper frp = ... | [
"protected",
"boolean",
"isProducerTypeCheck",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"isProducerTypeCheck\"",
... | This method informs us whether we can carry out type checking on
the producer connect call. | [
"This",
"method",
"informs",
"us",
"whether",
"we",
"can",
"carry",
"out",
"type",
"checking",
"on",
"the",
"producer",
"connect",
"call",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L619-L635 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.getProducerDestName | protected String getProducerDestName() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getProducerDestName");
String pDestName = null;
// Get the forward routing path.
StringArrayWrapper frp = (StringArrayWrapper) properties.get(FOR... | java | protected String getProducerDestName() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getProducerDestName");
String pDestName = null;
// Get the forward routing path.
StringArrayWrapper frp = (StringArrayWrapper) properties.get(FOR... | [
"protected",
"String",
"getProducerDestName",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getProducerDestName\"",
"... | This method returns the name of the destination to which producers should
attach when sending messages via this JMS destination.
For a simple case this will be the same as the original destName, however
if a forward routing path is present it will return the name of the first
element in the forward routing path. | [
"This",
"method",
"returns",
"the",
"name",
"of",
"the",
"destination",
"to",
"which",
"producers",
"should",
"attach",
"when",
"sending",
"messages",
"via",
"this",
"JMS",
"destination",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L645-L685 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.getConsumerDestName | protected String getConsumerDestName() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getConsumerDestName");
String cDestName = getDestName();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java | protected String getConsumerDestName() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getConsumerDestName");
String cDestName = getDestName();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | [
"protected",
"String",
"getConsumerDestName",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
... | This method returns the name of the destination to which consumers should
attach when receiving messages using this JMS destination.
In the simple case this is the same as the original destName, however if
a reverse routing path is present this method returns the name at the end
of the logical forward routing path. (T... | [
"This",
"method",
"returns",
"the",
"name",
"of",
"the",
"destination",
"to",
"which",
"consumers",
"should",
"attach",
"when",
"receiving",
"messages",
"using",
"this",
"JMS",
"destination",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L698-L707 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.getCopyOfProperties | Map<String, Object> getCopyOfProperties() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getCopyOfProperties");
Map<String, Object> temp = null;
// Make sure no-one changes the properties underneath us.
synchronized (properties) {
... | java | Map<String, Object> getCopyOfProperties() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getCopyOfProperties");
Map<String, Object> temp = null;
// Make sure no-one changes the properties underneath us.
synchronized (properties) {
... | [
"Map",
"<",
"String",
",",
"Object",
">",
"getCopyOfProperties",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"... | Creates a new Map object and duplicates the properties into the new Map.
Note that it does not _copy_ the parameter keys and values so if the map
contains objects which are mutable you may get strange behaviour.
In short - only use immutable objects for keys and values!
This method is used by MsgDestEncodingUtilsImpl ... | [
"Creates",
"a",
"new",
"Map",
"object",
"and",
"duplicates",
"the",
"properties",
"into",
"the",
"new",
"Map",
".",
"Note",
"that",
"it",
"does",
"not",
"_copy_",
"the",
"parameter",
"keys",
"and",
"values",
"so",
"if",
"the",
"map",
"contains",
"objects",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L717-L731 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.getConvertedFRP | protected List getConvertedFRP() {
List theList = null;
StringArrayWrapper saw = (StringArrayWrapper) properties.get(FORWARD_ROUTING_PATH);
if (saw != null) {
// This list is the forward routing path for the message.
theList = saw.getMsgForwardRoutingPath();
}
... | java | protected List getConvertedFRP() {
List theList = null;
StringArrayWrapper saw = (StringArrayWrapper) properties.get(FORWARD_ROUTING_PATH);
if (saw != null) {
// This list is the forward routing path for the message.
theList = saw.getMsgForwardRoutingPath();
}
... | [
"protected",
"List",
"getConvertedFRP",
"(",
")",
"{",
"List",
"theList",
"=",
"null",
";",
"StringArrayWrapper",
"saw",
"=",
"(",
"StringArrayWrapper",
")",
"properties",
".",
"get",
"(",
"FORWARD_ROUTING_PATH",
")",
";",
"if",
"(",
"saw",
"!=",
"null",
")"... | This method returns the "List containing SIDestinationAddress" form of the
forward routing path that will be set into the message.
Note that this takes the 'big' destination as being the end of the forward
routing path. | [
"This",
"method",
"returns",
"the",
"List",
"containing",
"SIDestinationAddress",
"form",
"of",
"the",
"forward",
"routing",
"path",
"that",
"will",
"be",
"set",
"into",
"the",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L849-L858 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.getConvertedRRP | protected List getConvertedRRP() {
List theList = null;
StringArrayWrapper saw = (StringArrayWrapper) properties.get(REVERSE_ROUTING_PATH);
if (saw != null)
theList = saw.getCorePath();
return theList;
} | java | protected List getConvertedRRP() {
List theList = null;
StringArrayWrapper saw = (StringArrayWrapper) properties.get(REVERSE_ROUTING_PATH);
if (saw != null)
theList = saw.getCorePath();
return theList;
} | [
"protected",
"List",
"getConvertedRRP",
"(",
")",
"{",
"List",
"theList",
"=",
"null",
";",
"StringArrayWrapper",
"saw",
"=",
"(",
"StringArrayWrapper",
")",
"properties",
".",
"get",
"(",
"REVERSE_ROUTING_PATH",
")",
";",
"if",
"(",
"saw",
"!=",
"null",
")"... | This method returns the "List containing SIDestinationAddress" form of the
reverse routing path. | [
"This",
"method",
"returns",
"the",
"List",
"containing",
"SIDestinationAddress",
"form",
"of",
"the",
"reverse",
"routing",
"path",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L864-L871 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.getProducerSIDestinationAddress | protected SIDestinationAddress getProducerSIDestinationAddress() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getProducerSIDestinationAddress");
if (producerDestinationAddress == null) {
if (TraceComponent.isAnyTra... | java | protected SIDestinationAddress getProducerSIDestinationAddress() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getProducerSIDestinationAddress");
if (producerDestinationAddress == null) {
if (TraceComponent.isAnyTra... | [
"protected",
"SIDestinationAddress",
"getProducerSIDestinationAddress",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this"... | This method provides access to the cached SIDestinationAddress object for
this JmsDestination.
Parts of the JMS implementation that wish to obtain an SIDestinationAddress
object for use with the coreSPI should call this method rather than creating
their own new one in situations where it is might be possible to reuse ... | [
"This",
"method",
"provides",
"access",
"to",
"the",
"cached",
"SIDestinationAddress",
"object",
"for",
"this",
"JmsDestination",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L882-L916 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.isLocalOnly | protected boolean isLocalOnly() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "isLocalOnly");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(this, tc, "isLocalOnly", false);
return false;
} | java | protected boolean isLocalOnly() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "isLocalOnly");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(this, tc, "isLocalOnly", false);
return false;
} | [
"protected",
"boolean",
"isLocalOnly",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"isLocalOnly\"",
")",
";",
"i... | Determines whether SIDestinationAddress objects created for this destination object
should have the localOnly flag set or not.
By default this is hardcoded as false, but can be overridden by subclasses where
appropriate to provide customized behaviour.
@return boolean | [
"Determines",
"whether",
"SIDestinationAddress",
"objects",
"created",
"for",
"this",
"destination",
"object",
"should",
"have",
"the",
"localOnly",
"flag",
"set",
"or",
"not",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L956-L962 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.checkNativeInstance | static JmsDestinationImpl checkNativeInstance(Destination destination) throws InvalidDestinationException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkNativeInstance", destination);
JmsDestinationImpl castDest = null;
// if the supplied d... | java | static JmsDestinationImpl checkNativeInstance(Destination destination) throws InvalidDestinationException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkNativeInstance", destination);
JmsDestinationImpl castDest = null;
// if the supplied d... | [
"static",
"JmsDestinationImpl",
"checkNativeInstance",
"(",
"Destination",
"destination",
")",
"throws",
"InvalidDestinationException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
... | Check that the supplied destination is a native JMS destination object.
If it is, then exit quietly. If it is not, then throw an exception.
Note:
When using Spring in certain ways it provides a proxy objects in the place
of native destination objects. It this method detects that situation then
it returns a new queue o... | [
"Check",
"that",
"the",
"supplied",
"destination",
"is",
"a",
"native",
"JMS",
"destination",
"object",
".",
"If",
"it",
"is",
"then",
"exit",
"quietly",
".",
"If",
"it",
"is",
"not",
"then",
"throw",
"an",
"exception",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L984-L1062 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.checkBlockedStatus | static void checkBlockedStatus(JmsDestinationImpl dest) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkBlockedStatus", dest);
// get the status of the destinations blocked attribute
Integer code = dest.getBlockedDestinati... | java | static void checkBlockedStatus(JmsDestinationImpl dest) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkBlockedStatus", dest);
// get the status of the destinations blocked attribute
Integer code = dest.getBlockedDestinati... | [
"static",
"void",
"checkBlockedStatus",
"(",
"JmsDestinationImpl",
"dest",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc"... | This method takes a JmsDestinationImpl object and checks the
blocked destination code. If the code signals that the destination
is blocked, a suitable JMSException will be thrown, tailored to the
code received.
@param dest The JmsDestinationImpl to check
@throws JMSException if the destination is blocked | [
"This",
"method",
"takes",
"a",
"JmsDestinationImpl",
"object",
"and",
"checks",
"the",
"blocked",
"destination",
"code",
".",
"If",
"the",
"code",
"signals",
"that",
"the",
"destination",
"is",
"blocked",
"a",
"suitable",
"JMSException",
"will",
"be",
"thrown",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L1073-L1103 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.getJMSReplyToInternal | static JmsDestinationImpl getJMSReplyToInternal(JsJmsMessage _msg, List<SIDestinationAddress> rrp, SICoreConnection _siConn) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getJMSReplyToInternal", new Object[] { _msg, rrp, _siConn });
... | java | static JmsDestinationImpl getJMSReplyToInternal(JsJmsMessage _msg, List<SIDestinationAddress> rrp, SICoreConnection _siConn) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getJMSReplyToInternal", new Object[] { _msg, rrp, _siConn });
... | [
"static",
"JmsDestinationImpl",
"getJMSReplyToInternal",
"(",
"JsJmsMessage",
"_msg",
",",
"List",
"<",
"SIDestinationAddress",
">",
"rrp",
",",
"SICoreConnection",
"_siConn",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
... | Static method that allows a replyTo destination to be obtained from a JsJmsMessage,
a ReverseRoutingPath and an optional JMS Core Connection object.
@param _msg CoreSPI message for which the JMS replyTo dest should be generated
@param rrp Reverse routing path of the message. Should not be queried directly from 'msg'
f... | [
"Static",
"method",
"that",
"allows",
"a",
"replyTo",
"destination",
"to",
"be",
"obtained",
"from",
"a",
"JsJmsMessage",
"a",
"ReverseRoutingPath",
"and",
"an",
"optional",
"JMS",
"Core",
"Connection",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L1117-L1196 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.fullEncode | String fullEncode() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "fullEncode");
String encoded = null;
// If we have a cached version of the string, use it.
if (cachedEncodedString != null) {
encoded = cachedEncodedStr... | java | String fullEncode() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "fullEncode");
String encoded = null;
// If we have a cached version of the string, use it.
if (cachedEncodedString != null) {
encoded = cachedEncodedStr... | [
"String",
"fullEncode",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"fullEncode\"",
")",
";",
"String",
"encoded... | This method is used to encode the JMS Destination information for transmission
with the message, and subsequent recreation on the other side. The format of the
string is as follows;
queue://my.queue.name
queue://my.queue.name?name1=value1&name2=value2
topic://my.topic.name?name1=value1&name2=value2
Note that the part... | [
"This",
"method",
"is",
"used",
"to",
"encode",
"the",
"JMS",
"Destination",
"information",
"for",
"transmission",
"with",
"the",
"message",
"and",
"subsequent",
"recreation",
"on",
"the",
"other",
"side",
".",
"The",
"format",
"of",
"the",
"string",
"is",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L1219-L1247 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.partialEncode | String partialEncode() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "partialEncode()");
String encoded = null;
// If we have a cached version of the string, use it.
if (cachedPartialEncodedString != null) {
encoded = c... | java | String partialEncode() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "partialEncode()");
String encoded = null;
// If we have a cached version of the string, use it.
if (cachedPartialEncodedString != null) {
encoded = c... | [
"String",
"partialEncode",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"partialEncode()\"",
")",
";",
"String",
... | A variant of the fullEncode method that is used for URI-encoding for the
purposes of setting it into the jmsReplyTo field of the core message.
This is different from full encode because some of the fields of the destination
are stored in the message reply header so that they can be accessed and
altered by core SPI app... | [
"A",
"variant",
"of",
"the",
"fullEncode",
"method",
"that",
"is",
"used",
"for",
"URI",
"-",
"encoding",
"for",
"the",
"purposes",
"of",
"setting",
"it",
"into",
"the",
"jmsReplyTo",
"field",
"of",
"the",
"core",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L1260-L1298 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.configureDestinationFromRoutingPath | void configureDestinationFromRoutingPath(List fwdPath) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "configureDestinationFromRoutingPath", fwdPath);
// Clear the cache of the encoding string since we are changing properties.
... | java | void configureDestinationFromRoutingPath(List fwdPath) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "configureDestinationFromRoutingPath", fwdPath);
// Clear the cache of the encoding string since we are changing properties.
... | [
"void",
"configureDestinationFromRoutingPath",
"(",
"List",
"fwdPath",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
... | configureReplyDestinationFromRoutingPath
Configure the ReplyDestination from the ReplyRoutingPath. The RRP from the message
is used as the FRP for this Reply Destination, so most of the function is
performed by configureDestinationFromRoutingPath.
This method keeps hold of the bus names as well as the destination names... | [
"configureReplyDestinationFromRoutingPath",
"Configure",
"the",
"ReplyDestination",
"from",
"the",
"ReplyRoutingPath",
".",
"The",
"RRP",
"from",
"the",
"message",
"is",
"used",
"as",
"the",
"FRP",
"for",
"this",
"Reply",
"Destination",
"so",
"most",
"of",
"the",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L1351-L1406 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java | JmsDestinationImpl.clearCachedEncodings | private void clearCachedEncodings() {
cachedEncodedString = null;
cachedPartialEncodedString = null;
for (int i = 0; i < cachedEncoding.length; i++)
cachedEncoding[i] = null;
} | java | private void clearCachedEncodings() {
cachedEncodedString = null;
cachedPartialEncodedString = null;
for (int i = 0; i < cachedEncoding.length; i++)
cachedEncoding[i] = null;
} | [
"private",
"void",
"clearCachedEncodings",
"(",
")",
"{",
"cachedEncodedString",
"=",
"null",
";",
"cachedPartialEncodedString",
"=",
"null",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"cachedEncoding",
".",
"length",
";",
"i",
"++",
")",
"cache... | This method should be called by all setter methods if they alter the state
information of this destination. Doing so will cause the string encoded version
of this destination to be recreated when necessary. | [
"This",
"method",
"should",
"be",
"called",
"by",
"all",
"setter",
"methods",
"if",
"they",
"alter",
"the",
"state",
"information",
"of",
"this",
"destination",
".",
"Doing",
"so",
"will",
"cause",
"the",
"string",
"encoded",
"version",
"of",
"this",
"destin... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsDestinationImpl.java#L1470-L1477 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.initialiseNonPersistent | public void initialiseNonPersistent(MessageProcessor messageProcessor,
SIMPTransactionManager txManager)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initialiseNonPersistent", messageProcessor);
//Release 1 has no Link Bundle ... | java | public void initialiseNonPersistent(MessageProcessor messageProcessor,
SIMPTransactionManager txManager)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initialiseNonPersistent", messageProcessor);
//Release 1 has no Link Bundle ... | [
"public",
"void",
"initialiseNonPersistent",
"(",
"MessageProcessor",
"messageProcessor",
",",
"SIMPTransactionManager",
"txManager",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibT... | Called to recover Neighbours from the MessageStore.
@param messageProcessor The message processor instance
@param txManager The transaction manager instance to create Local transactions
under. | [
"Called",
"to",
"recover",
"Neighbours",
"from",
"the",
"MessageStore",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L140-L167 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.initalised | public void initalised() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initalised");
try
{
_lockManager.lockExclusive();
// Flag that we are in a started state.
_started = true;
// If the Neigh... | java | public void initalised() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initalised");
try
{
_lockManager.lockExclusive();
// Flag that we are in a started state.
_started = true;
// If the Neigh... | [
"public",
"void",
"initalised",
"(",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"initalised\"",
")",... | When initialised is called, each of the neighbours are sent the
set of subscriptions.
The flag that indicates that reconciling is complete is also set | [
"When",
"initialised",
"is",
"called",
"each",
"of",
"the",
"neighbours",
"are",
"sent",
"the",
"set",
"of",
"subscriptions",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L176-L204 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.stop | public void stop()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "stop");
try
{
_lockManager.lockExclusive();
// Flag that we are in a started state.
_started = false;
}
finally
{
_lockManager.unlockExclusive();
... | java | public void stop()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "stop");
try
{
_lockManager.lockExclusive();
// Flag that we are in a started state.
_started = false;
}
finally
{
_lockManager.unlockExclusive();
... | [
"public",
"void",
"stop",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"stop\"",
")",
";",
"try",
"{",
"_lockManager",
".",
... | Stops the proxy handler from processing any more messages | [
"Stops",
"the",
"proxy",
"handler",
"from",
"processing",
"any",
"more",
"messages"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L209-L226 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.removeUnusedNeighbours | public void removeUnusedNeighbours()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeUnusedNeighbours");
final Enumeration neighbourList = _neighbours.getAllRecoveredNeighbours();
LocalTransaction transaction = null;
try
{
_lockManag... | java | public void removeUnusedNeighbours()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeUnusedNeighbours");
final Enumeration neighbourList = _neighbours.getAllRecoveredNeighbours();
LocalTransaction transaction = null;
try
{
_lockManag... | [
"public",
"void",
"removeUnusedNeighbours",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"removeUnusedNeighbours\"",
")",
";",
"fi... | removeUnusedNeighbours is called once all the Neighbours are defined from Admin.
This will generate the reset state method to be sent to all Neighbouring
ME's
Also, this will check all Neighbours and ensure that they are all still
valid and remove those that aren't | [
"removeUnusedNeighbours",
"is",
"called",
"once",
"all",
"the",
"Neighbours",
"are",
"defined",
"from",
"Admin",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L238-L317 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.subscribeEvent | public void subscribeEvent(
ConsumerDispatcherState subState,
Transaction transaction)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"subscribeEvent",
new Object[] { subState, transaction });
try
{
... | java | public void subscribeEvent(
ConsumerDispatcherState subState,
Transaction transaction)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"subscribeEvent",
new Object[] { subState, transaction });
try
{
... | [
"public",
"void",
"subscribeEvent",
"(",
"ConsumerDispatcherState",
"subState",
",",
"Transaction",
"transaction",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
"... | Forwards a subscription to all Neighbouring ME's
To drive this subscribeEvent method, the subscription would
have to have been registered on this ME which means that we
can forward this subscription onto the Neighbours if required
@param subState The subscription definition
@param transaction The trans... | [
"Forwards",
"a",
"subscription",
"to",
"all",
"Neighbouring",
"ME",
"s"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L331-L398 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.topicSpaceCreatedEvent | public void topicSpaceCreatedEvent(DestinationHandler destination) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "topicSpaceCreatedEvent", destination);
try
{
_lockManager.lockExclusive();
_neighbours.topicSpaceC... | java | public void topicSpaceCreatedEvent(DestinationHandler destination) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "topicSpaceCreatedEvent", destination);
try
{
_lockManager.lockExclusive();
_neighbours.topicSpaceC... | [
"public",
"void",
"topicSpaceCreatedEvent",
"(",
"DestinationHandler",
"destination",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"ent... | When a topic space is created, there may be proxy subscriptions
already registered that need to attach to this topic space.
@param destination The destination object being created
@exception SIDiscriminatorSyntaxException
@exception SISelectorSyntaxException
@exception SIResourceException | [
"When",
"a",
"topic",
"space",
"is",
"created",
"there",
"may",
"be",
"proxy",
"subscriptions",
"already",
"registered",
"that",
"need",
"to",
"attach",
"to",
"this",
"topic",
"space",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L798-L816 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.topicSpaceDeletedEvent | public void topicSpaceDeletedEvent(DestinationHandler destination)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "topicSpaceDeletedEvent", destination);
try
{
_lockManager.lockExclusive();
_neighbours.topicSpaceDel... | java | public void topicSpaceDeletedEvent(DestinationHandler destination)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "topicSpaceDeletedEvent", destination);
try
{
_lockManager.lockExclusive();
_neighbours.topicSpaceDel... | [
"public",
"void",
"topicSpaceDeletedEvent",
"(",
"DestinationHandler",
"destination",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"ent... | When a topic space is deleted, there may be proxy subscriptions
that need removing from the match space and putting into "limbo"
until the delete proxy subscriptions request is made
@param destination The destination topic space that has been deleted
@exception SIResourceException | [
"When",
"a",
"topic",
"space",
"is",
"deleted",
"there",
"may",
"be",
"proxy",
"subscriptions",
"that",
"need",
"removing",
"from",
"the",
"match",
"space",
"and",
"putting",
"into",
"limbo",
"until",
"the",
"delete",
"proxy",
"subscriptions",
"request",
"is",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L827-L846 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.linkStarted | public void linkStarted(String busId, SIBUuid8 meUuid)
throws SIIncorrectCallException, SIErrorException, SIDiscriminatorSyntaxException,
SISelectorSyntaxException, SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "linkStarted... | java | public void linkStarted(String busId, SIBUuid8 meUuid)
throws SIIncorrectCallException, SIErrorException, SIDiscriminatorSyntaxException,
SISelectorSyntaxException, SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "linkStarted... | [
"public",
"void",
"linkStarted",
"(",
"String",
"busId",
",",
"SIBUuid8",
"meUuid",
")",
"throws",
"SIIncorrectCallException",
",",
"SIErrorException",
",",
"SIDiscriminatorSyntaxException",
",",
"SISelectorSyntaxException",
",",
"SIResourceException",
"{",
"if",
"(",
"... | When a Link is started we want to send a reset message to the neighbouring
bus.
If the neighbour was not found, then create it here as we don't want to start
sending messages to it until the link has started.
@param String The name of the foreign bus
@param SIBUuid8 The uuid of the link localising ME on the foreign b... | [
"When",
"a",
"Link",
"is",
"started",
"we",
"want",
"to",
"send",
"a",
"reset",
"message",
"to",
"the",
"neighbouring",
"bus",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L858-L885 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.cleanupLinkNeighbour | public void cleanupLinkNeighbour(String busName)
throws SIRollbackException,
SIConnectionLostException,
SIIncorrectCallException,
SIResourceException,
SIErrorException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "cleanupLinkN... | java | public void cleanupLinkNeighbour(String busName)
throws SIRollbackException,
SIConnectionLostException,
SIIncorrectCallException,
SIResourceException,
SIErrorException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "cleanupLinkN... | [
"public",
"void",
"cleanupLinkNeighbour",
"(",
"String",
"busName",
")",
"throws",
"SIRollbackException",
",",
"SIConnectionLostException",
",",
"SIIncorrectCallException",
",",
"SIResourceException",
",",
"SIErrorException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyT... | When a link is deleted we need to clean up any neighbours that won`t
be deleted at restart time.
@param String The name of the foreign bus | [
"When",
"a",
"link",
"is",
"deleted",
"we",
"need",
"to",
"clean",
"up",
"any",
"neighbours",
"that",
"won",
"t",
"be",
"deleted",
"at",
"restart",
"time",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L893-L918 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.deleteNeighbourForced | public void deleteNeighbourForced(
SIBUuid8 meUUID,
String busId,
Transaction transaction)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"deleteNeighbourForced",
new Object[] { meUUID, busId, transaction... | java | public void deleteNeighbourForced(
SIBUuid8 meUUID,
String busId,
Transaction transaction)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"deleteNeighbourForced",
new Object[] { meUUID, busId, transaction... | [
"public",
"void",
"deleteNeighbourForced",
"(",
"SIBUuid8",
"meUUID",
",",
"String",
"busId",
",",
"Transaction",
"transaction",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntry... | Removes a Neighbour by taking a brutal approach to remove all the
proxy Subscriptions on this ME pointing at other Neighbours.
This will not leave the Neighbour marked as deleted and wait for the
delete message, it will simply zap everything in site.
This will forward on any deregistration Events to other Neighbours.... | [
"Removes",
"a",
"Neighbour",
"by",
"taking",
"a",
"brutal",
"approach",
"to",
"remove",
"all",
"the",
"proxy",
"Subscriptions",
"on",
"this",
"ME",
"pointing",
"at",
"other",
"Neighbours",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L990-L1016 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.deleteAllNeighboursForced | public void deleteAllNeighboursForced(
Transaction transaction)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"deleteAllNeighboursForced",
new Object[] { transaction } );
try
{
_lockManager.lo... | java | public void deleteAllNeighboursForced(
Transaction transaction)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"deleteAllNeighboursForced",
new Object[] { transaction } );
try
{
_lockManager.lo... | [
"public",
"void",
"deleteAllNeighboursForced",
"(",
"Transaction",
"transaction",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",... | This is purely for unittests. Many unittests dont cleanup their neighbours
so we now need this to ensure certain tests are clean before starting.
@param neighbourUUID The UUID for the Neighbour
@param busId The bus that this ME belongs to.
@param transaction The transaction for deleting the Neighbour
@exception SID... | [
"This",
"is",
"purely",
"for",
"unittests",
".",
"Many",
"unittests",
"dont",
"cleanup",
"their",
"neighbours",
"so",
"we",
"now",
"need",
"this",
"to",
"ensure",
"certain",
"tests",
"are",
"clean",
"before",
"starting",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L1029-L1068 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.recoverNeighbours | public void recoverNeighbours() throws SIResourceException, MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "recoverNeighbours");
try
{
// Lock the manager exclusively
_lockManager.lockExclusive();
// Indicate tha... | java | public void recoverNeighbours() throws SIResourceException, MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "recoverNeighbours");
try
{
// Lock the manager exclusively
_lockManager.lockExclusive();
// Indicate tha... | [
"public",
"void",
"recoverNeighbours",
"(",
")",
"throws",
"SIResourceException",
",",
"MessageStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
... | Recovers the Neighbours from the MessageStore.
@exception WsException Thrown if there was a problem
recovering the Neighbours. | [
"Recovers",
"the",
"Neighbours",
"from",
"the",
"MessageStore",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L1077-L1099 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.reportAllNeighbours | Enumeration reportAllNeighbours()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "reportAllNeighbours");
// Call out to the Neighbours class to get the list of Neighbours.
final Enumeration neighbours = _neighbours.getAllNeighbours();
if (TraceComponent.isAn... | java | Enumeration reportAllNeighbours()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "reportAllNeighbours");
// Call out to the Neighbours class to get the list of Neighbours.
final Enumeration neighbours = _neighbours.getAllNeighbours();
if (TraceComponent.isAn... | [
"Enumeration",
"reportAllNeighbours",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"reportAllNeighbours\"",
")",
";",
"// Call out t... | Method reports all currently known ME's in a Enumeration format
@return An Enumeration of all the Neighbours. | [
"Method",
"reports",
"all",
"currently",
"known",
"ME",
"s",
"in",
"a",
"Enumeration",
"format"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L1106-L1118 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.addMessageHandler | void addMessageHandler(SubscriptionMessageHandler messageHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addMessageHandler", messageHandler);
final boolean inserted = _subscriptionMessagePool.add(messageHandler);
// If the message wasn't inserted, then t... | java | void addMessageHandler(SubscriptionMessageHandler messageHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addMessageHandler", messageHandler);
final boolean inserted = _subscriptionMessagePool.add(messageHandler);
// If the message wasn't inserted, then t... | [
"void",
"addMessageHandler",
"(",
"SubscriptionMessageHandler",
"messageHandler",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"addMessageH... | Adds a message back into the Pool of available messages.
@param messageHandler The message handler to add back to the pool | [
"Adds",
"a",
"message",
"back",
"into",
"the",
"Pool",
"of",
"available",
"messages",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L1144-L1159 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.getMessageHandler | SubscriptionMessageHandler getMessageHandler()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getMessageHandler");
SubscriptionMessageHandler messageHandler =
(SubscriptionMessageHandler) _subscriptionMessagePool.remove();
if (messageHandler == null)
... | java | SubscriptionMessageHandler getMessageHandler()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getMessageHandler");
SubscriptionMessageHandler messageHandler =
(SubscriptionMessageHandler) _subscriptionMessagePool.remove();
if (messageHandler == null)
... | [
"SubscriptionMessageHandler",
"getMessageHandler",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getMessageHandler\"",
")",
";",
"Su... | Returns the Message Handler to be used for this operation
It will check the message pool and if none are available,
it will create a new instance
@return SubscriptionMessageHandler The message handling class. | [
"Returns",
"the",
"Message",
"Handler",
"to",
"be",
"used",
"for",
"this",
"operation"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L1169-L1192 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.createProxyListener | private void createProxyListener() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createProxyListener");
// Create the proxy listener instance
_proxyListener = new NeighbourProxyListener(_neighbours, this);
/*
* Now we can cr... | java | private void createProxyListener() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createProxyListener");
// Create the proxy listener instance
_proxyListener = new NeighbourProxyListener(_neighbours, this);
/*
* Now we can cr... | [
"private",
"void",
"createProxyListener",
"(",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"createProxy... | Method that creates the NeighbourProxyListener instance for reading messages
from the Neighbours. It then registers the listener to start receiving
messages
@throws SIResourceException Thrown if there are errors while
creating the | [
"Method",
"that",
"creates",
"the",
"NeighbourProxyListener",
"instance",
"for",
"reading",
"messages",
"from",
"the",
"Neighbours",
".",
"It",
"then",
"registers",
"the",
"listener",
"to",
"start",
"receiving",
"messages"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L1202-L1259 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java | MultiMEProxyHandler.getNeighbour | public final Neighbour getNeighbour(SIBUuid8 neighbourUUID, boolean includeRecovered)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getNeighbour", new Object[] { neighbourUUID, Boolean.valueOf(includeRecovered)});
Neighbour neighbour = _neighbours.getNeighbour(... | java | public final Neighbour getNeighbour(SIBUuid8 neighbourUUID, boolean includeRecovered)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getNeighbour", new Object[] { neighbourUUID, Boolean.valueOf(includeRecovered)});
Neighbour neighbour = _neighbours.getNeighbour(... | [
"public",
"final",
"Neighbour",
"getNeighbour",
"(",
"SIBUuid8",
"neighbourUUID",
",",
"boolean",
"includeRecovered",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"... | Returns the neighbour for the given UUID
@param neighbourUUID The uuid to find
@param includeRecovered Also look for the neighbour in the recovered list
@return The neighbour object | [
"Returns",
"the",
"neighbour",
"for",
"the",
"given",
"UUID"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MultiMEProxyHandler.java#L1297-L1311 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/Lock.java | Lock.getSharedLock | public void getSharedLock(int requestId)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "getSharedLock",new Object[] {this,new Integer(requestId)});
Thread currentThread = Thread.currentThread();
Integer count = null;
synchronized(this)
{
// If this thread does not have any existing shared locks ... | java | public void getSharedLock(int requestId)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "getSharedLock",new Object[] {this,new Integer(requestId)});
Thread currentThread = Thread.currentThread();
Integer count = null;
synchronized(this)
{
// If this thread does not have any existing shared locks ... | [
"public",
"void",
"getSharedLock",
"(",
"int",
"requestId",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getSharedLock\"",
",",
"new",
"Object",
"[",
"]",
"{",
"this",
",",
"new",
"Integer",
... | This method is called to request a shared lock. There are conditions under which a
shared lock cannot be granted and this method will block until no such conditions
apply. When the method returns the thread has been granted an additional shared
lock. A single thread may hold any number of shared locks, but the number o... | [
"This",
"method",
"is",
"called",
"to",
"request",
"a",
"shared",
"lock",
".",
"There",
"are",
"conditions",
"under",
"which",
"a",
"shared",
"lock",
"cannot",
"be",
"granted",
"and",
"this",
"method",
"will",
"block",
"until",
"no",
"such",
"conditions",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/Lock.java#L153-L207 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/Lock.java | Lock.releaseSharedLock | public void releaseSharedLock(int requestId) throws NoSharedLockException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "releaseSharedLock",new Object[]{this,new Integer(requestId)});
Thread currentThread = Thread.currentThread();
int newValue = 0;
synchronized(this)
{
Integer count = (Integer)_... | java | public void releaseSharedLock(int requestId) throws NoSharedLockException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "releaseSharedLock",new Object[]{this,new Integer(requestId)});
Thread currentThread = Thread.currentThread();
int newValue = 0;
synchronized(this)
{
Integer count = (Integer)_... | [
"public",
"void",
"releaseSharedLock",
"(",
"int",
"requestId",
")",
"throws",
"NoSharedLockException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"releaseSharedLock\"",
",",
"new",
"Object",
"[",
"]",
... | Releases a single shared lock from thread.
@exception NoSharedLockException The caller does not hold a shared lock to release
@param requestId The 'identifier' of the lock requester. This is used ONLY for
trace output. It should be used to 'pair up' get/set pairs in
the code. | [
"Releases",
"a",
"single",
"shared",
"lock",
"from",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/Lock.java#L221-L270 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java | H2InboundLink.handleHTTP2AlpnConnect | public boolean handleHTTP2AlpnConnect(HttpInboundLink link) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "handleHTTP2AlpnConnect entry");
}
initialHttpInboundLink = link;
Integer streamID = new Integer(0);
H2VirtualConnectionImp... | java | public boolean handleHTTP2AlpnConnect(HttpInboundLink link) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "handleHTTP2AlpnConnect entry");
}
initialHttpInboundLink = link;
Integer streamID = new Integer(0);
H2VirtualConnectionImp... | [
"public",
"boolean",
"handleHTTP2AlpnConnect",
"(",
"HttpInboundLink",
"link",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"handleHT... | Handle a connection initiated via ALPN "h2"
@param link the initial inbound link
@return true if the upgrade was sucessful | [
"Handle",
"a",
"connection",
"initiated",
"via",
"ALPN",
"h2"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java#L291-L315 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java | H2InboundLink.handleHTTP2UpgradeRequest | public boolean handleHTTP2UpgradeRequest(Map<String, String> headers, HttpInboundLink link) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "handleHTTP2UpgradeRequest entry");
}
//1) Send the 101 response
//2) Setup the new streams and Link... | java | public boolean handleHTTP2UpgradeRequest(Map<String, String> headers, HttpInboundLink link) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "handleHTTP2UpgradeRequest entry");
}
//1) Send the 101 response
//2) Setup the new streams and Link... | [
"public",
"boolean",
"handleHTTP2UpgradeRequest",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"headers",
",",
"HttpInboundLink",
"link",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")"... | Handle an h2c upgrade request
@param headers a map of the headers for this request
@param link the initial inbound link
@return true if the http2 upgrade was successful | [
"Handle",
"an",
"h2c",
"upgrade",
"request"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java#L324-L397 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java | H2InboundLink.updateHighestStreamId | protected void updateHighestStreamId(int proposedHighestStreamId) throws ProtocolException {
if ((proposedHighestStreamId & 1) == 0) { // even number, server-initialized stream
if (proposedHighestStreamId > highestLocalStreamId) {
highestLocalStreamId = proposedHighestStreamId;
... | java | protected void updateHighestStreamId(int proposedHighestStreamId) throws ProtocolException {
if ((proposedHighestStreamId & 1) == 0) { // even number, server-initialized stream
if (proposedHighestStreamId > highestLocalStreamId) {
highestLocalStreamId = proposedHighestStreamId;
... | [
"protected",
"void",
"updateHighestStreamId",
"(",
"int",
"proposedHighestStreamId",
")",
"throws",
"ProtocolException",
"{",
"if",
"(",
"(",
"proposedHighestStreamId",
"&",
"1",
")",
"==",
"0",
")",
"{",
"// even number, server-initialized stream",
"if",
"(",
"propos... | Keep track of the highest-valued local and remote stream IDs for this connection
@param proposedHighestStreamId
@throws ProtocolException if the proposed stream ID is lower than a previous streams' | [
"Keep",
"track",
"of",
"the",
"highest",
"-",
"valued",
"local",
"and",
"remote",
"stream",
"IDs",
"for",
"this",
"connection"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java#L405-L429 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java | H2InboundLink.destroy | @Override
public void destroy() {
httpInboundChannel.stop(50);
initialVC = null;
frameReadProcessor = null;
h2MuxReadCallback = null;
h2MuxTCPConnectionContext = null;
h2MuxTCPReadContext = null;
h2MuxTCPWriteContext = null;
localConnectionSettings = ... | java | @Override
public void destroy() {
httpInboundChannel.stop(50);
initialVC = null;
frameReadProcessor = null;
h2MuxReadCallback = null;
h2MuxTCPConnectionContext = null;
h2MuxTCPReadContext = null;
h2MuxTCPWriteContext = null;
localConnectionSettings = ... | [
"@",
"Override",
"public",
"void",
"destroy",
"(",
")",
"{",
"httpInboundChannel",
".",
"stop",
"(",
"50",
")",
";",
"initialVC",
"=",
"null",
";",
"frameReadProcessor",
"=",
"null",
";",
"h2MuxReadCallback",
"=",
"null",
";",
"h2MuxTCPConnectionContext",
"=",... | A GOAWAY frame has been received; start shutting down this connection | [
"A",
"GOAWAY",
"frame",
"has",
"been",
"received",
";",
"start",
"shutting",
"down",
"this",
"connection"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java#L676-L692 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java | H2InboundLink.incrementConnectionWindowUpdateLimit | public void incrementConnectionWindowUpdateLimit(int x) throws FlowControlException {
if (!checkIfGoAwaySendingOrClosing()) {
writeQ.incrementConnectionWindowUpdateLimit(x);
H2StreamProcessor stream;
for (Integer i : streamTable.keySet()) {
stream = streamTabl... | java | public void incrementConnectionWindowUpdateLimit(int x) throws FlowControlException {
if (!checkIfGoAwaySendingOrClosing()) {
writeQ.incrementConnectionWindowUpdateLimit(x);
H2StreamProcessor stream;
for (Integer i : streamTable.keySet()) {
stream = streamTabl... | [
"public",
"void",
"incrementConnectionWindowUpdateLimit",
"(",
"int",
"x",
")",
"throws",
"FlowControlException",
"{",
"if",
"(",
"!",
"checkIfGoAwaySendingOrClosing",
"(",
")",
")",
"{",
"writeQ",
".",
"incrementConnectionWindowUpdateLimit",
"(",
"x",
")",
";",
"H2... | Increment the connection window limit but the given amount
@param int amount to increment connection window
@throws FlowControlException | [
"Increment",
"the",
"connection",
"window",
"limit",
"but",
"the",
"given",
"amount"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java#L812-L823 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java | H2InboundLink.closeStream | public void closeStream(H2StreamProcessor p) {
// only place that should be dealing with the closed stream table,
// be called by multiple stream objects at the same time, so sync access
synchronized (streamOpenCloseSync) {
if (p.getId() != 0) {
writeQ.removeNodeFromQ... | java | public void closeStream(H2StreamProcessor p) {
// only place that should be dealing with the closed stream table,
// be called by multiple stream objects at the same time, so sync access
synchronized (streamOpenCloseSync) {
if (p.getId() != 0) {
writeQ.removeNodeFromQ... | [
"public",
"void",
"closeStream",
"(",
"H2StreamProcessor",
"p",
")",
"{",
"// only place that should be dealing with the closed stream table,",
"// be called by multiple stream objects at the same time, so sync access",
"synchronized",
"(",
"streamOpenCloseSync",
")",
"{",
"if",
"(",... | Remove the stream matching the given ID from the write tree, and decrement the number of open streams.
@param int streamID | [
"Remove",
"the",
"stream",
"matching",
"the",
"given",
"ID",
"from",
"the",
"write",
"tree",
"and",
"decrement",
"the",
"number",
"of",
"open",
"streams",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java#L1242-L1263 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java | H2InboundLink.getStream | public H2StreamProcessor getStream(int streamID) {
H2StreamProcessor streamProcessor = null;
streamProcessor = streamTable.get(streamID);
return streamProcessor;
} | java | public H2StreamProcessor getStream(int streamID) {
H2StreamProcessor streamProcessor = null;
streamProcessor = streamTable.get(streamID);
return streamProcessor;
} | [
"public",
"H2StreamProcessor",
"getStream",
"(",
"int",
"streamID",
")",
"{",
"H2StreamProcessor",
"streamProcessor",
"=",
"null",
";",
"streamProcessor",
"=",
"streamTable",
".",
"get",
"(",
"streamID",
")",
";",
"return",
"streamProcessor",
";",
"}"
] | Get the stream processor for a given stream ID, if it exists
@param streamID of the desired stream
@return a stream object if it's in the open stream table, or null if the
ID is new or has already been removed from the stream table | [
"Get",
"the",
"stream",
"processor",
"for",
"a",
"given",
"stream",
"ID",
"if",
"it",
"exists"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2InboundLink.java#L1272-L1277 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/passivator/StatefulPassivator.java | StatefulPassivator.remove | public void remove(BeanId beanId, boolean removeFromFailoverCache)
throws RemoteException //LIDB2018-1
{
// LIDB2018-1 begins
if (ivStatefulFailoverCache == null || !ivStatefulFailoverCache.beanExists(beanId))
{
//PK69093 - beanStore.remove will access a file,... | java | public void remove(BeanId beanId, boolean removeFromFailoverCache)
throws RemoteException //LIDB2018-1
{
// LIDB2018-1 begins
if (ivStatefulFailoverCache == null || !ivStatefulFailoverCache.beanExists(beanId))
{
//PK69093 - beanStore.remove will access a file,... | [
"public",
"void",
"remove",
"(",
"BeanId",
"beanId",
",",
"boolean",
"removeFromFailoverCache",
")",
"throws",
"RemoteException",
"//LIDB2018-1",
"{",
"// LIDB2018-1 begins",
"if",
"(",
"ivStatefulFailoverCache",
"==",
"null",
"||",
"!",
"ivStatefulFailoverCache",
".",
... | Version of remove which can be used with only a beanId passed in
as input.
@param beanId of the SFSB to be removed.
@param removeFromFailoverCache indicates whether or not to remove from
failover cache if found in failover cache. Note, the intent is
only a timeout or SFSB.remove() call should cause failover cache
ent... | [
"Version",
"of",
"remove",
"which",
"can",
"be",
"used",
"with",
"only",
"a",
"beanId",
"passed",
"in",
"as",
"input",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/passivator/StatefulPassivator.java#L597-L622 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/passivator/StatefulPassivator.java | StatefulPassivator.getCompressedBytes | private byte[] getCompressedBytes(Object sb,
long lastAccessTime,
Object exPC) throws IOException // d367572.7
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
... | java | private byte[] getCompressedBytes(Object sb,
long lastAccessTime,
Object exPC) throws IOException // d367572.7
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
... | [
"private",
"byte",
"[",
"]",
"getCompressedBytes",
"(",
"Object",
"sb",
",",
"long",
"lastAccessTime",
",",
"Object",
"exPC",
")",
"throws",
"IOException",
"// d367572.7",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"("... | LIDB2018-1 added entire method. | [
"LIDB2018",
"-",
"1",
"added",
"entire",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/passivator/StatefulPassivator.java#L687-L721 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/passivator/StatefulPassivator.java | StatefulPassivator.getPassivatorFields | public Map<String, Map<String, Field>> getPassivatorFields(final BeanMetaData bmd) // d648122
{
// Volatile data race. We do not care if multiple threads do the work
// since they will all get the same result.
Map<String, Map<String, Field>> result = bmd.ivPassivatorFields;
if (resu... | java | public Map<String, Map<String, Field>> getPassivatorFields(final BeanMetaData bmd) // d648122
{
// Volatile data race. We do not care if multiple threads do the work
// since they will all get the same result.
Map<String, Map<String, Field>> result = bmd.ivPassivatorFields;
if (resu... | [
"public",
"Map",
"<",
"String",
",",
"Map",
"<",
"String",
",",
"Field",
">",
">",
"getPassivatorFields",
"(",
"final",
"BeanMetaData",
"bmd",
")",
"// d648122",
"{",
"// Volatile data race. We do not care if multiple threads do the work",
"// since they will all get the s... | Get the passivator fields for the specified bean.
@param bmd the bean metadata
@return the passivator fields | [
"Get",
"the",
"passivator",
"fields",
"for",
"the",
"specified",
"bean",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/passivator/StatefulPassivator.java#L791-L822 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractList.java | AbstractList.removeFirst | public Token removeFirst(Transaction transaction)
throws ObjectManagerException
{
Iterator iterator = entrySet().iterator();
List.Entry entry = (List.Entry) iterator.next(transaction);
iterator.remove(transaction);
return entry.getValue();
} | java | public Token removeFirst(Transaction transaction)
throws ObjectManagerException
{
Iterator iterator = entrySet().iterator();
List.Entry entry = (List.Entry) iterator.next(transaction);
iterator.remove(transaction);
return entry.getValue();
} | [
"public",
"Token",
"removeFirst",
"(",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"Iterator",
"iterator",
"=",
"entrySet",
"(",
")",
".",
"iterator",
"(",
")",
";",
"List",
".",
"Entry",
"entry",
"=",
"(",
"List",
".",
"Entry... | Remove the first element in the list.
@param transaction
the transaction cotroling the ultimate removal.
@return the object removed.
@exception java.util.NoSuchElementException
if there is nothing in the list or it has already been deleted by some other
uncommited transaction.
@throws ObjectManagerException. | [
"Remove",
"the",
"first",
"element",
"in",
"the",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractList.java#L122-L129 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/matching/NeighbourFlexHandler.java | NeighbourFlexHandler.postProcessMatches | public void postProcessMatches(DestinationHandler topicSpace,
String topic,
Object[] results,
int index)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "postProcessMatches","resul... | java | public void postProcessMatches(DestinationHandler topicSpace,
String topic,
Object[] results,
int index)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "postProcessMatches","resul... | [
"public",
"void",
"postProcessMatches",
"(",
"DestinationHandler",
"topicSpace",
",",
"String",
"topic",
",",
"Object",
"[",
"]",
"results",
",",
"int",
"index",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"i... | Complete processing of results for this handler after completely traversing
MatchSpace.
ACL checking takes place at this point.
@param results Vector of results for all handlers; results of MatchTarget types
whose index is less than that of this MatchTarget type have already been postprocessed.
@param index Index in ... | [
"Complete",
"processing",
"of",
"results",
"for",
"this",
"handler",
"after",
"completely",
"traversing",
"MatchSpace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/matching/NeighbourFlexHandler.java#L111-L173 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsAdminFactory.java | JsAdminFactory.createInstance | private static void createInstance() throws Exception {
if (tc.isEntryEnabled())
SibTr.entry(tc, "createInstance", null);
try {
Class cls = Class.forName(JsConstants.JS_ADMIN_FACTORY_CLASS);
_instance = (JsAdminFactory) cls.newInstance();
} catch (Exception e... | java | private static void createInstance() throws Exception {
if (tc.isEntryEnabled())
SibTr.entry(tc, "createInstance", null);
try {
Class cls = Class.forName(JsConstants.JS_ADMIN_FACTORY_CLASS);
_instance = (JsAdminFactory) cls.newInstance();
} catch (Exception e... | [
"private",
"static",
"void",
"createInstance",
"(",
")",
"throws",
"Exception",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"createInstance\"",
",",
"null",
")",
";",
"try",
"{",
"Class",
"cls",
... | Create the singleton instance of this factory class
@throws Exception | [
"Create",
"the",
"singleton",
"instance",
"of",
"this",
"factory",
"class"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsAdminFactory.java#L59-L75 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/BifurcatedConsumerSessionProxy.java | BifurcatedConsumerSessionProxy.readSet | public SIBusMessage[] readSet(SIMessageHandle[] msgHandles)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIIncorrectCallException, SIMessageN... | java | public SIBusMessage[] readSet(SIMessageHandle[] msgHandles)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIIncorrectCallException, SIMessageN... | [
"public",
"SIBusMessage",
"[",
"]",
"readSet",
"(",
"SIMessageHandle",
"[",
"]",
"msgHandles",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedException",
",",
"SIResourceExcep... | This method is used to read a set of locked messages held by the message processor.
This call will simply be passed onto the server who will call the method on the real
bifurcated consumer session residing on the server.
@param msgHandles An array of message ids that denote the messages to be read.
@return Returns an... | [
"This",
"method",
"is",
"used",
"to",
"read",
"a",
"set",
"of",
"locked",
"messages",
"held",
"by",
"the",
"message",
"processor",
".",
"This",
"call",
"will",
"simply",
"be",
"passed",
"onto",
"the",
"server",
"who",
"will",
"call",
"the",
"method",
"on... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/BifurcatedConsumerSessionProxy.java#L261-L337 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/BifurcatedConsumerSessionProxy.java | BifurcatedConsumerSessionProxy.readAndDeleteSet | public SIBusMessage[] readAndDeleteSet(SIMessageHandle[] msgHandles, SITransaction tran)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SILimitExceededExcepti... | java | public SIBusMessage[] readAndDeleteSet(SIMessageHandle[] msgHandles, SITransaction tran)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SILimitExceededExcepti... | [
"public",
"SIBusMessage",
"[",
"]",
"readAndDeleteSet",
"(",
"SIMessageHandle",
"[",
"]",
"msgHandles",
",",
"SITransaction",
"tran",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectio... | This method is used to read and then delete a set of locked messages held by the message
processor. This call will simply be passed onto the server who will call the method on the
real bifurcated consumer session residing on the server.
@param msgHandles An array of message ids that denote the messages to be read and ... | [
"This",
"method",
"is",
"used",
"to",
"read",
"and",
"then",
"delete",
"a",
"set",
"of",
"locked",
"messages",
"held",
"by",
"the",
"message",
"processor",
".",
"This",
"call",
"will",
"simply",
"be",
"passed",
"onto",
"the",
"server",
"who",
"will",
"ca... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/BifurcatedConsumerSessionProxy.java#L360-L419 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/BifurcatedConsumerSessionProxy.java | BifurcatedConsumerSessionProxy._readAndDeleteSet | private SIBusMessage[] _readAndDeleteSet(SIMessageHandle[] msgHandles, SITransaction tran)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SILimitExceededExcep... | java | private SIBusMessage[] _readAndDeleteSet(SIMessageHandle[] msgHandles, SITransaction tran)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SILimitExceededExcep... | [
"private",
"SIBusMessage",
"[",
"]",
"_readAndDeleteSet",
"(",
"SIMessageHandle",
"[",
"]",
"msgHandles",
",",
"SITransaction",
"tran",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnect... | Actually performs the read and delete.
@param msgHandles
@param tran
@return Returns the requested messages.
@throws SISessionUnavailableException
@throws SISessionDroppedException
@throws SIConnectionUnavailableException
@throws SIConnectionDroppedException
@throws SIResourceException
@throws SIConnectionLostExcept... | [
"Actually",
"performs",
"the",
"read",
"and",
"delete",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/BifurcatedConsumerSessionProxy.java#L440-L506 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.security.wim.base/src/com/ibm/websphere/security/wim/ras/WIMMessageHelper.java | WIMMessageHelper.generateMsgParms | public static Object[] generateMsgParms(Object parm1, Object parm2, Object parm3, Object parm4, Object parm5,
Object parm6, Object parm7) {
Object parms[] = new Object[7];
parms[0] = parm1;
parms[1] = parm2;
parms[2] = parm3;
parms[3] =... | java | public static Object[] generateMsgParms(Object parm1, Object parm2, Object parm3, Object parm4, Object parm5,
Object parm6, Object parm7) {
Object parms[] = new Object[7];
parms[0] = parm1;
parms[1] = parm2;
parms[2] = parm3;
parms[3] =... | [
"public",
"static",
"Object",
"[",
"]",
"generateMsgParms",
"(",
"Object",
"parm1",
",",
"Object",
"parm2",
",",
"Object",
"parm3",
",",
"Object",
"parm4",
",",
"Object",
"parm5",
",",
"Object",
"parm6",
",",
"Object",
"parm7",
")",
"{",
"Object",
"parms",... | Create an object array to be used as parameters to be passed to a message.
@param parm1 Value of the first parameter to be substituted into the message text.
@param parm2 Value of the second parameter to be substituted into the message text.
@param parm3 Value of the third parameter to be substituted into the message ... | [
"Create",
"an",
"object",
"array",
"to",
"be",
"used",
"as",
"parameters",
"to",
"be",
"passed",
"to",
"a",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/websphere/security/wim/ras/WIMMessageHelper.java#L137-L148 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/ByteCodeMetaData.java | ByteCodeMetaData.scan | private void scan() {
if (ivScanned) {
return;
}
ivScanned = true;
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
for (Class<?> klass = ivClass; klass != null && klass != Object.class; klass = klass.getSuperclass()) {
if (isTraceOn && (t... | java | private void scan() {
if (ivScanned) {
return;
}
ivScanned = true;
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
for (Class<?> klass = ivClass; klass != null && klass != Object.class; klass = klass.getSuperclass()) {
if (isTraceOn && (t... | [
"private",
"void",
"scan",
"(",
")",
"{",
"if",
"(",
"ivScanned",
")",
"{",
"return",
";",
"}",
"ivScanned",
"=",
"true",
";",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"for",
"(",
"Class",
"<",
... | Scan the bytecode of all classes in the hierarchy unless already done. | [
"Scan",
"the",
"bytecode",
"of",
"all",
"classes",
"in",
"the",
"hierarchy",
"unless",
"already",
"done",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/ByteCodeMetaData.java#L134-L192 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/ByteCodeMetaData.java | ByteCodeMetaData.getBridgeMethodTarget | public Method getBridgeMethodTarget(Method method) {
scan();
if (ivBridgeMethodMetaData == null) {
return null;
}
BridgeMethodMetaData md = ivBridgeMethodMetaData.get(getNonPrivateMethodKey(method));
return md == null ? null : md.ivTarget;
} | java | public Method getBridgeMethodTarget(Method method) {
scan();
if (ivBridgeMethodMetaData == null) {
return null;
}
BridgeMethodMetaData md = ivBridgeMethodMetaData.get(getNonPrivateMethodKey(method));
return md == null ? null : md.ivTarget;
} | [
"public",
"Method",
"getBridgeMethodTarget",
"(",
"Method",
"method",
")",
"{",
"scan",
"(",
")",
";",
"if",
"(",
"ivBridgeMethodMetaData",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"BridgeMethodMetaData",
"md",
"=",
"ivBridgeMethodMetaData",
".",
"g... | Get the target method of a bridge method, or null if not found
@param method the bridge method (Modifiers.isBridge returns true) | [
"Get",
"the",
"target",
"method",
"of",
"a",
"bridge",
"method",
"or",
"null",
"if",
"not",
"found"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/ByteCodeMetaData.java#L206-L215 | train |
OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/impl/ExceptionMatcher.java | ExceptionMatcher.isInElementSet | public boolean isInElementSet(Set<String> skipList, Class<?> excClass) throws ClassNotFoundException {
//String mName = "isInElementSet(Set<String> skipList, Class<?> excClass)";
boolean retVal = false;
ClassLoader tccl = Thread.currentThread().getContextClassLoader();
for(String value : skipList) {
Class<?>... | java | public boolean isInElementSet(Set<String> skipList, Class<?> excClass) throws ClassNotFoundException {
//String mName = "isInElementSet(Set<String> skipList, Class<?> excClass)";
boolean retVal = false;
ClassLoader tccl = Thread.currentThread().getContextClassLoader();
for(String value : skipList) {
Class<?>... | [
"public",
"boolean",
"isInElementSet",
"(",
"Set",
"<",
"String",
">",
"skipList",
",",
"Class",
"<",
"?",
">",
"excClass",
")",
"throws",
"ClassNotFoundException",
"{",
"//String mName = \"isInElementSet(Set<String> skipList, Class<?> excClass)\";",
"boolean",
"retVal",
... | Determines if the given exception is a subclass of an element
@param skipList - Set of elements
@param excClass - The thrown exception
@return True or False if skipList contains an element that is a superclass of the thrown exception
@throws ClassNotFoundException | [
"Determines",
"if",
"the",
"given",
"exception",
"is",
"a",
"subclass",
"of",
"an",
"element"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/impl/ExceptionMatcher.java#L91-L103 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionConfig.java | SessionConfig.updated | public void updated(Dictionary<?, ?> props) {
String value = (String) props.get(PROP_IDNAME);
if (null != value) {
this.idName = value.trim();
}
value = (String) props.get(PROP_USE_URLS);
if (null != value && Boolean.parseBoolean(value.trim())) {
this.urlR... | java | public void updated(Dictionary<?, ?> props) {
String value = (String) props.get(PROP_IDNAME);
if (null != value) {
this.idName = value.trim();
}
value = (String) props.get(PROP_USE_URLS);
if (null != value && Boolean.parseBoolean(value.trim())) {
this.urlR... | [
"public",
"void",
"updated",
"(",
"Dictionary",
"<",
"?",
",",
"?",
">",
"props",
")",
"{",
"String",
"value",
"=",
"(",
"String",
")",
"props",
".",
"get",
"(",
"PROP_IDNAME",
")",
";",
"if",
"(",
"null",
"!=",
"value",
")",
"{",
"this",
".",
"i... | Session configuration has been updated with the provided properties.
@param props | [
"Session",
"configuration",
"has",
"been",
"updated",
"with",
"the",
"provided",
"properties",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionConfig.java#L71-L125 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.clientcontainer.remote.common/src/com/ibm/ws/clientcontainer/remote/common/internal/ClientSupportFactoryImpl.java | ClientSupportFactoryImpl.run | @Trivial
@Override
public synchronized void run() {
clientSupport = null;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "run : cached ClientSupport reference cleared");
}
} | java | @Trivial
@Override
public synchronized void run() {
clientSupport = null;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "run : cached ClientSupport reference cleared");
}
} | [
"@",
"Trivial",
"@",
"Override",
"public",
"synchronized",
"void",
"run",
"(",
")",
"{",
"clientSupport",
"=",
"null",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".... | Scheduled Runnable implementation to reset the ClientSupport
so that it will be obtained again later, in case the server
is restarted. | [
"Scheduled",
"Runnable",
"implementation",
"to",
"reset",
"the",
"ClientSupport",
"so",
"that",
"it",
"will",
"be",
"obtained",
"again",
"later",
"in",
"case",
"the",
"server",
"is",
"restarted",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.clientcontainer.remote.common/src/com/ibm/ws/clientcontainer/remote/common/internal/ClientSupportFactoryImpl.java#L140-L147 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/JaspiRequest.java | JaspiRequest.isProtected | public boolean isProtected() {
List<String> requiredRoles = null;
return !webRequest.isUnprotectedURI() &&
webRequest.getMatchResponse() != null &&
(requiredRoles = webRequest.getRequiredRoles()) != null &&
!requiredRoles.isEmpty();
} | java | public boolean isProtected() {
List<String> requiredRoles = null;
return !webRequest.isUnprotectedURI() &&
webRequest.getMatchResponse() != null &&
(requiredRoles = webRequest.getRequiredRoles()) != null &&
!requiredRoles.isEmpty();
} | [
"public",
"boolean",
"isProtected",
"(",
")",
"{",
"List",
"<",
"String",
">",
"requiredRoles",
"=",
"null",
";",
"return",
"!",
"webRequest",
".",
"isUnprotectedURI",
"(",
")",
"&&",
"webRequest",
".",
"getMatchResponse",
"(",
")",
"!=",
"null",
"&&",
"("... | The request is protected if there are required roles
or it's not mapped everyones role
@return true if there is a proected url. | [
"The",
"request",
"is",
"protected",
"if",
"there",
"are",
"required",
"roles",
"or",
"it",
"s",
"not",
"mapped",
"everyones",
"role"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/JaspiRequest.java#L121-L127 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.server/src/com/ibm/ws/jaxrs20/server/LibertyJaxRsInvoker.java | LibertyJaxRsInvoker.performInvocation | @Override
protected Object performInvocation(Exchange exchange, Object serviceObject, Method m, Object[] paramArray) throws Exception {
paramArray = insertExchange(m, paramArray, exchange);
return this.libertyJaxRsServerFactoryBean.performInvocation(exchange, serviceObject, m, paramArray);
} | java | @Override
protected Object performInvocation(Exchange exchange, Object serviceObject, Method m, Object[] paramArray) throws Exception {
paramArray = insertExchange(m, paramArray, exchange);
return this.libertyJaxRsServerFactoryBean.performInvocation(exchange, serviceObject, m, paramArray);
} | [
"@",
"Override",
"protected",
"Object",
"performInvocation",
"(",
"Exchange",
"exchange",
",",
"Object",
"serviceObject",
",",
"Method",
"m",
",",
"Object",
"[",
"]",
"paramArray",
")",
"throws",
"Exception",
"{",
"paramArray",
"=",
"insertExchange",
"(",
"m",
... | using LibertyJaxRsServerFactoryBean.performInvocation to support POJO, EJB, CDI resource | [
"using",
"LibertyJaxRsServerFactoryBean",
".",
"performInvocation",
"to",
"support",
"POJO",
"EJB",
"CDI",
"resource"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.server/src/com/ibm/ws/jaxrs20/server/LibertyJaxRsInvoker.java#L157-L161 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.server/src/com/ibm/ws/jaxrs20/server/LibertyJaxRsInvoker.java | LibertyJaxRsInvoker.callValidationMethod | @FFDCIgnore(value = { SecurityException.class, IllegalAccessException.class, IllegalArgumentException.class, InvocationTargetException.class })
private void callValidationMethod(String methodName, Object[] paramValues, Object theProvider) {
if (theProvider == null) {
return;
}
M... | java | @FFDCIgnore(value = { SecurityException.class, IllegalAccessException.class, IllegalArgumentException.class, InvocationTargetException.class })
private void callValidationMethod(String methodName, Object[] paramValues, Object theProvider) {
if (theProvider == null) {
return;
}
M... | [
"@",
"FFDCIgnore",
"(",
"value",
"=",
"{",
"SecurityException",
".",
"class",
",",
"IllegalAccessException",
".",
"class",
",",
"IllegalArgumentException",
".",
"class",
",",
"InvocationTargetException",
".",
"class",
"}",
")",
"private",
"void",
"callValidationMeth... | call validation method
ignore the exception to pass the FAT
@param methodName
@param paramValues
@param theProvider | [
"call",
"validation",
"method",
"ignore",
"the",
"exception",
"to",
"pass",
"the",
"FAT"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.server/src/com/ibm/ws/jaxrs20/server/LibertyJaxRsInvoker.java#L358-L399 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.