code
stringlengths
73
34.1k
label
stringclasses
1 value
public static void setDnsCache(Properties properties) { for (Map.Entry<Object, Object> entry : properties.entrySet()) { final String host = (String) entry.getKey(); String ipList = (String) entry.getValue(); ipList = ipList.trim(); if (ipList.isEmpty()) continue;...
java
public static void loadDnsCacheConfig(String propertiesFileName) { InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesFileName); if (inputStream == null) { inputStream = DnsCacheManipulator.class.getClassLoader().getResourceAsStream(propert...
java
@Nullable public static DnsCacheEntry getDnsCache(String host) { try { return InetAddressCacheUtil.getInetAddressCache(host); } catch (Exception e) { throw new DnsCacheManipulatorException("Fail to getDnsCache, cause: " + e.toString(), e); } }
java
public static List<DnsCacheEntry> listDnsCache() { try { return InetAddressCacheUtil.listInetAddressCache().getCache(); } catch (Exception e) { throw new DnsCacheManipulatorException("Fail to listDnsCache, cause: " + e.toString(), e); } }
java
public static DnsCache getWholeDnsCache() { try { return InetAddressCacheUtil.listInetAddressCache(); } catch (Exception e) { throw new DnsCacheManipulatorException("Fail to getWholeDnsCache, cause: " + e.toString(), e); } }
java
public static void removeDnsCache(String host) { try { InetAddressCacheUtil.removeInetAddressCache(host); } catch (Exception e) { final String message = String.format("Fail to removeDnsCache for host %s, cause: %s", host, e.toString()); throw new DnsCacheManipulatorEx...
java
public static void setDnsNegativeCachePolicy(int negativeCacheSeconds) { try { InetAddressCacheUtil.setDnsNegativeCachePolicy(negativeCacheSeconds); } catch (Exception e) { throw new DnsCacheManipulatorException("Fail to setDnsNegativeCachePolicy, cause: " + e.toString(), e); ...
java
private void initializeDrawableForDisplay(Drawable d) { if (mBlockInvalidateCallback == null) { mBlockInvalidateCallback = new BlockInvalidateCallback(); } // Temporary fix for suspending callbacks during initialization. We // don't want any of these setters causing an invali...
java
@Override protected boolean onStateChange(int[] stateSet) { final boolean changed = super.onStateChange(stateSet); int idx = mAnimationScaleListState.getCurrentDrawableIndexBasedOnScale(); return selectDrawable(idx) || changed; }
java
public static int longToInt(long inLong) { if (inLong < Integer.MIN_VALUE) { return Integer.MIN_VALUE; } if (inLong > Integer.MAX_VALUE) { return Integer.MAX_VALUE; } return (int) inLong; }
java
public static void getAllInterfaces(Class<?> classObject, ArrayList<Type> interfaces) { Type[] superInterfaces = classObject.getGenericInterfaces(); interfaces.addAll((Arrays.asList(superInterfaces))); // for cases where the extended class is defined with a Generic. Type tgs = classObje...
java
public static String truncateCloseReason(String reasonPhrase) { if (reasonPhrase != null) { byte[] reasonBytes = reasonPhrase.getBytes(Utils.UTF8_CHARSET); int len = reasonBytes.length; // Why 120? UTF-8 can take 4 bytes per character, so we either hit the boundary, or are...
java
protected Converter getConverter(FacesContext facesContext, UIComponent component) { if (component instanceof UISelectMany) { return HtmlRendererUtils.findUISelectManyConverterFailsafe(facesContext, (UISelectMany) component); } else if (co...
java
public void startConditional() throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "startConditional", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc, "Activating MBean for ME " + getName());...
java
private boolean okayToSendServerStarted() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "okayToSendServerStarted", this); synchronized (lockObject) { if (!_sentServerStarted) { if ((_state == STATE_STARTED) && _mainImpl.isServ...
java
private boolean okayToSendServerStopping() { // Removed the synchronized modifier of this method, as its only setting one private variable _sentServerStopping, // If its synchronized, then notification thread gets blocked here until JsActivationThread returns and so it doesnot set _sentServerStopping ...
java
@SuppressWarnings("unchecked") public <EngineComponent> EngineComponent getEngineComponent(Class<EngineComponent> clazz) { String thisMethodName = "getEngineComponent"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, clazz); } ...
java
@SuppressWarnings("unchecked") public <EngineComponent> EngineComponent[] getEngineComponents(Class<EngineComponent> clazz) { String thisMethodName = "getEngineComponents"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, clazz); ...
java
public final JsMEConfig getMeConfig() { String thisMethodName = "getMeConfig"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); SibTr.exit(tc, thisMethodName, _me); } return _me; }
java
@Deprecated public JsEngineComponent getMessageProcessor(String name) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getMessageProcessor", this); SibTr.exit(tc, "getMessageProcessor", _messageProcessor); } return _messageProces...
java
private void resolveExceptionDestination(BaseDestinationDefinition dd) { String thisMethodName = "resolveExceptionDestination"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, dd.getName()); } // If variable substitution s...
java
BaseDestinationDefinition getSIBDestinationByUuid(String bus, String key, boolean newCache) throws SIBExceptionDestinationNotFound, SIBExceptionBase { String thisMethodName = "getSIBDestinationByUuid"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisM...
java
public final String getState() { String thisMethodName = "getState"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); SibTr.exit(tc, thisMethodName, states[_state]); } return states[_state]; }
java
public final boolean isStarted() { String thisMethodName = "isStarted"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); } boolean retVal = (_state == STATE_STARTED); if (TraceComponent.isAnyTracingEnabled()...
java
final boolean addLocalizationPoint(LWMConfig lp, DestinationDefinition dd) { String thisMethodName = "addLocalizationPoint"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, lp); } boolean success = _localizer.addLocalizati...
java
final void alterLocalizationPoint(BaseDestination dest,LWMConfig lp) { String thisMethodName = "alterLocalizationPoint"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, lp); } try { _localizer.alterLocalization...
java
final void deleteLocalizationPoint(JsBus bus, LWMConfig dest) { String thisMethodName = "deleteLocalizationPoint"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, dest); } try { _localizer.deleteLocalizationPoi...
java
final void setLPConfigObjects(List config) { String thisMethodName = "setLPConfigObjects"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, "Number of LPs =" + config.size()); } _lpConfig.clear(); _lpConfig.addAll(c...
java
public boolean isEventNotificationPropertySet() { String thisMethodName = "isEventNotificationPropertySet"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); } boolean enabled = true; if (TraceComponent.isAny...
java
public JsMainImpl getMainImpl() { String thisMethodName = "getMainImpl"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); SibTr.exit(tc, thisMethodName, _mainImpl); } return _mainImpl; }
java
protected final JsEngineComponent loadClass(String className, int stopSeq, boolean reportError) { String thisMethodName = "loadClass"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, new Object[] { className, Integer.toString(stopSeq), Boo...
java
public void addMember(JSConsumerKey key) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addMember", key); super.addMember(key); // superclass method does most of the work synchronized (criteriaLock) { if (allCriterias != nul...
java
public static void setCustomPropertyVariables() { UPGRADE_READ_TIMEOUT = Integer.valueOf(customProps.getProperty("upgradereadtimeout", Integer.toString(TCPReadRequestContext.NO_TIMEOUT))).intValue(); UPGRADE_WRITE_TIMEOUT = Integer.valueOf(customProps.getProperty("upgradewritetimeout", Integer....
java
public void registerInvalidations(String cacheName, Iterator invalidations) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); if (invalidationTableList != null) { try { invalidationTableList.readWriteLock.writeLock().lock(); while (invalidations.hasNext()) { ...
java
public CacheEntry filterEntry(String cacheName, CacheEntry cacheEntry) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); try { invalidationTableList.readWriteLock.readLock().lock(); return internalFilterEntry(cacheName, invalidationTableList, cacheEntry); } finally { ...
java
public ArrayList filterEntryList(String cacheName, ArrayList incomingList) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); try { invalidationTableList.readWriteLock.readLock().lock(); Iterator it = incomingList.iterator(); while (it.hasNext()) { Object obj = it.next...
java
private final CacheEntry internalFilterEntry(String cacheName, InvalidationTableList invalidationTableList, CacheEntry cacheEntry) { InvalidateByIdEvent idEvent = null; if (cacheEntry == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "internalFilterEntry(): Filtered cacheName=" + cacheName + " CE == NULL");...
java
public ExternalInvalidation filterExternalCacheFragment(String cacheName, ExternalInvalidation externalCacheFragment) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); try { invalidationTableList.readWriteLock.readLock().lock(); return internalFilterExternalCacheFragment(cac...
java
public ArrayList filterExternalCacheFragmentList(String cacheName, ArrayList incomingList) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); try { invalidationTableList.readWriteLock.readLock().lock(); Iterator it = incomingList.iterator(); while (it.hasNext()) { Exte...
java
private final ExternalInvalidation internalFilterExternalCacheFragment(String cacheName, InvalidationTableList invalidationTableList, ExternalInvalidation externalCacheFragment) { if (externalCacheFragment == null) { return null; } long timeStamp = externalCacheFragment.getTimeStamp(); if (collision(invalida...
java
private final boolean collision(Map<Object, InvalidationEvent> hashtable, Enumeration enumeration, long timeStamp) { while (enumeration.hasMoreElements()) { Object key = enumeration.nextElement(); InvalidationEvent invalidationEvent = (InvalidationEvent) hashtable.get(key); if ((invalidationEvent != null) ...
java
private InvalidationTableList getInvalidationTableList(String cacheName) { InvalidationTableList invalidationTableList = cacheinvalidationTables.get(cacheName); if (invalidationTableList == null) { synchronized (this) { invalidationTableList = new InvalidationTableList(); cacheinvalidationTables.put(c...
java
public static File getBootstrapJar() { if (launchHome == null) { if (launchURL == null) { // How were we launched? launchURL = getLocationFromClass(KernelUtils.class); } launchHome = FileUtils.getFile(launchURL); } return launc...
java
public static File getBootstrapLibDir() { if (libDir.get() == null) { libDir = StaticValue.mutateStaticValue(libDir, new Utils.FileInitializer(getBootstrapJar().getParentFile())); } return libDir.get(); }
java
public static Properties getProperties(final InputStream is) throws IOException { Properties p = new Properties(); try { if (is != null) { p.load(is); // Look for "values" and strip the quotes to values for (Entry<Object, Object> entry : p.en...
java
private static String getClassFromLine(String line) { line = line.trim(); // Skip commented lines if (line.length() == 0 || line.startsWith("#")) return null; // lop off spaces/tabs/end-of-line-comments String[] className = line.split("[\\s#]"); if (classNa...
java
public final void checkSpillLimits() { long currentTotal; long currentSize; synchronized(this) { currentTotal = _countTotal; currentSize = _countTotalBytes; } if (!_spilling) { // We are not currently spilling so we need t...
java
public final void updateTotal(int oldSizeInBytes, int newSizeInBytes) throws SevereMessageStoreException { boolean doCallback = false; synchronized(this) { // We're only replacing an old size estimation // with a new one so we do not need to change // or ...
java
public static void addUnspecifiedAttributes(FeatureDescriptor descriptor, Tag tag, String[] standardAttributesSorted, FaceletContext ctx) { for (TagAttribute attribute : tag.getAttributes().getAll()) { final String name = attribute.getLocalName(); if (Arrays.bina...
java
public static boolean containsUnspecifiedAttributes(Tag tag, String[] standardAttributesSorted) { for (TagAttribute attribute : tag.getAttributes().getAll()) { final String name = attribute.getLocalName(); if (Arrays.binarySearch(standardAttributesSorted, name) < 0) ...
java
public static void addDevelopmentAttributes(FeatureDescriptor descriptor, FaceletContext ctx, TagAttribute displayName, TagAttribute shortDescription, TagAttribute expert, TagAttribute hidden, TagAttribute preferred) { if (displayName != null) { descriptor.setDi...
java
public static void addDevelopmentAttributesLiteral(FeatureDescriptor descriptor, TagAttribute displayName, TagAttribute shortDescription, TagAttribute expert, TagAttribute hidden, TagAttribute preferred) { if (displayName != null) { descriptor.setDisplayName(dis...
java
public static boolean areAttributesLiteral(TagAttribute... attributes) { for (TagAttribute attribute : attributes) { if (attribute != null && !attribute.isLiteral()) { // the attribute exists and is not literal return false; } ...
java
protected static FacesServletMapping calculateFacesServletMapping( String servletPath, String pathInfo) { if (pathInfo != null) { // If there is a "extra path", it's definitely no extension mapping. // Now we just have to determine the path which has been specified ...
java
private boolean isCDIEnabled(Collection<WebSphereBeanDeploymentArchive> bdas) { boolean anyHasBeans = false; for (WebSphereBeanDeploymentArchive bda : bdas) { boolean hasBeans = false; if (bda.getType() != ArchiveType.RUNTIME_EXTENSION) { hasBeans = isCDIEnabled(...
java
private boolean isCDIEnabled(WebSphereBeanDeploymentArchive bda) { Boolean hasBeans = cdiStatusMap.get(bda.getId()); if (hasBeans == null) { //it's enabled if it has beans or it is an extension which could add beans hasBeans = bda.hasBeans() || bda.isExtension(); //se...
java
@Override public boolean isCDIEnabled(String bdaId) { boolean hasBeans = false; //the top level isCDIEnabled can fail faster if (isCDIEnabled()) { Boolean hasBeansBoolean = cdiStatusMap.get(bdaId); if (hasBeansBoolean == null) { WebSphereBeanDeployme...
java
private BeanDeploymentArchive createBDAOntheFly(Class<?> beanClass) throws CDIException { //Add the class in one of the bdas if an existing bda share the same classloader as the beanClass //Otherwise, we need to create a brand new bda and then add the bda to the graph //when it reaches here, it ...
java
private BeanDeploymentArchive createNewBdaAndMakeWiring(Class<?> beanClass) { try { OnDemandArchive onDemandArchive = new OnDemandArchive(cdiRuntime, application, beanClass); WebSphereBeanDeploymentArchive newBda = BDAFactory.createBDA(this, onDemandArchive, cdiRuntime); Cla...
java
private BeanDeploymentArchive findCandidateBDAtoAddThisClass(Class<?> beanClass) throws CDIException { for (WebSphereBeanDeploymentArchive wbda : getWebSphereBeanDeploymentArchives()) { if (wbda.getClassLoader() == beanClass.getClassLoader()) { wbda.addToBeanClazzes(beanClass); ...
java
private void makeWiring(WebSphereBeanDeploymentArchive wireFromBda, WebSphereBeanDeploymentArchive wireToBda, ClassLoader wireToBdaCL, ClassLoader wireFromBdaCL) { while (wireFromBdaCL != null) { if (wireFromBdaCL == wireToBdaCL) { wireFromBda.addBeanDeploymentArchive(wireToBda); ...
java
@Override public void addBeanDeploymentArchive(WebSphereBeanDeploymentArchive bda) throws CDIException { deploymentDBAs.put(bda.getId(), bda); extensionClassLoaders.add(bda.getClassLoader()); ArchiveType type = bda.getType(); if (type != ArchiveType.SHARED_LIB && type != ...
java
@Override public void addBeanDeploymentArchives(Set<WebSphereBeanDeploymentArchive> bdas) throws CDIException { for (WebSphereBeanDeploymentArchive bda : bdas) { addBeanDeploymentArchive(bda); } }
java
@Override public void scan() throws CDIException { Collection<WebSphereBeanDeploymentArchive> allBDAs = new ArrayList<WebSphereBeanDeploymentArchive>(deploymentDBAs.values()); for (WebSphereBeanDeploymentArchive bda : allBDAs) { bda.scanForBeanDefiningAnnotations(true); } ...
java
@Override public void initializeInjectionServices() throws CDIException { Set<ReferenceContext> cdiReferenceContexts = new HashSet<ReferenceContext>(); //first we need to initialize the injection service and collect the reference contexts and the injection classes for (WebSphereBeanDeploym...
java
@Override public void shutdown() { if (this.bootstrap != null) { AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { bootstrap.shutdown(); return null; } });...
java
boolean isConfigValid(ConvergedClientConfig config) { boolean valid = true; String clientId = config.getClientId(); String clientSecret = config.getClientSecret(); String authorizationEndpoint = config.getAuthorizationEndpointUrl(); String jwksUri = config.getJwkEndpointUrl(); ...
java
protected void cleanOutBifurcatedMessages(BifurcatedConsumerSessionImpl owner, boolean bumpRedeliveryOnClose) throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "cleanOutBifurcatedMessages", new Object[]{new Integer(hashCo...
java
protected int getNumberOfLockedMessages() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getNumberOfLockedMessages"); int count = 0; synchronized(this) { LMEMessage message; message = firstMsg; while(message != null) { count...
java
protected void removeMessage(LMEMessage message) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeMessage", new Object[] {new Integer(hashCode()), message, this }); // If this was the message we entered the callback with we need // to move the start point ba...
java
protected void resetCallbackCursor() throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetCallbackCursor", new Integer(hashCode())); synchronized(this) { unlockAllUnread(); callbackEntryMsg = last...
java
final JsMessage setPropertiesInMessage(LMEMessage theMessage) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setPropertiesInMessage", theMessage); boolean copyMade = false; // If this is pubsub we share this message with other subscribers so we have // to...
java
protected void unlockAll(boolean closingSession) throws SIResourceException, SIMPMessageNotLockedException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "unlockAll", new Object[]{new Integer(hashCode()),this}); int unlockedMessages = 0; ...
java
private void unlockAllUnread() throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "unlockAllUnread", new Object[] { new Integer(hashCode()), this }); int unlockedMessages = 0; synchronized(this) { messa...
java
public boolean containsValue(Token value, Transaction transaction) throws ObjectManagerException { try { for (Iterator iterator = entrySet().iterator();;) { Entry entry = (Entry) iterator.next(transaction); Toke...
java
public long countAllMessagesOnStream() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "countAllMessagesOnStream"); long count=0; _targetStream.setCursor(0); // Get the first TickRange TickRange tr = _targetStream.getNext(); while (tr.endstamp < RangeL...
java
public final void incrementUnlockCount(long tick) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "incrementUnlockCount", Long.valueOf(tick)); _targetStream.setCursor(tick); TickRange tickRange = _targetStream.getNext(); if (tickRange.type == TickRange.Value) ...
java
public void processRequestAck(long tick, long dmeVersion) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "processRequestAck", new Object[] { Long.valueOf(tick), Long.valueOf(dmeVersion)}); // Only consider non-stale request acks if (dmeVe...
java
public void processResetRequestAck(long dmeVersion, SendDispatcher sendDispatcher) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "processResetRequestAck", Long.valueOf(dmeVersion)); // Only consider non-stale request acks if (dmeVersion >= _latestDMEVersion) ...
java
public AnycastInputHandler getAnycastInputHandler() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getAnycastInputHandler"); SibTr.exit(tc, "getAnycastInputHandler", _parent); } return _parent; }
java
public void messagingEngineStarting(final JsMessagingEngine messagingEngine) { final String methodName = "messagingEngineStarting"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } try { ...
java
public void messagingEngineStopping( final JsMessagingEngine messagingEngine, final int mode) { final String methodName = "messagingEngineStopping"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] { ...
java
private SQLException classNotFound(Object interfaceNames, Set<String> packagesSearched, String dsId, Throwable cause) { if (cause instanceof SQLException) return (SQLException) cause; // TODO need an appropriate message when sharedLib is null and classes are loaded from the application ...
java
public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props, String dataSourceID) throws SQLException { lock.readLock().lock(); try { if (!isInitialized) try { // Switch to write lock for lazy initialization lock.rea...
java
public DataSource createDataSource(Properties props, String dataSourceID) throws SQLException { lock.readLock().lock(); try { if (!isInitialized) try { // Switch to write lock for lazy initialization lock.readLock().unlock(); ...
java
public Object getDriver(String url, Properties props, String dataSourceID) throws Exception { lock.readLock().lock(); try { if (!isInitialized) try { // Switch to write lock for lazy initialization lock.readLock().unlock(); ...
java
public static Collection<String> getClasspath(Library sharedLib, boolean upperCaseFileNamesOnly) { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(tc, "getClasspath", sharedLib); Collection<String> classpath = new LinkedList<Str...
java
private void modified(Dictionary<String, ?> newProperties, boolean logMessage) { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "modified", newProperties); boolean replaced = false; lock.writeLock().lock(); ...
java
private static void setProperty(Object obj, PropertyDescriptor pd, String value, boolean doTraceValue) throws Exception { Object param = null; String propName = pd.getName(); if (tc.isDebugEnabled()) { if("URL".equals(propName) || "url".equals(prop...
java
protected void setSharedLib(Library lib) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "setSharedLib", lib); sharedLib = lib; }
java
private void shutdownDerbyEmbedded() { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "shutdownDerbyEmbedded", classloader, embDerbyRefCount); // Shut down Derby embedded if the reference count drops to 0 if (...
java
protected void unsetSharedLib(Library lib) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "unsetSharedLib", lib); modified(null, false); }
java
private static void retrieveManifestData() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "retrieveManifestData"); try { // Set up the defaults that will be overriden if possible. JmsMetaDataImpl.setProblemDefaults(); ...
java
public SIBusMessage nextLocked() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabl...
java
public void unlockCurrent() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIIncorrectCallException, SIMessageNotLockedException, ...
java
public void deleteCurrent(SITransaction transaction) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededException, SIIncorrectCallExce...
java
public void deleteSeen(SITransaction transaction) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededException, SIIncorrectCallExcepti...
java
private void deleteMessages(JsMessage[] messagesToDelete, SITransaction transaction) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededException, ...
java
public void resetCursor() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled(...
java
public int getRemainingMessageCount() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"getRemainingMessageCount"); che...
java