code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public final void insertNullElementsAt(int index, int count)
{
if (tc.isEntryEnabled())
SibTr.entry(
tc,
"insertNullElementsAt",
new Object[] { new Integer(index), new Integer(count)});
for (int i = index; i < index + count; i++)
add(i, null);
if (tc.isEntryEnabled())... | java |
protected void validatePattern() {
if (pattern.length() == 0) {
throw new IllegalArgumentException(Tr.formatMessage(tc, "OPENTRACING_FILTER_PATTERN_BLANK"));
}
if (!regex) {
try {
URI.create(pattern);
} catch (IllegalArgumentException e) {
... | java |
protected final String prepareUri(final URI uri) {
if (compareRelative) {
final String path = uri.getRawPath();
final String query = uri.getRawQuery();
final String fragment = uri.getRawFragment();
if (query != null && fragment != null) {
return pa... | java |
public String readText(String prompt) {
if (!isInputStreamAvailable()) {
return null;
}
try {
return console.readLine(prompt);
} catch (IOError e) {
stderr.println("Exception while reading stdin: " + e.getMessage());
e.printStackTrace(stder... | java |
public synchronized int add(E object) {
if (object == null)
throw new NullPointerException("FastList add called with null");
if ((count + 1) >= maxCount)
resize(capacity * 2);
int initialAddIndex = addIndex;
// find right spot to add to - start with addIndex and look
// for first open spot. give up i... | java |
public synchronized List<E> getAll() {
ArrayList<E> list = new ArrayList<E>();
for (E element : listElements) {
if (element != null) {
list.add(element);
}
}
return list;
} | java |
public Object[] addAll(CacheMap c) {
LinkedList<Object> discards = new LinkedList<Object>();
Object discard;
for (int bucketIndex = c.next[c.BEFORE_LRU]; bucketIndex != c.AFTER_MRU; bucketIndex = c.next[bucketIndex])
for (int i = 0; i < c.bucketSizes[bucketIndex]; i++)
... | java |
private Object discardFromBucket(int bucketIndex, int entryIndex) {
numDiscards++;
bucketSizes[bucketIndex]--;
numEntries--;
return values[bucketIndex][entryIndex];
} | java |
int addRef()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addRef");
int ret = NOP;
// If this is a new subscription, then the operation is to subscribe.
if (_refCount++ == 0)
ret = SUBSCRIBE;
checkRefCount();
if (TraceComponent.isAnyTraci... | java |
int removeRef()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeRef");
int ret = NOP;
// If this is the last reference, then the operation is unsubscribe.
if (--_refCount == 0)
ret = UNSUBSCRIBE;
checkRefCount();
if (TraceComponent.isA... | java |
final String getTopic()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getTopic");
SibTr.exit(tc, "getTopic", _topic);
}
return _topic;
} | java |
final SIBUuid12 getTopicSpaceUuid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getTopicSpaceUuid");
SibTr.exit(tc, "getTopicSpaceUuid", _topicSpaceUuid);
}
return _topicSpaceUuid;
} | java |
final String getTopicSpaceName()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getTopicSpaceName");
SibTr.exit(tc, "getTopicSpaceName", _topicSpaceName);
}
return _topicSpaceName;
} | java |
final String getMESubUserId()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getMESubUserId");
SibTr.exit(tc, "getMESubUserId", _meSubUserId);
}
return _meSubUserId;
} | java |
final boolean isForeignSecuredProxy()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isForeignSecuredProxy");
SibTr.exit(tc, "isForeignSecuredProxy", new Boolean(_foreignSecuredProxy));
}
return _foreignSecuredProxy;
} | java |
void mark()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "mark");
SibTr.exit(tc, "mark");
}
_marked = true;
} | java |
void unmark()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "unmark");
SibTr.exit(tc, "unmark");
}
_marked = false;
} | java |
boolean isMarked()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isMarked");
SibTr.exit(tc, "isMarked", new Boolean(_marked));
}
return _marked;
} | java |
protected void registerForPostCommit(MultiMEProxyHandler proxyHandler,
DestinationHandler destination,
PubSubOutputHandler handler,
Neighbour neighbour)
{
if (TraceComponent.isAnyTracingEnabled() ... | java |
protected void registerForPostCommit(Neighbour neighbour,
Neighbours neighbours)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "registerForPostCommit",
new Object[] { neighbour, neighbours });
_proxyHandler = null;
... | java |
public void eventPostRollbackAdd(Transaction transaction) throws SevereMessageStoreException
{
super.eventPostRollbackAdd(transaction);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "eventPostRollbackAdd", transaction);
if (_handler != null)
... | java |
public void eventPostCommitUpdate(Transaction transaction) throws SevereMessageStoreException
{
super.eventPostCommitAdd(transaction);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "eventPostCommitUpdate", transaction);
// Remove the current CPS from... | java |
public void setMatchspaceSub(ControllableProxySubscription sub)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setMatchspaceSub", sub);
_controllableProxySubscription = sub;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.... | java |
public ControllableProxySubscription getMatchspaceSub()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getMatchspaceSub");
SibTr.exit(tc, "getMatchspaceSub", _controllableProxySubscription);
}
return _controllableProxySubscription;
} | java |
public final AbstractItem findById(long itemId) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "findById", Long.valueOf(itemId));
AbstractItem item = null;
ReferenceCollection ic = ((ReferenceCollection... | java |
public final ItemReference findOldestReference() throws MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "findOldestReference");
ReferenceCollection ic = ((ReferenceCollection) _getMembership());
if (null == ic)
... | java |
private void publishEvent(WSJobExecution jobEx, String topicToPublish, String correlationId) {
if (eventsPublisher != null) {
eventsPublisher.publishJobExecutionEvent(jobEx, topicToPublish, correlationId);
}
} | java |
private void publishEvent(WSJobInstance jobInst, String topicToPublish, String correlationId) {
if (eventsPublisher != null) {
eventsPublisher.publishJobInstanceEvent(jobInst, topicToPublish, correlationId);
}
} | java |
private long restartInternal(long oldExecutionId,
Properties restartParameters) throws JobExecutionAlreadyCompleteException, NoSuchJobExecutionException, JobExecutionNotMostRecentException, JobRestartException, JobSecurityException {
if (authService != null) {
authS... | java |
private void getMessageDigestMD5() throws AttributeNotFoundException {
if (MBeans.messageDigestMD5 == null) {
try {
MBeans.messageDigestMD5 = MessageDigestUtility.createMessageDigest("MD5");
} catch (NoSuchAlgorithmException e) {
Tr.error(tc, "DYNA1044E", ... | java |
@Override
@Trivial
public Map<String, ExtendedAttributeDefinition> getAttributeMap() {
Map<String, ExtendedAttributeDefinition> map = null;
AttributeDefinition[] attrDefs = getAttributeDefinitions(ObjectClassDefinition.ALL);
if (attrDefs != null) {
map = new HashMap<String, E... | java |
private static String getAliasName(String alias, String bundleLocation) {
String newAlias = alias;
if (alias != null && !alias.isEmpty()) {
try {
if (bundleLocation != null && !bundleLocation.isEmpty()) {
if (bundleLocation.startsWith(XMLConfigConstants.B... | java |
@Trivial
private static byte[] getBytes(InputStream stream, int knownSize) throws IOException {
try {
if (knownSize == -1) {
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
try {
byte[] bytes = new byte[1024];
i... | java |
static URL getSharedClassCacheURL(URL resourceURL, String resourceName) {
URL sharedClassCacheURL;
if (resourceURL == null) {
sharedClassCacheURL = null;
} else {
String protocol = resourceURL.getProtocol();
if ("jar".equals(protocol)) {
shared... | java |
public Package definePackage(String name, Manifest manifest, URL sealBase) throws IllegalArgumentException {
Attributes mA = manifest.getMainAttributes();
String specTitle = mA.getValue(Name.SPECIFICATION_TITLE);
String specVersion = mA.getValue(Name.SPECIFICATION_VERSION);
String specVe... | java |
protected void addToClassPath(Iterable<ArtifactContainer> artifacts) {
for (ArtifactContainer art : artifacts) {
smartClassPath.addArtifactContainer(art);
}
} | java |
@FFDCIgnore(NullPointerException.class)
protected void addLibraryFile(File f) {
if (!!!f.exists()) {
if (tc.isWarningEnabled()) {
Tr.warning(tc, "cls.library.archive", f, new FileNotFoundException(f.getName()));
}
return;
}
// Skip files ... | java |
@FFDCIgnore(PrivilegedActionException.class)
private boolean isArchive(File f) {
final File target = f;
try {
AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
@Override
public Void run() throws IOException {
new Zip... | java |
public static ComponentMetaData getComponentMetaData(JavaColonNamespace namespace, String name) throws NamingException {
ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
if (cmd == null) {
String fullName = name.isEmpty() ? namespac... | java |
@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setConfiguration(ServiceReference<SecurityConfiguration> ref) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
configs.putReference(id, ref);
}... | java |
protected Map<String, Object> unsetConfiguration(ServiceReference<SecurityConfiguration> ref) {
configs.removeReference((String) ref.getProperty(KEY_ID), ref);
return getServiceProperties();
} | java |
@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setAuthentication(ServiceReference<AuthenticationService> ref) {
if (hasPropertiesFromFile(ref)) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
... | java |
protected Map<String, Object> unsetAuthentication(ServiceReference<AuthenticationService> ref) {
authentication.removeReference((String) ref.getProperty(KEY_ID), ref);
authentication.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new authentication service... | java |
@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setAuthorization(ServiceReference<AuthorizationService> ref) {
if (hasPropertiesFromFile(ref)) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
... | java |
protected Map<String, Object> unsetAuthorization(ServiceReference<AuthorizationService> ref) {
authorization.removeReference((String) ref.getProperty(KEY_ID), ref);
authorization.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new authorization service
... | java |
@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE, target = "(config.displayId=*)")
protected Map<String, Object> setUserRegistry(ServiceReference<UserRegistryService> ref) {
adjustUserRegistryServiceRef(ref);
// determine a new user registry service
u... | java |
protected Map<String, Object> unsetUserRegistry(ServiceReference<UserRegistryService> ref) {
userRegistry.removeReference((String) ref.getProperty(KEY_ID), ref);
userRegistry.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new user registry service
... | java |
private SecurityConfiguration getEffectiveSecurityConfiguration() {
SecurityConfiguration effectiveConfig = configs.getService(cfgSystemDomain);
if (effectiveConfig == null) {
Tr.error(tc, "SECURITY_SERVICE_ERROR_BAD_DOMAIN", cfgSystemDomain, CFG_KEY_SYSTEM_DOMAIN);
throw new Ill... | java |
private <V> V autoDetectService(String serviceName, ConcurrentServiceReferenceMap<String, V> map) {
Iterator<V> services = map.getServices();
if (services.hasNext() == false) {
Tr.error(tc, "SECURITY_SERVICE_NO_SERVICE_AVAILABLE", serviceName);
throw new IllegalStateException(Tr.... | java |
private AuthenticationService getAuthenticationService(String id) {
AuthenticationService service = authentication.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHENTICATION_REF, id);
}
return service... | java |
private AuthorizationService getAuthorizationService(String id) {
AuthorizationService service = authorization.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHORIZATION_REF, id);
}
return service;
... | java |
private UserRegistryService getUserRegistryService(String id) {
UserRegistryService service = userRegistry.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_USERREGISTRY_REF, id);
}
return service;
} | java |
protected final String getFacetName(FaceletContext ctx, UIComponent parent)
{
// TODO: REFACTOR - "facelets.FACET_NAME" should be a constant somewhere, used to be in FacetHandler
// from real Facelets
return (String) parent.getAttributes().get("facelets.FACET_NAME");
} | java |
public void completeTxTimeout() throws TransactionRolledbackException
{
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "completeTxTimeout");
if (tx != null && tx.isTimedOut())
{
if (traceOn && t... | java |
public void addConsumer(DispatchableConsumerPoint lcp)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addConsumer", lcp);
// WARNING: We mustn't hold the LCP lock of the consumer at this point
synchronized(consumerList)
{
consumerList.add(lcp);
}
... | java |
public void removeConsumer(DispatchableConsumerPoint lcp)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeConsumer", lcp);
// WARNING: We mustn't hold the LCP lock of the consumer at this point
synchronized(consumerList)
{
consumerList.remove(lcp)... | java |
public int getGetCursorIndex(SIMPMessage msg)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getGetCursorIndex");
// The zeroth index is reserved for non-classified messages
int classPos = 0;
synchronized(classifications)
{
if(classifications.g... | java |
public synchronized int chooseGetCursorIndex(int previous)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "chooseGetCursorIndex", new Object[] {Integer.valueOf(previous)});
// The zeroth index represents the default cursor for non-classified messages.
int cla... | java |
public JSConsumerClassifications getClassifications()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getClassifications");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getClassifications", classifications);
// T... | java |
public boolean prepareAddActiveMessage()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this,tc, "prepareAddActiveMessage");
boolean messageAccepted = false;
boolean limitReached = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
... | java |
public void takeClassificationReadLock()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "takeClassificationReadLock");
classificationReadLock.lock();
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "takeClassification... | java |
public void freeClassificationReadLock()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "freeClassificationReadLock");
classificationReadLock.unlock();
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "freeClassificati... | java |
public void registerSynchronization(Synchronization s) throws CPIException
{
try {
ivContainer.uowCtrl.enlistWithSession(s);
// enlistSession(s)
} catch (CSIException e) {
throw new CPIException(e.toString());
}
} | java |
private EJBKey[] getEJBKeys(BeanO[] beans)
{
EJBKey result[] = null;
if (beans != null) {
result = new EJBKey[beans.length];
for (int i = 0; i < beans.length; ++i) {
result[i] = beans[i].getId();
}
}
return result;
} | java |
private BeanO[] getBeanOs()
{
BeanO result[];
result = new BeanO[ivBeanOs.size()];
Iterator<BeanO> iter = ivBeanOs.values().iterator();
int i = 0;
while (iter.hasNext()) {
result[i++] = iter.next();
}
return result;
} | java |
@Override
public void scanClasses(
ClassSource_Streamer streamer,
Set<String> i_seedClassNamesSet,
ScanPolicy scanPolicy) {
throw new UnsupportedOperationException();
} | java |
public List<com.ibm.wsspi.security.wim.model.PartyRole> getPartyRoles() {
if (partyRoles == null) {
partyRoles = new ArrayList<com.ibm.wsspi.security.wim.model.PartyRole>();
}
return this.partyRoles;
} | java |
public JSchema getExpectedSchema(Map context) {
if (expectedSchema != null)
return expectedSchema;
if (expectedType == null)
return null;
expectedSchema = (JSchema)context.get(expectedType);
if (expectedSchema != null)
return expectedSchema;
expectedSchema = new JSchema(expectedTyp... | java |
@Override
public void taskStarting() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
prevInvocationSubject = subjectManager.getInvocationSubject();
prevCallerSubject = subjectManager.getCallerSubject();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, ... | java |
@Override
public void taskStopping() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, "taskStopping", "restore caller/invocation subjects", prevCallerSubject, prevInvocationSubject);
subjectManager.setCallerSubjec... | java |
private void readState(GetField fields) throws IOException {
//get caller principal
callerPrincipal = (WSPrincipal) fields.get(CALLER_PRINCIPAL, null);
//get boolean marking if subjects are equal
subjectsAreEqual = fields.get(SUBJECTS_ARE_EQUAL, false);
//only deserialize invoc... | java |
@FFDCIgnore(AuthenticationException.class)
protected Subject recreateFullSubject(WSPrincipal wsPrincipal, SecurityService securityService,
AtomicServiceReference<UnauthenticatedSubjectService> unauthenticatedSubjectServiceRef, String customCacheKey) {
Subject subjec... | java |
protected WSPrincipal getWSPrincipal(Subject subject) throws IOException {
WSPrincipal wsPrincipal = null;
Set<WSPrincipal> principals = (subject != null) ? subject.getPrincipals(WSPrincipal.class) : null;
if (principals != null && !principals.isEmpty()) {
if (principals.size() > 1) ... | java |
private void serializeSubjectCacheKey(PutField fields) throws Exception {
if (callerSubject != null) {
Hashtable<String, ?> hashtable =
subjectHelper.getHashtableFromSubject(callerSubject, new String[] { AttributeNameConstants.WSCREDENTIAL_CACHE_KEY });
if (h... | java |
public void clear() throws IOException {
if (writer != null) {
throw new IOException();
} else {
nextChar = 0;
if (limitBuffer && (strBuffer.length() > this.bodyContentBuffSize)){ //PK95332 - starts
if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable... | java |
public void writeOut(Writer out) throws IOException {
if (writer == null) {
out.write(strBuffer.toString()); // PK33136
// Flush not called as the writer passed could be a BodyContent and
// it doesn't allow to flush.
}
} | java |
void setWriter(Writer writer) {
// PM12137 - starts
if (closed) {
if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable(Level.FINE)){
logger.logp(Level.FINE, CLASS_NAME, "setWriter", "resetting closed to false for this=["+this+"]");
}
closed = false... | java |
@Trivial
public final Map<String, String> getExecutionProperties() {
TreeMap<String, String> copy = null;
if (internalPropNames != null) {
copy = new TreeMap<String, String>(threadContextDescriptor.getExecutionProperties());
for (String name : internalPropNames)
... | java |
public TimerWorkItem createTimeoutRequest(long timeoutTime, TimerCallback _callback, IAbstractAsyncFuture _future) {
TimerWorkItem wi = new TimerWorkItem(timeoutTime, _callback, _future, _future.getReuseCount());
_future.setTimeoutWorkItem(wi);
// put this to the Timer's work queue. Use the q... | java |
public void timeSlotPruning(long curTime) {
// if a bucket has not been accessed in a while, and it only has
// dead entries then get rid of it
TimeSlot slotEntry = this.firstSlot;
TimeSlot nextSlot = null;
int endIndex = 0;
int i;
while (slotEntry != null) {
... | java |
public void insertWorkItem(TimerWorkItem work, long curTime) {
// find the time slot, or create a new one
long insertTime = work.timeoutTime;
TimeSlot nextSlot = this.firstSlot;
while (nextSlot != null) {
if ((insertTime == nextSlot.timeoutTime) && (nextSlot.lastEntryIndex !... | java |
public TimeSlot insertSlot(long newSlotTimeout, TimeSlot slot) {
// this routine assumes the list is not empty
TimeSlot retSlot = new TimeSlot(newSlotTimeout);
retSlot.nextEntry = slot;
retSlot.prevEntry = slot.prevEntry;
if (retSlot.prevEntry != null) {
retSlot.pre... | java |
public TimeSlot insertSlotAtEnd(long newSlotTimeout) {
// this routine assumes that list could be empty
TimeSlot retSlot = new TimeSlot(newSlotTimeout);
if (this.lastSlot == null) {
// list was empty
this.lastSlot = retSlot;
this.firstSlot = retSlot;
}... | java |
public void removeSlot(TimeSlot oldSlot) {
if (oldSlot.nextEntry != null) {
oldSlot.nextEntry.prevEntry = oldSlot.prevEntry;
} else {
// old slot was tail.
this.lastSlot = oldSlot.prevEntry;
}
if (oldSlot.prevEntry != null) {
oldSlot.prev... | java |
public void checkForTimeouts(long checkTime) {
TimeSlot nextSlot = this.firstSlot;
TimerWorkItem entry = null;
TimeSlot oldSlot = null;
while (nextSlot != null && checkTime >= nextSlot.timeoutTime) {
// Timeout all entries here
int endIndex = nextSlot.lastEntryIn... | java |
public static List<String> getMatchingFileNames(String root, String filterExpr, boolean fullPath) {
List<File> fileList = getMatchingFiles(root, filterExpr);
List<String> list = new ArrayList<String>(fileList.size());
for (File f : fileList) {
if (fullPath)
list.add(... | java |
public PartnerLogData getEntry(int index) {
if (tc.isEntryEnabled())
Tr.entry(tc, "getEntry", index);
_pltReadLock.lock();
try {
final PartnerLogData entry = _partnerLogTable.get(index - 1);
if (tc.isEntryEnabled())
Tr.exit(tc, "getEntry", en... | java |
public void addEntry(PartnerLogData logData) {
if (tc.isEntryEnabled())
Tr.entry(tc, "addEntry", logData);
_pltWriteLock.lock();
try {
addPartnerEntry(logData);
} finally {
_pltWriteLock.unlock();
}
if (tc.isEntryEnabled())
... | java |
public PartnerLogData findEntry(RecoveryWrapper rw) {
if (tc.isEntryEnabled())
Tr.entry(tc, "findEntry", rw);
PartnerLogData entry;
_pltWriteLock.lock();
try {
// Search the partner log table...
for (PartnerLogData pld : _partnerLogTable) {
... | java |
public void clearUnused() {
if (tc.isEntryEnabled())
Tr.entry(tc, "clearUnused");
final RecoveryLog partnerLog = _failureScopeController.getPartnerLog();
_pltWriteLock.lock();
try {
boolean cleared = false;
for (PartnerLogData pld : _partnerLogTabl... | java |
public boolean recover(RecoveryManager recoveryManager, ClassLoader cl, Xid[] xids) {
boolean success = true; // flag to indicate that we recovered all RMs
if (tc.isEntryEnabled())
Tr.entry(tc, "recover", new Object[] { this, _failureScopeController.serverName() });
final int resta... | java |
private <T> ServiceRegistration<T> registerMBean(ObjectName on, Class<T> type, T o) {
Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put("jmx.objectname", on.toString());
return context.registerService(type, o, props);
} | java |
public void startReadListener(ThreadContextManager tcm, SRTInputStream31 inputStream) throws Exception{
try {
ReadListenerRunnable rlRunnable = new ReadListenerRunnable(tcm, inputStream, this);
this.setReadListenerRunning(true);
com.ibm.ws.webcontainer.osgi.WebContainer.getEx... | java |
public ThreadPool getThreadPool(String threadPoolName, int minSize, int maxSize)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getThreadPool",
new Object[]{threadPoolName, minSize, maxSize});
ThreadPool threadPool = n... | java |
private void cleanup() {
StatsDataReference ref = null;
while ((ref = (StatsDataReference) statisticsReferenceQueue.poll()) != null) {
StatsData oldStats = null;
StatsData updatedStats = null;
do {
oldStats = terminatedThreadStats.get();
... | java |
public Expectations goodAppExpectations(String theUrl, String appClass) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectations(CommonExpectations.successfullyReachedUrl(theUrl));
expectations.addExpectation(new ResponseFullExpectation(MpJwtFatConstants.S... | java |
public Expectations badAppExpectations(String errorMessage) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectation(new ResponseStatusExpectation(HttpServletResponse.SC_UNAUTHORIZED));
expectations.addExpectation(new ResponseMessageExpectation(MpJwtFatCons... | java |
public String buildAppUrl(LibertyServer theServer, String root, String app) throws Exception {
return SecurityFatHttpUtils.getServerUrlBase(theServer) + root + "/rest/" + app + "/" + MpJwtFatConstants.MPJWT_GENERIC_APP_NAME;
} | java |
public String buildAppSecureUrl(LibertyServer theServer, String root, String app) throws Exception {
return SecurityFatHttpUtils.getServerSecureUrlBase(theServer) + root + "/rest/" + app + "/" + MpJwtFatConstants.MPJWT_GENERIC_APP_NAME;
} | java |
public Expectations setBadIssuerExpectations(LibertyServer server) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectation(new ResponseStatusExpectation(HttpServletResponse.SC_UNAUTHORIZED));
expectations.addExpectation(new ServerMessageExpectation(server... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.