_id stringlengths 2 7 | title stringlengths 3 140 | partition stringclasses 3
values | text stringlengths 73 34.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q153000 | HtmlTableRendererBase.renderRowStart | train | protected void renderRowStart(
FacesContext facesContext,
ResponseWriter writer,
UIData uiData,
Styles styles, int rowStyleIndex) throws IOException
{
writer.startElement(HTML.TR_ELEM, null); // uiData);
renderRowStyle(facesContext, writer, uiData, styles, ro... | java | {
"resource": ""
} |
q153001 | HtmlTableRendererBase.renderRowEnd | train | protected void renderRowEnd(
FacesContext facesContext,
ResponseWriter writer,
UIData uiData) throws IOException
{
writer.endElement(HTML.TR_ELEM);
} | java | {
"resource": ""
} |
q153002 | HtmlTableRendererBase.endTable | train | protected void endTable(FacesContext facesContext, UIComponent uiComponent) throws IOException
{
ResponseWriter writer = facesContext.getResponseWriter();
writer.endElement(HTML.TABLE_ELEM);
} | java | {
"resource": ""
} |
q153003 | HtmlTableRendererBase.renderTableHeaderRow | train | protected void renderTableHeaderRow(FacesContext facesContext, ResponseWriter writer, UIComponent component,
UIComponent headerFacet, String headerStyleClass, int colspan) throws IOException
{
renderTableHeaderOrFooterRow(facesContext, writer, component, headerFacet, headerStyleClass,
... | java | {
"resource": ""
} |
q153004 | HtmlTableRendererBase.renderTableFooterRow | train | protected void renderTableFooterRow(FacesContext facesContext, ResponseWriter writer, UIComponent component,
UIComponent footerFacet, String footerStyleClass, int colspan) throws IOException
{
renderTableHeaderOrFooterRow(facesContext, writer, component, footerFacet, footerStyleClass, HTML.TD_EL... | java | {
"resource": ""
} |
q153005 | HtmlTableRendererBase.renderSpacerCell | train | protected void renderSpacerCell(FacesContext facesContext, ResponseWriter writer, UIComponent component)
throws IOException
{
UIComponent spacer = getNewspaperTableSpacer(component);
if(spacer == null)
{
return;
}
writer.startElement(HTML.TD_EL... | java | {
"resource": ""
} |
q153006 | TraceUtils.getTrace | train | public static Trace getTrace(Class sourceClass, String traceGroup)
{
Class traceFactoryClass;
Object ret = null;
try
{
traceFactoryClass = Class.forName("com.ibm.ws.sib.matchspace.utils.TraceFactory");
Class[] params = new Class[]{Class.class, String.class};
Method getTraceMethod ... | java | {
"resource": ""
} |
q153007 | QueuedMessageDetail.updateMessageWaitTime | train | private long updateMessageWaitTime() {
// Store in the message the amount of time it was on the queue
long timeNow = java.lang.System.currentTimeMillis();
long latestWaitTimeUpdate = calculateWaitTimeUpdate(timeNow);
long messageWaitTime = latestWaitTimeUpdate
+ _js_messageWaitTime.longValue();
return me... | java | {
"resource": ""
} |
q153008 | JmsMsgConsumerImpl.setMessageListener | train | @Override
public void setMessageListener(MessageListener listener) throws JMSException {
// pass control to the internal method
boolean checkManaged = true;
_setMessageListener(listener, checkManaged);
} | java | {
"resource": ""
} |
q153009 | JmsMsgConsumerImpl.start | train | protected void start() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "start");
// We call start regardless of whether this is synchronous or async
if (coreConsumerSession != null) {
try {
syn... | java | {
"resource": ""
} |
q153010 | JmsMsgConsumerImpl.stop | train | protected void stop() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "stop");
if (coreConsumerSession != null) {
try {
coreConsumerSession.stop();
} catch (SIException sice) {
... | java | {
"resource": ""
} |
q153011 | JmsMsgConsumerImpl.checkClosed | train | void checkClosed() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "checkClosed");
synchronized (closedLock) {
if (closed) {
throw (JMSException) JmsErrorUtils.newThrowable(javax.jms.IllegalStateExcepti... | java | {
"resource": ""
} |
q153012 | JmsMsgConsumerImpl.setAsyncListener | train | private void setAsyncListener(MessageListener listener) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setAsyncListener", listener);
consumer = new Consumer(listener, session, sessionAckMode);
try {
// Consum... | java | {
"resource": ""
} |
q153013 | JmsMsgConsumerImpl.removeAsyncListener | train | private void removeAsyncListener() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "removeAsyncListener");
// if the consumer is null, there is nothing to do
if (consumer != null) {
try {
// sto... | java | {
"resource": ""
} |
q153014 | JmsMsgConsumerImpl.getNoLocalFlag | train | boolean getNoLocalFlag() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getNoLocalFlag");
checkClosed();
boolean nl = props.noLocal();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
S... | java | {
"resource": ""
} |
q153015 | JmsMsgConsumerImpl.emergencyClose | train | private void emergencyClose() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "emergencyClose");
try {
if (coreConsumerSession != null)
coreConsumerSession.close();
} catch (SIException e) {
// No FFDC ... | java | {
"resource": ""
} |
q153016 | LibertySimpleAuthorizingInterceptor.parseClassSecurity | train | private boolean parseClassSecurity(Class<?> cls, SecurityContext sc) {
// try DenyAll
DenyAll denyAll = cls.getAnnotation(DenyAll.class);
if (denyAll != null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Found class level @DenyAl... | java | {
"resource": ""
} |
q153017 | TaskFailure.getReason | train | @Trivial
public final short getReason() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "getReason", toString(reason));
return reason;
} | java | {
"resource": ""
} |
q153018 | SystemConfiguration.registerService | train | private void registerService(BundleContext bc, String name, Object serviceInstance) {
Dictionary<String, Object> properties = new Hashtable<String, Object>();
properties.put("service.vendor", "IBM");
bc.registerService(name, serviceInstance, properties);
} | java | {
"resource": ""
} |
q153019 | SystemConfiguration.addDefaultConfiguration | train | BaseConfiguration addDefaultConfiguration(String pid, Dictionary<String, String> props) throws ConfigUpdateException {
return defaultConfiguration.add(pid, props, serverXMLConfig, variableRegistry);
} | java | {
"resource": ""
} |
q153020 | SystemConfiguration.addDefaultConfiguration | train | BaseConfiguration addDefaultConfiguration(InputStream defaultConfig) throws ConfigValidationException, ConfigUpdateException {
return defaultConfiguration.add(defaultConfig, serverXMLConfig, variableRegistry);
} | java | {
"resource": ""
} |
q153021 | JsMainAdminServiceImpl.activate | train | @Override
public void activate(ComponentContext context,
Map<String, Object> properties, ConfigurationAdmin configAdmin) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "activate", new Object[] { context, properties,
... | java | {
"resource": ""
} |
q153022 | JsMainAdminServiceImpl.initialize | train | private void initialize(ComponentContext context,
Map<String, Object> properties, ConfigurationAdmin configAdmin)
throws InvalidFileStoreConfigurationException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "initi... | java | {
"resource": ""
} |
q153023 | JsMainAdminServiceImpl.populateFileStore | train | private void populateFileStore(Map<String, Object> properties,
SIBFileStore filestore, ConfigurationAdmin configAdmin)
throws InvalidFileStoreConfigurationException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entr... | java | {
"resource": ""
} |
q153024 | MpConfigUtil.getMpConfigMap | train | protected Map<String, String> getMpConfigMap(MpConfigProxyService service, ClassLoader cl, Map<String, String> map) {
Arrays.asList(MpConstants.ISSUER, MpConstants.PUBLIC_KEY, MpConstants.KEY_LOCATION).forEach(s -> getMpConfig(service, cl, s, map));
return map;
} | java | {
"resource": ""
} |
q153025 | MpConfigUtil.getMpConfig | train | @FFDCIgnore({ NoSuchElementException.class })
protected Map<String, String> getMpConfig(MpConfigProxyService service, ClassLoader cl, String propertyName, Map<String, String> map) {
try {
String value = service.getConfigValue(cl, propertyName, String.class).trim();
if (!value.isEmpt... | java | {
"resource": ""
} |
q153026 | FaceletsCompilerSupport.loadLibraries | train | public void loadLibraries(FacesContext context, Compiler compiler)
{
ExternalContext eContext = context.getExternalContext();
MyfacesConfig config = MyfacesConfig.getCurrentInstance(eContext);
// Initialize Runtime Libraries
compiler.addTagLibrary(new CoreLibrary());
compile... | java | {
"resource": ""
} |
q153027 | FaceletsCompilerSupport.loadDecorators | train | public void loadDecorators(FacesContext context, Compiler compiler)
{
String param = WebConfigParamUtils.getStringInitParameter(context.getExternalContext(), PARAMS_DECORATORS);
if (param != null)
{
for (String decorator : param.split(";"))
{
try
... | java | {
"resource": ""
} |
q153028 | ZipCachingServiceImpl.getZipFileHandle | train | private static ZipFileHandle getZipFileHandle(String path) throws IOException {
synchronized ( zipFileHandlesLock ) {
ZipFileHandle handle = zipFileHandles.get(path);
if ( handle == null ) {
handle = new ZipFileHandleImpl(path);
zipFileHandles.put(path, ha... | java | {
"resource": ""
} |
q153029 | FilterChainContents.addFilter | train | public void addFilter(String filterName)
{
_hasFilters = true;
//PM93069 Start
if(!WCCustomProperties.DENY_DUPLICATE_FILTER_IN_CHAIN){
_filterNames.add(filterName);
}
else {
if(! _filterNames.contains(filterName)){ // if unique then add in the chain... | java | {
"resource": ""
} |
q153030 | SRTServletRequest.isHeaderinSuppressedHeadersList | train | private boolean isHeaderinSuppressedHeadersList(String headername)
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
boolean suppressHeader = false;
if(headername != null){
Iterator itList = suppressheadersList.iterator();
... | java | {
"resource": ""
} |
q153031 | SRTServletRequest.getDateHeader | train | public long getDateHeader(String name) {
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
// 321485
// PK80362 Start
// If the getDateHeader method cannot translate the header to a Date object, an IllegalArgumentException is thrown
... | java | {
"resource": ""
} |
q153032 | SRTServletRequest.getHeaderNames | train | public Enumeration getHeaderNames() {
// 321485
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"getHeaderNames", "this->"+this+": ");
}
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
... | java | {
"resource": ""
} |
q153033 | SRTServletRequest.getInputStream | train | public ServletInputStream getInputStream() throws IOException {
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {
logger.logp(Level.FINE, CLASS_NAME,"getInputStream", "this->"+this+": gotReader = " + _srtRequestHelper._gotReader);
}
if (WCCustomProperties.C... | java | {
"resource": ""
} |
q153034 | SRTServletRequest.getAuthType | train | public String getAuthType()
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
String authType = null;
//if (com.ibm.ws.security.core.SecurityContext.isSecurityEnabled())
if(((WebAppDispatcherContext)this.getDispatchContext()).isS... | java | {
"resource": ""
} |
q153035 | SRTServletRequest.getParameter | train | public String getParameter(String name)
{
// 321485
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"getParameter", " name --> " + name);
}
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
... | java | {
"resource": ""
} |
q153036 | SRTServletRequest.getParameterValues | train | public String[] getParameterValues(String name)
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
parseParameters();
// 321485
String[] values = (String[]) SRTServletRequestThreadData.getInstance().getParameters().get(name);
... | java | {
"resource": ""
} |
q153037 | SRTServletRequest.getPathInfo | train | public String getPathInfo()
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
SRTServletRequestThreadData reqData=SRTServletRequestThreadData.getInstance();
// Begin PK06988, strip session id of when url rewriting is enabled
... | java | {
"resource": ""
} |
q153038 | SRTServletRequest.getQueryString | train | public String getQueryString()
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
SRTServletRequestThreadData reqData = SRTServletRequestThreadData.getInstance();
if (reqData.getQueryString()==null && !reqData.isQSSetExplicit())
... | java | {
"resource": ""
} |
q153039 | SRTServletRequest.getRemoteUser | train | public String getRemoteUser()
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
String remoteUser = null;
Principal principal = getUserPrincipal();
if (principal == null) {
//remoteUser = null;
if (_reques... | java | {
"resource": ""
} |
q153040 | SRTServletRequest.getRequestURI | train | public String getRequestURI()
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
// Begin PK06988, strip session id of when url rewriting is enabled
SRTServletRequestThreadData reqData = SRTServletRequestThreadData.getInstance();
i... | java | {
"resource": ""
} |
q153041 | SRTServletRequest.getServerName | train | public String getServerName()
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
String sName = this._request.getServerName();
// if (sName == null || sName.equalsIgnoreCase("localhost"))
if (sName == null || sName.length() == 0)
... | java | {
"resource": ""
} |
q153042 | SRTServletRequest.isRequestedSessionIdValid | train | public boolean isRequestedSessionIdValid()
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
// 321485
boolean sessionInvalid = _requestContext.isRequestedSessionIdValid(((WebAppDispatcherContext) this.getDispatchContext()).getWebApp());
... | java | {
"resource": ""
} |
q153043 | SRTServletRequest.parsePostData | train | protected Hashtable parsePostData() throws IOException {
if( getContentLength() > 0){
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) //306998.15
logger.logp(Level.FINE, CLASS_NAME,"parsePostData", "parsing post data based upon content length");
... | java | {
"resource": ""
} |
q153044 | SRTServletRequest.finish | train | public void finish() //280584.3 6021: Cleanup of defect 280584.2 WAS.webcontainer removed throws clause.
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"finish", "entry");
}
if (WCCustomProperti... | java | {
"resource": ""
} |
q153045 | SRTServletRequest.popParameterStack | train | public void popParameterStack()
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"popParameterStack", "entry");
}
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse... | java | {
"resource": ""
} |
q153046 | SRTServletRequest.getParameterMap | train | public java.util.Map getParameterMap()
{
//321485
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"getParameterMap", "");
}
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRe... | java | {
"resource": ""
} |
q153047 | SRTServletRequest.getRequestURL | train | public java.lang.StringBuffer getRequestURL()
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
StringBuffer fullURL = new StringBuffer();
// get the scheme and port up front for later use
String scheme = getScheme();
int... | java | {
"resource": ""
} |
q153048 | SRTServletRequest.getAllCookieValues | train | public List getAllCookieValues(String cookieName){
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
List cookieValues = _request.getAllCookieValues(cookieName);
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //30... | java | {
"resource": ""
} |
q153049 | SRTServletRequest.getSessionAffinityContext | train | public Object getSessionAffinityContext()
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
// 321485
Object sac = _srtRequestHelper._sessionAffinityContext;
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)... | java | {
"resource": ""
} |
q153050 | SRTServletRequest.getEncodedRequestURI | train | public String getEncodedRequestURI()
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
// 321485
String uri = null;
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(L... | java | {
"resource": ""
} |
q153051 | SRTServletRequest.getRunningCollaborators | train | public boolean getRunningCollaborators()
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
// 321485
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"... | java | {
"resource": ""
} |
q153052 | SRTServletRequest.setDispatcherType | train | public void setDispatcherType(DispatcherType dispatcherType) {
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))
logger.logp(Level.FINE, CLASS_NAME,"setDispatcherType","dispatcherType->"+dispatcherType);
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
... | java | {
"resource": ""
} |
q153053 | SRTServletRequest.morphIntoPart | train | protected Part morphIntoPart(DiskFileItem commonsFile) {
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
Part p = new SRTServletRequestPart(commonsFile);
return p;
} | java | {
"resource": ""
} |
q153054 | SRTServletRequest.sizeInputStreamData | train | @SuppressWarnings("rawtypes")
@Override
public long sizeInputStreamData(Map isd) throws UnsupportedEncodingException, IllegalStateException {
validateInputStreamData(isd);
// The length of IMPUT_STREAM_CONTENT_TYPE won't exceed Integer.MAX_VALUE
long size = LENGTH_INT + LENGTH_LONG;
... | java | {
"resource": ""
} |
q153055 | SRTServletRequest.validateInputStreamData | train | @SuppressWarnings("rawtypes")
protected void validateInputStreamData(Map isd) throws IllegalStateException {
String message = null;
if (isd != null) {
if (isd.size() <= 3) {
boolean type = isd.containsKey(INPUT_STREAM_CONTENT_TYPE);
boolean length = isd.co... | java | {
"resource": ""
} |
q153056 | ValidateDelegateHandler.createValidator | train | protected Validator createValidator(FaceletContext ctx)
{
return ctx.getFacesContext().getApplication().createValidator(this.getValidatorId(ctx));
} | java | {
"resource": ""
} |
q153057 | DCacheBase.addChangeListener | train | public synchronized boolean addChangeListener(ChangeListener listener) {
if (bEnableListener && listener != null) {
eventSource.addListener(listener);
if (tc.isDebugEnabled()) {
Tr.debug(tc, "addChangeListener() cacheName=" + this.cacheName + " listener=" + eventSource.ge... | java | {
"resource": ""
} |
q153058 | DCacheBase.addInvalidationListener | train | public synchronized boolean addInvalidationListener(InvalidationListener listener) {
if (bEnableListener && listener != null) {
eventSource.addListener(listener);
if (tc.isDebugEnabled()) {
Tr.debug(tc, "addInvalidationListener() cacheName=" + this.cacheName + " listener=... | java | {
"resource": ""
} |
q153059 | DCacheBase.addPreInvalidationListener | train | public synchronized boolean addPreInvalidationListener(PreInvalidationListener listener) {
if (bEnableListener && listener != null) {
if (eventSource.getPreInvalidationListenerCount() > 0 && tc.isDebugEnabled()) {
Tr.debug(tc, "addPreInvalidationListener() cacheName=" + this.cacheNam... | java | {
"resource": ""
} |
q153060 | DCacheBase.disableCacheSizeInMB | train | public void disableCacheSizeInMB() {
this.memoryCacheSizeInMBEnabled = false;
this.cacheConfig.memoryCacheSizeInMB = -1;
this.currentMemoryCacheSizeInBytes = -1;
if (tc.isDebugEnabled()) {
Tr.debug(tc, "disableCacheSizeInMB() cacheName=" + this.cacheName);
}
} | java | {
"resource": ""
} |
q153061 | DCacheBase.increaseCacheSizeInBytes | train | public void increaseCacheSizeInBytes(long size, String msg) {
if (this.memoryCacheSizeInMBEnabled) {
this.currentMemoryCacheSizeInBytes += size;
if (tc.isDebugEnabled()) {
Tr.debug(tc, "increaseCacheSizeInBytes() cacheName=" + cacheName + " " + msg + " size=" + size + " c... | java | {
"resource": ""
} |
q153062 | DCacheBase.initEventSource | train | private boolean initEventSource() {
boolean success = false;
try {
eventSource = ServerCache.cacheUnit.createEventSource(cacheConfig.useListenerContext, cacheName);
} catch (Exception ex) {
com.ibm.ws.ffdc.FFDCFilter.processException(ex, "com.ibm.ws.cache.Cache.initEventS... | java | {
"resource": ""
} |
q153063 | DCacheBase.removeChangeListener | train | public synchronized boolean removeChangeListener(ChangeListener listener) {
if (bEnableListener && listener != null) {
eventSource.removeListener(listener);
return true;
}
return false;
} | java | {
"resource": ""
} |
q153064 | DCacheBase.removeInvalidationListener | train | public synchronized boolean removeInvalidationListener(InvalidationListener listener) {
if (bEnableListener && listener != null) {
eventSource.removeListener(listener);
return true;
}
return false;
} | java | {
"resource": ""
} |
q153065 | DCacheBase.removePreInvalidationListener | train | public synchronized boolean removePreInvalidationListener(PreInvalidationListener listener) {
if (bEnableListener && listener != null) {
eventSource.removeListener(listener);
return true;
}
return false;
} | java | {
"resource": ""
} |
q153066 | ExtensionUtils.listProductExtensionDirectories | train | static List<File> listProductExtensionDirectories() {
List<File> dirs = new ArrayList<File>();
for (ProductExtensionInfo info : ProductExtension.getProductExtensions()) {
// there are some fat tests which constructs incorrect ProductExtensionInfo.
// in order to avoid the test fa... | java | {
"resource": ""
} |
q153067 | ExtensionUtils.findExtensionBundles | train | static private List<LaunchManifest.RequiredBundle> findExtensionBundles(List<File> dirs) throws IOException {
List<LaunchManifest.RequiredBundle> list = new ArrayList<LaunchManifest.RequiredBundle>();
for (File dir : dirs) {
if (dir.exists()) {
File[] files = dir.listFiles();... | java | {
"resource": ""
} |
q153068 | ExtensionUtils.getRequiredBundles | train | static private String getRequiredBundles(File file) throws IOException {
JarFile jar = new JarFile(file);
Attributes attr = jar.getManifest().getMainAttributes();
jar.close();
return attr.getValue("Require-Bundle");
} | java | {
"resource": ""
} |
q153069 | Listeners.getListenerList | train | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<Listener> getListenerList() {
if (listenerList == null) {
listenerList = new ArrayList<Listener>();
}
return this.list... | java | {
"resource": ""
} |
q153070 | BackedSession.includeInAppDataChanges | train | private void includeInAppDataChanges(String name, Object value, int invoker) {
if (appDataTablesPerThread) {
Thread t = Thread.currentThread();
Hashtable sht = (Hashtable) appDataChanges.get(t);
if (sht == null) {
sht = new Hashtable();
appData... | java | {
"resource": ""
} |
q153071 | SQLMultiScopeRecoveryLog.recover | train | private void recover(Connection conn) throws SQLException, RecoverableUnitSectionExistsException, InternalLogException {
if (tc.isEntryEnabled())
Tr.entry(tc, "recover", conn);
Statement recoveryStmt = null;
ResultSet recoveryRS = null;
try {
recoveryStmt = conn... | java | {
"resource": ""
} |
q153072 | SQLMultiScopeRecoveryLog.isSQLErrorTransient | train | private boolean isSQLErrorTransient(SQLException sqlex) {
if (tc.isEntryEnabled())
Tr.entry(tc, "isSQLErrorTransient ", new Object[] { sqlex, this });
boolean retryBatch = false;
int sqlErrorCode = sqlex.getErrorCode();
if (tc.isEventEnabled()) {
Tr.event(tc, " S... | java | {
"resource": ""
} |
q153073 | SQLMultiScopeRecoveryLog.handleForceSectionsSQLException | train | private boolean handleForceSectionsSQLException(SQLException sqlex) throws InterruptedException {
if (tc.isEntryEnabled())
Tr.entry(tc, "handleForceSectionsSQLException", new java.lang.Object[] { sqlex, this });
boolean retryBatch = true;
boolean failAndReport = false;
int b... | java | {
"resource": ""
} |
q153074 | SQLMultiScopeRecoveryLog.takeHADBLock | train | private void takeHADBLock(Connection conn) throws SQLException, InternalLogException {
if (tc.isEntryEnabled())
Tr.entry(tc, "takeHADBLock", new java.lang.Object[] { conn, this });
Statement lockingStmt = null;
ResultSet lockingRS = null;
try {
lockingStmt = con... | java | {
"resource": ""
} |
q153075 | SQLMultiScopeRecoveryLog.updateHADBLock | train | private void updateHADBLock(Connection conn, Statement lockingStmt, ResultSet lockingRS) throws SQLException {
if (tc.isEntryEnabled())
Tr.entry(tc, "updateHADBLock", new java.lang.Object[] { conn, lockingStmt, lockingRS, this });
if (lockingRS.next()) {
// We found the HA Lock ... | java | {
"resource": ""
} |
q153076 | SQLMultiScopeRecoveryLog.getTransientSQLErrorRetryAttempts | train | private Integer getTransientSQLErrorRetryAttempts() {
if (tc.isEntryEnabled())
Tr.entry(tc, "getTransientSQLErrorRetryAttempts");
Integer transientSqlRetryAttempts = null;
try {
transientSqlRetryAttempts = AccessController.doPrivileged(
new P... | java | {
"resource": ""
} |
q153077 | SQLMultiScopeRecoveryLog.getTransientSQLErrorRetrySleepTime | train | private Integer getTransientSQLErrorRetrySleepTime() {
if (tc.isEntryEnabled())
Tr.entry(tc, "getTransientSQLErrorRetrySleepTime");
Integer transientSqlRetrySleepTime = null;
try {
transientSqlRetrySleepTime = AccessController.doPrivileged(
n... | java | {
"resource": ""
} |
q153078 | SQLMultiScopeRecoveryLog.provideServiceability | train | @Override
public void provideServiceability() {
Exception e = new Exception();
try {
FFDCFilter.processException(e, "com.ibm.ws.recoverylog.custom.jdbc.impl.SQLMultiScopeRecoveryLog.provideServiceability", "3624", this);
HashMap<Long, RecoverableUnit> rus = _recoverableUnits;... | java | {
"resource": ""
} |
q153079 | SQLMultiScopeRecoveryLog.prepareConnectionForBatch | train | private int prepareConnectionForBatch(Connection conn) throws SQLException {
conn.setAutoCommit(false);
int initialIsolation = Connection.TRANSACTION_REPEATABLE_READ;
if (_isDB2)
{
try
{
initialIsolation = conn.getTransactionIsolation();
... | java | {
"resource": ""
} |
q153080 | SQLMultiScopeRecoveryLog.closeConnectionAfterBatch | train | private void closeConnectionAfterBatch(Connection conn, int initialIsolation) throws SQLException {
if (_isDB2)
{
if (Connection.TRANSACTION_REPEATABLE_READ != initialIsolation && Connection.TRANSACTION_SERIALIZABLE != initialIsolation)
try
{
... | java | {
"resource": ""
} |
q153081 | FatStringUtils.extractRegexGroup | train | public static String extractRegexGroup(String fromContent, String regex) throws Exception {
return extractRegexGroup(fromContent, regex, 1);
} | java | {
"resource": ""
} |
q153082 | Runtime.changedPropertyValue | train | public static void changedPropertyValue (String name, String value) {
if (tc.isEntryEnabled()) SibTr.entry(tc, "changedPropertyValue");
if (value == null) value = "null"; // Ensure that the new value is non-null (here we're only using for a message insert)
if (!value.equals(seenProperties.put(name,value))... | java | {
"resource": ""
} |
q153083 | DERUTCTime.getInstance | train | public static DERUTCTime getInstance(
Object obj)
{
if (obj == null || obj instanceof DERUTCTime)
{
return (DERUTCTime)obj;
}
if (obj instanceof ASN1OctetString)
{
return new DERUTCTime(((ASN1OctetString)obj).getOctets());
}
... | java | {
"resource": ""
} |
q153084 | SchemaStore.saveSchemas | train | static void saveSchemas(MessageStore msgStore, JMFSchema[] schemas) throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "saveSchemas");
try {
// Get the SchemaStore reference, creating a new one if necessary
SchemaStoreItemStream sch... | java | {
"resource": ""
} |
q153085 | SchemaStore.loadSchemas | train | static void loadSchemas(MessageStore msgStore, long[] schemaIds) throws MessageRestoreFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "loadSchemas");
try {
// Get the SchemaStore reference, creating a new one if necessary
SchemaStoreItemStream schem... | java | {
"resource": ""
} |
q153086 | SchemaStore.getSchemaStore | train | private static SchemaStoreItemStream getSchemaStore(MessageStore msgStore) throws MessageStoreException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getSchemaStore");
// Check the local cache first.
SchemaStoreItemStream store = schemaStores.get(msgStore);
// Not... | java | {
"resource": ""
} |
q153087 | RemoteMessageRequest.getJsMessage | train | public JsMessage getJsMessage()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getJsMessage");
InvalidOperationException finalE =
new InvalidOperationException(
nls.getFormattedMessage(
"INTERNAL_MESSAGING_ERROR_CWSIP0005",
new Object[] ... | java | {
"resource": ""
} |
q153088 | RemoteMessageRequest.getRemoteEngineUuid | train | public String getRemoteEngineUuid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getRemoteEngineUuid");
String remoteUUID = _aiStream.getAnycastInputHandler().getLocalisationUuid().toString();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java | {
"resource": ""
} |
q153089 | UUID.getIPAddress | train | private static long getIPAddress()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getIPAddress");
int lower32Bits = 0;
try
{
final byte[] address = AccessController.doPrivileged(new PrivilegedExceptionAction<byte[]>() {
@Override
pu... | java | {
"resource": ""
} |
q153090 | Entity.isMandatory | train | public boolean isMandatory(String propName) {
if (mandatoryProperties == null) {
setMandatoryPropertyNames();
}
if (mandatoryProperties.contains(propName)) {
return true;
} else {
return false;
}
} | java | {
"resource": ""
} |
q153091 | Entity.isPersistentProperty | train | public boolean isPersistentProperty(String propName) {
if (transientProperties == null) {
setTransientPropertyNames();
}
if (transientProperties.contains(propName)) {
return false;
} else {
return true;
}
} | java | {
"resource": ""
} |
q153092 | ClassLoaderUtils.loadClass | train | public static Class<?> loadClass(
String name,
ClassLoader callerClassLoader) throws ClassNotFoundException
{
Class<?> clazz = null;
try
{
ClassLoader loader = getContextClassLoader();
if (loader != null)
{
clazz = loader.loadClass(name);
}
}
catch ... | java | {
"resource": ""
} |
q153093 | ClassLoaderUtils.getResource | train | public static URL getResource(
String name,
ClassLoader callerClassLoader)
{
_checkResourceName(name);
URL url = null;
ClassLoader loader = getContextClassLoader();
if (loader != null)
{
url = loader.getResource(name);
}
if (url == null)
{
if (callerClass... | java | {
"resource": ""
} |
q153094 | ClassLoaderUtils.getResourceAsStream | train | public static InputStream getResourceAsStream(
String name,
ClassLoader callerClassLoader)
{
_checkResourceName(name);
InputStream stream = null;
ClassLoader loader = getContextClassLoader();
if (loader != null)
{
stream = loader.getResourceAsStream(name);
}
if (st... | java | {
"resource": ""
} |
q153095 | Serializer.writeNumber | train | public Serializer writeNumber(Number value) throws IOException {
if (null == value) return writeNull();
if (value instanceof Float)
{
if (((Float)value).isNaN()) return writeNull();
if (Float.NEGATIVE_INFINITY == value.floatValue()) return writeNull();
if (Fl... | java | {
"resource": ""
} |
q153096 | Serializer.writeBoolean | train | public Serializer writeBoolean(Boolean value) throws IOException {
if (null == value) return writeNull();
writeRawString(value.toString());
return this;
} | java | {
"resource": ""
} |
q153097 | Serializer.rightAlignedZero | train | private String rightAlignedZero(String s, int len)
{
if (len == s.length()) return s;
StringBuffer sb = new StringBuffer(s);
while (sb.length() < len)
{
sb.insert(0, '0');
}
return sb.toString();
} | java | {
"resource": ""
} |
q153098 | Serializer.writeString | train | public Serializer writeString(String value) throws IOException {
if (null == value) return writeNull();
writer.write('"');
char[] chars = value.toCharArray();
for (int i=0; i<chars.length; i++)
{
char c = chars[i];
switch (c)
{
... | java | {
"resource": ""
} |
q153099 | Serializer.write | train | private Serializer write(Object object) throws IOException {
if (null == object) return writeNull();
if (object instanceof Number) return writeNumber((Number) object);
if (object instanceof String) return writeString((String) object);
if (object instanceof Boolean) return writeBoolean((B... | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.