code
stringlengths
73
34.1k
label
stringclasses
1 value
private LaunchArguments createLaunchArguments(String[] args, Map<String, String> initProps) { List<String> cmdArgs = processBatchFileArgs(new ArrayList<String>(Arrays.asList(args))); return new LaunchArguments(cmdArgs, initProps, isClient()); }
java
protected ReturnCode handleActions(BootstrapConfig bootProps, LaunchArguments launchArgs) { ReturnCode rc = launchArgs.getRc(); switch (rc) { case OK: rc = new KernelBootstrap(bootProps).go(); break; case CREATE_ACTION: // Use ini...
java
protected void findLocations(BootstrapConfig bootProps, String processName) { // Check for environment variables... String userDirStr = getEnv(BootstrapConstants.ENV_WLP_USER_DIR); String serversDirStr = getEnv(bootProps.getOutputDirectoryEnvName()); // Check for the variable calculated...
java
void send(AbstractMessage aMessage, int priority) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "send", new Object[] {this, aMessage, new Integer(priority), ...
java
public ProtocolVersion getVersion() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getVersion"); // The ProtocolVersion to be returned ProtocolVersion version = ProtocolVersion.UNKNOWN; // Get the MetaData out of the connection ConnectionMetaData co...
java
@Override protected Object performInvocation(Exchange exchange, final Object serviceObject, Method m, Object[] paramArray) throws Exception { // This retrieves the appropriate method from the wrapper class m = serviceObject.getClass().getMethod(m.getName(), m.g...
java
private String getUserAccessId(String userName) { try { SecurityService securityService = securityServiceRef.getService(); UserRegistryService userRegistryService = securityService.getUserRegistryService(); UserRegistry userRegistry = userRegistryService.getUserRegistry(); ...
java
private String getGroupAccessId(String groupName) { try { SecurityService securityService = securityServiceRef.getService(); UserRegistryService userRegistryService = securityService.getUserRegistryService(); UserRegistry userRegistry = userRegistryService.getUserRegistry(); ...
java
private Object getSavedState(FacesContext facesContext) { Object encodedState = facesContext.getExternalContext().getRequestParameterMap().get(STANDARD_STATE_SAVING_PARAM); if(encodedState==null || (((String) encodedState).length() == 0)) { return null; } ...
java
@Override public boolean isPostback(FacesContext context) { return context.getExternalContext().getRequestParameterMap().containsKey(ResponseStateManager.VIEW_STATE_PARAM); }
java
public void initialise(Identifier rootId, boolean enableCache) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) tc.entry(cclass, "initialise", new Object[] {rootId, new Boolean(enableCache)}); switch (rootId.getType()) { case Selector.UNKNOWN : case Selector.OBJECT : ...
java
public synchronized void addTarget( Conjunction conjunction, MatchTarget object) throws MatchingException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) tc.entry( this,cclass, "addTarget", new Object[] { conjunction, object }); // Deal with Conjun...
java
private CacheEntry getCacheEntry(Object value, boolean create) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) tc.entry( this,cclass, "getCacheEntry", new Object[] { value, new Boolean(create), matchCache }); CacheEntry e = (CacheEntry) matchCache.get(value);...
java
public boolean shouldRetain(Object key, Object val) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) tc.entry(this,cclass, "shouldRetain", new Object[] { key, val }); CacheEntry e = (CacheEntry) val; if (e.exactMatcher != null) { if (TraceComponent.isAnyTracingEnabled() &...
java
public void statistics(PrintWriter wtr) { int truePessimisticGets = pessimisticGets - puntsDueToCache; wtr.println( "Exact puts: " + exactPuts + ", Wildcard generation: " + matchTreeGeneration + ", Wildcard puts: " + wildPuts + ", Wildcard-Cache-hit gets: ...
java
public synchronized void clear(Identifier rootId, boolean enableCache) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) tc.entry(this,cclass, "clear"); matchTree = null; matchTreeGeneration = 0; subExpr.clear(); // Now reinitialise the matchspace initialise(rootId,...
java
public SICoreConnection getConnection() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getConnection"); c...
java
protected void checkAlreadyClosed() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "checkAlreadyClosed"); if (isClosed()) throw new SISessionUnavailableException( nls.getFormattedMessage("SESSION_CL...
java
public SIDestinationAddress getDestinationAddress() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getDestinationAddress"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getDestinationAddress", destinationAddress); ...
java
public TrmClientBootstrapRequest createNewTrmClientBootstrapRequest() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmClientBootstrapRequest"); TrmClientBootstrapRequest msg = null; try { msg = new TrmClientBootstrapRe...
java
public TrmClientBootstrapReply createNewTrmClientBootstrapReply() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmClientBootstrapReply"); TrmClientBootstrapReply msg = null; try { msg = new TrmClientBootstrapReplyImpl(...
java
public TrmClientAttachRequest createNewTrmClientAttachRequest() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmClientAttachRequest"); TrmClientAttachRequest msg = null; try { msg = new TrmClientAttachRequestImpl(); ...
java
public TrmClientAttachRequest2 createNewTrmClientAttachRequest2() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmClientAttachRequest2"); TrmClientAttachRequest2 msg = null; try { msg = new TrmClientAttachRequest2Impl(...
java
public TrmClientAttachReply createNewTrmClientAttachReply() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmClientAttachReply"); TrmClientAttachReply msg = null; try { msg = new TrmClientAttachReplyImpl(); } ca...
java
public TrmMeConnectRequest createNewTrmMeConnectRequest() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmMeConnectRequest"); TrmMeConnectRequest msg = null; try { msg = new TrmMeConnectRequestImpl(); } catch (...
java
public TrmMeConnectReply createNewTrmMeConnectReply() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmMeConnectReply"); TrmMeConnectReply msg = null; try { msg = new TrmMeConnectReplyImpl(); } catch (MessageDec...
java
public TrmMeLinkRequest createNewTrmMeLinkRequest() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmMeLinkRequest"); TrmMeLinkRequest msg = null; try { msg = new TrmMeLinkRequestImpl(); } catch (MessageDecodeFa...
java
public TrmMeLinkReply createNewTrmMeLinkReply() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmMeLinkReply"); TrmMeLinkReply msg = null; try { msg = new TrmMeLinkReplyImpl(); } catch (MessageDecodeFailedExcept...
java
public TrmMeBridgeRequest createNewTrmMeBridgeRequest() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmMeBridgeRequest"); TrmMeBridgeRequest msg = null; try { msg = new TrmMeBridgeRequestImpl(); } catch (Messa...
java
public TrmMeBridgeReply createNewTrmMeBridgeReply() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmMeBridgeReply"); TrmMeBridgeReply msg = null; try { msg = new TrmMeBridgeReplyImpl(); } catch (MessageDecodeFa...
java
public TrmMeBridgeBootstrapRequest createNewTrmMeBridgeBootstrapRequest() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmMeBridgeBootstrapRequest"); TrmMeBridgeBootstrapRequest msg = null; try { msg = new TrmMeBridgeB...
java
public TrmMeBridgeBootstrapReply createNewTrmMeBridgeBootstrapReply() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmMeBridgeBootstrapReply"); TrmMeBridgeBootstrapReply msg = null; try { msg = new TrmMeBridgeBootstrap...
java
public TrmFirstContactMessage createInboundTrmFirstContactMessage(byte rawMessage[], int offset, int length) throws MessageDecodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createInboundTrmFir...
java
public TrmRouteData createTrmRouteData() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createTrmRouteData"); TrmRouteData msg = null; try { msg = new TrmRouteDataImpl(MfpConstants.CONSTRUCTOR_NO_OP); } catch (MessageDeco...
java
public void eventRestored() throws SevereMessageStoreException { super.eventRestored(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "eventRestored"); try { NonLockingCursor cursor = newNonLockingItemCursor(null); AbstractItem item = cursor.next(); ...
java
void addSchema(JMFSchema schema, Transaction tran) throws MessageStoreException { addItem(new SchemaStoreItem(schema), tran); }
java
JMFSchema findSchema(long schemaId) throws MessageStoreException { Long storeId = schemaIndex.get(Long.valueOf(schemaId)); if (storeId != null) { AbstractItem item = findById(storeId.longValue()); return ((SchemaStoreItem)item).getSchema(); } else throw new MessageStoreException("Schema no...
java
void addToIndex(SchemaStoreItem item) throws NotInMessageStore { schemaIndex.put(item.getSchema().getLongID(), Long.valueOf(item.getID())); item.setStream(this); }
java
void removeFromIndex(SchemaStoreItem item) { schemaIndex.remove(item.getSchema().getLongID()); item.setStream(null); }
java
public synchronized WSPKCSInKeyStore insert(String tokenType, String tokenlib, String tokenPwd, boolean askeystore, String keyStoreProvider) throws Exception { // check to see if the library has been initialized already;by comparing // the elements in the enumerations // perhaps a java 2 sec mgr...
java
private WSPKCSInKeyStore insertedAlready(String tokenlib) { WSPKCSInKeyStore pKS = null; WSPKCSInKeyStore rc = null; Enumeration<WSPKCSInKeyStore> e = theV.elements(); while (null == rc && e.hasMoreElements()) { pKS = e.nextElement(); if (tokenlib.equalsIgnoreCa...
java
public InputStream openKeyStore(String fileName) throws MalformedURLException, IOException { InputStream fis = null; URL urlFile = null; File kfile = null; try { kfile = new File(fileName); } catch (NullPointerException e) { throw new IOException(); ...
java
private void addAlternateNamedFacesConfig(Container moduleContainer, ArrayList<String> classList) { try { WebApp webapp = moduleContainer.adapt(WebApp.class); //If null, assume there was no web.xml, so no need to look for ContextParams in it. if (webapp == null) { ...
java
public static QName getServiceQName(ClassInfo classInfo, String seiClassName, String targetNamespace) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass(classInfo, "Service QName"); if (annotationInfo == null) { return null; } //serviceName can only be defined in i...
java
public static QName getPortQName(ClassInfo classInfo, String seiClassName, String targetNamespace) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass(classInfo, "Port QName"); if (annotationInfo == null) { return null; } boolean webServiceProviderAnnotation = isPro...
java
public static boolean isProvider(ClassInfo classInfo) { AnnotationInfo annotationInfo = classInfo.getAnnotation(JaxWsConstants.WEB_SERVICE_ANNOTATION_NAME); if (annotationInfo == null) { annotationInfo = classInfo.getAnnotation(JaxWsConstants.WEB_SERVICE_PROVIDER_ANNOTATION_NAME); ...
java
public static String getImplementedTargetNamespace(ClassInfo classInfo) { String defaultValue = getNamespace(classInfo, null); if (StringUtils.isEmpty(defaultValue)) { defaultValue = JaxWsConstants.UNKNOWN_NAMESPACE; } AnnotationInfo annotationInfo = getAnnotationInfoFromCla...
java
public static String getInterfaceTargetNamespace(ClassInfo classInfo, String seiClassName, String implementedTargetNamespace, InfoStore infoStore) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass(classInfo, JaxWsConstants.TARGETNAMESPACE_ATTRIBUTE); if (annotationInfo == null) { ...
java
public static String getWSDLLocation(ClassInfo classInfo, String seiClassName, InfoStore infoStore) { return getStringAttributeFromAnnotation(classInfo, seiClassName, infoStore, JaxWsConstants.WSDLLOCATION_ATTRIBUTE, "", ""); }
java
private static String getStringAttributeFromWebServiceProviderAnnotation(AnnotationInfo annotationInfo, String attribute, String defaultForServiceProvider) { //the two values can not be found in webserviceProvider annotation so just re...
java
private static String getStringAttributeFromAnnotation(ClassInfo classInfo, String seiClassName, InfoStore infoStore, String attribute, String defaultForService, String defaultForServiceProvider) { AnnotationInfo annotationInfo = getAnnotationInfoFromCl...
java
public static String getPortComponentName(ClassInfo classInfo, String seiClassName, InfoStore infoStore) { String defaultForServiceProvider = classInfo.getName(); String defaultForService = getClassName(classInfo.getName()); return getStringAttributeFromAnnotation(classInfo, seiClassName, infoSt...
java
private static QName getPortQName(ClassInfo classInfo, String namespace, String wsName, String wsPortName, String suffix) { String portName; if (wsPortName != null && !wsPortName.isEmpty()) { portName = wsPortName.trim(); } else { if (wsName != null && !wsName.isEmpty()) ...
java
public static boolean matchesQName(QName regQName, QName targetQName, boolean ignorePrefix) { if (regQName == null || targetQName == null) { return false; } if ("*".equals(getQNameString(regQName))) { return true; } // if the name space or the prefix is no...
java
public static String getProtocolByToken(String token, boolean returnDefault) { if (StringUtils.isEmpty(token) && returnDefault) { return JaxWsConstants.SOAP11HTTP_BINDING; } if (JaxWsConstants.SOAP11_HTTP_TOKEN.equals(token)) { return JaxWsConstants.SOAP11HTTP_BINDING; ...
java
@Override public boolean addSync() throws ResourceException { if (tc.isEntryEnabled()) { Tr.entry(this, tc, "addSync"); } UOWCoordinator uowCoord = mcWrapper.getUOWCoordinator(); if (uowCoord == null) { IllegalStateException e = new IllegalStateException("a...
java
private void taskProperties(RESTRequest request, RESTResponse response) { String taskID = RESTHelper.getRequiredParam(request, APIConstants.PARAM_TASK_ID); String taskPropertiesText = getMultipleRoutingHelper().getTaskProperties(taskID); OutputHelper.writeTextOutput(response, taskPropertiesText...
java
private void taskProperty(RESTRequest request, RESTResponse response) { String taskID = RESTHelper.getRequiredParam(request, APIConstants.PARAM_TASK_ID); String property = RESTHelper.getRequiredParam(request, APIConstants.PARAM_PROPERTY); String taskPropertyText = getMultipleRoutingHelper().get...
java
public static DERUTF8String getInstance( Object obj) { if (obj == null || obj instanceof DERUTF8String) { return (DERUTF8String)obj; } if (obj instanceof ASN1OctetString) { return new DERUTF8String(((ASN1OctetString)obj).getOctets()); ...
java
public static JsMessagingEngine[] registerMessagingEngineListener( final SibRaMessagingEngineListener listener, final String busName) { final String methodName = "registerMessagingEngineListener"; if (TRACE.isEntryEnabled()) { SibTr.entry(TRACE, methodName, new Object[] { listen...
java
public static void deregisterMessagingEngineListener( final SibRaMessagingEngineListener listener, final String busName) { final String methodName = "deregisterMessagingEngineListener"; if (TRACE.isEntryEnabled()) { SibTr.entry(TRACE, methodName, new Object[] { listener, busName...
java
public static JsMessagingEngine[] getMessagingEngines(final String busName) { final String methodName = "getMessagingEngines"; if (TRACE.isEntryEnabled()) { SibTr.entry(TRACE, methodName, busName); } final JsMessagingEngine[] result; synchronized (MESSAGING_ENGINES...
java
public void engineReloaded(Object objectSent) { final JsMessagingEngine engine = (JsMessagingEngine)objectSent; final String methodName = "engineReloaded"; if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, engine); } RELOADING_MESSAGING_ENGINES.r...
java
private static Set getListeners(final String busName) { final String methodName = "getListeners"; if (TRACE.isEntryEnabled()) { SibTr.entry(TRACE, methodName, busName); } final Set listeners = new HashSet(); synchronized (MESSAGING_ENGINE_LISTENERS) { ...
java
private static boolean isTruePartitionOfTopLevelStep(Step step) { Partition partition = step.getPartition(); if (partition.getMapper() != null ) { if (logger.isLoggable(Level.FINER)) { logger.logp(Level.FINER, CLASSNAME, "validatePartition", "Found partitioned step with mapper" , step); } return tru...
java
protected ClassConfigData processClassConfiguration(final InputStream inputStream) throws IOException { if (introspectAnnotations == false) { return new ClassConfigData(inputStream); } ClassReader cr = new ClassReader(inputStream); ClassWriter cw = new ClassWriter(cr, 0); //...
java
protected ClassInfo mergeClassConfigInfo(ClassInfo classInfo) { // Update introspected class information from introspected package PackageInfo packageInfo = configFileParser.getPackageInfo(classInfo.getInternalPackageName()); if (packageInfo == null) { packageInfo = getPackageInfo(cl...
java
private static void printUsageMessage() { System.out.println("Description:"); System.out.println(" StaticTraceInstrumentation can modify classes"); System.out.println(" in place to add calls to a trace framework that will"); System.out.println(" delegate to JSR47 logging or WebSphere ...
java
public static LibertyVersionRange valueOf(String versionRangeString) { if (versionRangeString == null) { return null; } Matcher versionRangeMatcher = VERSION_RANGE_PATTERN.matcher(versionRangeString); if (versionRangeMatcher.matches()) { // Have a min and max so p...
java
protected void detach() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "detach"); // Cleanly dispose of the getCursor getCursor.finished(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "detach"); }
java
protected void discard() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "discard"); // Discard any old cursor if(getCursor != null) { getCursor.finished(); getCursor = null; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnab...
java
@Override public void registerInterceptors(EjbDescriptor<?> ejbDescriptor, InterceptorBindings interceptorBindings) { if (interceptorBindings != null) { final Collection<Interceptor<?>> interceptors = interceptorBindings.getAllInterceptors(); if (interceptors != null) { ...
java
protected void updateSubjectWithTemporarySubjectContents() { subject.getPrincipals().addAll(temporarySubject.getPrincipals()); subject.getPublicCredentials().addAll(temporarySubject.getPublicCredentials()); subject.getPrivateCredentials().addAll(temporarySubject.getPrivateCredentials()); }
java
@Override public int size(boolean includeDiskCache) { int mappings = 0; mappings = cache.getNumberCacheEntries(); if (includeDiskCache) { if (cache instanceof CacheProviderWrapper) { CacheProviderWrapper cpw = (CacheProviderWrapper) cache; if (cp...
java
@Override public void addAlias(Object key, Object[] aliasArray) { final String methodName = "addAlias(key, aliasArray)"; functionNotAvailable(methodName); }
java
@Override public void invalidate(Object key, boolean wait, boolean checkPreInvalidationListener) { final String methodName = "invalidate(key, wait, checkPreInvalidationListener)"; functionNotAvailable(methodName); }
java
public void setWsLogHandler(String id, WsLogHandler ref) { if (id != null && ref != null) { //There can be many Reader locks, but only one writer lock. //This ReaderWriter lock is needed to avoid duplicate messages when the class is passing on EarlyBuffer messages to the new WsLogHandler...
java
public long getByteBufferAddress(ByteBuffer byteBuffer) { /* * This only works for DIRECT byte buffers. Direct ByteBuffers have a field * called "address" which * holds the physical address of the start of the buffer contents in native * memory. * This method obtains...
java
public long getSocketChannelHandle(SocketChannel socketChannel) { StartPrivilegedThread privThread = new StartPrivilegedThread(socketChannel); return AccessController.doPrivileged(privThread); }
java
public void cleanThreadLocals(Thread thread) { try { svThreadLocalsField.set(thread, null); } catch (IllegalAccessException e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "Unable to clear java.lang.ThreadLocals: ", e); }...
java
private boolean hasConfigChanged(Document newConfig) { NodeList list = newConfig.getElementsByTagName("*"); int currentHash = nodeListHashValue(list); // Either this is the first time checking the config or there has been some change if (this.previousConfigHash == null || curre...
java
@Override public URLConnection openConnection(URL url) throws IOException { String path = url.getPath(); int resourceDelimiterIndex = path.indexOf("!/"); URLConnection conn; if (resourceDelimiterIndex == -1) { // The "jar" protocol requires that the path contain an entr...
java
public void reconstitute( int startMode, HashMap<String, Object> durableSubscriptionsTable) throws SIIncorrectCallException, SIDiscriminatorSyntaxException, SISelectorSyntaxException...
java
public ConsumerDispatcher createSubscriptionConsumerDispatcher(ConsumerDispatcherState subState) throws SIDiscriminatorSyntaxException, SISelectorSyntaxException, SIResourceException, SISelectorSyntaxException, ...
java
public ConsumableKey attachToLocalDurableSubscription( LocalConsumerPoint consumerPoint, ConsumerDispatcherState subState) throws SIDurableSubscriptionMismatchExcep...
java
public SubscriptionIndex getSubscriptionIndex() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getSubscriptionIndex"); SibTr.exit(tc, "getSubscriptionIndex", _subscriptionIndex); } return _subscriptionIndex; }
java
private boolean checkDurableSubStillValid(DurableSubscriptionItemStream durableSub) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkDurableSubStillValid", durableSub); boolean valid = false; ...
java
public MessageItem retrieveMessageFromItemStream(long msgStoreID) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "retrieveMessageFromItemStream", new Long(msgStoreID)); MessageItem msgItem = null; ...
java
@SuppressWarnings({ "unchecked", "rawtypes" }) public static Object getRegisterableMBean(ServiceReference<?> serviceReference, Object mBean) throws NotCompliantMBeanException { // String methodName = "getRegisterableMBean"; // System.out.println(methodName + ": ENTER: MBean [ " ...
java
private void traceJndiBegin(String methodname, Object... objs) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { String providerURL = "UNKNOWN"; try { providerURL = (String) getEnvironment().get(Context.PROVIDER_URL); } catch (NamingExceptio...
java
private void traceJndiReturn(String methodname, long duration, Object... objs) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, JNDI_CALL + methodname + " [" + duration + " ms]", objs); } }
java
private void traceJndiThrow(String methodname, long duration, NamingException ne) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, JNDI_CALL + methodname + " [" + duration + " ms] " + ne.getMessage(), ne); } }
java
public void encodeChildren(FacesContext context, UIComponent component) throws IOException { if (context == null) { throw new NullPointerException("context"); } if (component == null) { throw new NullPointerException("component"); } if...
java
void registerCallback(AsynchConsumerCallback callback) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "registerCallback", callback); asynchConsumerCallback = callback; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "registe...
java
void processMsgs(LockedMessageEnumeration msgEnumeration, ConsumerSession consumerSession) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "processMsgs", new Object[] { msgEnumeration, consumerSession }); // Remember that a callback is running asynchConsumer...
java
boolean isAsynchConsumerRunning() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "isAsynchConsumerRunning"); SibTr.exit(tc, "isAsynchConsumerRunning", new Boolean(asynchConsumerRunning)); } return asynchConsumerRunning; }
java
private long sendMessage(SIBusMessage msg) throws OperationFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "sendMessage", msg); long retValue = 0; // If we are at FAP9 or above we can do a 'chunked' send of the message in sep...
java
@Override public void reset() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if...
java
@Override public void flush(int requestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "flush", "" + requestNumber); // Locate the browser session to use. BrowserSession browserSession = mainConsumer.getBrowserSession(); S...
java
@Override public void close(int requestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close", "" + requestNumber); BrowserSession browserSession = mainConsumer.getBrowserSession(); try { browserSession.close(); ...
java