code
stringlengths
73
34.1k
label
stringclasses
1 value
public static void log(Logger logger, Level level, String message, Throwable throwable, Object parameter) { if (logger.isLoggable(level)) { final String formattedMessage = ...
java
private static String localize(Logger logger, String message) { ResourceBundle bundle = logger.getResourceBundle(); try { return bundle != null ? bundle.getString(message) : message; } catch (MissingResourceException ex) { //string not in the bundle return mes...
java
public synchronized int add(Object value) throws IdTableFullException { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "add", value); if (value == null) throw new SIErrorException(nls.getFormattedMessage("IDTABLE_INTERNAL_SICJ0050", null, "IDTABLE_INTERNAL_SICJ0050")); // D226232 int ...
java
public synchronized Object remove(int id) throws IllegalArgumentException { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "remove", ""+id); Object returnValue = get(id); if (returnValue != null) table[id] = null; if (id < lowestPossibleFree) lowestPossibleFree = id; ...
java
public synchronized Object get(int id) throws IllegalArgumentException { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "get", ""+id); if ((id < 1) || (id > maxSize)) throw new SIErrorException(nls.getFormattedMessage("IDTABLE_INTERNAL_SICJ0050", null, "IDTABLE_INTERNAL_SICJ0050")); // D226232 ...
java
private void growTable() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "growTable"); int newSize = Math.min(table.length+TABLE_GROWTH_INCREMENT, maxSize); if (tc.isDebugEnabled()) SibTr.debug(this, tc, "existing size="+table.length+" new size="+newSize); Object[] newTable = new Object[ne...
java
private int findFreeSlot() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "findFreeSlot"); boolean foundFreeSlot = false; int index = lowestPossibleFree; int largestIndex = Math.min(highWaterMark, table.length-1); while ((!foundFreeSlot) && (index <= largestIndex)) { ...
java
public void init(HttpInboundConnection conn, SessionManager sessMgr) { this.connection = conn; this.request = conn.getRequest(); this.sessionData = new SessionInfo(this, sessMgr); }
java
public void clear() { this.attributes.clear(); this.queryParameters = null; this.inReader = null; this.streamActive = false; this.inStream = null; this.encoding = null; this.sessionData = null; this.strippedURI = null; this.srvContext = null; ...
java
private void parseQueryFormData() throws IOException { int size = getContentLength(); if (0 == size) { // no body present this.queryParameters = new HashMap<String, String[]>(); return; } else if (-1 == size) { // chunked encoded perhaps ...
java
private Map<String, String[]> parseQueryString(String data) { Map<String, String[]> map = new Hashtable<String, String[]>(); if (null == data) { return map; } String valArray[] = null; char[] chars = data.toCharArray(); int key_start = 0; for (int i = ...
java
private void mergeQueryParams(Map<String, String[]> urlParams) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "mergeQueryParams: " + urlParams); } for (Entry<String, String[]> entry : urlParams.entrySet()) { String key = entry.getKey(); ...
java
private String getCipherSuite() { String suite = null; SSLContext ssl = this.connection.getSSLContext(); if (null != ssl) { suite = ssl.getSession().getCipherSuite(); } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "getCip...
java
private X509Certificate[] getPeerCertificates() { X509Certificate[] rc = null; SSLContext ssl = this.connection.getSSLContext(); if (null != ssl && (ssl.getNeedClientAuth() || ssl.getWantClientAuth())) { try { Object[] objs = ssl.getSession().getPeerCertificates(); ...
java
public void removeTarget(Object key) throws MatchingException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeTarget", new Object[]{key}); // Remove from the HashMap, with synch, there may be other accessors synchronized(_...
java
public void removeConsumerPointMatchTarget(DispatchableKey consumerPointData) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeConsumerPointMatchTarget", consumerPointData); // Remove the consumer point from the matchspace try { removeTarget(consum...
java
public ControllableProxySubscription addPubSubOutputHandlerMatchTarget( PubSubOutputHandler handler, SIBUuid12 topicSpace, String discriminator, boolean foreignSecuredProxy, String MESubUserId) throws SIDiscriminatorSyntaxException, SISelectorSyntaxException { if (TraceComponen...
java
public void removeConsumerDispatcherMatchTarget(ConsumerDispatcher consumerDispatcher, SelectionCriteria selectionCriteria) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "removeConsumerDispatcherMatchTarget", new Object[] {consumerDispatcher, sel...
java
public void removePubSubOutputHandlerMatchTarget( ControllableProxySubscription sub) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removePubSubOutputHandlerMatchTarget", sub); // Remove the PubSub OutputHandler from the matchspace try { removeTarg...
java
private String buildSendTopicExpression( String destName, String discriminator) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "buildSendTopicExpression", new Object[] { destName, discriminator }); String combo = null; if (discri...
java
public String buildAddTopicExpression( String destName, String discriminator) throws SIDiscriminatorSyntaxException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "buildAddTopicExpression", new Object[] { destName, discriminator }); S...
java
public ArrayList getAllCDMatchTargets() { ArrayList consumerDispatcherList; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getAllCDMatchTargets"); // Get from the HashMap, with synch, there may be other accessors synchronized(_targets) { consumerDis...
java
public ArrayList getAllCDMatchTargetsForTopicSpace(String tSpace) { ArrayList consumerDispatcherList; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getAllCDMatchTargetsForTopicSpace"); // Get from the HashMap, with synch, there may be other accessors synchro...
java
public ArrayList getAllPubSubOutputHandlerMatchTargets() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getAllPubSubOutputHandlerMatchTargets"); ArrayList outputHandlerList; // Get from the HashMap, with synch, there may be other accessors synchronized(_tar...
java
public void addTopicAcl(SIBUuid12 destName, TopicAcl acl) throws SIDiscriminatorSyntaxException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addTopicAcl", new Object[] { destName, acl }); String discriminator = null; // Postpend # wildcard to the ful...
java
public void removeAllTopicAcls() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeAllTopicAcls"); ArrayList topicAclList = null; try { // Remove from the HashMap, with synch, there may be other accessors synchronized(_targets) { ...
java
public void removeApplicationSignatureMatchTarget(ApplicationSignature appSignature) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeApplicationSignatureMatchTarget", appSignature); // Remove the consumer point from the matchspace try { removeTarg...
java
@Reference(policy = DYNAMIC, policyOption = GREEDY, cardinality = MANDATORY) protected void setProvider(MetricRecorderProvider provider) { metricProvider = provider; }
java
synchronized public void recover() { if (tc.isEntryEnabled()) Tr.entry(tc, "recover", this); final int state = _status.getState(); if (_subordinate) { // For a subordinate, first check whether the global outcome is known locally. switch (state) { ...
java
@Override public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { if (tc.isEntryEnabled()) Tr.entry(tc, "commit (SPI)"); try { processCommit(); } catch (HeuristicH...
java
public void commit_one_phase() throws RollbackException, HeuristicMixedException, HeuristicHazardException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { if (tc.isEntryEnabled()) Tr.entry(tc, "commit_one_phase"); // This call is only valid for a sin...
java
@Override public void rollback() throws IllegalStateException, SystemException { if (tc.isEntryEnabled()) Tr.entry(tc, "rollback (SPI)"); final int state = _status.getState(); // // We are only called in this method for superiors. // if (state == Transac...
java
protected void setPrepareXAFailed() // d266464A { if (tc.isEntryEnabled()) Tr.entry(tc, "setPrepareXAFailed"); setRBO(); // Ensure native context is informed if (tc.isEntryEnabled()) Tr.exit(tc, "setPrepareXAFailed"); }
java
protected boolean prePrepare() { if (tc.isEntryEnabled()) Tr.entry(tc, "prePrepare"); // // Cancel timeout prior to completion phase // cancelAlarms(); // // Inform the Synchronisations we are about to complete // if (!_rollbackOnly) ...
java
protected boolean distributeEnd() throws SystemException { if (tc.isEntryEnabled()) Tr.entry(tc, "distributeEnd"); if (!getResources().distributeEnd(XAResource.TMSUCCESS)) { setRBO(); } if (_rollbackOnly) { try { _status.setState(Tran...
java
public Throwable getOriginalException() { if (tc.isEntryEnabled()) Tr.entry(tc, "getOriginalException"); if (tc.isEntryEnabled()) Tr.exit(tc, "getOriginalException", _originalException); return _originalException; }
java
@Override public void setRollbackOnly() throws IllegalStateException { if (tc.isEntryEnabled()) Tr.entry(tc, "setRollbackOnly (SPI)"); final int state = _status.getState(); if (state == TransactionState.STATE_NONE || state == TransactionState.STATE_COMMITTED || ...
java
public void enlistResource(JTAResource remoteRes) { if (tc.isEntryEnabled()) Tr.entry(tc, "enlistResource (SPI): args: ", remoteRes); getResources().addRes(remoteRes); if (tc.isEntryEnabled()) Tr.exit(tc, "enlistResource (SPI)"); }
java
protected void logHeuristic(boolean commit) throws SystemException { if (tc.isEntryEnabled()) Tr.entry(tc, "logHeuristic", commit); if (_subordinate && _status.getState() != TransactionState.STATE_PREPARING) { getResources().logHeuristic(commit); } if (tc.isEntr...
java
@Override public int getStatus() { int state = Status.STATUS_UNKNOWN; switch (_status.getState()) { case TransactionState.STATE_NONE: state = Status.STATUS_NO_TRANSACTION; break; case TransactionState.STATE_ACTIVE: if (_rollbac...
java
public XidImpl getXidImpl(boolean createIfAbsent) { if (tc.isEntryEnabled()) Tr.entry(tc, "getXidImpl", new Object[] { this, createIfAbsent }); if (createIfAbsent && (_xid == null)) { // Create an XID as this transaction identifier. _xid = new XidImpl(new TxPrimaryKe...
java
public void setXidImpl(XidImpl xid) { if (tc.isDebugEnabled()) Tr.debug(tc, "setXidImpl", new Object[] { xid, this }); _xid = xid; }
java
public boolean isJCAImportedAndPrepared(String providerId) { return _JCARecoveryData != null && _status.getState() == TransactionState.STATE_PREPARED && _JCARecoveryData.getWrapper().getProviderId().equals(providerId); }
java
public void loadKeyStores(Map<String, WSKeyStore> config) { // now process each keystore in the provided config for (Entry<String, WSKeyStore> current : config.entrySet()) { try { String name = current.getKey(); WSKeyStore keystore = current.getValue(); ...
java
public InputStream getInputStream(String fileName, boolean create) throws MalformedURLException, IOException { try { GetKeyStoreInputStreamAction action = new GetKeyStoreInputStreamAction(fileName, create); return AccessController.doPrivileged(action); } catch (PrivilegedActionEx...
java
public OutputStream getOutputStream(String fileName) throws MalformedURLException, IOException { try { GetKeyStoreOutputStreamAction action = new GetKeyStoreOutputStreamAction(fileName); return AccessController.doPrivileged(action); } catch (PrivilegedActionException e) { ...
java
public static String stripLastSlash(String inputString) { if (null == inputString) { return null; } String rc = inputString.trim(); int len = rc.length(); if (0 < len) { char lastChar = rc.charAt(len - 1); if ('/' == lastChar || '\\' == lastCha...
java
public KeyStore getJavaKeyStore(String keyStoreName) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getJavaKeyStore: " + keyStoreName); if (keyStoreName == null || keyStoreName.trim().isEmpty()) { throw new SSLException("No keys...
java
public WSKeyStore getWSKeyStore(String keyStoreName) throws SSLException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getWSKeyStore: " + keyStoreName); if (keyStoreName == null) { throw new SSLException("No keystore name provided."); }...
java
@Override public Set<String> getDependentApplications() { Set<String> appsToStop = new HashSet<String>(applications); applications.clear(); return appsToStop; }
java
@Trivial // do our own trace in order to selectively include the value private <T extends Object> void set(Class<?> clazz, Object clientBuilder, String name, Class<T> type, T value) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, name + '('...
java
@Override public void libraryNotification() { // Notify the application recycle coordinator of an incompatible change that requires restarting the application if (!applications.isEmpty()) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc...
java
public Object getCloudantClient(int resAuth, List<? extends ResourceInfo.Property> loginPropertyList) throws Exception { AuthData containerAuthData = null; if (resAuth == ResourceInfo.AUTH_CONTAINER) { containerAuthData = getContainerAuthData(loginPropertyList); } String use...
java
public synchronized void waitOn() throws InterruptedException { if (tc.isEntryEnabled()) SibTr.entry(tc, "waitOn", ""+count); ++count; if (count > 0) { try { wait(); } catch(InterruptedException e) { // No FFDC code needed ...
java
public synchronized void post() { if (tc.isEntryEnabled()) SibTr.entry(tc, "post", ""+count); --count; if (count >= 0) notify(); if (tc.isEntryEnabled()) SibTr.exit(tc, "post"); }
java
public synchronized void waitOnIgnoringInterruptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "waitOnIgnoringInterruptions"); boolean interrupted; do { interrupted = false; try { waitOn(); } catch (InterruptedException e) ...
java
protected void setMemberFactories(FaceletCache.MemberFactory<V> faceletFactory, FaceletCache.MemberFactory<V> viewMetadataFaceletFactory, FaceletCache.MemberFactory<V> compositeComponentMetadataFaceletFactory) { if (compositeCompon...
java
@Override public void close() throws IOException { if(this.in != null && this.inStream != null){ if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { logger.logp(Level.FINE, CLASS_NAME,"close", "close called->"+this); } this.in.close(); ...
java
@Override public ArtifactContainer createContainer(File cacheDir, Object containerData) { if ( !(containerData instanceof File) ) { return null; } File fileContainerData = (File) containerData; if ( !FileUtils.fileIsFile(fileContainerData) ) { return null; ...
java
@Override public ArtifactContainer createContainer( File cacheDir, ArtifactContainer enclosingContainer, ArtifactEntry entryInEnclosingContainer, Object containerData) { if ( (containerData instanceof File) && FileUtils.fileIsFile((File) containerData) ) { File f...
java
private static boolean hasZipExtension(String name) { int nameLen = name.length(); // Need '.' plus at least three characters. if ( nameLen < 4 ) { return false; } // Need '.' plus at least six characters for ".spring". if ( nameLen >= 7 ) { if...
java
private static boolean isZip(ArtifactEntry artifactEntry) { if ( !hasZipExtension( artifactEntry.getName() ) ) { return false; } boolean validZip = false; InputStream entryInputStream = null; try { entryInputStream = artifactEntry.getInputStream(); ...
java
@SuppressWarnings("deprecation") private static String getPhysicalPath(ArtifactEntry artifactEntry) { String physicalPath = artifactEntry.getPhysicalPath(); if ( physicalPath != null ) { return physicalPath; } String entryPath = artifactEntry.getPath(); String ro...
java
@FFDCIgnore( { IOException.class, FileNotFoundException.class } ) private static boolean isZip(File file) { if ( !hasZipExtension( file.getName() ) ) { return false; } InputStream inputStream = null; try { inputStream = new FileInputStream(file); // throws F...
java
public static UpdatedFile fromNode(Node n) { String id = n.getAttributes().getNamedItem("id") == null ? null : n.getAttributes().getNamedItem("id").getNodeValue(); long size = n.getAttributes().getNamedItem("size") == null ? null : Long.parseLong(n.getAttributes().getNamedItem("size").getNodeValue()); ...
java
@Override public void serverStopping() { BundleContext bundleContext = componentContext.getBundleContext(); Collection<ServiceReference<EndpointActivationService>> refs; try { refs = bundleContext.getServiceReferences(EndpointActivationService.class, null); } catch (Inval...
java
public boolean filterMatches(AbstractItem item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "filterMatches", item); /* Cast the incoming item to a PersistentStoreReferenceStream object. if it is not, an * exception will be thrown and the match will fail */ ...
java
private ValidatorFactory createValidatorFactory(FacesContext context) { Map<String, Object> applicationMap = context.getExternalContext().getApplicationMap(); Object attr = applicationMap.get(VALIDATOR_FACTORY_KEY); if (attr instanceof ValidatorFactory) { return (Validato...
java
private void postSetValidationGroups() { if (this.validationGroups == null || this.validationGroups.matches(EMPTY_VALIDATION_GROUPS_PATTERN)) { this.validationGroupsArray = DEFAULT_VALIDATION_GROUPS_ARRAY; } else { String[] classes = this.validationGro...
java
public void setEnumerators(String[] val) { enumerators = val; enumeratorCount = (enumerators != null) ? enumerators.length : 0; }
java
public void encodeType(byte[] frame, int[] limits) { setByte(frame, limits, (byte)ENUM); setCount(frame, limits, enumeratorCount); }
java
public void format(StringBuffer fmt, Set done, Set todo, int indent) { formatName(fmt, indent); fmt.append("Enum"); if (enumerators != null) { fmt.append("{{"); String delim = ""; for (int i = 0; i < enumerators.length; i++) { fmt.append(delim).append(enumerators[i]); delim...
java
public static _ValueReferenceWrapper resolve(ValueExpression valueExpression, final ELContext elCtx) { _ValueReferenceResolver resolver = new _ValueReferenceResolver(elCtx.getELResolver()); ELContext elCtxDecorator = new _ELContextDecorator(elCtx, resolver); valueExpression.getValue...
java
@Override public Object getValue(final ELContext context, final Object base, final Object property) { lastObject = new _ValueReferenceWrapper(base, property); return resolver.getValue(context, base, property); }
java
private boolean isApplicationException(Throwable ex, EJBMethodInfoImpl methodInfo) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "isApplicationException : " + ex.getClass().getName() + ", " + methodInfo); // d660...
java
synchronized protected void addMessagingEngine( final JsMessagingEngine messagingEngine) { final String methodName = "addMessagingEngine"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } ...
java
public void addNotfication(Notification notification) { Object source = notification.getSource(); NotificationRecord nr; if (source instanceof ObjectName) { nr = new NotificationRecord(notification, (ObjectName) source); } else { nr = new NotificationRecord(notifi...
java
public void addClientNotificationListener(RESTRequest request, NotificationRegistration notificationRegistration, JSONConverter converter) { String objectNameStr = notificationRegistration.objectName.getCanonicalName(); NotificationTargetInformation nti = toNotificationTargetInformation(request, object...
java
public void updateClientNotificationListener(RESTRequest request, String objectNameStr, NotificationFilter[] filters, JSONConverter converter) { NotificationTargetInformation nti = toNotificationTargetInformation(request, objectNameStr); ClientNotificationListener listener = listeners.get(nti); ...
java
private Object removeObject(Integer key) { if (key == null) { return null; } return objectLibrary.remove(key); }
java
public void removeClientNotificationListener(RESTRequest request, ObjectName name) { NotificationTargetInformation nti = toNotificationTargetInformation(request, name.getCanonicalName()); // Remove locally ClientNotificationListener listener = listeners.remove(nti); // Check whether th...
java
public void addServerNotificationListener(RESTRequest request, ServerNotificationRegistration serverNotificationRegistration, JSONConverter converter) { NotificationTargetInformation nti = toNotificationTargetInformation(request, serverNotificationRegistration.objectName.getCanonicalName()); //Fetch th...
java
public synchronized void remoteClientRegistrations(RESTRequest request) { Iterator<Entry<NotificationTargetInformation, ClientNotificationListener>> clientListeners = listeners.entrySet().iterator(); try { while (clientListeners.hasNext()) { Entry<NotificationTargetInformati...
java
public synchronized void remoteServerRegistrations(RESTRequest request) { Iterator<Entry<NotificationTargetInformation, List<ServerNotification>>> serverNotificationsIter = serverNotifications.entrySet().iterator(); while (serverNotificationsIter.hasNext()) { Entry<NotificationTargetInformat...
java
public void copyHeader(LogRepositoryWriter writer) throws IllegalArgumentException { if (writer == null) { throw new IllegalArgumentException("Parameter writer can't be null"); } writer.setHeader(headerBytes); }
java
final Integer getCcsid() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCcsid"); Integer value = (Integer) jmo.getPayloadPart().getField(JsPayloadAccess.CCSID_DATA); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
final Integer getEncoding() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getEncoding"); Integer value = (Integer) jmo.getPayloadPart().getField(JsPayloadAccess.ENCODING_DATA); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
java
final void setCcsid(Object value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setCcsid", value); // If the value is null, then clear the field if (value == null) { jmo.getPayloadPart().setField(JsPayloadAccess.CCSID, JsPayloa...
java
final void setEncoding(Object value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setEncoding", value); // If the value is null or unsuitable, then clear the field if ((value == null) || !(value instanceof Integer)) { jmo.getP...
java
public void preShutdown(boolean transactionsLeft) throws Exception /* @PK31789C */ { if (tc.isEntryEnabled()) Tr.entry(tc, "preShutdown", transactionsLeft); try { // Terminate partner log activity getPartnerLogTable().terminate(); // 172471 // If the...
java
protected void updateTranLogServiceData() throws Exception { if (tc.isEntryEnabled()) Tr.entry(tc, "updateTranLogServiceData"); try { // // Check we have a recoverableUnit and three sections to add the data. // On recovery we check that all service data s...
java
protected void updatePartnerServiceData() throws Exception { if (tc.isEntryEnabled()) Tr.entry(tc, "updatePartnerServiceData"); try { // // Check we have a recoverableUnit and three sections to add the data. // On recovery we check that all service data s...
java
public void waitForRecoveryCompletion() { if (tc.isEntryEnabled()) Tr.entry(tc, "waitForRecoveryCompletion"); if (!_recoveryCompleted) { try { if (tc.isEventEnabled()) Tr.event(tc, "starting to wait for recovery completion"); ...
java
public void recoveryComplete() /* @LIDB3187C */ { if (tc.isEntryEnabled()) Tr.entry(tc, "recoveryComplete"); if (!_recoveryCompleted) { _recoveryCompleted = true; _recoveryInProgress.post(); } // Check for null currently required as z/OS creates ...
java
public boolean shutdownInProgress() /* @LIDB3187C */ { synchronized (_recoveryMonitor) { if (_shutdownInProgress) { // Put out a message stating the we are stopping recovery processing. Since this method can // be called a number of times in succession (to allow n...
java
protected TransactionImpl[] getRecoveringTransactions() { TransactionImpl[] recoveredTransactions = new TransactionImpl[_recoveringTransactions.size()]; _recoveringTransactions.toArray(recoveredTransactions); return recoveredTransactions; }
java
protected void closeLogs(boolean closeLeaseLog) { if (tc.isEntryEnabled()) Tr.entry(tc, "closeLogs", new Object[] { this, closeLeaseLog }); if ((_tranLog != null) && (_tranLog instanceof DistributedRecoveryLog)) { try { ((DistributedRecoveryLog) _tranLog).closeLo...
java
public void registerTransaction(TransactionImpl tran) { if (tc.isEntryEnabled()) Tr.entry(tc, "registerTransaction", new Object[] { this, tran }); _recoveringTransactions.add(tran); if (tc.isEntryEnabled()) Tr.exit(tc, "registerTransaction", _recoveringTransactions.size...
java
public void deregisterTransaction(TransactionImpl tran) { if (tc.isEntryEnabled()) Tr.entry(tc, "deregisterTransaction", new Object[] { this, tran }); _recoveringTransactions.remove(tran); if (tc.isEntryEnabled()) Tr.exit(tc, "deregisterTransaction", _recoveringTransact...
java
protected boolean recoveryModeTxnsComplete() { if (tc.isEntryEnabled()) Tr.entry(tc, "recoveryModeTxnsComplete"); if (_recoveringTransactions != null) { for (TransactionImpl tx : _recoveringTransactions) { if (tx != null && !tx.isRAImport()) { ...
java