code
stringlengths
73
34.1k
label
stringclasses
1 value
synchronized void deactivate() { paused = false; if (activeTask != null) { activeTask.cancel(); activeTask = null; } this.threadPool = null; }
java
synchronized void resume() { paused = false; if (activeTask == null) { activeTask = new IntervalTask(this); timer.schedule(activeTask, interval, interval); } }
java
ThroughputDistribution getThroughputDistribution(int activeThreads, boolean create) { if (activeThreads < coreThreads) activeThreads = coreThreads; Integer threads = Integer.valueOf(activeThreads); ThroughputDistribution throughput = threadStats.get(threads); if ((throughput ...
java
boolean manageIdlePool(ThreadPoolExecutor threadPool, long intervalCompleted) { // Manage the intervalCompleted count if (intervalCompleted == 0 && threadPool.getActiveCount() == 0) { consecutiveIdleCount++; } else { consecutiveIdleCount = 0; } if (conse...
java
boolean handleOutliers(ThroughputDistribution distribution, double throughput) { if (throughput < 0.0) { resetStatistics(false); return true; } else if (throughput == 0.0) { return false; } double zScore = distribution.getZScore(throughput); b...
java
int adjustPoolSize(int poolSize, int poolAdjustment) { if (threadPool == null) return poolSize; // arguably should return 0, but "least change" is safer... This happens during shutdown. int newPoolSize = poolSize + poolAdjustment; lastAction = LastAction.NONE; if (poolAdjus...
java
private String poolTputRatioData(double poolTputRatio, double poolRatio, double tputRatio, double smallerPoolTput, double largerPoolTput, int smallerPoolSize, int largerPoolSize) { StringBuilder sb = new StringBuilder(); sb.append("\n "); sb.append(String.for...
java
private boolean resolveHang(long tasksCompleted, boolean queueEmpty, int poolSize) { boolean actionTaken = false; if (tasksCompleted == 0 && !queueEmpty) { /** * When a hang is detected the controller enters hang resolution mode. * The controller will run on a short...
java
private boolean pruneData(ThroughputDistribution priorStats, double forecast) { boolean prune = false; // if forecast tput is much greater or much smaller than priorStats, we suspect // priorStats is no longer relevant, so prune it double tputRatio = forecast / priorStats.getMovingAvera...
java
private Integer getSmallestValidPoolSize(Integer poolSize, Double forecast) { Integer smallestPoolSize = threadStats.firstKey(); Integer nextPoolSize = threadStats.higherKey(smallestPoolSize); Integer pruneSize = -1; boolean validSmallData = false; while (!validSmallData && nextP...
java
private Integer getLargestValidPoolSize(Integer poolSize, Double forecast) { Integer largestPoolSize = -1; // find largest poolSize with valid data boolean validLargeData = false; while (!validLargeData) { largestPoolSize = threadStats.lastKey(); ThroughputDistrib...
java
private boolean leanTowardShrinking(Integer smallerPoolSize, int largerPoolSize, double smallerPoolTput, double largerPoolTput) { boolean shouldShrink = false; double poolRatio = largerPoolSize / smallerPoolSize; double tputRatio = largerPoolTput / smaller...
java
protected void setConfigurationProvider(ConfigurationProvider p) { if (tc.isEntryEnabled()) Tr.entry(tc, "setConfigurationProvider", p); try { ConfigurationProviderManager.setConfigurationProvider(p); // in an osgi environment we may get unconfigured and then reconf...
java
protected void setXaResourceFactory(ServiceReference<ResourceFactory> ref) { if (tc.isEntryEnabled()) Tr.entry(tc, "setXaResourceFactory, ref " + ref); _xaResourceFactoryReady = true; if (ableToStartRecoveryNow()) { // Can start recovery now try { ...
java
public void setRecoveryLogFactory(RecoveryLogFactory fac) { if (tc.isEntryEnabled()) Tr.entry(tc, "setRecoveryLogFactory, factory: " + fac, this); _recoveryLogFactory = fac; _recoveryLogFactoryReady = true; if (ableToStartRecoveryNow()) { // Can start recovery no...
java
public void setRecoveryLogService(ServiceReference<RecLogServiceImpl> ref) { if (tc.isEntryEnabled()) Tr.entry(tc, "setRecoveryLogService", ref); _recoveryLogServiceReady = true; if (ableToStartRecoveryNow()) { // Can start recovery now try { ...
java
public void shutdown(ConfigurationProvider cp) throws Exception { final int shutdownDelay; if (cp != null) { shutdownDelay = cp.getDefaultMaximumShutdownDelay(); } else { shutdownDelay = 0; } shutdown(false, shutdownDelay); }
java
protected void retrieveBundleContext() { BundleContext bc = TxBundleTools.getBundleContext(); if (tc.isDebugEnabled()) Tr.debug(tc, "retrieveBundleContext, bc " + bc); _bc = bc; }
java
protected void enqueue (final AbstractInvocation invocation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "enqueue", invocation); barrier.pass(); // Block until allowed to pass // We need to ensure that the thread processing this queue does not change the "run...
java
private AbstractInvocation dequeue() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dequeue"); AbstractInvocation invocation; synchronized (barrier) { invocation = queue.remove(0); } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
private void unlockBarrier(final int size, final Conversation.ConversationType conversationType) { if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unlockBarrier", new Object[]{Integer.valueOf(size), conversationType}); synchronized(barrier) { queueSize -= ...
java
protected boolean isEmpty () { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isEmpty"); boolean rc; synchronized (barrier) { rc = queue.isEmpty(); } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "isEmpty", rc)...
java
protected int getDepth() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getDepth"); int depth; synchronized (barrier) { depth = queue.size(); } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getDepth", depth...
java
protected boolean doesQueueContainConversation (final Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "doesQueueContainConversation", conversation); boolean rc = false; synchronized (barrier) { for (int i = 0; i < queue.size(); i++)...
java
public void sweep() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "Sweep : Stateful Beans = " + ivStatefulBeanList.size()); for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) { TimeoutElement elt = e.nextEl...
java
public void finalSweep(StatefulPassivator passivator) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "finalSweep : Stateful Beans = " + ivStatefulBeanList.size()); for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) { ...
java
public boolean beanDoesNotExistOrHasTimedOut(TimeoutElement elt, BeanId beanId) { if (elt == null) { // Not in the reaper list, but it might be in local // failover cache if not in reaper list. So check it if // there is a local SfFailoverCache object (e.g. when SFSB ...
java
public void add(StatefulBeanO beanO) { BeanId id = beanO.beanId; TimeoutElement elt = beanO.ivTimeoutElement; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "add " + beanO.beanId + ", " + elt.timeout); // LIDB2775-23.4 Begins Object ob...
java
public boolean remove(BeanId id) // d129562 { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "remove (" + id + ")"); TimeoutElement elt = null; elt = ivStatefulBeanList.remove(id); synchronized (this) { if (elt != null) { ...
java
public synchronized Iterator<BeanId> getPassivatedStatefulBeanIds(J2EEName homeName) { ArrayList<BeanId> beanList = new ArrayList<BeanId>(); for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) { TimeoutElement elt = e.nextElement(); if (hom...
java
public long getBeanTimeoutTime(BeanId beanId) { TimeoutElement elt = ivStatefulBeanList.get(beanId); long timeoutTime = 0; if (elt != null) { if (elt.timeout != 0) { timeoutTime = elt.lastAccessTime + elt.timeout; if (timeoutTime < 0) { // F743-6605.1 ...
java
public void dump() { if (dumped) { return; } try { Tr.dump(tc, "-- StatefulBeanReaper Dump -- ", this); synchronized (this) { Tr.dump(tc, "Number of objects: " + this.numObjects); Tr.dump(tc, "Number of adds: " + ...
java
public synchronized void cancel() // d583637 { ivIsCanceled = true; stopAlarm(); // F743-33394 - Wait for the sweep to finish. while (ivIsRunning) { try { wait(); } catch (InterruptedException ex) { if (TraceComponent.isAnyTrac...
java
private String getServerId() { UUID fullServerId = null; WsLocationAdmin locationService = this.wsLocationAdmin; if (locationService != null) { fullServerId = locationService.getServerId(); } if (fullServerId == null) { fullServerId = UUID.randomUUID(); //...
java
private void initialize() { if(this.initialized) { return; } if (LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.INFO)) { if (this.sessionStoreService==null) { LoggingUtil.SESSION_LOGGER_CORE.logp(Level.INFO, methodClassName, "initialize", "SessionMgrComp...
java
public boolean startInactivityTimer (Transaction t, InactivityTimer iat) { if (t != null) return ((EmbeddableTransactionImpl) t).startInactivityTimer(iat); return false; }
java
public void registerSynchronization(UOWCoordinator coord, Synchronization sync) throws RollbackException, IllegalStateException, SystemException { registerSynchronization(coord, sync, EmbeddableWebSphereTransactionManager.SYNC_TIER_NORMAL); }
java
void setDestName(String destName) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setDestName", destName); if ((null == destName) || ("".equals(destName))) { // d238447 FFDC review. More likely to be an external rathe...
java
void setDestDiscrim(String destDiscrim) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setDestDiscrim", destDiscrim); updateProperty(DEST_DISCRIM, destDiscrim); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) S...
java
protected Reliability getReplyReliability() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getReplyReliability"); Reliability result = null; if (replyReliabilityByte != -1) { result = Reliability.getReliability(replyReliabilityBy...
java
protected void setReplyReliability(Reliability replyReliability) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setReplyReliability", replyReliability); this.replyReliabilityByte = replyReliability.toByte(); if (TraceComponent.isAnyTracingEn...
java
protected boolean isProducerTypeCheck() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isProducerTypeCheck"); boolean checking = true; // We can carry out checking if there is no FRP, or the FRP has 0 size. StringArrayWrapper frp = ...
java
protected String getProducerDestName() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getProducerDestName"); String pDestName = null; // Get the forward routing path. StringArrayWrapper frp = (StringArrayWrapper) properties.get(FOR...
java
protected String getConsumerDestName() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getConsumerDestName"); String cDestName = getDestName(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
Map<String, Object> getCopyOfProperties() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCopyOfProperties"); Map<String, Object> temp = null; // Make sure no-one changes the properties underneath us. synchronized (properties) { ...
java
protected List getConvertedFRP() { List theList = null; StringArrayWrapper saw = (StringArrayWrapper) properties.get(FORWARD_ROUTING_PATH); if (saw != null) { // This list is the forward routing path for the message. theList = saw.getMsgForwardRoutingPath(); } ...
java
protected List getConvertedRRP() { List theList = null; StringArrayWrapper saw = (StringArrayWrapper) properties.get(REVERSE_ROUTING_PATH); if (saw != null) theList = saw.getCorePath(); return theList; }
java
protected SIDestinationAddress getProducerSIDestinationAddress() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getProducerSIDestinationAddress"); if (producerDestinationAddress == null) { if (TraceComponent.isAnyTra...
java
protected boolean isLocalOnly() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isLocalOnly"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "isLocalOnly", false); return false; }
java
static JmsDestinationImpl checkNativeInstance(Destination destination) throws InvalidDestinationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkNativeInstance", destination); JmsDestinationImpl castDest = null; // if the supplied d...
java
static void checkBlockedStatus(JmsDestinationImpl dest) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkBlockedStatus", dest); // get the status of the destinations blocked attribute Integer code = dest.getBlockedDestinati...
java
static JmsDestinationImpl getJMSReplyToInternal(JsJmsMessage _msg, List<SIDestinationAddress> rrp, SICoreConnection _siConn) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getJMSReplyToInternal", new Object[] { _msg, rrp, _siConn }); ...
java
String fullEncode() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "fullEncode"); String encoded = null; // If we have a cached version of the string, use it. if (cachedEncodedString != null) { encoded = cachedEncodedStr...
java
String partialEncode() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "partialEncode()"); String encoded = null; // If we have a cached version of the string, use it. if (cachedPartialEncodedString != null) { encoded = c...
java
void configureDestinationFromRoutingPath(List fwdPath) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "configureDestinationFromRoutingPath", fwdPath); // Clear the cache of the encoding string since we are changing properties. ...
java
private void clearCachedEncodings() { cachedEncodedString = null; cachedPartialEncodedString = null; for (int i = 0; i < cachedEncoding.length; i++) cachedEncoding[i] = null; }
java
public void initialiseNonPersistent(MessageProcessor messageProcessor, SIMPTransactionManager txManager) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initialiseNonPersistent", messageProcessor); //Release 1 has no Link Bundle ...
java
public void initalised() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initalised"); try { _lockManager.lockExclusive(); // Flag that we are in a started state. _started = true; // If the Neigh...
java
public void stop() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "stop"); try { _lockManager.lockExclusive(); // Flag that we are in a started state. _started = false; } finally { _lockManager.unlockExclusive(); ...
java
public void removeUnusedNeighbours() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeUnusedNeighbours"); final Enumeration neighbourList = _neighbours.getAllRecoveredNeighbours(); LocalTransaction transaction = null; try { _lockManag...
java
public void subscribeEvent( ConsumerDispatcherState subState, Transaction transaction) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "subscribeEvent", new Object[] { subState, transaction }); try { ...
java
public void topicSpaceCreatedEvent(DestinationHandler destination) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "topicSpaceCreatedEvent", destination); try { _lockManager.lockExclusive(); _neighbours.topicSpaceC...
java
public void topicSpaceDeletedEvent(DestinationHandler destination) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "topicSpaceDeletedEvent", destination); try { _lockManager.lockExclusive(); _neighbours.topicSpaceDel...
java
public void linkStarted(String busId, SIBUuid8 meUuid) throws SIIncorrectCallException, SIErrorException, SIDiscriminatorSyntaxException, SISelectorSyntaxException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "linkStarted...
java
public void cleanupLinkNeighbour(String busName) throws SIRollbackException, SIConnectionLostException, SIIncorrectCallException, SIResourceException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "cleanupLinkN...
java
public void deleteNeighbourForced( SIBUuid8 meUUID, String busId, Transaction transaction) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "deleteNeighbourForced", new Object[] { meUUID, busId, transaction...
java
public void deleteAllNeighboursForced( Transaction transaction) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "deleteAllNeighboursForced", new Object[] { transaction } ); try { _lockManager.lo...
java
public void recoverNeighbours() throws SIResourceException, MessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "recoverNeighbours"); try { // Lock the manager exclusively _lockManager.lockExclusive(); // Indicate tha...
java
Enumeration reportAllNeighbours() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "reportAllNeighbours"); // Call out to the Neighbours class to get the list of Neighbours. final Enumeration neighbours = _neighbours.getAllNeighbours(); if (TraceComponent.isAn...
java
void addMessageHandler(SubscriptionMessageHandler messageHandler) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addMessageHandler", messageHandler); final boolean inserted = _subscriptionMessagePool.add(messageHandler); // If the message wasn't inserted, then t...
java
SubscriptionMessageHandler getMessageHandler() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMessageHandler"); SubscriptionMessageHandler messageHandler = (SubscriptionMessageHandler) _subscriptionMessagePool.remove(); if (messageHandler == null) ...
java
private void createProxyListener() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createProxyListener"); // Create the proxy listener instance _proxyListener = new NeighbourProxyListener(_neighbours, this); /* * Now we can cr...
java
public final Neighbour getNeighbour(SIBUuid8 neighbourUUID, boolean includeRecovered) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getNeighbour", new Object[] { neighbourUUID, Boolean.valueOf(includeRecovered)}); Neighbour neighbour = _neighbours.getNeighbour(...
java
public void getSharedLock(int requestId) { if (tc.isEntryEnabled()) Tr.entry(tc, "getSharedLock",new Object[] {this,new Integer(requestId)}); Thread currentThread = Thread.currentThread(); Integer count = null; synchronized(this) { // If this thread does not have any existing shared locks ...
java
public void releaseSharedLock(int requestId) throws NoSharedLockException { if (tc.isEntryEnabled()) Tr.entry(tc, "releaseSharedLock",new Object[]{this,new Integer(requestId)}); Thread currentThread = Thread.currentThread(); int newValue = 0; synchronized(this) { Integer count = (Integer)_...
java
public boolean handleHTTP2AlpnConnect(HttpInboundLink link) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "handleHTTP2AlpnConnect entry"); } initialHttpInboundLink = link; Integer streamID = new Integer(0); H2VirtualConnectionImp...
java
public boolean handleHTTP2UpgradeRequest(Map<String, String> headers, HttpInboundLink link) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "handleHTTP2UpgradeRequest entry"); } //1) Send the 101 response //2) Setup the new streams and Link...
java
protected void updateHighestStreamId(int proposedHighestStreamId) throws ProtocolException { if ((proposedHighestStreamId & 1) == 0) { // even number, server-initialized stream if (proposedHighestStreamId > highestLocalStreamId) { highestLocalStreamId = proposedHighestStreamId; ...
java
@Override public void destroy() { httpInboundChannel.stop(50); initialVC = null; frameReadProcessor = null; h2MuxReadCallback = null; h2MuxTCPConnectionContext = null; h2MuxTCPReadContext = null; h2MuxTCPWriteContext = null; localConnectionSettings = ...
java
public void incrementConnectionWindowUpdateLimit(int x) throws FlowControlException { if (!checkIfGoAwaySendingOrClosing()) { writeQ.incrementConnectionWindowUpdateLimit(x); H2StreamProcessor stream; for (Integer i : streamTable.keySet()) { stream = streamTabl...
java
public void closeStream(H2StreamProcessor p) { // only place that should be dealing with the closed stream table, // be called by multiple stream objects at the same time, so sync access synchronized (streamOpenCloseSync) { if (p.getId() != 0) { writeQ.removeNodeFromQ...
java
public H2StreamProcessor getStream(int streamID) { H2StreamProcessor streamProcessor = null; streamProcessor = streamTable.get(streamID); return streamProcessor; }
java
public void remove(BeanId beanId, boolean removeFromFailoverCache) throws RemoteException //LIDB2018-1 { // LIDB2018-1 begins if (ivStatefulFailoverCache == null || !ivStatefulFailoverCache.beanExists(beanId)) { //PK69093 - beanStore.remove will access a file,...
java
private byte[] getCompressedBytes(Object sb, long lastAccessTime, Object exPC) throws IOException // d367572.7 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) ...
java
public Map<String, Map<String, Field>> getPassivatorFields(final BeanMetaData bmd) // d648122 { // Volatile data race. We do not care if multiple threads do the work // since they will all get the same result. Map<String, Map<String, Field>> result = bmd.ivPassivatorFields; if (resu...
java
public Token removeFirst(Transaction transaction) throws ObjectManagerException { Iterator iterator = entrySet().iterator(); List.Entry entry = (List.Entry) iterator.next(transaction); iterator.remove(transaction); return entry.getValue(); }
java
public void postProcessMatches(DestinationHandler topicSpace, String topic, Object[] results, int index) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "postProcessMatches","resul...
java
private static void createInstance() throws Exception { if (tc.isEntryEnabled()) SibTr.entry(tc, "createInstance", null); try { Class cls = Class.forName(JsConstants.JS_ADMIN_FACTORY_CLASS); _instance = (JsAdminFactory) cls.newInstance(); } catch (Exception e...
java
public SIBusMessage[] readSet(SIMessageHandle[] msgHandles) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIIncorrectCallException, SIMessageN...
java
public SIBusMessage[] readAndDeleteSet(SIMessageHandle[] msgHandles, SITransaction tran) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededExcepti...
java
private SIBusMessage[] _readAndDeleteSet(SIMessageHandle[] msgHandles, SITransaction tran) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededExcep...
java
public static Object[] generateMsgParms(Object parm1, Object parm2, Object parm3, Object parm4, Object parm5, Object parm6, Object parm7) { Object parms[] = new Object[7]; parms[0] = parm1; parms[1] = parm2; parms[2] = parm3; parms[3] =...
java
private void scan() { if (ivScanned) { return; } ivScanned = true; final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); for (Class<?> klass = ivClass; klass != null && klass != Object.class; klass = klass.getSuperclass()) { if (isTraceOn && (t...
java
public Method getBridgeMethodTarget(Method method) { scan(); if (ivBridgeMethodMetaData == null) { return null; } BridgeMethodMetaData md = ivBridgeMethodMetaData.get(getNonPrivateMethodKey(method)); return md == null ? null : md.ivTarget; }
java
public boolean isInElementSet(Set<String> skipList, Class<?> excClass) throws ClassNotFoundException { //String mName = "isInElementSet(Set<String> skipList, Class<?> excClass)"; boolean retVal = false; ClassLoader tccl = Thread.currentThread().getContextClassLoader(); for(String value : skipList) { Class<?>...
java
public void updated(Dictionary<?, ?> props) { String value = (String) props.get(PROP_IDNAME); if (null != value) { this.idName = value.trim(); } value = (String) props.get(PROP_USE_URLS); if (null != value && Boolean.parseBoolean(value.trim())) { this.urlR...
java
@Trivial @Override public synchronized void run() { clientSupport = null; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "run : cached ClientSupport reference cleared"); } }
java
public boolean isProtected() { List<String> requiredRoles = null; return !webRequest.isUnprotectedURI() && webRequest.getMatchResponse() != null && (requiredRoles = webRequest.getRequiredRoles()) != null && !requiredRoles.isEmpty(); }
java
@Override protected Object performInvocation(Exchange exchange, Object serviceObject, Method m, Object[] paramArray) throws Exception { paramArray = insertExchange(m, paramArray, exchange); return this.libertyJaxRsServerFactoryBean.performInvocation(exchange, serviceObject, m, paramArray); }
java
@FFDCIgnore(value = { SecurityException.class, IllegalAccessException.class, IllegalArgumentException.class, InvocationTargetException.class }) private void callValidationMethod(String methodName, Object[] paramValues, Object theProvider) { if (theProvider == null) { return; } M...
java