code
stringlengths
73
34.1k
label
stringclasses
1 value
private boolean checkIfUpgradeHeaders(Map<String, String> headers) { // looking for two headers. // connection header with a value of "upgrade" // upgrade header with a value of "h2c" boolean connection_upgrade = false; boolean upgrade_h2c = false; String headerValue = nu...
java
@Override protected LicenseProvider createLicenseProvider(String licenseAgreementPrefix, String licenseInformationPrefix, String subsystemLicenseType) { String featureLicenseAgreementPrefix = this.featureName + "/" + licenseAgreementPrefix; String ...
java
public LocalTransaction createLocalTransaction(boolean useSingleResourceOnly) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createLocalTransaction"); LocalTransaction tran = null; //Venu Removing the createLocalTransactionWithSubordinates() as it has to ha...
java
public ExternalAutoCommitTransaction createAutoCommitTransaction() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createAutoCommitTransaction"); ExternalAutoCommitTransaction transaction = transactionFactory.createAutoCommitTransaction(); if (TraceCompo...
java
public SIXAResource createXAResource(boolean useSingleResource) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createXAResource", new Boolean(useSingleResource)); SIXAResource resource = null; //get the message store resource resource = transactionFactory...
java
public Object createObjectCache(String reference) { final String methodName = "createCacheInstance()"; if (tc.isEntryEnabled()) Tr.entry(tc, methodName + " cacheName=" + reference); CacheConfig config = ServerCache.getCacheService().getCacheInstanceConfig(reference); if (c...
java
private DistributedObjectCache createDistributedObjectCache(CacheConfig config) { final String methodName = "createDistributedObjectCache()"; if (tc.isEntryEnabled()) Tr.entry(tc, methodName + " cacheName=" + (config != null ? config.getCacheName() : "null")); DCache dCache = Server...
java
public EventSource createEventSource(boolean createAsyncEventSource, String cacheName) { EventSource eventSource = new DCEventSource(cacheName, createAsyncEventSource); if (tc.isDebugEnabled()) Tr.debug(tc, "Using caller thread context for callback - cacheName= " + cacheName); retu...
java
public static Map<JNDIEnvironmentRefType, Map<String, String>> createAllBindingsMap() { Map<JNDIEnvironmentRefType, Map<String, String>> allBindings = new EnumMap<JNDIEnvironmentRefType, Map<String, String>>(JNDIEnvironmentRefType.class); for (JNDIEnvironmentRefType refType : JNDIEnvironmentRefType.VALU...
java
public static void setAllBndAndExt(ComponentNameSpaceConfiguration compNSConfig, Map<JNDIEnvironmentRefType, Map<String, String>> allBindings, Map<String, String> envEntryValues, ResourceRefConfigList re...
java
public static void chainRequestDispatchers(RequestDispatcher[] dispatchers, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{ for(int i=0; i<dispatchers.length-1; i++) { ChainedResponse chainedResp = new ChainedResponse(request, response); ...
java
@Reference(name = KEY_GENERATOR, service = DDLGenerationParticipant.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE) protected void setGenerator(ServiceReference<DDLGenerationParticipant> ref) { generators.addReference(ref); }
java
@Override synchronized public Map<String, Serializable> generateDDL() { Map<String, Serializable> returnMap = new HashMap<String, Serializable>(); WsResource ddlOutputDirectory = locationService.get().resolveResource(OUTPUT_DIR); if (ddlOutputDirectory.exists() == false) { ddlOut...
java
@Override public MetaRuleset createMetaRuleset(Class type) { MetaRuleset ruleset = new MetaRulesetImpl(_delegate.getTag(), type); ruleset.ignore("binding"); ruleset.ignore("event"); return ruleset; }
java
public void applyAttachedObject(FacesContext context, UIComponent parent) { // Retrieve the current FaceletContext from FacesContext object FaceletContext faceletContext = (FaceletContext) context.getAttributes().get( FaceletContext.FACELET_CONTEXT_KEY); ValueExpress...
java
@FFDCIgnore(InvocationTargetException.class) Object getDB(String databaseName) throws Exception { final boolean trace = TraceComponent.isAnyTracingEnabled(); lock.readLock().lock(); try { if (mongoClient == null) { // Switch to write lock for lazy initialization ...
java
private String getCerticateSubject(AtomicServiceReference<Object> serviceRef, Properties sslProperties) { String certificateDN = null; try { certificateDN = sslHelper.getClientKeyCertSubject(serviceRef, sslProperties); } catch (KeyStoreException ke) { if (TraceComponent.i...
java
@FFDCIgnore(Throwable.class) @Trivial private void set(Class<?> MongoClientOptions_Builder, Object optionsBuilder, String propName, Object value) throws IntrospectionException, IllegalArgumentException, IllegalAccessException, InvocationTargetException { try { if (TraceC...
java
@FFDCIgnore(Throwable.class) @Trivial private void setReadPreference(Class<?> MongoClientOptions_Builder, Object optionsBuilder, String creatorMethod) throws ClassNotFoundException, IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException,...
java
@FFDCIgnore(Throwable.class) @Trivial private void setWriteConcern(Class<?> MongoClientOptions_Builder, Object optionsBuilder, String fieldName) throws ClassNotFoundException, IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchM...
java
protected void setSsl(ServiceReference<Object> reference) { sslConfigurationRef.setReference(reference); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(this, tc, "sslRef set to " + reference.getProperty(CONFIG_DISPLAY_ID)); } }
java
protected void unsetSsl(ServiceReference<Object> reference) { sslConfigurationRef.unsetReference(reference); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(this, tc, "sslRef unset"); } }
java
private void assertValidSSLConfig() { final boolean trace = TraceComponent.isAnyTracingEnabled(); boolean sslEnabled = (((Boolean) props.get(SSL_ENABLED)) == null) ? false : (Boolean) props.get(SSL_ENABLED); boolean sslRefExists = ((props.get(SSL_REF)) == null) ? false : true; if (sslR...
java
@Sensitive public String getReferrerURLFromCookies(HttpServletRequest req, String cookieName) { Cookie[] cookies = req.getCookies(); String referrerURL = CookieHelper.getCookieValue(cookies, cookieName); if (referrerURL != null) { StringBuffer URL = req.getRequestURL(); ...
java
public void clearReferrerURLCookie(HttpServletRequest req, HttpServletResponse res, String cookieName) { String url = CookieHelper.getCookieValue(req.getCookies(), cookieName); if (url != null && url.length() > 0) { invalidateReferrerURLCookie(req, res, cookieName); } }
java
public void setReferrerURLCookie(HttpServletRequest req, AuthenticationResult authResult, String url) { //PM81345: If the URL contains favicon, then we will not update the value of the ReffererURL. The only way //we will do it, is if the value of the cookie is null. This will solve the Error 500. ...
java
@FFDCIgnore(Exception.class) private boolean checkDataSource(DataSource nonTranDataSource) { boolean fullyFormedDS = false; try { nonTranDataSource = (DataSource) _dataSourceFactory.createResource(null); if (tc.isDebugEnabled()) Tr.debug(tc, "Non T...
java
public void bytes(Object source, Class sourceClass, byte[] data) { internalBytes(source, sourceClass, data, 0, 0); }
java
public final void entry(Class sourceClass, String methodName) { internalEntry(null, sourceClass, methodName, null); }
java
public final void exit(Class sourceClass, String methodName) { internalExit(null, sourceClass, methodName, null); }
java
private final void internalExit(Object source, Class sourceClass, String methodName, Object object) { StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append(methodName); stri...
java
public final void event(Class sourceClass, String methodName, Throwable throwable) { internalEvent(null, sourceClass, methodName, throwable); }
java
public final void event(Object source, Class sourceClass, String methodName, Throwable throwable) { internalEvent(source, sourceClass, methodName, throwable); ...
java
private final void internalEvent(Object source, Class sourceClass, String methodName, Throwable throwable) { StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append(methodName); ...
java
public final void info(Class sourceClass, String methodName, String messageIdentifier, Object object) { internalInfo(null, sourceClass, methodName, messageIdentifier, ...
java
public final void warning(Class sourceClass, String methodName, String messageIdentifier, Object object) { internalWarning(null, sourceClass, methodName, ...
java
public void overrideCacheConfig(Properties properties) { if (properties != null) { FieldInitializer.initFromSystemProperties(this, properties); } processOffloadDirectory(); if (!this.enableServletSupport) { this.disableTemplatesSupport = true; } }
java
public void determineCacheProvider() { this.defaultProvider = true; if (cacheProviderName.equals("")) { cacheProviderName = CacheConfig.CACHE_PROVIDER_DYNACACHE; } if (!cacheProviderName.equals(CACHE_PROVIDER_DYNACACHE)) { defaultProvider = false; if (...
java
public void resetProvider(String cacheName) { if (tc.isDebugEnabled()) { Tr.debug(tc, "Reverting to the default Dynacache cache provider"); } this.cacheProviderName = CACHE_PROVIDER_DYNACACHE; this.enableCacheReplication = false; this.defaultProvider = true; t...
java
void restoreDynacacheProviderDefaults() { // restore commonConfig to Dynacache defaults if (restoreDynacacheDefaults) { if (cacheProviderName != CacheConfig.CACHE_PROVIDER_DYNACACHE) { cacheProviderName = CacheConfig.CACHE_PROVIDER_DYNACACHE; enableCacheReplication = ...
java
public String pluginId() { if (tc.isEntryEnabled()) Tr.entry(tc, "pluginId", this); if (tc.isEntryEnabled()) Tr.exit(tc, "pluginId", _pluginId); return _pluginId; }
java
public Properties properties() { if (tc.isEntryEnabled()) Tr.entry(tc, "propertis", this); if (tc.isEntryEnabled()) Tr.exit(tc, "properties", _props); return _props; }
java
public ResourceFactory resourceFactory() { if (tc.isEntryEnabled()) Tr.entry(tc, "resourceFactory", this); if (tc.isEntryEnabled()) Tr.exit(tc, "resourceFactory", _resourceFactory); return _resourceFactory; }
java
protected void loadCipherToBit() { boolean keySizeFromCipherMap = Boolean.valueOf(WebContainer.getWebContainerProperties().getProperty("com.ibm.ws.webcontainer.keysizefromciphermap", "true")).booleanValue(); //721610 if (keySizeFromCipherMap) { this.getKeySize...
java
public VirtualHost getVirtualHost(String targetHost) throws WebAppHostNotFoundException { Iterator i = requestMapper.targetMappings(); while (i.hasNext()) { RequestProcessor rp = (RequestProcessor) i.next(); if (rp instanceof VirtualHost) { VirtualHost vHost = (V...
java
private PathInfoHelper removeExtraPathInfo(String pathInfo) { if (pathInfo == null) return null; int semicolon = pathInfo.indexOf(';'); if (semicolon != -1) { String tmpPathInfo = pathInfo.substring(0, semicolon); String extraPathInfo = pathInfo.substring(sem...
java
public static void sendAppUnavailableException(HttpServletRequest req, HttpServletResponse res) throws IOException { if ((req instanceof SRTServletRequest) && (res instanceof SRTServletResponse)) { IRequest ireq = ((SRTServletRequest) req).getIRequest(); IResponse ires = ((SRTSe...
java
protected static void sendUnavailableException(IRequest req, IResponse res) throws IOException { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) //306998.15 logger.logp(Level.FINE, CLASS_NAME, "sendUnavailableException", "Inside sendUnavailableException");...
java
@Test public void MPJwtNoMpJwtConfig_notInWebXML_notInApp() throws Exception { genericLoginConfigVariationTest( MpJwtFatConstants.LOGINCONFIG_NOT_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT, MpJwtFatConstants.LOGINCONFIG_NOT_IN_...
java
@Test public void MPJwtNoMpJwtConfig_notInWebXML_basicInApp() throws Exception { genericLoginConfigVariationTest( MpJwtFatConstants.LOGINCONFIG_NOT_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT, MpJwtFatConstants.LOGINCONFIG_NOT...
java
@Test public void MPJwtNoMpJwtConfig_formLoginInWebXML_notInApp() throws Exception { genericLoginConfigFormLoginVariationTest( MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT, ...
java
@Test public void MPJwtNoMpJwtConfig_formLoginInWebXML_basicInApp() throws Exception { genericLoginConfigFormLoginVariationTest( MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT, ...
java
@Test public void MPJwtNoMpJwtConfig_formLoginInWebXML_mpJwtInApp() throws Exception { genericLoginConfigFormLoginVariationTest( MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_MP_JWT_IN_APP_ROOT_CONTEXT, ...
java
@Test public void MPJwtNoMpJwtConfig_mpJwtInWebXML_notInApp() throws Exception { genericLoginConfigVariationTest( MpJwtFatConstants.LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT, MpJwtFatConstants.LOGINCONFIG_MP...
java
@Test public void MPJwtNoMpJwtConfig_mpJwtInWebXML_basicInApp() throws Exception { genericLoginConfigVariationTest( MpJwtFatConstants.LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT, MpJwtFatConstants.LOGINCONFIG...
java
@Mode(TestMode.LITE) @Test public void MPJwtNoMpJwtConfig_mpJwtInWebXML_mpJwtInApp() throws Exception { genericLoginConfigVariationTest( MpJwtFatConstants.LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_MP_JWT_IN_APP_ROOT_CONTEXT, MpJ...
java
@Override public void setTopicName(String tName) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setTopicName", tName); setDestDiscrim(tName); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
@Override public String getTopicSpace() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getTopicSpace"); String result = getDestName(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr...
java
@Override public void setTopicSpace(String tSpace) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setTopicSpace", tSpace); setDestName(tSpace); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
public static void initialise(AcceptListenerFactory _acceptListenerFactory) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initalise"); acceptListenerFactory = _acceptListenerFactory; // Create the maintainer of the configuration. Framew...
java
public static void initialiseAcceptListenerFactory(AcceptListenerFactory _acceptListenerFactory) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initialiseAcceptListenerFactory", _acceptListenerFactory); acceptListenerFactory = _acceptListenerFactory; ...
java
@Override public List getActiveOutboundMEtoMEConversations() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getActiveOutboundMEtoMEConversations"); List convs = null; if (connectionTracker != null) { convs = connectionTracke...
java
@Override public void open() throws InfoStoreException { String methodName = "open"; try { getClassSource().open(); } catch (ClassSource_Exception e) { // defect 84235:we are generating multiple Warning/Error messages for each error due to each level reporting them. ...
java
public void scanClass(String className) throws InfoStoreException { Object[] logParms; if (tc.isDebugEnabled()) { logParms = new Object[] { getHashText(), className }; Tr.debug(tc, MessageFormat.format("[ {0} ] Class [ {1} ] ENTER", logParms)); } else { logPa...
java
@Override public PackageInfoImpl getPackageInfo(String name) { return getClassInfoCache().getPackageInfo(name, ClassInfoCache.DO_NOT_FORCE_PACKAGE); }
java
private void updateBindings(Map<String, Object> props) { // Process the user element processProps(props, CFG_KEY_USER, users); // Process the user-access-id element processProps(props, CFG_KEY_USER_ACCESSID, users); // Process the group element processProps(props, CFG_KE...
java
public void cancel(Exception reason) { // IMPROVEMENT: need to rework how syncs on the future.complete() work. We really should be // syncing here, so we don't do the channel.cancel if the request is processing // future.complete() on another thread at the same time. Should just do a quick ...
java
protected void fireCompletionActions() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "fireCompletionActions"); } if (this.firstListener != null) { ICompletionListener listenerToInvoke = this.firstListener; // reset listener ...
java
protected void throwException() throws InterruptedException, IOException { if (this.exception instanceof IOException) { throw (IOException) this.exception; } if (this.exception instanceof InterruptedException) { throw (InterruptedException) this.exception; } ...
java
private void internalBytes(Object source, Class sourceClass, byte[] data, int start, int count) { StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append(sourceClass.getName()); stringBuffer.append(" ["); if (source != null) { stringBuffer.append(sou...
java
public AppConfigurationEntry createAppConfigurationEntry(JAASLoginModuleConfig loginModule, String loginContextEntryName) { String loginModuleClassName = loginModule.getClassName(); LoginModuleControlFlag controlFlag = loginModule.getControlFlag(); Map<String, Object> options = new HashMap<Strin...
java
@Override public List<AnnotationInfoImpl> getAnnotations() { if (annotations != null) { return annotations; } // Several cases where superclasses contribute no annotations. In // each of these cases case, simply re-use the declared annotations // collection. ...
java
private void checkNotClosed() throws SISessionUnavailableException { if (tc.isEntryEnabled()) SibTr.entry(tc, "checkNotClosed"); // Check that the consumer session isn't closed _consumerSession.checkNotClosed(); // Now check that this consumer hasn't closed. synchronized (this) { ...
java
@Override public Map<Object, Object> getSwappableData() { if (mSwappableData == null) { mSwappableData = new ConcurrentHashMap<Object, Object>(); if (isNew()) { //if this is a new session, then we have the updated app data populatedAppData = true; ...
java
@Override public boolean getSwappableListeners(short requestedListener) { short thisListenerFlag = getListenerFlag(); boolean rc = false; // check session's listenrCnt to see if it has any of the type we want // input listener is either BINDING or ACTIVATION, so if the session has bo...
java
public boolean enlistResource(XAResource xaRes) throws RollbackException, SystemException, IllegalStateException { if (tc.isEntryEnabled()) Tr.entry(tc, "enlistResource", xaRes); // Determine if we are attempting to enlist a second resource within a transaction // that can't support...
java
protected boolean delistResource(XAResource xaRes, int flag) throws SystemException { if (tc.isEntryEnabled()) Tr.entry(tc, "delistResource", new Object[] { xaRes, Util.printFlag(flag) }); // get resource manager instance JTAResourceBase jtaRes = (JTAResourceBase) getResourceTable()...
java
protected Xid generateNewBranch() { if (tc.isEntryEnabled()) Tr.entry(tc, "generateNewBranch"); // Create a new Xid branch final XidImpl result = new XidImpl(_txServiceXid, ++_branchCount); if (tc.isEntryEnabled()) Tr.exit(tc, "generateNewBranch", result); ...
java
protected void startRes(JTAResource resource) throws RollbackException, SystemException { if (tc.isEntryEnabled()) Tr.entry(tc, "startRes", new Object[] { this, resource }); try { resource.start(); } catch (XAException xae) { _errorCode = xae.errorCode; // Sa...
java
public int numRegistered() { final int result = _resourceObjects.size(); if (tc.isDebugEnabled()) Tr.debug(tc, "numRegistered", result); return result; }
java
public boolean distributeEnd(int flags) { if (tc.isEntryEnabled()) Tr.entry(tc, "distributeEnd", Util.printFlag(flags)); boolean result = true; for (int i = _resourceObjects.size(); --i >= 0;) { final JTAResource resource = _resourceObjects.get(i); if (!sen...
java
private void updateHeuristicState(boolean commit) throws SystemException { if (tc.isEntryEnabled()) Tr.entry(tc, "updateHeuristicState", commit); if (_transaction.isSubordinate()) { // Get the current transaction state. Need to do this in case we are // in recovery ...
java
public boolean distributeForget() throws SystemException { if (tc.isEntryEnabled()) Tr.entry(tc, "distributeForget", this); boolean retryRequired = false; // indicates whether retry necessary final int resourceCount = _resourceObjects.size(); // Browse through the participa...
java
protected boolean forgetResource(JTAResource resource) { if (tc.isEntryEnabled()) Tr.entry(tc, "forgetResource", resource); boolean result = false; // indicates whether retry necessary boolean auditing = false; try { boolean informResource = true; a...
java
public void distributeCommit() throws SystemException, HeuristicHazardException, HeuristicMixedException, HeuristicRollbackException { if (tc.isEntryEnabled()) Tr.entry(tc, "distributeCommit"); final TransactionState ts = _transaction.getTransactionState(); ts.se...
java
public void destroyResources() { if (tc.isEntryEnabled()) Tr.entry(tc, "destroyResources"); // Browse through the participants, processing them as appropriate final ArrayList<JTAResource> resources = getResourceObjects(); for (JTAResource resource : resources) { ...
java
@Override public int compare(JTAResource o1, JTAResource o2) { if (tc.isEntryEnabled()) Tr.entry(tc, "compare", new Object[] { o1, o2, this }); int result = 0; int p1 = o1.getPriority(); int p2 = o2.getPriority(); if (p1 < p2) result = 1; else ...
java
protected boolean sortResources() { if (tc.isEntryEnabled()) Tr.entry(tc, "sortResources", _resourceObjects.toArray()); if (!_sorted) { final int resourceCount = _resourceObjects.size(); if (_gotPriorityResourcesEnlisted) { if (resourceCount > 1) ...
java
protected void sortPreparePriorityResources() { if (tc.isEntryEnabled()) Tr.entry(tc, "sortPreparePriorityResources", _resourceObjects.toArray()); Collections.sort(_resourceObjects, prepareComparator); if (tc.isEntryEnabled()) Tr.exit(tc, "sortPreparePriorityResources",...
java
public boolean isLastAgentEnlisted() { final boolean lastAgentEnlisted = (_onePhaseResourceEnlisted != null); if (tc.isDebugEnabled()) Tr.debug(tc, "isLastAgentEnlisted", lastAgentEnlisted); return lastAgentEnlisted; }
java
public Map<String,String> getDurableSelectorNamespaceMap() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getDurableSelectorNamespaceMap"); Map<String,String> map = null; if (jmo.getChoiceField(ControlAccess.BODY_CREATEDURABLE_NAMESPACEMAP) == ControlAccess.IS_BODY...
java
public void setDurableSelectorNamespaceMap(Map<String,String> namespaceMap) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setDurableSelectorNamespaceMap", namespaceMap); if (namespaceMap == null) { jmo.setChoiceField(ControlAccess.BODY_CREATEDURABLE_NAMESPACEMAP...
java
public void close() throws IOException { if (tc.isEntryEnabled()) Tr.entry(tc, "close", new Object[]{this, _file}); // By locking on the class rather than the object, and removing // the inner lock on the class, this seems to resolve the problems // reported in d347231 that file handles ...
java
public int getInteger(String key) throws MissingResourceException { String result = getString(key); try { return Integer.parseInt(result); } catch (NumberFormatException nfe) { if (tc.isEventEnabled()) { Tr.event(tc, "Unable to parse " + result + " as Inte...
java
public void stop() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "stop"); // Lock exclusively for start operations mpioLockManager.lockExclusive(); started = false; mpioLockManager.unlockExclusive(); if (TraceComponent.isAnyTracingEnabled(...
java
public void receiveMessage(MEConnection conn, AbstractMessage aMessage) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "receiveMessage", new Object[] {conn, aMessage, ...
java
public MPConnection getOrCreateNewMPConnection(SIBUuid8 remoteUuid, MEConnection conn) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getOrCreateNewMPConnection", new Object[] {remoteUuid, conn }); MPConnection mpConn...
java
public MPConnection removeConnection(MEConnection conn) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeConnection", new Object[] { conn }); MPConnection mpConn; synchronized(_mpConnectionsByMEConnection) { //remove the MPConnection from the 'by M...
java
public void error(MEConnection conn, Throwable ex) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "error", new Object[] { this, conn, ex}); // This one goes straight to the CEL _commsErrorListener.error(conn, ex); if (TraceComponent.isAnyTracingEnabled() && ...
java
public void changeConnection(MEConnection downConn, MEConnection upConn) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "changeConnection", new Object[] { this, downConn, upConn} ); if(downConn != null) { //remove the connection which has gone down re...
java