code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
@Override
public void ready(VirtualConnection inVC) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "ready, vc=" + getVCHash());
}
// Double check for error condition where close already happened. Protective measure.
if (!closed && Framew... | java |
protected void readyInboundPostHandshake(
WsByteBuffer netBuffer,
WsByteBuffer decryptedNetBuffer,
WsByteBuffer encryptedAppBuffer,
Handshak... | java |
private void readyOutbound(VirtualConnection inVC, boolean async) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "readyOutbound, vc=" + getVCHash());
}
final SSLChannelData config = this.sslChannel.getConfig();
// Encrypt... | java |
protected void readyOutboundPostHandshake(
WsByteBuffer netBuffer,
WsByteBuffer decryptedNetBuffer,
WsByteBuffer encryptedAppBuffer,
Han... | java |
private void handleRedundantConnect() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "handleRedundantConnect, vc=" + getVCHash());
}
// This conn link has already been connected.
// Need to shut get a new SSL engine.
cleanup();
... | java |
public void setAlpnProtocol(String protocol) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setAlpnProtocol: " + protocol + " " + this);
}
this.alpnProtocol = protocol;
this.sslConnectionContext.setAlpnProtocol(protocol);
} | java |
private void destroyConnLinks() {
synchronized (inUse) {
int numlinks = inUse.size();
for (int i = 0; i < numlinks; i++) {
inUse.removeFirst().destroy(null);
}
}
} | java |
public boolean verifySender(InetAddress remoteAddr) {
boolean returnValue = true;
if (alists != null) {
returnValue = !alists.accessDenied(remoteAddr);
}
return returnValue;
} | java |
public boolean aboveRange(InetAddress ip) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "aboveRange, ip is " + ip);
Tr.debug(tc, "aboveRange, ip is " + ip);
}
return greaterThan(ip, ipHigher);
} | java |
public boolean belowRange(InetAddress ip) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "belowRange, ip is " + ip);
Tr.debug(tc, "belowRange, ipLower is " + ipLower);
}
return lessThan(ip, ipLower);
} | java |
private String metadataValueOf(String value) {
if (value == null || value.trim().isEmpty())
return null;
return value;
} | java |
@Override
public final Object get() {
Object o = buffer.pop();
if (beanPerf != null) { // Update PMI data
beanPerf.objectRetrieve(buffer.size(), (o != null));
}
return o;
} | java |
@Override
public final void put(Object o) {
boolean discarded = false;
if (inactive) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "setting active: " + this);
// If the pool was marked inactive by the pool manager alarm, the... | java |
@Override
final void periodicDrain() {
// Drain to the minimum size but only by the maxDrainAmount.
// This slows the drain process, allowing for the pool to become
// active before becoming fully drained (to minimum level).
SizeData size = poolSize;
int numDiscarded = drainT... | java |
public void init(HttpInboundConnection conn, RequestMessage req) {
this.request = req;
this.response = conn.getResponse();
this.connection = conn;
this.outStream = new ResponseBody(this.response.getBody());
this.locale = Locale.getDefault();
} | java |
public void clear() {
this.contentType = null;
this.encoding = null;
this.locale = null;
this.outStream = null;
this.outWriter = null;
this.streamActive = false;
} | java |
private String convertURItoURL(String uri) {
int indexScheme = uri.indexOf("://");
if (-1 != indexScheme) {
int indexQuery = uri.indexOf('?');
if (-1 == indexQuery || indexScheme < indexQuery) {
// already a full url
return uri;
}
... | java |
public void commit() {
if (isCommitted()) {
return;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Committing: " + this);
}
if (null == this.response.getHeader("Content-Language")) {
// content-language not y... | java |
public void setApi(String api) {
api = api.trim();
if ("liberty".equalsIgnoreCase(api)) {
this.api = "liberty";
} else if ("websphere".equalsIgnoreCase(api)) {
this.api = "tr";
} else if ("tr".equalsIgnoreCase(api)) {
this.api = "tr";
} else if... | java |
private Map<String, String> getServletNameClassPairsInWebXML(Container containerToAdapt) throws UnableToAdaptException {
Map<String, String> nameClassPairs = new HashMap<String, String>();
WebAppConfig webAppConfig = containerToAdapt.adapt(WebAppConfig.class);
Iterator<IServletConfig> cfgIter =... | java |
private void processClassesInWebXML(EndpointInfoBuilder endpointInfoBuilder, EndpointInfoBuilderContext ctx, WebAppConfig webAppConfig,
JaxWsModuleInfo jaxWsModuleInfo, Set<String> presentedServices) throws UnableToAdaptException {
Iterator<IServletConfig> cfgIter = webA... | java |
public static TrmMessageFactory getInstance() {
if (_instance == null) {
synchronized(TrmMessageFactory.class) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createFactoryInstance");
try {
Class cls = Class.forName(TRM_MESSAGE_FACTORY_CLASS);
_i... | java |
public void addNamedEvent (String shortName, Class<? extends ComponentSystemEvent> cls)
{
String key = shortName;
Collection<Class<? extends ComponentSystemEvent>> eventList;
// Per the spec, if the short name is missing, generate one.
if (shortName == null)
... | java |
private String getFixedName (Class<? extends ComponentSystemEvent> cls)
{
StringBuilder result = new StringBuilder();
String className;
// Get the unqualified class name.
className = cls.getSimpleName();
// Strip the trailing "event" off the class n... | java |
public static String jsonifyEvent(Object event, String eventType, String serverName, String wlpUserDir, String serverHostName, String[] tags,
int maxFieldLength) {
if (eventType.equals(CollectorConstants.GC_EVENT_TYPE)) {
if (event instanceof GCData) {
... | java |
public void valueHasChanged(DCache cache, Object id, long expirationTime, int inactivity) { // CPF-Inactivity
//final String methodName = "valueHasChanged()";
if (expirationTime <= 0 && inactivity <=0 ) { // CPF-Inactivity
throw new IllegalArgumentException("expirationTime or inactivity mus... | java |
public void valueWasRemoved(DCache cache, Object id) {
//final String methodName = "valueWasRemoved()";
if ( UNIT_TEST_INACTIVITY ) {
System.out.println("valueWasRemoved() - entry");
}
ExpirationMetaData expirationMetaData = (ExpirationMetaData)cacheInstancesTable.get(cache);... | java |
public void valueWasAccessed(DCache cache, Object id, long expirationTime, int inactivity) {
valueHasChanged(cache, id, expirationTime, inactivity);
} | java |
public void createExpirationMetaData(DCache cache) {
//final String methodName = "createExpirationMetaData()";
ExpirationMetaData expirationMetaData = (ExpirationMetaData)cacheInstancesTable.get(cache);
if (expirationMetaData == null) {
int initialTableSize = DEFAULT_SIZE_FOR_MEM;
... | java |
public ApplicationSignature getApplicationSignature()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getApplicationSignature");
SibTr.exit(tc, "getApplicationSignature", applicationSig);
}
return applicationSig;
} | java |
public static String getUserNameFromSubject(Subject subject) {
Iterator<Principal> it = subject.getPrincipals().iterator();
String username = it.next().getName();
return username;
} | java |
public static String encode(String value) {
if (value == null) {
return value;
}
try {
value = URLEncoder.encode(value, Constants.UTF_8);
} catch (UnsupportedEncodingException e) {
// Do nothing - UTF-8 should always be supported
}
retu... | java |
public static String getTimeStamp(long lNumber) {
String timeStamp = "" + lNumber;
int iIndex = TIMESTAMP_LENGTH - timeStamp.length(); // this is enough for 3000 years
return zeroFillers[iIndex] + timeStamp;
} | java |
public static String createNonceCookieValue(String nonceValue, String state, ConvergedClientConfig clientConfig) {
return HashUtils.digest(nonceValue + state + clientConfig.getClientSecret());
} | java |
private void compress()
{
counter = 1;
for (Iterator e = values().iterator(); e.hasNext(); )
{
Selector s = (Selector) e.next();
s.setUniqueId(counter++);
}
} | java |
private static JsJmsMessage decodeTextBody(String body) throws MessageDecodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "decodeTextBody");
JsJmsTextMessage result = new JsJmsTextMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP);
if (bo... | java |
private static JsJmsMessage decodeBytesBody(String body) throws MessageDecodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "decodeBytesBody");
JsJmsBytesMessage result = new JsJmsBytesMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP);
if... | java |
private static JsJmsMessage decodeObjectBody(String body) throws MessageDecodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "decodeObjectBody");
JsJmsObjectMessage result = new JsJmsObjectMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP);
... | java |
private static JsJmsMessage decodeStreamBody(String body) throws MessageDecodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "decodeStreamBody");
JsJmsStreamMessage result = new JsJmsStreamMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP);
... | java |
private static JsJmsMessage decodeMapBody(String body) throws MessageDecodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "decodeMapBody");
JsJmsMapMessage result = new JsJmsMapMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP);
if (body !... | java |
private static void decodeHeader(JsJmsMessage msg, String id, String type, String topic, String props) {
// id should be hexEncoded byte array but if it looks too short we prepend a '0' to
// allow clients to simply use an integer if they want.
if (id != null) {
if (id.length() % 2 !... | java |
private static Object[] decodePair(String text) {
Object[] result = new Object[2];
int i = text.indexOf('=');
result[0] = URLDecode(text.substring(0, i));
result[1] = decodeObject(text.substring(i + 1));
return result;
} | java |
private static Object decodeObject(String text) {
Object result = null;
if (text.startsWith("[]"))
result = HexString.hexToBin(text, 2);
else
result = URLDecode(text);
return result;
} | java |
private static String URLDecode(String text) {
String result = null;
try {
result = URLDecoder.decode(text, "UTF8");
} catch (UnsupportedEncodingException e) {
// Should never happen - all JDKs must support UTF8
FFDCFilter.processException(e, "com.ibm.ws.sib.m... | java |
@Override
public MatchResponse getMatchResponse(SecurityConstraint securityConstraint, String resourceName, String method) {
CollectionMatch collectionMatch = getCollectionMatch(securityConstraint.getWebResourceCollections(), resourceName, method);
if (CollectionMatch.RESPONSE_NO_MATCH.equals(collec... | java |
protected void deactivate(ComponentContext ctxt, int reason) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "Deactivating, reason=" + reason);
}
unregisterAll();
} | java |
public void addHttpSessionListener(HttpSessionListener listener, String J2EEName) {
synchronized (mHttpSessionListeners) {
mHttpSessionListeners.add(listener);
mHttpSessionListenersJ2eeNames.add(J2EEName);
sessionListener = true;
_coreHttpSessionManager.getIStore(... | java |
protected String getArgumentValue(String arg, String[] args, ConsoleWrapper stdin, PrintStream stdout) {
for (int i = 1; i < args.length; i++) {
String key = args[i].split("=")[0];
if (key.equals(arg)) {
return getValue(args[i]);
}
}
return nul... | java |
public void setHeartbeatInterval(short heartbeatInterval)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setHeartbeatInterval");
properties.put(HEARTBEAT_INTERVAL, heartbeatInterval);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.e... | java |
private boolean isZip(JarEntry entry) throws IOException {
try (InputStream entryInputStream = sourceFatJar.getInputStream(entry)) {
try (ZipInputStream zipInputStream = new ZipInputStream(entryInputStream)) {
ZipEntry ze = zipInputStream.getNextEntry();
if (ze == nul... | java |
public static File getLogDir() {
String logDirLoc = null;
// 1st check in environment variable is set. This is the normal case
// when the server is started from the command line.
if (logDir.get() == null) {
File resultDir = null;
try {
logDirLo... | java |
public static File getOutputDir(boolean isClient) {
String outputDirLoc = null;
// 1st check in environment variable is set. This is the normal case
// when the server is started from the command line.
if (outputDir.get() == null) {
try {
outputDirLoc = Ac... | java |
public static boolean tryToClose(ZipFile zipFile) {
if (zipFile != null) {
try {
zipFile.close();
return true;
} catch (IOException e) {
// ignore
}
}
return false;
} | java |
public static Class<?> getRealClass(Class<?> clazz) {
Class<?> realClazz = clazz;
if (isWeldProxy(clazz)) {
realClazz = clazz.getSuperclass();
}
return realClazz;
} | java |
public void destroy(Exception e) {
if (this.appCallback != null) {
this.appCallback.destroy(e);
this.appCallback = null;
}
} | java |
public synchronized void addSmap(String smap, String stratumName) {
embedded.add("*O " + stratumName + "\n" + smap + "*C " + stratumName + "\n");
} | java |
public void dumpItems() {
LinkedList<CBuffRecord> copy = new LinkedList<CBuffRecord>();
synchronized(this) {
copy.addAll(buffer);
buffer.clear();
currentSize = 0L;
if (headerBytes == null) {
return;
}
}
dumpWriter.setHeader(headerBytes);
for(CBuffRecord record: copy) {
dumpWriter.logR... | java |
protected Index getJandexIndex() {
String methodName = "getJandexIndex";
boolean doLog = tc.isDebugEnabled();
boolean doJandexLog = JandexLogger.doLog();
boolean useJandex = getUseJandex();
if ( !useJandex ) {
// Figuring out if there is a Jandex index is mildly expensiv... | java |
public boolean and(SimpleTest newTest) {
for (int i = 0; i < tmpSimpleTests.size(); i++) {
SimpleTest cand = (SimpleTest) tmpSimpleTests.get(i);
if (cand.getIdentifier().getName().equals(newTest.getIdentifier().getName()))
{
// Careful, may be operating in XPath selector domain, in which
... | java |
public boolean organize() {
// First, find any simple tests that can be used to reduce residual components to
// simple tests or pure truth values, either because the simple test is a NULL test or
// because it is effectively an equality test.
if (tmpResidual.size() > 0) {
List[] equatedIds = find... | java |
private List[] findEquatedIdentifiers() {
List[] ans = null;
for (int i = 0; i < tmpSimpleTests.size(); i++) {
SimpleTest cand = (SimpleTest) tmpSimpleTests.get(i);
if (cand.getKind() == SimpleTest.NULL) {
if (ans == null)
ans = new List[] { new ArrayList(), new ArrayList() };
... | java |
private List[] reduceResidual(List[] equatedIds) {
List[] ans = null;
for (int i = 0; i < tmpResidual.size(); ) {
Operator oper = substitute((Operator) tmpResidual.get(i), equatedIds);
if (oper.getNumIds() > 0 && !Matching.isSimple(oper))
// Even after substitution, must remain as a residual... | java |
private static Operator substitute(Operator oper, List[] equatedIds) {
Selector op1 = oper.getOperands()[0];
Selector op2 = (oper.getOperands().length == 1) ? null : oper.getOperands()[1];
if (op1 instanceof Identifier)
op1 = substitute((Identifier) op1, equatedIds);
else if (op1 instanceof Operat... | java |
private static Selector substitute(Identifier id, List[] equatedIds) {
for (int i = 0; i < equatedIds[0].size(); i++)
if (id.getName().equals(equatedIds[0].get(i)))
return new LiteralImpl(equatedIds[1].get(i));
return id;
} | java |
private void setUnavailableUntil(long time, boolean isInit) //PM01373
{
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE))
logger.logp(Level.FINE, CLASS_NAME, "setUnavailableUntil", "setUnavailableUntil() : " + time);
if(isInit){
state = UNINITIALI... | java |
protected void setUninitialize()
{
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))
logger.logp(Level.FINE, CLASS_NAME,"setUninitialized ","" + this.toString());
state = UNINITIALIZED_STATE;
} | java |
protected synchronized void invalidateCacheWrappers() {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) // 306998.15
logger.entering(CLASS_NAME, "invalidateCacheWrappers"); // 569469
if (cacheWrappers != null) {
// invalidate all the ca... | java |
private boolean checkForDefaultImplementation(Class checkClass, String checkMethod, Class[] methodParams){
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable (Level.FINE)) //306998.14
logger.exiting(CLASS_NAME,"checkForDefaultImplementation","Method : " + checkMethod + ", Class... | java |
private int findIndexByKey(Object key)
{
// Traverse the vector from the back. Given proper locking done at
// a higher level, this will ensure that the cache gets to the same
// element in the presence of duplicates.
// Traversing the vector from the first element causes a problem s... | java |
public void toArray(Element[] dest)
{
if (ivElements != null)
{
System.arraycopy(ivElements, ivHeadIndex, dest, 0, size());
}
} | java |
private void add(Element element)
{
if (ivElements == null)
{
ivElements = new Element[DEFAULT_CAPACITY];
}
else if (ivTailIndex == ivElements.length)
{
// No more room at the tail of the array. If we're completely out of
// space (ivBaseI... | java |
private void remove(int listIndex)
{
if (listIndex == 0)
{
// Trivially remove from head.
ivElements[ivHeadIndex++] = null;
}
else if (listIndex == ivTailIndex - 1)
{
// Trivially remove from tail.
ivElements[--ivTailIndex] = nu... | java |
public void setToBeDeleted()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setToBeDeleted");
synchronized (_anycastInputHandlers)
{
_toBeDeleted = true;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit... | java |
private boolean isInternalUnprotectedMethod(EJBMethodMetaData methodMetaData) {
EJBMethodInterface interfaceType = methodMetaData.getEJBMethodInterface();
/***
* For TIMED_OBJECT, the code references EJB 2.1 spec section 22.2.2 and matches a
* method signature, which is necessary but n... | java |
public JWTTokenValidationFailedException errorCommon(boolean bTrError, TraceComponent tc, String[] msgCodes, Object[] objects) throws JWTTokenValidationFailedException {
int msgIndex = 0;
if (!TYPE_ID_TOKEN.equals(this.getTokenType())) {
msgIndex = 1;
}
return errorCommon(bTr... | java |
static JSBoxedListImpl create(JSVaryingList subList, int subAccessor) {
if (subList.getIndirection() > 0)
return new JSIndirectBoxedListImpl(subList, subAccessor);
else
return new JSBoxedListImpl(subList, subAccessor);
} | java |
public Object get(int accessor) {
try {
return ((JMFNativePart)subList.getValue(accessor)).getValue(subAccessor);
} catch (JMFException ex) {
FFDCFilter.processException(ex, "get", "129", this);
return null;
}
} | java |
protected void setCredentials(Subject subject,
String securityName,
String urAuthenticatedId) throws Exception {
// Principal principal = new WSPrincipal(securityName, accessId, authMethod);
if (urAuthenticatedId != null && !urAuthentica... | java |
protected void updateSubjectWithSharedStateContents() {
subject.getPrincipals().add((WSPrincipal) sharedState.get(Constants.WSPRINCIPAL_KEY));
subject.getPublicCredentials().add(sharedState.get(Constants.WSCREDENTIAL_KEY));
if (sharedState.get(Constants.WSSSOTOKEN_KEY) != null)
subje... | java |
void setUpSubject(final String securityName, final String accessId,
final String authMethod) throws LoginException {
// Populate a temporary subject in response to a successful authentication.
// We use a temporary Subject because if something goes wrong in this flow,
// we... | java |
protected void payloadWritten(int payloadSize)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "payloadWritten", new Object[] { this, payloadSize });
_unwrittenDataSize.addAndGet(-payloadSize);
if (tc.isDebugEnabled())
Tr.debug(tc, "unwrittenDataSize = " + _unwrittenDataSiz... | java |
protected void payloadDeleted(int totalPayloadSize, int unwrittenPayloadSize)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "payloadDeleted", new Object[] { this, totalPayloadSize, unwrittenPayloadSize });
_unwrittenDataSize.addAndGet(-unwrittenPayloadSize);
synchronized (this)
... | java |
protected void addRecoverableUnit(RecoverableUnit recoverableUnit, boolean recovered)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "addRecoverableUnit", new Object[] { recoverableUnit, recovered, this });
final long identity = recoverableUnit.identity();
_recoverableUnits.put(identi... | java |
protected RecoverableUnitImpl removeRecoverableUnitMapEntries(long identity)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "removeRecoverableUnitMapEntries", new Object[] { identity, this });
final RecoverableUnitImpl recoverableUnit = (RecoverableUnitImpl) _recoverableUnits.remove(identity);... | java |
protected RecoverableUnitImpl getRecoverableUnit(long identity)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getRecoverableUnit", new Object[] { identity, this });
RecoverableUnitImpl recoverableUnit = null;
// Only attempt to resolve the recoverable unit if the log is compatible a... | java |
@Override
public void associateLog(DistributedRecoveryLog otherLog, boolean failAssociatedLog)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "associateLog", new Object[] { otherLog, failAssociatedLog, this });
if (otherLog instanceof MultiScopeLog)
{
_associatedLog = (... | java |
public Class getDiscriminatoryDataType() {
if (tc.isEntryEnabled())
SibTr.entry(this, tc, "getDiscriminatorDataType");
if (tc.isEntryEnabled())
SibTr.exit(this, tc, "getDiscriminatorDataType");
return com.ibm.wsspi.bytebuffer.WsByteBuffer.class; // F188491
} | java |
public Channel getChannel() {
if (tc.isEntryEnabled())
SibTr.entry(this, tc, "getChannel");
if (tc.isEntryEnabled())
SibTr.exit(this, tc, "getChannel", channel);
return channel;
} | java |
public int getWeight() {
if (tc.isEntryEnabled())
SibTr.entry(this, tc, "getWeight");
if (tc.isEntryEnabled())
SibTr.exit(this, tc, "getWeight");
// TODO: this probably isn't a good value.
return 0;
} | java |
protected synchronized void join(SIXAResource resource)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "join", resource);
resourcesJoinedToThisResource.add(resource);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "joi... | java |
protected synchronized void unjoin(SIXAResource resource)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unjoin", resource);
resourcesJoinedToThisResource.remove(resource);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, t... | java |
protected void updatedSslSupport(SSLSupport service, Map<String, Object> props) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "updatedSslSupport", props);
}
sslSupport = service;
// If the default pid has changed.. we need to go hunting f... | java |
public static JSSEProvider getJSSEProvider() {
SSLChannelProvider p = instance.get();
if (p != null)
return p.sslSupport.getJSSEProvider();
throw new IllegalStateException("Requested service is null: no active component instance");
} | java |
public static JSSEHelper getJSSEHelper() {
SSLChannelProvider p = instance.get();
if (p != null)
return p.sslSupport.getJSSEHelper();
throw new IllegalStateException("Requested service is null: no active component instance");
} | java |
public static DateFormat getBasicDateFormatter() { // PK42263 - made static
// Retrieve a standard Java DateFormat object with desired format, using default locale
return customizeDateFormat(DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM), false);
} | java |
public static DateFormat customizeDateFormat(DateFormat formatter, boolean isoDateFormat) {
String pattern;
int patternLength;
int endOfSecsIndex;
if (!!!isoDateFormat) {
if (formatter instanceof SimpleDateFormat) {
// Retrieve the pattern from the formatter,... | java |
private void setAndValidateProperties(String cfgAuthentication,
String cfgAuthorization,
String cfgUserRegistry) {
if ((cfgAuthentication == null) || cfgAuthentication.isEmpty()) {
throwIllegalArgumentExceptionMissin... | java |
@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL)
protected synchronized void setServerStarted(ServerStarted serverStarted) {
isServerStarted = true;
// Start SystemModule if everything else is ready
startManagementEJB();
} | java |
public HashMap<String,Object> saveContextData(){
HashMap<String,Object> contextData = new HashMap<String, Object>();
//Save off the data from the other components we have hooks into
ComponentMetaDataAccessorImpl cmdai = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor();
... | java |
@Override
public Subject finalizeSubject(Subject subject,
ConnectionRequestInfo reqInfo,
CMConfigData cmConfigData) throws ResourceException {
final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled();
if (isTracingE... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.