code
stringlengths
73
34.1k
label
stringclasses
1 value
private Object ownership(Object val, boolean forceShared) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "ownership", new Object[] { val, Boolean.valueOf(forceShared) }); if (val instanceof JSMessageData) { ((JSMessageData) val).setParen...
java
private void checkPrimitiveType(int accessor, int typeCode) throws JMFUninitializedAccessException, JMFSchemaViolationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "checkPrimitiveType", new Object[] { Integer.valueOf(accessor), Integer.valueOf(typ...
java
void lazyCopy(JSMessageData original) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "lazyCopy", new Object[] { original }); synchronized (getMessageLockArtefact()) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ...
java
public Set<String> getKeySet() { HashSet<String> result = new HashSet<>(); for (PollingDynamicConfig config : children) { Iterator<String> iter = config.getKeys(); while (iter.hasNext()) { String key = iter.next(); result.add(key); } ...
java
public final boolean isAutoCommit() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isAutoCommit"); SibTr.exit(this, tc, "isAutoCommit", "return=false"); } return false; }
java
public void incrementCurrentSize() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "incrementCurrentSize"); if (_currentTran != null) { _currentTran.incrementCurrentSize(); } if (TraceComponent....
java
public boolean isAlive() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isAlive"); boolean retval = false; if (_currentTran != null) { retval = _currentTran.isAlive(); } if (TraceComponent.isAnyTracingEnabled()...
java
public void end(Xid xid, int flags) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "end", new Object[]{"XID="+xid, _manager.xaFlagsToString(flags)}); try { _manager.end(new PersistentTranId(xid), flags); /...
java
public Xid[] recover(int recoveryId) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "recover", "Recovery ID="+recoveryId); Xid[] list = _manager.recover(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.ex...
java
public static String dumpAsString( Object obj) { if (obj instanceof DERObject) { return _dumpAsString("", (DERObject) obj); } else if (obj instanceof DEREncodable) { return _dumpAsString("", ((DEREncodable) obj).ge...
java
public void deployMicroProfileLoginConfigFormLoginInWebXmlBasicInApp(LibertyServer server) throws Exception { List<String> classList = createAppClassListBuildAppNames("CommonMicroProfileMarker_FormLoginInWeb_BasicInApp", "MicroProfileLoginConfigFormLoginInWebXmlBasicInApp"); ShrinkHelper.exportAppToServ...
java
protected WebArchive genericCreateArchiveWithPems(String sourceWarName, String baseWarName, List<String> classList) throws Exception { try { String warName = baseWarName + ".war"; WebArchive newWar = ShrinkWrap.create(WebArchive.class, warName); addDefaultFileAssetsForAppsToW...
java
protected WebArchive genericCreateArchiveWithPemsAndMPConfig(String sourceWarName, String baseWarName, List<String> classList, String mpConfig, String fileContent) throws Exception { try { WebArchive newWar = genericCreateArchiveWithPe...
java
public List<String> createAppClassListBuildAppNames(String app1, String app2, String app3) throws Exception { List<String> classList = createAppClassListBuildAppNames(app1, app2); classList.add("com.ibm.ws.jaxrs.fat.microProfileApp." + app2 + ".MicroProfileApp" + app3); return classList; }
java
public String getOutputBufferAsString() throws IOException { byte[] buffer = getOutputBuffer(); if (buffer != null) return new String(buffer, this.getCharacterEncoding()); else return null; }
java
public void transferResponse(HttpServletResponse target) throws IOException // never // called // for // ARD. // would // be // in // trouble // with // a // bunch // of // include // warnings { _finish(); if (containsError()) { // transfer error String message = get...
java
public final static Reliability getReliabilityByName(String name) throws NullPointerException, IllegalArgumentException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.info(tc, "Name = " + name); if (name == null) { throw new Nul...
java
public final static Reliability getReliabilityByIndex(int mpIndex) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.info(tc, "Index = " + mpIndex); return indexSet[mpIndex + 1]; }
java
public final static Reliability getReliability(Byte aValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.info(tc, "Value = " + aValue); return set[aValue.intValue()]; }
java
@Override public String[] getHeader() { ArrayList<String> result = new ArrayList<String>(); if (customHeader.length > 0) { for (CustomHeaderLine line: customHeader) { String formattedLine = line.formatLine(headerProps); if (formattedLine != null) { result.add(formattedLine); } } } else ...
java
protected void createEventTimeStamp(RepositoryLogRecord record, StringBuilder buffer) { if (null == record) { throw new IllegalArgumentException("Record cannot be null"); } if (null == buffer) { throw new IllegalArgumentException("Buffer cannot be null"); } // Create the time stamp buffer.append('[');...
java
protected static String mapLevelToType(RepositoryLogRecord logRecord) { if (null == logRecord) { return " Z "; } Level l = logRecord.getLevel(); if (null == l) { return " Z "; } // In HPEL SystemOut and SystemErr are recorded in custom level but since we want // them to be handled specially do it no...
java
protected void setCookies(HttpServletRequest request, HttpServletResponse response, String requestToken, String stateValue) { ReferrerURLCookieHandler referrerURLCookieHandler = WebAppSecurityCollaboratorImpl.getGlobalWebAppSecurityConfig().createReferrerURLCookieHandler(); // Create cookie for request...
java
private void setUnauthenticatedSubjectIfNeeded() { if (LocationUtils.isServer()) { com.ibm.ws.security.context.SubjectManager sm = new com.ibm.ws.security.context.SubjectManager(); Subject invokedSubject = sm.getInvocationSubject(); if (invokedSubject == null) { ...
java
private void updateClientPolicy(Message m) { if (!clientSidePolicyCalced) { PolicyDataEngine policyEngine = bus.getExtension(PolicyDataEngine.class); if (policyEngine != null && endpointInfo.getService() != null) { clientSidePolicy = policyEngine.getClientEndpointPolicy(m...
java
public void finalizeConfig() { // See if not set by configuration, if there are defaults // in order from the Endpoint, Service, or Bus. configureConduitFromEndpointInfo(this, endpointInfo); logConfig(); if (getClient().getDecoupledEndpoint() != null) { this.endpoin...
java
public AuthorizationPolicy getEffectiveAuthPolicy(Message message) { AuthorizationPolicy authPolicy = getAuthorization(); AuthorizationPolicy newPolicy = message.get(AuthorizationPolicy.class); AuthorizationPolicy effectivePolicy = newPolicy; if (effectivePolicy == null) { ef...
java
public void setClient(HTTPClientPolicy client) { if (this.clientSidePolicy != null) { this.clientSidePolicy.removePropertyChangeListener(this); } this.clientSidePolicyCalced = true; this.clientSidePolicy = client; clientSidePolicy.removePropertyChangeListener(this); /...
java
public void setTlsClientParameters(TLSClientParameters params) { this.tlsClientParameters = params; if (this.tlsClientParameters != null) { if (LOG.isLoggable(Level.FINE)) { LOG.log(Level.FINE, "Conduit '" + getConduitName() + "' has been (re) configured f...
java
protected String extractLocation(Map<String, List<String>> headers) throws MalformedURLException { for (Map.Entry<String, List<String>> head : headers.entrySet()) { if ("Location".equalsIgnoreCase(head.getKey())) { List<String> locs = head.getValue(); if (locs != null...
java
private static String convertToAbsoluteUrlIfNeeded(String conduitName, String lastURL, String newURL, Message message) throws IOException { if (new...
java
private void resumeTran(Transaction tran) { if (tran != null) { try { tranMgr.resume(tran); } catch (Exception e) { throw new BatchRuntimeException("Failed to resume transaction after JobOperator method", e); } } }
java
private void addAndSortReaders(List<ProviderInfo<MessageBodyReader<?>>> newReaders, boolean forceSort) { Comparator<ProviderInfo<MessageBodyReader<?>>> comparator = null; if (!customComparatorAvailable(MessageBodyReader.class)) { comparator = new MessageBodyReaderComparator(readerMediaTypesM...
java
private static Type[] getGenericInterfaces(Class<?> cls, Class<?> expectedClass, Class<?> commonBaseCls) { if (Object.class == cls) { return emptyType; } Type[] cachedTypes = getTypes(cls, expectedClass, commonBaseCls); if (cache...
java
void onCompletion(Collection<ApplicationDependency> dependencies) { if (!dependencies.isEmpty()) { for (ApplicationDependency dependency : dependencies) { dependency.onCompletion(this); } } }
java
@Override public boolean hasObjectWithPrefix(JavaColonNamespace namespace, String name) throws NamingException { JavaColonNamespaceBindings<EJBBinding> bindings; boolean result = false; Lock readLock = null; ComponentMetaData cmd = null; try { // This helper on...
java
public void removeGlobalBindings(List<String> names) { Lock writeLock = javaColonLock.writeLock(); writeLock.lock(); try { for (String name : names) { javaColonGlobalBindings.unbind(name); } } finally { writeLock.unlock(); } ...
java
private JavaColonNamespaceBindings<EJBBinding> getAppBindingMap(ApplicationMetaData amd) { @SuppressWarnings("unchecked") JavaColonNamespaceBindings<EJBBinding> bindingMap = (JavaColonNamespaceBindings<EJBBinding>) amd.getMetaData(amdSlot); if (bindingMap == null) { bindingMap = new ...
java
private JavaColonNamespaceBindings<EJBBinding> getModuleBindingMap(ModuleMetaData mmd) { @SuppressWarnings("unchecked") JavaColonNamespaceBindings<EJBBinding> bindingMap = (JavaColonNamespaceBindings<EJBBinding>) mmd.getMetaData(mmdSlot); if (bindingMap == null) { bindingMap = new Ja...
java
public void removeAppBindings(ModuleMetaData mmd, List<String> names) { ApplicationMetaData amd = mmd.getApplicationMetaData(); Lock writeLock = javaColonLock.writeLock(); writeLock.lock(); try { JavaColonNamespaceBindings<EJBBinding> bindings = getAppBindingMap(amd); ...
java
private void throwCannotInstanciateUnsupported(EJBBinding binding, JavaColonNamespace jndiType, String lookupName, String messageId) throws NameNotFoundException { ...
java
protected void unsetVirtualHost(VirtualHost vhost) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Unset vhost: ", vhost); } secureVirtualHost = null; }
java
private synchronized void createJMXWorkAreaResourceIfChanged(VirtualHost vhost) { // Make sure our context root has been registered... String contextRoot = registeredContextRoot; if (contextRoot != null) { // Make sure that we are dealing with the secure port before writing the fil...
java
@Reference(service = WsLocationAdmin.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MANDATORY) protected void setLocationService(WsLocationAdmin locationService) { this.locationService = locationService; if (restJMXAddressWorkareaFile == nul...
java
public final List<String> getConnectionFactoryInterfaceNames() { return cfInterfaceNames instanceof String ? Collections.singletonList((String) cfInterfaceNames) // : cfInterfaceNames instanceof String[] ? Arrays.asList((String[]) cfInterfaceNames) // ...
java
private void destroyConnectionFactories(boolean destroyImmediately) { lock.writeLock().lock(); try { if (isInitialized.get()) { // Mark all connection factories as disabled isInitialized.set(false); // Destroy the connection factories ...
java
@Override @Trivial public boolean getReauthenticationSupport() { return Boolean.TRUE.equals(bootstrapContextRef.getReference().getProperty(REAUTHENTICATION_SUPPORT)); }
java
@Override public TransactionSupportLevel getTransactionSupport() { // If ManagedConnectionFactory implements TransactionSupport, that takes priority TransactionSupportLevel transactionSupport = mcf instanceof TransactionSupport ? ((TransactionSupport) mcf).getTransactionSupport() : null; //...
java
public StackNode<E> clean() { do { final StackNode<E> oldTop = top.get(); if (top.compareAndSet(oldTop, null)) return oldTop; } while (true); }
java
public E pop() { StackNode<E> oldTop, newTop; while (true) { oldTop = top.get(); if (oldTop == null) return null; newTop = oldTop.next; if (top.compareAndSet(oldTop, newTop)) break; } return oldTop.data; ...
java
public void push(E d) { StackNode<E> oldTop, newTop; newTop = new StackNode<E>(d); while (true) { oldTop = top.get(); newTop.next = oldTop; if (oldTop != null) newTop.index = oldTop.index + 1; else newTop.index = 0...
java
public E peek() { final StackNode<E> oldTop = top.get(); if (oldTop == null) { return null; } else { return oldTop.data; } }
java
public void setSizeRefsByMsgSize(boolean sizeByMsgSize) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSizeRefsByMsgSize", Boolean.valueOf(sizeByMsgSize)); this._sizeRefsByMsgSize = sizeByMsgSize; if (TraceComponent.isAnyTracingEnabled() && tc....
java
public int getInMemoryDataSize() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getInMemoryDataSize"); int dataSize; // If tuning has requested return the size of the message we reference, // then delegate to the message. Otherwise call our...
java
public void begin() throws SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "begin"); // Are we currently in use? do we have work // we still need to commit? if (_state == TransactionState.STATE_ACTIVE && _workList != ...
java
public void rollback() throws SIIncorrectCallException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rollback"); if (_state != TransactionState.STATE_ACTIVE) { SIIncorrectCallException sie = new SIIncorrectCallExce...
java
static void setInjectionEngine(InternalInjectionEngine ie) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setInjectionEngine : " + ie); svInstance = ie; }
java
public static boolean isRemoteable(Class<?> valueClass, int rmicCompatible) { // NOTE: This logic must be kept in sync with write_value. return valueClass.isInterface() && valueClass != Serializable.class && valueClass != Externalizable.class && (isCORBAObje...
java
public static boolean hasJNDIScheme(String jndiName) { int colonIndex = jndiName.indexOf(':'); int slashIndex = jndiName.indexOf('/'); return colonIndex != -1 && (slashIndex == -1 || colonIndex < slashIndex); }
java
private List<WsByteBuffer> writeHeader(List<WsByteBuffer> list) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Writing gzip header information"); } WsByteBuffer hdr = HttpDispatcher.getBufferManager().allocateDirect(GZIP_Header.length); hdr...
java
private WsByteBuffer makeBuffer(int len) { WsByteBuffer buffer = HttpDispatcher.getBufferManager().allocateDirect(len); buffer.put(this.buf, 0, len); buffer.flip(); return buffer; }
java
private void writeInt(int value, byte[] data, int offset) { int index = offset; data[index++] = (byte) (value & 0xff); data[index++] = (byte) ((value >> 8) & 0xff); data[index++] = (byte) ((value >> 16) & 0xff); data[index++] = (byte) ((value >> 24) & 0xff); }
java
protected Object getInjectedObjectFromCXF(Class<?> classType, Type genericType, Annotation[] memberAnnotations, ParamInjectionMetadata paramInjectionMetadata) { Parameter p =...
java
private void setBufferSize(int size) { this.amountToBuffer = size; this.bbSize = (49152 < size) ? 32768 : 8192; int numBuffers = (size / this.bbSize); if (0 == size || 0 != (size % this.bbSize)) { numBuffers++; } this._output = new WsByteBuffer[numBuffers]; ...
java
private void clear() { if (null != this._output) { for (int i = 0; i < this._output.length; i++) { if (null != this._output[i]) { this._output[i].release(); this._output[i] = null; } } } this.outputIn...
java
@Reference(service = Application.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, target = "(application.state=STARTED)") protected void addStartedApplication(ServiceReference<Application> ref) { ExecutorService executor; ...
java
@Reference(service = Application.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, target = "(application.state=STARTING)") protected void addStartingApplication(ServiceReference<Application> ref) { String appName = (String) re...
java
boolean isStarted(String appName) { lock.readLock().lock(); try { return appStates.get(appName) == ApplicationState.STARTED; } finally { lock.readLock().unlock(); } }
java
protected void removeStartedApplication(ServiceReference<Application> ref) { String appName = (String) ref.getProperty(NAME); lock.writeLock().lock(); try { appStates.remove(appName); } finally { lock.writeLock().unlock(); } }
java
String objectsToString(String key, Object objects) { java.io.StringWriter stringWriter = new java.io.StringWriter(); stringWriter.write(key); stringWriter.write(":"); if (objects == null) { stringWriter.write("\n"); } else if (objects instanceof Object[]) { ...
java
private static String getPID() { String name = ManagementFactory.getRuntimeMXBean().getName(); int index = name.indexOf('@'); if (index == -1) { return null; } String pid = name.substring(0, index); if (!pid.matches("[0-9]+")) { return null; ...
java
private File createNewFile(File outputDir, String prefix, String extension) throws IOException { String dateTime = new SimpleDateFormat("yyyyMMdd.HHmmss").format(new Date()); File outputFile; do { String pid = PID == null ? "" : PID + '.'; int sequenceNumber = nextSequenc...
java
private File createThreadDump(File outputDir) { // Determine if we're using Java Attach (VirtualMachine.remoteDataDump) // or the DiagnosticCommand MBean. Java Attach is only available on // JREs (not JDKs) and sometimes fails to connect, but we prefer it when // available because Diagn...
java
private synchronized VirtualMachine getAttachedVirtualMachine() throws VirtualMachineException { if (PID == null) { // Java Attach requires a PID. return null; } if (vm == null) { vm = createVirtualMachine(); } return vm.isAttached() ? vm : nu...
java
private VirtualMachine createVirtualMachine() throws VirtualMachineException { ClassLoader toolsClassLoader; File toolsJar = getToolsJar(); if (toolsJar == null) { // The attach classes are on the boot classpath on Mac. toolsClassLoader = HotSpotJavaDumperImpl.class.getC...
java
public List<com.ibm.wsspi.security.wim.model.IdentifierType> getManager() { if (manager == null) { manager = new ArrayList<com.ibm.wsspi.security.wim.model.IdentifierType>(); } return this.manager; }
java
public List<com.ibm.wsspi.security.wim.model.IdentifierType> getSecretary() { if (secretary == null) { secretary = new ArrayList<com.ibm.wsspi.security.wim.model.IdentifierType>(); } return this.secretary; }
java
public List<com.ibm.wsspi.security.wim.model.AddressType> getHomeAddress() { if (homeAddress == null) { homeAddress = new ArrayList<com.ibm.wsspi.security.wim.model.AddressType>(); } return this.homeAddress; }
java
public List<com.ibm.wsspi.security.wim.model.AddressType> getBusinessAddress() { if (businessAddress == null) { businessAddress = new ArrayList<com.ibm.wsspi.security.wim.model.AddressType>(); } return this.businessAddress; }
java
public static ModuleMetaData getModuleMetaData() { ComponentMetaData cmd = getComponentMetaData(); ModuleMetaData mmd = null; if (cmd != null) { mmd = cmd.getModuleMetaData(); } if (tc.isDebugEnabled()) { Tr.debug(tc, "ModuleMetaData object is " + (mmd !...
java
void setDelete( GBSNode deleteNode, int deleteIndex) { _deleteNode = deleteNode; _deleteIndex = deleteIndex; _notFound = false; }
java
void setTarget( GBSNode targetNode, int targetIndex, int type) { _targetNode = targetNode; _targetIndex = targetIndex; _type = type; }
java
void reset() { _deleteNode = null; _deleteIndex = 0; _targetNode = null; _targetIndex = 0; _type = NONE; _notFound = true; }
java
private String getPID(String dir, String serverName) { String pid = null; if (platformType == SelfExtractUtils.PlatformType_CYGWIN) { String pidFile = dir + File.separator + "wlp" + File.separator + "usr" + File.separator + "servers" + File.separator + ".pid" + File.separator ...
java
private void stopServer() throws IOException { // build stop command for Unix platforms String cmd = dir + File.separator + "wlp" + File.separator + "bin" + File.separator + "server stop " + serverName; if (platformType == SelfExtractUtils.PlatformType_UNIX) { // use command as-is ...
java
private void startAsyncDelete() throws IOException { Runtime rt = Runtime.getRuntime(); File scriptFile = null; if (platformType == SelfExtractUtils.PlatformType_UNIX) { scriptFile = writeCleanupFile(SelfExtractUtils.PlatformType_UNIX); rt.exec("chmod 750 " + scriptFile.g...
java
private void writeWindowsCleanup(File file, BufferedWriter bw) throws IOException { bw.write("set max=30\n"); bw.write("set cnt=0\n"); bw.write("set dir=" + dir + "\n"); bw.write("echo delete %dir%\n"); bw.write(":while\n"); bw.write(" if exist %dir% (\n"); bw.w...
java
private void writeUnixCleanup(File file, BufferedWriter bw) throws IOException { bw.write("echo begin delete" + "\n"); bw.write("n=0" + "\n"); bw.write("while [ $n -ne 1 ]; do" + "\n"); bw.write(" sleep 3" + "\n"); bw.write(" if [ -e " + dir.replace('\\', '/') + " ]; then" + "\...
java
private void writeCygwinCleanup(File file, BufferedWriter bw) throws IOException { // Under cygwin, must explicitly kill the process that runs // the server. It simply does not die on its own. And it's // JVM holds file locks which will prevent cleanup of extraction // directory. So kill...
java
public void run() { try { stopServer(); // first, stop server // wait on error/output stream threads to complete // note on Windows the streams never close, so wait with brief timeout if (!System.getProperty("os.name").startsWith("Win")) { out.joi...
java
protected int position() { if (tc.isEntryEnabled()) Tr.entry(tc, "position", this); int position = _absolutePosition + _buffer.position(); if (tc.isEntryEnabled()) Tr.exit(tc, "position", new Integer(position)); return position; }
java
protected void position(int newPosition) { if (tc.isEntryEnabled()) Tr.entry(tc, "position", new Object[]{this,new Integer(newPosition)}); newPosition -= _absolutePosition; _buffer.position(newPosition); if (tc.isEntryEnabled()) Tr.exit(tc, "position"); }
java
protected void advancePosition(int bytes) { if (tc.isEntryEnabled()) Tr.entry(tc, "advancePosition", new Object[] {this, new Integer(bytes)}); final int newPosition = _buffer.position() + bytes; _buffer.position(newPosition); if (tc.isDebugEnabled()) Tr.debug(tc, "Buffer's position now...
java
protected void get(byte[] bytes) { if (tc.isEntryEnabled()) Tr.entry(tc, "get",new Object[] {this,new Integer(bytes.length)}); _buffer.get(bytes); if (tc.isDebugEnabled()) Tr.debug(tc, RLSUtils.toHexString(bytes, RLSUtils.MAX_DISPLAY_BYTES)); if (tc.isEntryEnabled()) Tr.exit(tc, "get"); }
java
protected int getInt() { if (tc.isEntryEnabled()) Tr.entry(tc, "getInt",this); int data = _buffer.getInt(); if (tc.isEntryEnabled()) Tr.exit(tc, "getInt",new Integer(data)); return data; }
java
protected long getLong() { if (tc.isEntryEnabled()) Tr.entry(tc, "getLong",this); long data = _buffer.getLong(); if (tc.isEntryEnabled()) Tr.exit(tc, "getLong", new Long(data)); return data; }
java
protected short getShort() { if (tc.isEntryEnabled()) Tr.entry(tc, "getShort",this); short data = _buffer.getShort(); if (tc.isEntryEnabled()) Tr.exit(tc, "getShort", new Short(data)); return data; }
java
protected boolean getBoolean() { if (tc.isEntryEnabled()) Tr.entry(tc, "getBoolean", this); byte dataByte = _buffer.get(); boolean data = (dataByte == TRUE); if (tc.isEntryEnabled()) Tr.exit(tc, "getBoolean", new Boolean(data)); return data; ...
java
private Object readItem() { Object itemRead = null; try { currentChunkStatus.incrementItemsTouchedInCurrentChunk(); // call read listeners before and after the actual read for (ItemReadListenerProxy readListenerProxy : itemReadListeners) { readList...
java
private void publishCheckpointEvent(String stepName, long jobInstanceId, long jobExecutionId, long stepExecutionId) { BatchEventsPublisher publisher = getBatchEventsPublisher(); if (publisher != null) { String correlationId = runtimeWorkUnitExecution.getCorrelationId(); publishe...
java