code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public static final void logMessage(Level level, String key, Object... args) {
if (WsLevel.AUDIT.equals(level))
Tr.audit(tc, key, args);
else if (WsLevel.ERROR.equals(level))
Tr.error(tc, key, args);
else if (Level.INFO.equals(level))
Tr.info(tc, key, args);
... | java |
public static String getSessionID(HttpServletRequest req) {
String sessionID = null;
final HttpServletRequest f_req = req;
try {
sessionID = AccessController.doPrivileged(new PrivilegedExceptionAction<String>() {
@Override
public String run() throws E... | java |
public static String getRequestScheme(HttpServletRequest req) {
String scheme;
if (req.getScheme() != null)
scheme = req.getScheme().toUpperCase();
else
scheme = AuditEvent.REASON_TYPE_HTTP;
return scheme;
} | java |
public static String getRequestMethod(HttpServletRequest req) {
String method;
if (req.getMethod() != null)
method = req.getMethod().toUpperCase();
else
method = AuditEvent.TARGET_METHOD_GET;
return method;
} | java |
@Override
public Object get() {
Object oObject = null;
synchronized (this) {
// Check if any are free in the free hashtable
if (lastEntry > -1) {
// Free array has entries, get the last one.
// remove last one for best performance
... | java |
@Override
public Object put(Object object) {
Object returnVal = null;
long currentTime = CHFWBundle.getApproxTime();
synchronized (this) {
// get next free position, or oldest position if none free
lastEntry++;
// If last entry is past end of array, go ba... | java |
protected void putBatch(Object[] objectArray) {
int index = 0;
synchronized (this) {
while (index < objectArray.length && objectArray[index] != null) {
put(objectArray[index]);
index++;
}
}
return;
} | java |
public JsJmsMessage createJmsMessage() throws MessageCreateFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsMessage");
JsJmsMessage msg = null;
try {
msg = new JsJmsMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP);
}
catch (MessageDecodeFa... | java |
public JsJmsBytesMessage createJmsBytesMessage() throws MessageCreateFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsBytesMessage");
JsJmsBytesMessage msg = null;
try {
msg = new JsJmsBytesMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP);
}
... | java |
public JsJmsMapMessage createJmsMapMessage() throws MessageCreateFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsMapMessage");
JsJmsMapMessage msg = null;
try {
msg = new JsJmsMapMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP);
}
catch (... | java |
public JsJmsObjectMessage createJmsObjectMessage() throws MessageCreateFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsObjectMessage");
JsJmsObjectMessage msg = null;
try {
msg = new JsJmsObjectMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP);
... | java |
public JsJmsStreamMessage createJmsStreamMessage() throws MessageCreateFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsStreamMessage");
JsJmsStreamMessage msg = null;
try {
msg = new JsJmsStreamMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP);
... | java |
public JsJmsTextMessage createJmsTextMessage() throws MessageCreateFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsTextMessage");
JsJmsTextMessage msg = null;
try {
msg = new JsJmsTextMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP);
}
ca... | java |
private void saveDecryptedPositions() {
for (int i = 0; i < decryptedNetPosInfo.length; i++) {
decryptedNetPosInfo[i] = 0;
}
if (null != getBuffers()) {
WsByteBuffer[] buffers = getBuffers();
if (buffers.length > decryptedNetPosInfo.length) {
d... | java |
@Override
public VirtualConnection read(long numBytes, TCPReadCompletedCallback userCallback, boolean forceQueue, int timeout) {
// Call the async read with a flag showing this was not done from a queued request.
return read(numBytes, userCallback, forceQueue, timeout, false);
} | java |
private void handleAsyncComplete(boolean forceQueue, TCPReadCompletedCallback inCallback) {
boolean fireHere = true;
if (forceQueue) {
// Complete must be returned on a separate thread.
// Reuse queuedWork object (performance), but reset the error parameters.
queuedWo... | java |
private void handleAsyncError(boolean forceQueue, IOException exception, TCPReadCompletedCallback inCallback) {
boolean fireHere = true;
if (forceQueue) {
// Error must be returned on a separate thread.
// Reuse queuedWork object (performance), but reset the error parameters.
... | java |
public long readUnconsumedDecData() {
long totalBytesRead = 0L;
// Determine if data is left over from a former read request.
if (unconsumedDecData != null) {
// Left over data exists. Is there enough to satisfy the request?
if (getBuffer() == null) {
// ... | java |
protected void getNetworkBuffer(long requestedSize) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "getNetworkBuffer: size=" + requestedSize);
}
// Reset the netBuffer mark.
this.netBufferMark = 0;
int allocationSize = getConnLink().... | java |
private void cleanupDecBuffers() {
// if we have decrypted buffers and they are either JIT created or made
// during decryption/expansion (user buffers too small) then release them
// here and dereference
if (null != this.decryptedNetBuffers
&& (callerRequiredAllocation || de... | java |
public void close() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "close, vc=" + getVCHash());
}
synchronized (closeSync) {
if (closeCalled) {
return;
}
closeCalled = true;
if (null ... | java |
private SSLEngineResult doHandshake(boolean async) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "doHandshake");
}
SSLEngineResult sslResult;
// Line up all the buffers needed for the SSL handshake. Temporary so
... | java |
protected ContextualStorage getContextualStorage(boolean createIfNotExist, String clientWindowFlowId)
{
//FacesContext facesContext = FacesContext.getCurrentInstance();
//String clientWindowFlowId = getCurrentClientWindowFlowId(facesContext);
if (clientWindowFlowId == null)
{
... | java |
protected void proxyReadHandshake() {
// setup the read buffer - use JIT on the first read attempt. If it
// works, then any subsequent reads will use that same buffer.
connLink.getReadInterface().setJITAllocateSize(1024);
// reader.setBuffer(WsByteBufferPoolManagerImpl.getRef().allocat... | java |
protected int checkResponse(TCPReadRequestContext rsc) {
// Parse the proxy server response
//
WsByteBuffer[] buffers = rsc.getBuffers();
// check if the correct response was received
if (null == buffers) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnable... | java |
protected void releaseProxyWriteBuffer() {
WsByteBuffer buffer = connLink.getWriteInterface().getBuffer();
if (null != buffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Releasing proxy write buffer: " + buffer);
}
... | java |
protected void releaseProxyReadBuffer() {
WsByteBuffer buffer = connLink.getReadInterface().getBuffer();
if (null != buffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Releasing proxy read buffer: " + buffer);
}
... | java |
protected boolean containsHTTP200(byte[] data) {
boolean rc = true;
// byte comparison to check for HTTP and 200 in the response
// this code is not pretty, it is designed to be fast
// code assumes that HTTP/1.0 200 will be contained in one buffer
//
if (data.length < ... | java |
protected void readProxyResponse(VirtualConnection inVC) {
int size = 1;
if (!this.isProxyResponseValid) {
// we need at least 12 bytes for the first line
size = 12;
}
if (connLink.isAsyncConnect()) {
VirtualConnection vcRC = connLink.getReadInterface... | java |
public synchronized void setDefaultDestLimits() throws MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setDefaultDestLimits");
// Defaults are based on those defined to the ME, the low is 80% of the high
// Use setDestLim... | java |
public long getDestHighMsgs()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getDestHighMsgs");
SibTr.exit(tc, "getDestHighMsgs", Long.valueOf(_destHighMsgs));
}
return _destHighMsgs;
} | java |
public long getDestLowMsgs()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getDestLowMsgs");
SibTr.exit(tc, "getDestLowMsgs", Long.valueOf(_destLowMsgs));
}
return _destLowMsgs;
} | java |
public void fireDepthThresholdReachedEvent(ControlAdapter cAdapter,
boolean reachedHigh,
long numMsgs, long msgLimit)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "... | java |
private void reschedule() {
// set up a daily roll
Calendar cal = Calendar.getInstance();
long today = cal.getTimeInMillis();
// adjust to somewhere after midnight of the next day
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
cal.add(Calendar.DAT... | java |
@Override
public void run() {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) // F743-425.CodRev
Tr.entry(tc, "run: " + ivTimer.ivTaskId); // F743-425.CodRev
if (serverStopping) {
if (isTraceOn && tc.isEntryEnable... | java |
public static Document parseDocument(DocumentBuilder builder, File file) throws IOException, SAXException {
final DocumentBuilder docBuilder = builder;
final File parsingFile = file;
try {
return (Document) AccessController.doPrivileged(new PrivilegedExceptionAction() {
... | java |
protected boolean checkBuffer() throws IOException {
if (!enableMultiReadofPostData) {
if (null != this.buffer) {
if (this.buffer.hasRemaining()) {
return true;
}
this.buffer.release();
this.buffer = null;
... | java |
private boolean checkMultiReadBuffer() throws IOException {
//first check existing buffer
if (null != this.buffer) {
if (this.buffer.hasRemaining()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "checkMultiReadBuffer, re... | java |
public static EsaSubsystemFeatureDefinitionImpl constructInstance(File esa) throws ZipException, IOException {
// Find the manifest - case isn't guaranteed so do a search
ZipFile zip = new ZipFile(esa);
Enumeration<? extends ZipEntry> zipEntries = zip.entries();
ZipEntry subsystemEntry =... | java |
static String formatTime() {
Date date = new Date();
DateFormat formatter = BaseTraceFormatter.useIsoDateFormat ? new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ") : DateFormatProvider.getDateFormat();
StringBuffer answer = new StringBuffer();
answer.append('[');
formatter.forma... | java |
private static String[] getCallStackFromStackTraceElement(StackTraceElement[] exceptionCallStack) {
if (exceptionCallStack == null)
return null;
String[] answer = new String[exceptionCallStack.length];
for (int i = 0; i < exceptionCallStack.length; i++) {
answer[exceptio... | java |
private static String getPackageName(String className) {
int end = className.lastIndexOf('.');
return (end > 0) ? className.substring(0, end) : "";
} | java |
public String validateCookieName(String cookieName, boolean quiet) {
if (cookieName == null || cookieName.length() == 0) {
if (!quiet) {
Tr.error(tc, "COOKIE_NAME_CANT_BE_EMPTY");
}
return CFG_DEFAULT_COOKIENAME;
}
String cookieNameUc = cookieName.toUpperCase();
boolean valid = true;
for (int i =... | java |
public void distributeBefore()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "distributeBefore", this);
boolean setRollback = false;
try
{
coreDistributeBefore();
}
catch (Throwable exc)
{
// No FFDC Code Needed.
Tr.error(tc, "WT... | java |
public void distributeAfter(int status)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "distributeAfter", new Object[] { this, status});
// Issue the RRS syncs first - these need to be as close to the completion as possible
final List RRSsyncs = _syncs[SYNC_TIER_RRS];
... | java |
public static UDPBufferFactory getRef() {
if (null == ofInstance) {
synchronized (UDPBufferFactory.class) {
if (null == ofInstance) {
ofInstance = new UDPBufferFactory();
}
}
}
return ofInstance;
} | java |
public static UDPBufferImpl getUDPBuffer(WsByteBuffer buffer, SocketAddress address) {
UDPBufferImpl udpBuffer = getRef().getUDPBufferImpl();
udpBuffer.set(buffer, address);
return udpBuffer;
} | java |
protected UDPBufferImpl getUDPBufferImpl() {
UDPBufferImpl ret = (UDPBufferImpl) udpBufferObjectPool.get();
if (ret == null) {
ret = new UDPBufferImpl(this);
}
return ret;
} | java |
public String logDirectory()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "logDirectory", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "logDirectory", _logDirectory);
return _logDirectory;
} | java |
public String logDirectoryStem()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "logDirectoryStem", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "logDirectoryStem", _logDirectoryStem);
return _logDirectoryStem;
} | java |
public int logFileSize()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "logFileSize", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "logFileSize", new Integer(_logFileSize));
return _logFileSize;
} | java |
public int maxLogFileSize()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "maxLogFileSize", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "maxLogFileSize", new Integer(_maxLogFileSize));
return _maxLogFileSize;
} | java |
void unregister() {
trackerLock.lock();
try {
if (tracker != null) {
// simply closing the tracker causes the services to be unregistered
tracker.close();
tracker = null;
}
} finally {
trackerLock.unlock();
... | java |
void update() {
final BundleContext context = componentContext.getBundleContext();
// determine the service filter to use for discovering the Library service this bell is for
String libraryRef = library.id();
// it is unclear if only looking at the id would work here.
// other ex... | java |
public static <T extends Constructible> T createObject(Class<T> clazz) {
return OASFactoryResolver.instance().createObject(clazz);
} | java |
private void printErrorMessage(String key, Object... substitutions) {
Tr.error(tc, key, substitutions);
errorMsgIssued = true;
} | java |
@Trivial
protected Object evaluateElExpression(String expression, boolean mask) {
final String methodName = "evaluateElExpression";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, methodName, new Object[] { (expression == null) ? null : mask ? OBFUSCATED_S... | java |
@Trivial
static boolean isImmediateExpression(String expression, boolean mask) {
final String methodName = "isImmediateExpression";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, methodName, new Object[] { (expression == null) ? null : mask ? OBFUSCATED_S... | java |
@Trivial
static String removeBrackets(String expression, boolean mask) {
final String methodName = "removeBrackets";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, methodName, new Object[] { (expression == null) ? null : mask ? OBFUSCATED_STRING : express... | java |
@SuppressWarnings("unchecked")
private ThreadLocalProxyCopyOnWriteArraySet<ThreadLocalProxy<?>> getProxySet() {
Object property = null;
property = bus.getProperty(PROXY_SET);
if (property == null) {
ThreadLocalProxyCopyOnWriteArraySet<ThreadLocalProxy<?>> proxyMap = new ThreadLoc... | java |
private void skipClasslessStackFrames() {
// skip over any stack trace elements that are unmatched in the classes array
if (classes.isEmpty()) return;
while (elements.size() > 0 && !!!elements.peek().getClassName().equals(classes.peek().getName())) {
elements.pop();
}
} | java |
public static boolean unregisterExtension(String key) {
if (key == null) {
throw new IllegalArgumentException(
"Parameter 'key' can not be null");
}
w.lock();
try {
return extensionMap.remove(key) != null;
} finally {
... | java |
public static void getExtensions(Map<String, String> map)
throws IllegalArgumentException {
if (map == null) {
throw new IllegalArgumentException(
"Parameter 'map' can not be null.");
}
if (recursion.get() == Boolean.TRUE) {
... | java |
@FFDCIgnore(Exception.class)
private void logProviderInfo(String providerName, ClassLoader loader) {
try {
if (PROVIDER_ECLIPSELINK.equals(providerName)) {
// org.eclipse.persistence.Version.getVersion(): 2.6.4.v20160829-44060b6
Class<?> Version = loadClass(loader... | java |
protected void checkStartStatus(BundleStartStatus startStatus) throws InvalidBundleContextException {
final String m = "checkInstallStatus";
if (startStatus.startExceptions()) {
Map<Bundle, Throwable> startExceptions = startStatus.getStartExceptions();
for (Entry<Bundle, Throwabl... | java |
protected BundleInstallStatus installBundles(BootstrapConfig config) throws InvalidBundleContextException {
BundleInstallStatus installStatus = new BundleInstallStatus();
KernelResolver resolver = config.getKernelResolver();
ContentBasedLocalBundleRepository repo = BundleRepositoryRegistry.getI... | java |
public synchronized boolean isHealthy()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isHealthy");
boolean retval = _running && !_stopRequested && (_threadWriteErrorsOutstanding == 0);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled... | java |
private String getLogDir() {
StringBuffer output = new StringBuffer();
WsLocationAdmin locationAdmin = locationAdminRef.getService();
output.append(locationAdmin.resolveString("${server.output.dir}").replace('\\', '/')).append("/logs");
return output.toString();
} | java |
private String mapToJSONString(Map<String, Object> eventMap) {
JSONObject jsonEvent = new JSONObject();
String jsonString = null;
map2JSON(jsonEvent, eventMap);
try {
if (!compact) {
jsonString = jsonEvent.serialize(true).replaceAll("\\\\/", "/");
... | java |
private JSONArray array2JSON(JSONArray ja, Object[] array) {
for (int i = 0; i < array.length; i++) {
// array entry is a Map
if (array[i] instanceof Map) {
//if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
// Tr.debug(tc, "array entr... | java |
public void writeBootstrapProperty(LibertyServer server, String propKey, String propValue) throws Exception {
String bootProps = getBootstrapPropertiesFilePath(server);
appendBootstrapPropertyToFile(bootProps, propKey, propValue);
} | java |
public void writeBootstrapProperties(LibertyServer server, Map<String, String> miscParms) throws Exception {
String thisMethod = "writeBootstrapProperties";
loggingUtils.printMethodName(thisMethod);
if (miscParms == null) {
return;
}
String bootPropFilePath = getBoot... | java |
public static WSATRecoveryCoordinator fromLogData(byte[] bytes) throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "fromLogData", bytes);
WSATRecoveryCoordinator wsatRC = null;
final ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
try {
f... | java |
private boolean handleAdditionalAnnotation(List<Parameter> parameters, Annotation annotation,
final Type type, Set<Type> typesToSkip, javax.ws.rs.Consumes classConsumes,
javax.ws.rs.Consumes methodConsumes, Components componen... | java |
protected String replaceAllProperties(String str,
final Properties submittedProps, final Properties xmlProperties) {
int startIndex = 0;
NextProperty nextProp = this.findNextProperty(str, startIndex);
while (nextProp != null) {
// get the start index past this property for the next property in
//... | java |
private String resolvePropertyValue(final String name, PROPERTY_TYPE propType,
final Properties submittedProperties, final Properties xmlProperties) {
String value = null;
switch(propType) {
case JOB_PARAMETERS:
if (submittedProperties != null) {
value = submittedProperties.getProperty(name)... | java |
private Properties inheritProperties(final Properties parentProps,
final Properties childProps) {
if (parentProps == null) {
return childProps;
}
if (childProps == null) {
return parentProps;
}
for (final String parentKey : parentProps.stringPropertyNames()) {
// Add the parent property to the ... | java |
public boolean isCommitted()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
{ // 306998.15
Tr.debug(tc, "isCommitted: " + committed);
}
return committed;
} | java |
public void write(int c) throws IOException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
{ // 306998.15
Tr.debug(tc, "write --> " + c);
}
if (!_hasWritten && obs != null)
{
_hasWritten = true;
obs.alertFirstWrite();
... | java |
protected void flushChars() throws IOException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
{ // 306998.15
Tr.debug(tc, "flushChars");
}
if (!committed)
{
if (!_hasFlushed && obs != null)
{
_hasFlushed... | java |
private void addAddressToList(String newAddress, boolean validateOnly) {
int start = 0;
char delimiter = '.';
String sub;
int radix = 10;
// Address initially set to all zeroes
int addressToAdd[] = new int[IP_ADDR_NUMBERS];
for (int i = 0; i < IP_ADDR_NUMBERS; i+... | java |
public boolean findInList(byte[] address) {
int len = address.length;
int a[] = new int[len];
for (int i = 0; i < len; i++) {
// convert possible negative byte value to positive int
a[i] = address[i] & 0x00FF;
}
return findInList(a);
} | java |
public boolean findInList6(byte[] address) {
int len = address.length;
int a[] = new int[len / 2];
// IPv6, need to combine every two bytes to the ints
int j = 0;
int highOrder = 0;
int lowOrder = 0;
for (int i = 0; i < len; i += 2) {
// convert possi... | java |
public boolean findInList(int[] address) {
int len = address.length;
if (len < IP_ADDR_NUMBERS) {
int j = IP_ADDR_NUMBERS - 1;
// for performace, hard code the size here
int a[] = { 0, 0, 0, 0, 0, 0, 0, 0 };
// int a[] = new int[IP_ADDR_NUMBERS];
... | java |
private boolean findInList(int[] address, int index, FilterCell cell, int endIndex) {
if (cell.getWildcardCell() != null) {
// first look at wildcard slot
if (index == endIndex) {
// at the end, so we found a match, unwind returning true
return true;
... | java |
public boolean isInstrumentableMethod(int access, String methodName, String descriptor) {
if ((access & Opcodes.ACC_SYNTHETIC) != 0) {
return false;
}
if ((access & Opcodes.ACC_NATIVE) != 0) {
return false;
}
if ((access & Opcodes.ACC_ABSTRACT) != 0) {
... | java |
@Mode(TestMode.LITE)
@Test
public void MPJwtBadMPConfigAsSystemProperties_GoodMpJwtConfigSpecifiedInServerXml() throws Exception {
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_AltConfigNotInApp_goodServerXmlConfig.xml");
standardTestFlow(resourceServer, MpJwt... | java |
@Override
@FFDCIgnore(JobExecutionNotRunningException.class)
public void stop() {
StopLock stopLock = getStopLock(); // Store in local variable to facilitate Ctrl+Shift+G search in Eclipse
synchronized (stopLock) {
if (isStepStartingOrStarted()) {
updateStepBatchSta... | java |
private void setExecutionTypeIfNotSet(ExecutionType executionType) {
if (this.executionType == null) {
logger.finer("Setting initial execution type value");
this.executionType = executionType;
} else {
logger.finer("Not setting execution type value since it's already ... | java |
private void validatePlanNumberOfPartitions(PartitionPlanDescriptor currentPlan) {
int numPreviousPartitions = getTopLevelStepInstance().getPartitionPlanSize();
int numCurrentPartitions = currentPlan.getNumPartitionsInPlan();
if (logger.isLoggable(Level.FINE)) {
logger.fine("For st... | java |
private boolean isStoppingStoppedOrFailed() {
BatchStatus jobBatchStatus = runtimeWorkUnitExecution.getBatchStatus();
if (jobBatchStatus.equals(BatchStatus.STOPPING) || jobBatchStatus.equals(BatchStatus.STOPPED) || jobBatchStatus.equals(BatchStatus.FAILED)) {
return true;
}
... | java |
private void partitionFinished(PartitionReplyMsg msg) {
JoblogUtil.logToJobLogAndTraceOnly(Level.FINE, "partition.ended", new Object[] {
msg.getPartitionPlanConfig().getPartitionNumber(),
... | java |
private void waitForNextPartitionToFinish(List<Throwable> analyzerExceptions, List<Integer> finishedPartitions) throws JobStoppingException {
//Use this counter to count the number of cycles we recieve jms reply message
boolean isStoppingStoppedOrFailed = false;
PartitionReplyMsg msg = null;
... | java |
@FFDCIgnore(JobStoppingException.class)
private void executeAndWaitForCompletion(PartitionPlanDescriptor currentPlan) throws JobRestartException {
if (isStoppingStoppedOrFailed()) {
logger.fine("Job already in "
+ runtimeWorkUnitExecution.getWorkUnitJobContext().getBatchS... | java |
private void checkFinishedPartitions() {
List<String> failingPartitionSeen = new ArrayList<String>();
boolean stoppedPartitionSeen = false;
for (PartitionReplyMsg replyMsg : finishedWork) {
BatchStatus batchStatus = replyMsg.getBatchStatus();
if (logger.isLoggable(Leve... | java |
@Override
protected void invokePreStepArtifacts() {
if (stepListeners != null) {
for (StepListenerProxy listenerProxy : stepListeners) {
// Call beforeStep on all the step listeners
listenerProxy.beforeStep();
}
}
// Invoke the reduce... | java |
private static String getClassNameandPath (String className, Path path) {
if (path == null) {
return getClassNameandPath(className, "/");
} else {
return getClassNameandPath(className, path.value());
}
} | java |
private static boolean checkMethodDispatcher(ClassResourceInfo cr) {
if (cr.getMethodDispatcher().getOperationResourceInfos().isEmpty()) {
LOG.warning(new org.apache.cxf.common.i18n.Message("NO_RESOURCE_OP_EXC",
BUNDLE,
... | java |
public void run()
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isDebugEnabled())
Tr.entry(tc, "run");
int numPools;
synchronized (this)
{
if (ivIsCanceled)
{
return;
}
... | java |
private Object addBatch(Object implObject, Method method, Object[] args)
throws IllegalAccessException, IllegalArgumentException, InvocationTargetException,
SQLException {
Object sqljPstmt = args[0];
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); ... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.