code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
protected int getAllowCachedTimerData(J2EEName j2eeName) {
Integer allowCachedTimerData = null;
Map<String, Integer> localAllowCachedTimerDataMap = allowCachedTimerDataMap;
if (localAllowCachedTimerDataMap != null) {
allowCachedTimerData = localAllowCachedTimerDataMap.get(j2eeName.to... | java |
public void batchUpdate(HashMap invalidateIdEvents, HashMap invalidateTemplateEvents, ArrayList pushEntryEvents, ArrayList aliasEntryEvents, CacheUnit cacheUnit) { //CCC
// nothing to do for NullNotification
} | java |
public static JCATranWrapper getTxWrapper(Xid xid, boolean addAssociation) throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "getTxWrapper", new Object[] { xid, addAssociation});
final ByteArray key = new ByteArray(xid.getGlobalTransactionId());
final JCATranWrapper txWrapper;
... | java |
protected JCATranWrapper findTxWrapper(int timeout, Xid xid, String providerId) throws WorkCompletedException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "findTxWrapper", new Object[] { timeout, xid, providerId });
final JCATranWrapper txWrapper;
final ByteArray key = new ByteArray(xid.getGloba... | java |
protected JCATranWrapper createWrapper(int timeout, Xid xid, JCARecoveryData jcard) throws WorkCompletedException /* @512190C*/
{
return new JCATranWrapperImpl(timeout, xid, jcard); // @D240298C
} | java |
public static void addTxn(TransactionImpl txn)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "addTxn", txn);
final ByteArray key = new ByteArray(txn.getXid().getGlobalTransactionId());
synchronized (txnTable)
{
if (!txnTable.containsKey(key))
{
txn... | java |
@SuppressWarnings("unchecked")
public K getKey(int index)
{
if ((index < 0) || (index >= size()))
{
throw new IndexOutOfBoundsException();
}
return (K) _array[index * 2];
} | java |
@SuppressWarnings("unchecked")
public V getValue(int index)
{
if ((index < 0) || (index >= size()))
{
throw new IndexOutOfBoundsException();
}
return (V) _array[index * 2 + 1];
} | java |
static public Object get(Object[] array, Object key)
{
Object o = getByIdentity(array, key);
if (o != null)
{
return o;
}
return getByEquality(array, key);
} | java |
static public Object getByIdentity(Object[] array, Object key)
{
if (array != null)
{
int length = array.length;
for (int i = 0; i < length; i += 2)
{
if (array[i] == key)
{
return array[i + 1];
}... | java |
static public Object getByEquality(Object[] array, Object key)
{
if (array != null)
{
int length = array.length;
for (int i = 0; i < length; i += 2)
{
Object targetKey = array[i];
if (targetKey == null)
{
... | java |
@SuppressWarnings("unchecked")
public Iterator<K> keys()
{
int size = _size;
if (size == 0)
{
return null;
}
ArrayList<K> keyList = new ArrayList<K>();
int i = (size - 1) * 2;
while (i >= 0)
{
keyList.add((K) _array[i]);
... | java |
public static Iterator<Object> getKeys(Object[] array)
{
if (array == null)
{
return null;
}
ArrayList<Object> keyList = new ArrayList<Object>();
int i = array.length - 2;
while (i >= 0)
{
keyList.add(array[i]);
i = i - 2;
... | java |
public static Iterator<Object> getValues(Object[] array)
{
if (array == null)
{
return null;
}
ArrayList<Object> valueList = new ArrayList<Object>();
int i = array.length - 1;
while (i >= 0)
{
valueList.add(array[i]);
i = i ... | java |
@Override
public void clear()
{
int size = _size;
if (size > 0)
{
size = size * 2;
for (int i = 0; i < size; i++)
{
_array[i] = null;
}
_size = 0;
}
} | java |
private void sendErrorJSON(HttpServletResponse response, int statusCode, String errorCode, String errorDescription) {
final String error = "error";
final String error_description = "error_description";
try {
if (errorCode != null) {
response.setStatus(statusCode);
... | java |
public boolean first() throws SQLException {
try {
if (dsConfig.get().beginTranForResultSetScrollingAPIs)
getConnectionWrapper().beginTransactionIfNecessary();
return rsetImpl.first();
} catch (SQLException ex) {
FFDCFilter.processException(ex, "com.i... | java |
public Array getArray(int arg0) throws SQLException {
try {
Array ra = rsetImpl.getArray(arg0);
if (ra != null && freeResourcesOnClose)
arrays.add(ra);
return ra;
} catch (SQLException ex) {
FFDCFilter.processException(ex, "com.ibm.ws.rs... | java |
public Blob getBlob(int arg0) throws SQLException {
try {
Blob blob = rsetImpl.getBlob(arg0);
if (blob != null && freeResourcesOnClose)
blobs.add(blob);
return blob;
} catch (SQLException ex) {
FFDCFilter.processException(ex, "com.ibm.ws... | java |
public Reader getCharacterStream(int arg0) throws SQLException {
try {
Reader reader = rsetImpl.getCharacterStream(arg0);
if (reader != null && freeResourcesOnClose)
resources.add(reader);
return reader;
} catch (SQLException ex) {
FFDCF... | java |
public Clob getClob(int arg0) throws SQLException {
try {
Clob clob = rsetImpl.getClob(arg0);
if (clob != null && freeResourcesOnClose)
clobs.add(clob);
return clob;
} catch (SQLException ex) {
FFDCFilter.processException(ex, "com.ibm.ws... | java |
public String getCursorName() throws SQLException {
try {
return rsetImpl.getCursorName();
} catch (SQLException ex) {
FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getCursorName", "1129", this);
throw WSJdbcUtil.mapException(this, ex);
... | java |
public int getFetchDirection() throws SQLException {
try {
return rsetImpl.getFetchDirection();
} catch (SQLException ex) {
FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getFetchDirection", "1336", this);
throw WSJdbcUtil.mapException(this... | java |
public ResultSetMetaData getMetaData() throws SQLException {
if (tc.isEntryEnabled())
Tr.entry(this, tc, "getMetaData");
// First, check if a ResultSetMetaData wrapper for this ResultSet already exists.
ResultSetMetaData rsetMData = null;
try // get a meta data
{
... | java |
public Object getObject(String arg0) throws SQLException {
try {
Object result = rsetImpl.getObject(arg0);
addFreedResources(result);
return result;
} catch (SQLException ex) {
FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.ge... | java |
public Statement getStatement() throws SQLException {
// The parent of a ResultSet may be a Statement or a MetaData.
// For ResultSets created by MetaDatas, the getStatement method should return null,
// unless the result set is closed.
if (state == State.CLOSED || parentWrapper == null... | java |
public SQLWarning getWarnings() throws SQLException {
try {
return rsetImpl.getWarnings();
} catch (SQLException ex) {
FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getWarnings", "2345", this);
throw WSJdbcUtil.mapException(this, ex);
... | java |
public void setFetchDirection(int direction) throws SQLException {
if (tc.isDebugEnabled())
Tr.debug(this, tc, "setFetchDirection", AdapterUtil.getFetchDirectionString(direction));
try {
rsetImpl.setFetchDirection(direction);
} catch (SQLException ex) {
FFDCF... | java |
public void setFetchSize(int rows) throws SQLException {
if (tc.isDebugEnabled())
Tr.debug(this, tc, "setFetchSize", rows);
try {
rsetImpl.setFetchSize(rows);
} catch (SQLException ex) {
FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultS... | java |
public void updateBinaryStream(String arg0, InputStream arg1, int arg2) throws SQLException {
try {
rsetImpl.updateBinaryStream(arg0, arg1, arg2);
} catch (SQLException ex) {
FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.updateBinaryStream", "3075", t... | java |
public void updateCharacterStream(String arg0, Reader arg1, int arg2) throws SQLException {
try {
rsetImpl.updateCharacterStream(arg0, arg1, arg2);
} catch (SQLException ex) {
FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.updateCharacterStream", "3317... | java |
public void updateObject(int arg0, Object arg1, int arg2) throws SQLException {
try {
rsetImpl.updateObject(arg0, arg1, arg2);
} catch (SQLException ex) {
FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.updateObject", "3737", this);
throw WS... | java |
@Override
public void afterCompletion(int status) {
logger.log(Level.FINE, "The status of the transaction commit is: " + status);
if (status == Status.STATUS_COMMITTED){
//Save the metrics object after a successful commit
runtimeStepExecution.setCommittedMetrics();
}... | java |
public final Object invokeInterceptor(Object bean, InvocationContext inv, Object[] interceptors) throws Exception {
// Interceptor instance is the bean instance itself if the
// interceptor index is < 0.
Object interceptorInstance = (ivBeanInterceptor) ? bean : interceptors[ivInterceptorIndex];
... | java |
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
String methodName = method.getName();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(this, tc, methodName, args);
Object r = null;
try {
if... | java |
protected String getMFMainClass(Container appEntryContainer, String entryPath, boolean required) {
String mfMainClass = null;
try {
String entry = "/META-INF/MANIFEST.MF";
Entry manifestEntry = appEntryContainer.getEntry(entry);
if (manifestEntry != null) {
... | java |
protected int insert(SpdData elt) {
if (members.isEmpty()) {
members.add(elt);
return 0;
}
int first = 0;
SpdData firstElt = (SpdData) members.get(first);
int last = members.size() - 1;
SpdData lastElt = (SpdData) members.get(last);
if (e... | java |
public synchronized boolean addSorted(SpdData data) {
if (data == null) {
return false;
} else if (members.contains(data)) {
return false;
} else {
return (insert(data) != -1);
}
} | java |
public synchronized boolean add(SpdData data) {
if (data == null) {
return false;
} else if (members.contains(data)) {
return false;
} else {
return members.add(data);
}
} | java |
private void collectFeatureInfos(Map<String, ProductInfo> productInfos,
Map<String, FeatureInfo> featuresBySymbolicName) {
ManifestFileProcessor manifestFileProcessor = new ManifestFileProcessor();
for (Map.Entry<String, Map<String, ProvisioningFeatureDefinition>> pr... | java |
private FeatureInfo getFeatureInfo(String name,
Map<String, ProductInfo> productInfos,
Map<String, FeatureInfo> featuresBySymbolicName) {
String productName, featureName;
int index = name.indexOf(':');
if (index == -1)... | java |
private void collectAPIJars(FeatureInfo featureInfo,
Map<String, FeatureInfo> allowedFeatures,
Set<File> apiJars) {
for (SubsystemContentType contentType : JAR_CONTENT_TYPES) {
for (FeatureResource resource : featureInfo.feature.getCons... | java |
private void createClasspathJar(File outputFile, String classpath) throws IOException {
FileOutputStream out = new FileOutputStream(outputFile);
try {
Manifest manifest = new Manifest();
Attributes attrs = manifest.getMainAttributes();
attrs.put(Attributes.Name.MANIFE... | java |
public void setupDiscProcess() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "setupDiscProcess");
}
ChannelData list[] = chainData.getChannelList();
Class<?> discriminatoryType = null;
DiscriminationProcessImpl dp = null;
if... | java |
public void startDiscProcessBetweenChannels(InboundChannel appChannel, InboundChannel devChannel,
int discWeight) throws ChainException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "startDiscProcessBetweenChannels")... | java |
public void disableChannel(Channel inputChannel)
throws InvalidChannelNameException, DiscriminationProcessException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "disableChannel: " + inputChannel.getName());
}
synchronized (stat... | java |
@Override
public void writeSilence(MessageItem m)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "writeSilence", new Object[] { m });
JsMessage jsMsg = m.getMessage();
// There may be Completed ticks after the Value, if so then
... | java |
private void handleNewGap(long startstamp, long endstamp)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"handleNewGap",
new Object[] { Long.valueOf(startstamp), Long.valueOf(endstamp) })... | java |
protected static void addAlarm(Object key, Object alarmObject)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addAlarm", new Object[] { key, alarmObject });
synchronized (pendingAlarms)
{
Set alarms = null;
if (pending... | java |
protected static void removeAlarm(Object key, Object alarmObject)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeAlarm", new Object[] { key, alarmObject });
synchronized (pendingAlarms)
{
if (pendingAlarms.containsKey(key))
... | java |
protected static Iterator getAlarms(Object key)
{
synchronized (pendingAlarms)
{
if (pendingAlarms.containsKey(key))
return ((Set) pendingAlarms.get(key)).iterator();
return new GTSIterator();
}
} | java |
private boolean isStreamBlocked()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "isStreamBlocked");
SibTr.exit(tc, "isStreamBlocked", new Object[] { Boolean.valueOf(isStreamBlocked),
... | java |
private boolean isStreamBlockedUnexpectedly()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "isStreamBlockedUnexpectedly");
SibTr.exit(tc, "isStreamBlockedUnexpectedly", Boolean.valueOf(unexpectedBlock));
}
return u... | java |
private boolean streamCanAcceptNewMessage(MessageItem msgItem, long valueTick) throws SIException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "streamCanAcceptNewMessage", new Object[] { msgItem, Long.valueOf(valueTick) });
boolean allowSend = ... | java |
public static UOWManager getUOWManager()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getUOWManager");
final UOWManager uowm = com.ibm.ws.uow.embeddable.UOWManagerFactory.getUOWManager();
if (tc.isEntryEnabled())
Tr.exit(tc, "getUOWManager", uowm);
return uowm;
... | java |
String getProcErrorOutput(Process proc) throws IOException {
StringBuffer output = new StringBuffer();
InputStream procIn = proc.getInputStream();
int read;
// Dump the data printed by the process
do {
byte[] buffer = new byte[BUFFER_SIZE];
read = procIn.... | java |
public void init(boolean useDirect, int outSize, int inSize, int cacheSize) {
super.init(useDirect, outSize, inSize, cacheSize);
} | java |
public void setDeferredTrailer(HeaderKeys hdr, HttpTrailerGenerator htg) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "setDeferredTrailer(HeaderKeys): " + hdr);
}
if (null == hdr) {
throw new IllegalArgumentException("Null header name");
}
if (null == htg) {
... | java |
public void computeRemainingTrailers() {
if (tc.isEntryEnabled()) {
Tr.entry(tc, "computeRemainingTrailers");
}
Iterator<HeaderKeys> knowns = this.knownTGs.keySet().iterator();
while (knowns.hasNext()) {
HeaderKeys key = knowns.next();
setHeader(key, t... | java |
public void destroy() {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "Destroy trailers: " + this);
}
super.destroy();
if (null != this.myFactory) {
this.myFactory.releaseTrailers(this);
this.myFactory = null;
}
} | java |
public HttpTrailersImpl duplicate() {
if (null == this.myFactory) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "Null factory, unable to duplicate: " + this);
}
return null;
}
if (tc.isDebugEnabled()) {
Tr.debug(tc, "Duplicating the tr... | java |
public static boolean isPathContained(List<String> allowedPaths, String targetPath) {
if (allowedPaths == null || allowedPaths.isEmpty() || targetPath == null) {
return false;
}
//Remove trailing slashes, if applicable
if (!targetPath.isEmpty() &&
targetPath.cha... | java |
public StatisticImpl getStatistic() {
if (enabled) {
long curTime = stat.updateIntegral();
stat.setLastSampleTime(curTime);
return stat;
} else {
return stat;
}
} | java |
public void combine(SpdLoad other) {
if (other == null)
return;
if (stat.isEnabled() && other.isEnabled())
//stat.combine((BoundedRangeStatisticImpl)other.getStatistic());
stat.combine(other.getStatistic());
} | java |
private String getProperty(String variable, EvaluationContext context, boolean ignoreWarnings, boolean useEnvironment) throws ConfigEvaluatorException {
return stringUtils.convertToString(getPropertyObject(variable, context, ignoreWarnings, useEnvironment));
} | java |
Object processVariableLists(Object rawValue, ExtendedAttributeDefinition attributeDef,
EvaluationContext context, boolean ignoreWarnings) throws ConfigEvaluatorException {
if (attributeDef != null && !attributeDef.resolveVariables())
return rawValue;
if (rawV... | java |
ContentMatcher nextMatcher(Conjunction selector, ContentMatcher oldMatcher) {
return Factory.createMatcher(ordinalPosition, selector, oldMatcher);
} | java |
private void syncToOSThread(WebSecurityContext webSecurityContext) throws SecurityViolationException {
try {
Object token = ThreadIdentityManager.setAppThreadIdentity(subjectManager.getInvocationSubject());
webSecurityContext.setSyncToOSThreadToken(token);
} catch (ThreadIdentity... | java |
private void resetSyncToOSThread(WebSecurityContext webSecurityContext) throws ThreadIdentityException {
Object token = webSecurityContext.getSyncToOSThreadToken();
if (token != null) {
ThreadIdentityManager.resetChecked(token);
}
} | java |
public AuthenticationResult authenticateRequest(WebRequest webRequest) {
WebAuthenticator authenticator = getWebAuthenticatorProxy();
return authenticator.authenticate(webRequest);
} | java |
public boolean authorize(AuthenticationResult authResult, String appName, String uriName, Subject previousCaller, List<String> requiredRoles) {
// Set the authorized subject on the thread
subjectManager.setCallerSubject(authResult.getSubject());
boolean isAuthorized = authorize(authResult, appNa... | java |
public WebReply performInitialChecks(WebRequest webRequest, String uriName) {
WebReply webReply = null;
HttpServletRequest req = webRequest.getHttpServletRequest();
String methodName = req.getMethod();
if (uriName == null || uriName.length() == 0) {
return new DenyReply("Inv... | java |
private WebReply unprotectedSpecialURI(WebRequest webRequest, String uriName, String methodName) {
LoginConfiguration loginConfig = webRequest.getLoginConfig();
if (loginConfig == null)
return null;
String authenticationMethod = loginConfig.getAuthenticationMethod();
FormLog... | java |
private boolean isServletSpec31() {
if (com.ibm.ws.webcontainer.osgi.WebContainer.getServletContainerSpecLevel() >= 31)
return true;
return false;
} | java |
private void notifyWebAppSecurityConfigChangeListeners(List<String> delta) {
WebAppSecurityConfigChangeEvent event = new WebAppSecurityConfigChangeEventImpl(delta);
for (WebAppSecurityConfigChangeListener listener : webAppSecurityConfigchangeListenerRef.services()) {
listener.notifyWebAppSec... | java |
private String toStringFormChangedPropertiesMap(Map<String, String> delta) {
if (delta == null || delta.isEmpty()) {
return "";
}
StringBuffer sb = new StringBuffer();
for (Map.Entry<String, String> entry : delta.entrySet()) {
if (sb.length() > 0) {
... | java |
private void logAuditEntriesBeforeAuthn(WebReply webReply, Subject receivedSubject, String uriName, WebRequest webRequest) {
AuthenticationResult authResult;
if (webReply instanceof PermitReply) {
authResult = new AuthenticationResult(AuthResult.SUCCESS, receivedSubject, null, null, AuditEve... | java |
private void postRoutedNotificationListenerRegistrationEvent(String operation, NotificationTargetInformation nti) {
Map<String, Object> props = createListenerRegistrationEvent(operation, nti);
safePostEvent(new Event(REGISTER_JMX_NOTIFICATION_LISTENER_TOPIC, props));
} | java |
private void postRoutedServerNotificationListenerRegistrationEvent(String operation, NotificationTargetInformation nti, ObjectName listener,
NotificationFilter filter, Object handback) {
Map<String, Object> props = createServerListenerRegist... | java |
private void safePostEvent(Event event) {
EventAdmin ea = eventAdminRef.getService();
if (ea != null) {
ea.postEvent(event);
} else if (tc.isEventEnabled()) {
Tr.event(tc, "The EventAdmin service is unavailable. Unable to post the Event: " + event);
}
} | java |
public void enableDestinationCreation(SICoreConnectionFactory siccf)
{
if (tcInt.isEntryEnabled())
SibTr.entry(tcInt, "enableDestinationCreation");
try
{
if (admin == null)
{
if (tcInt.isDebugEnabled())
SibTr.debug(tcInt, "Setting up destination definition ob... | java |
private void createDestination(String name,
com.ibm.wsspi.sib.core.DestinationType destType,
Reliability defaultReliability)
throws JMSException
{
if (tcInt.isEntryEnabled())
SibTr.entry(tcInt, "createDestination(String, DestinationType)... | java |
private DirContext bind(String bindDn, ProtectedString bindPw) throws NamingException {
Hashtable<Object, Object> env = new Hashtable<Object, Object>();
String url = this.idStoreDefinition.getUrl();
if (url == null || url.isEmpty()) {
throw new IllegalArgumentException("No URL was pr... | java |
private Set<String> getGroups(DirContext context, String callerDn) {
Set<String> groups = null;
String groupSearchBase = idStoreDefinition.getGroupSearchBase();
String groupSearchFilter = idStoreDefinition.getGroupSearchFilter();
if (groupSearchBase.isEmpty() || groupSearchFilter.isEmpty... | java |
private Set<String> getGroupsByMember(DirContext context, String callerDn, String groupSearchBase, String groupSearchFilter) {
String groupNameAttribute = idStoreDefinition.getGroupNameAttribute();
String[] attrIds = { groupNameAttribute };
long limit = Long.valueOf(idStoreDefinition.getMaxRes... | java |
private String getFormattedFilter(String searchFilter, String caller, String attribute) {
//Allow %v in addition to %s for string replacement
String filter = searchFilter.replaceAll("%v", "%s");
if (!(filter.startsWith("(") && filter.endsWith(")")) && !filter.isEmpty()) {
filter = "(... | java |
private Set<String> getGroupsByMembership(DirContext context, String callerDn) {
String memberOfAttribute = idStoreDefinition.getGroupMemberOfAttribute();
String groupNameAttribute = idStoreDefinition.getGroupNameAttribute();
Attributes attrs;
Set<String> groupDns = new HashSet<String>()... | java |
@Deprecated
public static ValidatorFactory getValidatorFactory()
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getValidatorFactory");
ValidatorFactory validatorFactory = AbstractBeanValidation.getValidat... | java |
public void message(MessageType type, String me, TraceComponent tc, String msgKey, Object objs, Object[] formattedMessage)
{
switch(type)
{
case AUDIT : if (TraceComponent.isAnyTracingEnabled() && myTc.isAuditEnabled()) Tr.audit(myTc, SIB_MESSAGE, formattedMessage);
break;... | java |
public final static void fireProbe(long probeId, Object instance, Object target, Object args) {
// Load statics onto the stack to avoid a window where they can be cleared
// between the test for null and the invocation of the method
Object proxyTarget = fireProbeTarget;
Method method = f... | java |
public synchronized void releaseId(short id) throws IdAllocatorException
{
if (tc.isEntryEnabled()) SibTr.entry(tc, "releaseId", ""+id);
deallocate(id);
// If we are releasing the id 1 less than the next id, set the next id to this one
if (id == (nextId - 1))
{
nextId = id;
... | java |
private String firstConstantOfEnum()
{
Object[] enumConstants = targetClass.getEnumConstants();
if (enumConstants.length != 0)
{
return enumConstants[0].toString();
}
return ""; // if empty Enum
} | java |
void checkTopicPublishPermission(String topic) {
SecurityManager sm = System.getSecurityManager();
if (sm == null)
return;
sm.checkPermission(new TopicPermission(topic, PUBLISH));
} | java |
@Activate
protected void activate(ComponentContext componentContext, Map<String, Object> props) {
this.componentContext = componentContext;
// // Parse the configuration that we've been provided
// Dictionary<?, ?> configProperties = componentContext.getProperties();
// processConfi... | java |
@Deactivate
protected void deactivate(ComponentContext componentContext) {
// Remove the framework event adapter
bundleContext.removeFrameworkListener(frameworkEventAdapter);
frameworkEventAdapter = null;
// Remove the bundle event adapter
bundleContext.removeBundleListener(... | java |
public void addTopic(String topic)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addTopic", topic);
SelectionCriteria criteria = _messageProcessor.
getSelectionCriteriaFactory().
createSelectionC... | java |
public void removeTopic(String topic)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeTopic", topic);
if (_subscriptionState == null)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
SibTr.debug(tc, "removeTopic", "Topic not ... | java |
public String[] getTopics()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getTopics");
String[] topics = null;
if (_subscriptionState != null)
topics = _subscriptionState.getTopics();
if (TraceComponent.isAnyTracingEnabled() && tc.i... | java |
public SIBUuid12 getTopicSpaceUuid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getTopicSpaceUuid");
SIBUuid12 retval = _destinationHandler.getUuid();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getTopicSpaceUuid", r... | java |
void processAckExpected(
long ackExpStamp,
int priority,
Reliability reliability,
SIBUuid12 stream)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "processAckExpected", new Long(ackExpStamp));
_internalOutputStreamManager... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.