code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public int read() throws IOException
{
if ( total >= limit )
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"read", "Over the limit: -1");
}
return -1;
}
... | java |
public int read(byte []read_buffer, int offset, int length) throws IOException {
// Copy as much as possible from the read buffer
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"read", "read length -->"+length);
... | java |
public int readLine(byte[] b, int off, int len) throws IOException
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"readLine", "readLine");
}
if ( total >= limit )
{
if (T... | java |
protected void fill() throws IOException
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"fill", "fill");
}
// PK79219 Start
long longLeft = limit-total;
int len;
if (lon... | java |
private String[] parseData(String hashedPassword) throws IllegalArgumentException {
// <algorithm>:<iterations>:<base64(salt)>:<base64(hash)>
String[] items = hashedPassword.split(":");
String error = null;
if (items.length == 4) {
if (SUPPORTED_ALGORITHMS.contains(items[0]))... | java |
protected void parseParams(Map<String, String> params) {
generateAlgorithm = indexOf(PARAM_ALGORITHM, DEFAULT_ALGORITHM, SUPPORTED_ALGORITHMS, params.get(PARAM_ALGORITHM));
generateIterations = parseInt(PARAM_ITERATIONS, params.get(PARAM_ITERATIONS), DEFAULT_ITERATIONS, MINIMUM_ITERATIONS);
gene... | java |
public static boolean isValidType(Class clazz)
{
if (null == clazz) throw new IllegalArgumentException();
if (String.class == clazz) return true;
if (Boolean.class == clazz) return true;
if (JSONObject.class.isAssignableFrom(clazz)) return true;
if (JSONArray.class == clazz... | java |
public final void initialize() throws PersistenceException, SevereMessageStoreException
{
PersistentMessageStore pm = _messageStore.getPersistentMessageStore();
final HashMap tupleMap = _buildTupleMap(pm);
_buildStreamTree(tupleMap);
_recoverStreamsWithInDoubts(pm);
} | java |
public void commit() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "commit", _txn);
// replay must have finished
if (_tranManager.isReplayComplete())
{
final int state = _txn.getTransactionState().getState();
switch (state)
{
... | java |
public void commitOnePhase() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "commitOnePhase", _txn);
final int state = _txn.getTransactionState().getState();
switch (state)
{
case TransactionState.STATE_ACTIVE :
// Suspend local transaction i... | java |
public synchronized void rollback() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "rollback", _txn);
// If we've been prepared then replay must
// have finished before we can rollback
if (_prepared && !_tranManager.isReplayComplete())
{
if (tc.isEntr... | java |
public synchronized void forget() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "forget", _txn);
// replay must have finished
if (_tranManager.isReplayComplete())
{
_heuristic = StatefulResource.NONE;
_txn.notifyCompletion();
}
e... | java |
public void reset()
{
_dstack.reset();
_current1.reset();
_last1.reset();
_eof = false;
_s = 0;
_p = null;
} | java |
private void findFirst(
DeleteStack stack)
{
boolean x = optimisticFindFirst(stack);
if (x == pessimisticNeeded)
pessimisticFindFirst(stack);
} | java |
private boolean optimisticFindFirst(
DeleteStack stack)
{
Object q = null;
int v1 = _index.vno();
int x1 = _index.xno();
if ((v1&1) != 0)
return pessimisticNeeded;
synchronized(this)
{
}
try
... | java |
private void pessimisticFindFirst(
DeleteStack stack)
{
Object q = null;
int v1 = 0;
int x1 = 0;
synchronized(_index)
{
q = getFirst(stack);
v1 = _index.vno();
x1 = _index.xno();
_pessimi... | java |
private Object getFirst(
DeleteStack stack)
{
Object q = null;
GBSNode n = leftMostChild(stack);
if (n != null)
{
q = n.leftMostKey();
_current1.setLocation(n, 0);
}
return q;
} | java |
private GBSNode leftMostChild(
DeleteStack stack)
{
GBSNode p;
p = _index.root(); /* Root of tree */
GBSNode lastl = null; /* Will point to left-most child */
if (p != null) ... | java |
private void findNextAfterEof(
DeleteStack stack)
{
if ( !_eof )
throw new RuntimeException("findNextAfterEof called when _eof false.");
if (_current1._vno != _index.vno())
{
boolean state = pessimisticNeeded;
state = o... | java |
private boolean optimisticSearchNext(
DeleteStack stack)
{
int v1 = _index.vno();
int x1 = _index.xno();
if ((v1&1) != 0)
return pessimisticNeeded;
synchronized(this)
{
}
try
{
intern... | java |
private void pessimisticSearchNext(
DeleteStack stack)
{
synchronized(_index)
{
internalSearchNext(stack, _index.vno(), _index.xno());
_pessimisticSearchNexts++;
}
} | java |
private void internalSearchNext(
DeleteStack stack,
int v1,
int x1)
{
SearchComparator comp = searchComparator(SearchComparator.GT);
_s = 0;
_p = null;
_e... | java |
private void pessimisticGetNext(
DeleteStack stack)
{
synchronized(_index)
{
internalGetNext(stack, _index.vno(), _index.xno());
_pessimisticGetNexts++;
}
} | java |
private GBSNode nextNode(
DeleteStack stack)
{
if (_eof)
throw new RuntimeException("_eof is set on entry to nextNode()");
boolean done = false;
GBSNode q = null;
GBSNode nextp = null;
while ( !done )
{
if (stack... | java |
public Object next()
{
_current1.reset();
if (_last1.key() == null)
findFirst(_dstack);
else
{
findNext(_dstack);
if (_current1.key() == null)
_eof = true;
}
if (_current1.key() != null)
_last1.setLocati... | java |
public InetSocketAddress getLocalAddress()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getLocalAddress");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getLocalAddress","rc="+null);
return null;
} | java |
public InetSocketAddress getRemoteAddress()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getRemoteAddress");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getRemoteAddress","rc="+remoteAddress);
return remoteAddre... | java |
public static Number convert(Number value, Class<?> type) {
if (int.class.equals(type) || Integer.class.equals(type))
value = value.intValue();
else if (long.class.equals(type) || Long.class.equals(type))
value = value.longValue();
else if (short.class.equals(type) || Sho... | java |
public static Object convert(String str, Class<?> type) throws Exception {
Object value;
if (int.class.equals(type) || Integer.class.equals(type))
value = Integer.parseInt(str);
else if (boolean.class.equals(type) || Boolean.class.equals(type))
value = Boolean.parseBoolea... | java |
public static byte[] serObjByte(Object pk) throws IOException {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(tc, "serObjByte", pk == null ? null : pk.getClass());
byte[] b;
try {
ByteArrayOutputStream bos =... | java |
public static void checkAccessibility(String resourceName, String adapterName, String embeddedApp, String accessingApp,
boolean isEndpoint) throws ResourceException {
if (embeddedApp != null) {
if (!embeddedApp.equals(accessingApp)) {
String ... | java |
private Map<String, Object> getUserinfoFromRegistryMap(Set<String> claims,
Map<String, Object> inputMap,
boolean isJson) throws Exception {
Map<String, Object> result = inputMap;
VMMService vmmService = JwtUtils.getVMMService();
if (vmmService != null) {
Prop... | java |
@SuppressWarnings("rawtypes")
public String vmmPropertyToString(Object value) {
String result = null;
if (value == null || value instanceof String) {
result = (String) value;
}
else if (value instanceof List) {
StringBuffer strBuff = null;
for (Obj... | java |
public static String decode(String encoded) {
// speedily leave if we're not needed
if (encoded == null)
return null;
if (encoded.indexOf('%') == -1 && encoded.indexOf('+') == -1)
return encoded;
//allocate the buffer - use byte[] to avoid calls to new.
b... | java |
public static String URLEncode(String s, String enc) {
if (s == null) {
return "null";
}
if (enc == null) {
enc = "ISO-8859-1"; // Is this right?
}
StringBuffer out = new StringBuffer(s.length());
ByteArrayOutputStream buf = new ByteArrayOutputStream();
OutputStreamWriter... | java |
public void doStartup(ConfigurationProvider cp, boolean isSQLRecoveryLog) {
if (tc.isDebugEnabled())
Tr.debug(tc, "doStartup with cp: " + cp + " and flag: " + isSQLRecoveryLog);
// Create an AppId that will be unique for this server to be used in the generation of Xids.
// Locate t... | java |
public void doShutdown(boolean isSQLRecoveryLog) {
if (tc.isEntryEnabled())
Tr.entry(tc, "doShutdown with flag: " + isSQLRecoveryLog);
if (isSQLRecoveryLog) {
try {
TMHelper.shutdown();
} catch (Exception e) {
FFDCFilter.processExcepti... | java |
private byte[] createApplicationId(String userDir, String serverName, String hostName) {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (tc.isEntryEnabled())
Tr.entry(tc, "createApplicationId", new Object[] { userDir, serverName, hostName });
byte[] result;
... | java |
@Override
public EntityManager createEntityManager()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "createEntityManager : " + this);
EntityManager em = getEntityManager(false, false);
JPAPooledEntityManager pem = new JPAPooledEntityManager(t... | java |
@Override
public EntityManager createEntityManager(Map arg0)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "createEntityManager : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.")... | java |
@Override
public Cache getCache()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getCache : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.");
} | java |
@Override
public CriteriaBuilder getCriteriaBuilder()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getCriteriaBuilder : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.");
} | java |
@Override
public Metamodel getMetamodel()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getMetamodel : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.");
} | java |
@Override
public PersistenceUnitUtil getPersistenceUnitUtil()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getPersistenceUnitUtil : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactor... | java |
@Override
public Map<String, Object> getProperties()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getProperties : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.");
} | java |
public void complete(VirtualConnection vc, TCPReadRequestContext rsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl) vc.getStateMap().get(Callb... | java |
public void error(VirtualConnection vc, TCPReadRequestContext rsc, IOException ioe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "error() called: vc=" + vc + " ioe=" + ioe);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl)... | java |
public void doFilter(ServletRequest request, ServletResponse response) throws ServletException, IOException {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))
logger.logp(Level.FINE, CLASS_NAME,"doFilter", "entry");
try {
// if there are ... | java |
public ClassLoader beginContextClassLoader(ClassLoader raClassLoader) {
return raClassLoader == null ? null
: AccessController.doPrivileged(new GetAndSetContextClassLoader(raClassLoader));
} | java |
public void endContextClassLoader(ClassLoader raClassLoader, ClassLoader previousClassLoader) {
if (raClassLoader != null) {
AccessController.doPrivileged(new GetAndSetContextClassLoader(previousClassLoader));
}
} | java |
public static ConnectionType getVCConnectionType(VirtualConnection vc) {
if (vc == null) {
return null;
}
return (ConnectionType) vc.getStateMap().get(CONNECTION_TYPE_VC_KEY);
} | java |
public static void setVCConnectionType(VirtualConnection vc, ConnectionType connType) {
if (vc == null || connType == null) {
return;
}
Map<Object, Object> map = vc.getStateMap();
// Internal connections are both inbound and outbound (they're connections
// to ourse... | java |
public static ConnectionType getConnectionType(byte type) {
switch (type) {
case TYPE_OUTBOUND:
return OUTBOUND;
case TYPE_OUTBOUND_CR_TO_REMOTE:
return OUTBOUND_CR_TO_REMOTE;
case TYPE_OUTBOUND_SR_TO_CR_REMOTE:
return OUTBOUND_... | java |
static public int asInt(byte[] array) {
if (null == array || 4 != array.length) {
throw new IllegalArgumentException("Length of the byte array should be 4");
}
return ((array[0] << 24)
+ ((array[1] & 255) << 16)
+ ((array[2] & 255) << 8) + (array[3] ... | java |
static public byte[] asBytes(int value) {
if (0 > value) {
throw new IllegalArgumentException("value cannot be less than zero");
}
byte[] result = new byte[4];
result[0] = (byte) ((value >>> 24) & 0xFF);
result[1] = (byte) ((value >>> 16) & 0xFF);
result[2] ... | java |
static public String getEnglishString(WsByteBuffer[] list) {
if (null == list) {
return null;
}
int size = 0;
int i;
for (i = 0; i < list.length && null != list[i]; i++) {
size += list[i].remaining();
}
if (0 == size) {
return n... | java |
static public void dumpArrayToTraceLog(byte[] arr) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "[ ");
if (null == arr) {
Tr.debug(tc, "null");
} else {
for (int i = 0; i < arr.length; i++) {
... | java |
static public byte[] expandByteArray(byte[] src, byte[] dst) {
int srcLength = (null != src) ? src.length : 0;
int dstLength = (null != dst) ? dst.length : 0;
return expandByteArray(src, dst, 0, srcLength, 0, dstLength);
} | java |
static public byte[] expandByteArray(byte[] src, byte b) {
int srcLength = (null != src) ? src.length : 0;
int totalLen = srcLength + 1;
byte[] rc = new byte[totalLen];
try {
if (null != src) {
System.arraycopy(src, 0, rc, 0, srcLength);
}
... | java |
static public byte[] getBytes(StringBuffer data) {
if (null == data) {
return null;
}
int len = data.length();
char[] chars = new char[len];
data.getChars(0, len, chars, 0);
byte[] bytes = new byte[len];
for (int i = 0; i < len; i++) {
byte... | java |
static public byte[] getBytes(String input) {
if (null != input) {
int length = input.length();
byte[] output = new byte[length];
for (int i = 0; i < length; i++) {
output[i] = (byte) input.charAt(i);
}
return output;
}
... | java |
static public String getEnglishString(byte[] data) {
if (null == data) {
return null;
}
char chars[] = new char[data.length];
for (int i = 0; i < data.length; i++) {
chars[i] = (char) (data[i] & 0xff);
}
return new String(chars);
} | java |
static private StringBuilder formatHexData(StringBuilder buffer, byte[] data, int inOffset) {
int offset = inOffset;
int end = offset + 8;
if (offset >= data.length) {
// have nothing, just print empty chars
buffer.append(" ");
return buf... | java |
static private StringBuilder formatTextData(StringBuilder buffer, byte[] data, int inOffset) {
int offset = inOffset;
int end = offset + 16;
for (; offset < end; offset++) {
if (offset >= data.length) {
buffer.append(" ");
continue;
}
... | java |
static public int skipToChar(byte[] data, int start, byte target) {
int index = start;
while (index < data.length && target != data[index]) {
index++;
}
return index;
} | java |
static public int skipToChars(byte[] data, int start, byte[] targets) {
int index = start;
int y = 0;
byte current;
for (; index < data.length; index++) {
current = data[index];
for (y = 0; y < targets.length; y++) {
if (current == targets[y]) {
... | java |
static public int skipWhiteSpace(byte[] data, int start) {
int index = start + 1;
while (index < data.length && BNFHeaders.SPACE == data[index]) {
index++;
}
return index;
} | java |
static public int sizeOf(WsByteBuffer[] list) {
if (null == list) {
return 0;
}
int size = 0;
for (int i = 0; i < list.length; i++) {
if (null != list[i]) {
size += list[i].remaining();
}
}
return size;
} | java |
static public byte[] readValue(ObjectInput in, int len) throws IOException {
int bytesRead = 0;
byte[] data = new byte[len];
for (int offset = 0; offset < len; offset += bytesRead) {
bytesRead = in.read(data, offset, len - offset);
if (bytesRead == -1) {
t... | java |
static public String blockContents(byte[] value) {
if (null == value) {
return null;
}
char[] data = new char[value.length];
for (int i = 0; i < data.length; i++) {
data[i] = '*';
}
return new String(data);
} | java |
private void handleCollectiveLogin(X509Certificate certChain[], CollectiveAuthenticationPlugin plugin,
boolean collectiveCert) throws InvalidNameException, AuthenticationException, Exception {
// If the chain is not authenticated, it will throw an AuthenticationException
... | java |
private void addCredentials(String accessId) throws Exception {
temporarySubject = new Subject();
Hashtable<String, Object> hashtable = new Hashtable<String, Object>();
hashtable.put(AttributeNameConstants.WSCREDENTIAL_UNIQUEID, AccessIdUtil.getUniqueId(accessId));
temporarySubject.getPu... | java |
private void handleUserLogin(X509Certificate certChain[]) throws RegistryException, CertificateMapNotSupportedException, CertificateMapFailedException, EntryNotFoundException, Exception {
UserRegistry userRegistry = getUserRegistry();
username = userRegistry.mapCertificate(certChain);
authentica... | java |
private BeanDiscoveryMode getBeanDiscoveryMode() {
if (beanDiscoveryMode == null) {
BeansXml beansXml = getBeansXml();
beanDiscoveryMode = BeanDiscoveryMode.ANNOTATED;
if (beansXml != null) {
beanDiscoveryMode = beansXml.getBeanDiscoveryMode();
} ... | java |
private void removeVetoedClasses(Set<Class<?>> classes) {
//get hold of classnames
Set<String> classNames = new HashSet<String>();
for (Class<?> clazz : classes) {
classNames.add(clazz.getName());
}
// take into considerations of the exclude in beans.xml
Colle... | java |
private ControllableSubscription getSubscription(String id)
throws SIMPControllableNotFoundException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getSubscription", id);
//id is assumed to be SIBUuid12
SIBUuid12 uuid = new SIBUuid12(id);
Subscripti... | java |
@SuppressWarnings("unused")
@Activate
protected void activate(ComponentContext context) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Activating the HTTP pipeline event handler");
}
} | java |
@SuppressWarnings("unused")
@Deactivate
protected void deactivate(ComponentContext context) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Deactivating the HTTP pipeline event handler");
}
} | java |
static public byte[] getEnglishBytes(String data) {
if (null == data) {
return null;
}
char[] chars = data.toCharArray();
byte[] bytes = new byte[chars.length];
for (int i = 0; i < chars.length; i++) {
bytes[i] = (byte) chars[i];
}
return b... | java |
static public String getEnglishString(byte[] data, int start, int end) {
int len = end - start;
if (0 >= len || null == data) {
return null;
}
char chars[] = new char[len];
for (int i = start; i < end; i++) {
chars[i] = (char) (data[i] & 0xff);
}
... | java |
public void createInterceptorInstances(InjectionEngine injectionEngine,
Object[] interceptors,
ManagedObjectContext managedObjectContext,
ManagedBeanOBase targetContext) throws Exception {
... | java |
public void run() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "run");
}
try {
framework.stopChain(chainName, 0L);
} catch (Exception e) {
FFDCFilter.processException(e, getClass().getName() + ".run", "68",
... | java |
@Override
public String[] getOptionValues() {
String[] values = new String[valueOptions.size()];
for (int i = 0; i < values.length; i++) {
values[i] = valueOptions.get(i)[0];
}
return values;
} | java |
@Override
public String[] getOptionLabels() {
String[] labels = new String[valueOptions.size()];
for (int i = 0; i < labels.length; i++) {
labels[i] = valueOptions.get(i)[1];
}
return labels;
} | java |
private SubscriptionMessage createSubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "createSubscriptionMessage");
ControlMessageFactory factory = null;
SubscriptionMessage subscriptionMessage = null;
try
{
factory = MessageProcessor.getControlMessageFactory();
su... | java |
private void reset()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "reset");
if (iInitialised)
{
// Reset the ArrayLists associated with this message
iTopics.clear();
iTopicSpaces.clear();
iTopicSpaceMappings.clear();
// Create a new message to send to this Neigh... | java |
protected void resetCreateSubscriptionMessage(MESubscription subscription, boolean isLocalBus)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "resetCreateSubscriptionMessage", new Object[]{subscription, new Boolean(isLocalBus)});
// Reset the state
reset();
// Indicate that this is a create messag... | java |
protected void resetDeleteSubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "resetDeleteSubscriptionMessage");
// Reset the state
reset();
// Indicate that this is a create message
iSubscriptionMessage.setSubscriptionMessageType(
SubscriptionMessageType.DELETE);
... | java |
protected void resetResetSubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "resetResetSubscriptionMessage");
// Reset the state
reset();
// Indicate that this is a create message
iSubscriptionMessage.setSubscriptionMessageType(
SubscriptionMessageType.RESET);
... | java |
protected void resetReplySubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "resetReplySubscriptionMessage");
// Reset the state
reset();
// Indicate that this is a create message
iSubscriptionMessage.setSubscriptionMessageType(
SubscriptionMessageType.REPLY);
... | java |
protected void addSubscriptionToMessage(MESubscription subscription, boolean isLocalBus)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "addSubscriptionToMessage", new Object[]{subscription, new Boolean(isLocalBus)});
// Add the subscription related information.
iTopics.add(subscription.getTopic());
... | java |
protected SubscriptionMessage getSubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getSubscriptionMessage");
// Set the values in the message
iSubscriptionMessage.setTopics(iTopics);
iSubscriptionMessage.setMEName(iMEName);
iSubscriptionMessage.setMEUUID(iMEUUID.toByteAr... | java |
private void auditEventSafAuthDetails(Object[] methodParams) {
// Getting object array which have audit fields
Object[] varargs = (Object[]) methodParams[1];
// Get audit fields and convert them to respective type
int safReturnCode = (Integer) varargs[0];
int racfReturnCode = (Integer) varargs[1];
int rac... | java |
private String[] getValues(Object propValue) {
String[] keys = null;
if (propValue instanceof String) {
keys = new String[] { (String) propValue };
} else if (propValue instanceof String[]) {
keys = (String[]) propValue;
} else {
if (TraceComponent.is... | java |
public HandlerInfo getHandler(String requestURL) {
Iterator<HandlerPath> keys = handlerKeys.iterator();
if (requestURL == null || keys == null) {
return null;
}
// Check to see if we have a direct hit
Iterator<ServiceAndServiceReferencePair<RESTHandler>> itr = handl... | java |
@Override
public Iterator<String> registeredKeys() {
Iterator<HandlerPath> paths = handlerKeys.iterator();
List<String> registeredKeys = new ArrayList<String>(handlerKeys.size());
while (paths.hasNext()) {
HandlerPath path = paths.next();
if (!path.isHidden()) {
... | java |
synchronized public Element get(long index) {
int bind = ((int)index & Integer.MAX_VALUE) % buckets.length;
Element[] bucket = buckets[bind];
if (bucket == null)
return null;
for (int i = 0; i < counts[bind]; i++)
if (bucket[i].getIndex() == index)
return bucket[i];
return null;
... | java |
synchronized public void set(Element value) {
int bind = ((int)value.getIndex() & Integer.MAX_VALUE) % buckets.length;
Element[] bucket = buckets[bind];
int count = counts[bind];
if (bucket == null)
buckets[bind] = bucket = new Element[initBucketSize];
else if (bucket.length == count) {
... | java |
synchronized public Object[] toArray(Object[] values) {
int count = 0;
for (int bind = 0; bind < buckets.length; bind++) {
if (counts[bind] > 0)
System.arraycopy(buckets[bind], 0, values, count, counts[bind]);
count += counts[bind];
}
return values;
} | java |
@SuppressWarnings("unchecked")
private <T> T getProperty(Map<String, Object> properties, String name, T deflt) {
T value = deflt;
try {
T prop = (T) properties.get(name);
if (prop != null) {
value = prop;
}
} catch (ClassCastException e) {
... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.