id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
67,700 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java | ConnectionDataGroup.connectOverNetwork | private NetworkConnection connectOverNetwork(JFapAddressHolder addressHolder, NetworkConnectionFactoryHolder factoryHolder) throws JFapConnectFailedException, FrameworkException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "connectOverNetwork", new Obj... | java | private NetworkConnection connectOverNetwork(JFapAddressHolder addressHolder, NetworkConnectionFactoryHolder factoryHolder) throws JFapConnectFailedException, FrameworkException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "connectOverNetwork", new Obj... | [
"private",
"NetworkConnection",
"connectOverNetwork",
"(",
"JFapAddressHolder",
"addressHolder",
",",
"NetworkConnectionFactoryHolder",
"factoryHolder",
")",
"throws",
"JFapConnectFailedException",
",",
"FrameworkException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingE... | Create a new connection over the network
@param addressHolder The holder from which to obtain the jfap address (if any) over which to connect
@param factoryHolder The holder from which to get the a network connection factory (from which the virtual connection can be obtained)
@return NetworkConnection the network conn... | [
"Create",
"a",
"new",
"connection",
"over",
"the",
"network"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java#L752-L791 |
67,701 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java | ConnectionDataGroup.createnewConnectionData | private ConnectionData createnewConnectionData(NetworkConnection vc) throws FrameworkException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createnewConnectionData", vc);
ConnectionData connectionDataToUse;
NetworkConnectionContext co... | java | private ConnectionData createnewConnectionData(NetworkConnection vc) throws FrameworkException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createnewConnectionData", vc);
ConnectionData connectionDataToUse;
NetworkConnectionContext co... | [
"private",
"ConnectionData",
"createnewConnectionData",
"(",
"NetworkConnection",
"vc",
")",
"throws",
"FrameworkException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"en... | Create a new Connection data object
@param vc The network connection over which to create a connection data
@return ConnectionData A new connection data object
@throws FrameworkException is thrown if the new connection data cannot be created | [
"Create",
"a",
"new",
"Connection",
"data",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java#L800-L824 |
67,702 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java | ConnectionDataGroup.startNewConversation | private Conversation startNewConversation(ConnectionData connectionDataToUse, ConversationReceiveListener conversationReceiveListener, boolean isNewConnectionData,
boolean handshake) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isE... | java | private Conversation startNewConversation(ConnectionData connectionDataToUse, ConversationReceiveListener conversationReceiveListener, boolean isNewConnectionData,
boolean handshake) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isE... | [
"private",
"Conversation",
"startNewConversation",
"(",
"ConnectionData",
"connectionDataToUse",
",",
"ConversationReceiveListener",
"conversationReceiveListener",
",",
"boolean",
"isNewConnectionData",
",",
"boolean",
"handshake",
")",
"throws",
"SIResourceException",
"{",
"if... | start a new conversation using the specified ConnectionData object
@param connectionDataToUse The connection data on which to start a new conversation
@param conversationReceiveListener The conversation receive listener for the new conversation
@param isNewConnectionData Does the connection data still need to be added... | [
"start",
"a",
"new",
"conversation",
"using",
"the",
"specified",
"ConnectionData",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java#L836-L863 |
67,703 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java | ConnectionDataGroup.connectionPending | protected synchronized void connectionPending()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "connectionPending");
++connectAttemptsPending;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
SibTr.debug(this, ... | java | protected synchronized void connectionPending()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "connectionPending");
++connectAttemptsPending;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
SibTr.debug(this, ... | [
"protected",
"synchronized",
"void",
"connectionPending",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"connectionPen... | Marks the group as having been selected to establish a new conversation. This is
used to close a window where the group can be selected, but then get closed before
the connect call is made. | [
"Marks",
"the",
"group",
"as",
"having",
"been",
"selected",
"to",
"establish",
"a",
"new",
"conversation",
".",
"This",
"is",
"used",
"to",
"close",
"a",
"window",
"where",
"the",
"group",
"can",
"be",
"selected",
"but",
"then",
"get",
"closed",
"before",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java#L870-L879 |
67,704 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java | ConnectionDataGroup.close | protected synchronized void close(OutboundConnection connection)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "close", connection);
// Paranoia: Check that this connection believes that it belongs in this group.
if (connection.getConne... | java | protected synchronized void close(OutboundConnection connection)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "close", connection);
// Paranoia: Check that this connection believes that it belongs in this group.
if (connection.getConne... | [
"protected",
"synchronized",
"void",
"close",
"(",
"OutboundConnection",
"connection",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc... | Close a conversation on the specified connection. The connection must be part of this
group. If the connection has no more conversations left using it, then it is added
to the idle pool.
@param connection The connection to close a conversation on. | [
"Close",
"a",
"conversation",
"on",
"the",
"specified",
"connection",
".",
"The",
"connection",
"must",
"be",
"part",
"of",
"this",
"group",
".",
"If",
"the",
"connection",
"has",
"no",
"more",
"conversations",
"left",
"using",
"it",
"then",
"it",
"is",
"a... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java#L888-L924 |
67,705 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java | ConnectionDataGroup.isEmpty | protected boolean isEmpty()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "isEmpty");
boolean result;
synchronized (this)
{
synchronized (connectionData)
{
result = connectionData.isEmpty(... | java | protected boolean isEmpty()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "isEmpty");
boolean result;
synchronized (this)
{
synchronized (connectionData)
{
result = connectionData.isEmpty(... | [
"protected",
"boolean",
"isEmpty",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"isEmpty\"",
")",
";",
"boolean",... | Determines if this group is empty.
For the group to be empty, it must contain no connection
data objects, and have no connection attempts pending. This second criteria stops
the group from being discarded between selection for establishing a new conversation
and actually establishing the conversation.
@return True iff... | [
"Determines",
"if",
"this",
"group",
"is",
"empty",
".",
"For",
"the",
"group",
"to",
"be",
"empty",
"it",
"must",
"contain",
"no",
"connection",
"data",
"objects",
"and",
"have",
"no",
"connection",
"attempts",
"pending",
".",
"This",
"second",
"criteria",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java#L945-L964 |
67,706 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java | ConnectionDataGroup.purgeFromInvalidateImpl | protected void purgeFromInvalidateImpl(OutboundConnection connection, boolean notifyPeer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "purgeFromInvalidateImpl", new Object[] { connection, Boolean.valueOf(notifyPeer) });
purge(connection, true,... | java | protected void purgeFromInvalidateImpl(OutboundConnection connection, boolean notifyPeer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "purgeFromInvalidateImpl", new Object[] { connection, Boolean.valueOf(notifyPeer) });
purge(connection, true,... | [
"protected",
"void",
"purgeFromInvalidateImpl",
"(",
"OutboundConnection",
"connection",
",",
"boolean",
"notifyPeer",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"e... | Purge a connection from this group from within invalidate processing.
Purging a connection removes it from the group even if the connection
still has conversations associated with it.
The purged connection is closed and not added to the idle pool.
@param connection The connection to purge
@param notifyPeer Should we n... | [
"Purge",
"a",
"connection",
"from",
"this",
"group",
"from",
"within",
"invalidate",
"processing",
".",
"Purging",
"a",
"connection",
"removes",
"it",
"from",
"the",
"group",
"even",
"if",
"the",
"connection",
"still",
"has",
"conversations",
"associated",
"with... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java#L1019-L1026 |
67,707 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java | ConnectionDataGroup.purgeClosedConnection | protected void purgeClosedConnection(OutboundConnection connection)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "purgeClosedConnection", connection);
purge(connection, false, false);
if (TraceComponent.isAnyTracingEnabled() && tc.isEnt... | java | protected void purgeClosedConnection(OutboundConnection connection)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "purgeClosedConnection", connection);
purge(connection, false, false);
if (TraceComponent.isAnyTracingEnabled() && tc.isEnt... | [
"protected",
"void",
"purgeClosedConnection",
"(",
"OutboundConnection",
"connection",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",... | Purge a connection from this group, because it has already been closed.
The purged connection is not added to the idle pool.
@param connection The connection to purge | [
"Purge",
"a",
"connection",
"from",
"this",
"group",
"because",
"it",
"has",
"already",
"been",
"closed",
".",
"The",
"purged",
"connection",
"is",
"not",
"added",
"to",
"the",
"idle",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java#L1034-L1041 |
67,708 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java | ConnectionDataGroup.removeConnectionDataFromGroup | public void removeConnectionDataFromGroup(ConnectionData cd) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "removeConnectionDataFromGroup", new Object[] { cd });
boolean removed = false;
synchronized (connectionData)
{
r... | java | public void removeConnectionDataFromGroup(ConnectionData cd) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "removeConnectionDataFromGroup", new Object[] { cd });
boolean removed = false;
synchronized (connectionData)
{
r... | [
"public",
"void",
"removeConnectionDataFromGroup",
"(",
"ConnectionData",
"cd",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",... | Remove the connection from the group
@param cd | [
"Remove",
"the",
"connection",
"from",
"the",
"group"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java#L1089-L1101 |
67,709 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java | LdapHelper.getDateString | public static String getDateString(Date date) {
SimpleDateFormat sdf = new SimpleDateFormat(sdformatMillisec);
sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
StringBuffer dateBuffer = new StringBuffer(sdf.format(date));
// above string is in this format
// 2005-05-04T09:34:18.4... | java | public static String getDateString(Date date) {
SimpleDateFormat sdf = new SimpleDateFormat(sdformatMillisec);
sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
StringBuffer dateBuffer = new StringBuffer(sdf.format(date));
// above string is in this format
// 2005-05-04T09:34:18.4... | [
"public",
"static",
"String",
"getDateString",
"(",
"Date",
"date",
")",
"{",
"SimpleDateFormat",
"sdf",
"=",
"new",
"SimpleDateFormat",
"(",
"sdformatMillisec",
")",
";",
"sdf",
".",
"setTimeZone",
"(",
"TimeZone",
".",
"getTimeZone",
"(",
"\"GMT\"",
")",
")"... | Returns a date String from the specified Date object. It is expected to be called before passing the date to SDO set method.
For example:
date = new Date();
entity.set("registerDate", SDOHelper.getDateString(date));
Input: 2005-05-04T09:34:18.444-0400
Output: 2005-05-04T09:34:18.444-04:00
@param date The Date object... | [
"Returns",
"a",
"date",
"String",
"from",
"the",
"specified",
"Date",
"object",
".",
"It",
"is",
"expected",
"to",
"be",
"called",
"before",
"passing",
"the",
"date",
"to",
"SDO",
"set",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java#L89-L99 |
67,710 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java | LdapHelper.getRDNAttributes | public static String[] getRDNAttributes(String dn) {
String rdnstr = getRDN(dn);
StringTokenizer st = new StringTokenizer(rdnstr.toLowerCase(), "+");
List<String> list = new ArrayList<String>();
while (st.hasMoreTokens()) {
String rdn = st.nextToken();
int index =... | java | public static String[] getRDNAttributes(String dn) {
String rdnstr = getRDN(dn);
StringTokenizer st = new StringTokenizer(rdnstr.toLowerCase(), "+");
List<String> list = new ArrayList<String>();
while (st.hasMoreTokens()) {
String rdn = st.nextToken();
int index =... | [
"public",
"static",
"String",
"[",
"]",
"getRDNAttributes",
"(",
"String",
"dn",
")",
"{",
"String",
"rdnstr",
"=",
"getRDN",
"(",
"dn",
")",
";",
"StringTokenizer",
"st",
"=",
"new",
"StringTokenizer",
"(",
"rdnstr",
".",
"toLowerCase",
"(",
")",
",",
"... | Return an array of RDN attributes of the given DN in lower case form.
@param dn
@return | [
"Return",
"an",
"array",
"of",
"RDN",
"attributes",
"of",
"the",
"given",
"DN",
"in",
"lower",
"case",
"form",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java#L246-L258 |
67,711 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java | LdapHelper.getRDN | public static String getRDN(String DN) {
if (DN == null || DN.trim().length() == 0) {
return DN;
}
String RDN = null;
try {
LdapName name = new LdapName(DN);
if (name.size() == 0) {
return DN;
}
RDN = name.get(na... | java | public static String getRDN(String DN) {
if (DN == null || DN.trim().length() == 0) {
return DN;
}
String RDN = null;
try {
LdapName name = new LdapName(DN);
if (name.size() == 0) {
return DN;
}
RDN = name.get(na... | [
"public",
"static",
"String",
"getRDN",
"(",
"String",
"DN",
")",
"{",
"if",
"(",
"DN",
"==",
"null",
"||",
"DN",
".",
"trim",
"(",
")",
".",
"length",
"(",
")",
"==",
"0",
")",
"{",
"return",
"DN",
";",
"}",
"String",
"RDN",
"=",
"null",
";",
... | Gets the RDN from the specified DN
For example "uid=persona" will be returned for given "uid=persona,cn=users,dc=yourco,dc=com".
@param DN The DN
@return The RDN | [
"Gets",
"the",
"RDN",
"from",
"the",
"specified",
"DN",
"For",
"example",
"uid",
"=",
"persona",
"will",
"be",
"returned",
"for",
"given",
"uid",
"=",
"persona",
"cn",
"=",
"users",
"dc",
"=",
"yourco",
"dc",
"=",
"com",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java#L267-L292 |
67,712 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java | LdapHelper.getLdapURLs | static public LdapURL[] getLdapURLs(Attribute attr) throws WIMException {
final String METHODNAME = "getLdapURLs";
LdapURL[] ldapURLs = new LdapURL[0];
if (attr != null) {
List<LdapURL> ldapURLList = new ArrayList<LdapURL>(attr.size());
try {
for (NamingE... | java | static public LdapURL[] getLdapURLs(Attribute attr) throws WIMException {
final String METHODNAME = "getLdapURLs";
LdapURL[] ldapURLs = new LdapURL[0];
if (attr != null) {
List<LdapURL> ldapURLList = new ArrayList<LdapURL>(attr.size());
try {
for (NamingE... | [
"static",
"public",
"LdapURL",
"[",
"]",
"getLdapURLs",
"(",
"Attribute",
"attr",
")",
"throws",
"WIMException",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"getLdapURLs\"",
";",
"LdapURL",
"[",
"]",
"ldapURLs",
"=",
"new",
"LdapURL",
"[",
"0",
"]",
";",
... | Gets the LdapURL array from the given dynamic member attribute.
@param attr The dynamic member attribute.
@return The LdapURL array.
@throws WIMException | [
"Gets",
"the",
"LdapURL",
"array",
"from",
"the",
"given",
"dynamic",
"member",
"attribute",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java#L421-L447 |
67,713 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java | LdapHelper.getUniqueKey | public static String getUniqueKey(X509Certificate cert) {
// TBD - Would like to use public key instead of subject name, but
// cert.getPublicKey().getEncoded() appears to return different
// values for each call, using the same certificate??
StringBuffer key = new StringBuffer("subjectD... | java | public static String getUniqueKey(X509Certificate cert) {
// TBD - Would like to use public key instead of subject name, but
// cert.getPublicKey().getEncoded() appears to return different
// values for each call, using the same certificate??
StringBuffer key = new StringBuffer("subjectD... | [
"public",
"static",
"String",
"getUniqueKey",
"(",
"X509Certificate",
"cert",
")",
"{",
"// TBD - Would like to use public key instead of subject name, but",
"// cert.getPublicKey().getEncoded() appears to return different",
"// values for each call, using the same certificate??",
"StringBuf... | Get a unique key for a certificate. | [
"Get",
"a",
"unique",
"key",
"for",
"a",
"certificate",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java#L553-L562 |
67,714 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java | LdapHelper.getDNSubField | static String getDNSubField(String varName, String DN) throws CertificateMapperException {
if (varName.equals("DN")) {
return DN; // return the whole DN
}
// Parse the DN looking for 'varName'
StringTokenizer st = new StringTokenizer(DN);
for (;;) {
String... | java | static String getDNSubField(String varName, String DN) throws CertificateMapperException {
if (varName.equals("DN")) {
return DN; // return the whole DN
}
// Parse the DN looking for 'varName'
StringTokenizer st = new StringTokenizer(DN);
for (;;) {
String... | [
"static",
"String",
"getDNSubField",
"(",
"String",
"varName",
",",
"String",
"DN",
")",
"throws",
"CertificateMapperException",
"{",
"if",
"(",
"varName",
".",
"equals",
"(",
"\"DN\"",
")",
")",
"{",
"return",
"DN",
";",
"// return the whole DN",
"}",
"// Par... | Given 'input', return the digest version. | [
"Given",
"input",
"return",
"the",
"digest",
"version",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java#L567-L594 |
67,715 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java | LdapHelper.getMembershipScope | public static short getMembershipScope(String scope) {
if (scope != null) {
scope = scope.trim();
if (LdapConstants.LDAP_DIRECT_GROUP_MEMBERSHIP_STRING.equalsIgnoreCase(scope)) {
return LdapConstants.LDAP_DIRECT_GROUP_MEMBERSHIP;
} else if (LdapConstants.LDAP_... | java | public static short getMembershipScope(String scope) {
if (scope != null) {
scope = scope.trim();
if (LdapConstants.LDAP_DIRECT_GROUP_MEMBERSHIP_STRING.equalsIgnoreCase(scope)) {
return LdapConstants.LDAP_DIRECT_GROUP_MEMBERSHIP;
} else if (LdapConstants.LDAP_... | [
"public",
"static",
"short",
"getMembershipScope",
"(",
"String",
"scope",
")",
"{",
"if",
"(",
"scope",
"!=",
"null",
")",
"{",
"scope",
"=",
"scope",
".",
"trim",
"(",
")",
";",
"if",
"(",
"LdapConstants",
".",
"LDAP_DIRECT_GROUP_MEMBERSHIP_STRING",
".",
... | Gets the short form the scope from the string form of the scope
@param scope A string represent a scope ('direct', 'nested' and 'all').
@return The short represent a scope (0, 1, 2) | [
"Gets",
"the",
"short",
"form",
"the",
"scope",
"from",
"the",
"string",
"form",
"of",
"the",
"scope"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java#L844-L859 |
67,716 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java | LdapHelper.inAttributes | public static boolean inAttributes(String attrName, Attributes attrs) {
for (NamingEnumeration<String> neu = attrs.getIDs(); neu.hasMoreElements();) {
String attrId = neu.nextElement();
if (attrId.equalsIgnoreCase(attrName)) {
return true;
}
}
... | java | public static boolean inAttributes(String attrName, Attributes attrs) {
for (NamingEnumeration<String> neu = attrs.getIDs(); neu.hasMoreElements();) {
String attrId = neu.nextElement();
if (attrId.equalsIgnoreCase(attrName)) {
return true;
}
}
... | [
"public",
"static",
"boolean",
"inAttributes",
"(",
"String",
"attrName",
",",
"Attributes",
"attrs",
")",
"{",
"for",
"(",
"NamingEnumeration",
"<",
"String",
">",
"neu",
"=",
"attrs",
".",
"getIDs",
"(",
")",
";",
"neu",
".",
"hasMoreElements",
"(",
")",... | Whether the specified attribute name is contained in the attributes.
@param attrName The name of the attribute
@param attrs The Attributes object
@return true if the Attributes contain the attribute name (case-insensitive); false otherwise | [
"Whether",
"the",
"specified",
"attribute",
"name",
"is",
"contained",
"in",
"the",
"attributes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java#L880-L888 |
67,717 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java | LdapHelper.cloneAttribute | public static Attribute cloneAttribute(String newAttrName, Attribute attr) throws WIMSystemException {
Attribute newAttr = new BasicAttribute(newAttrName);
try {
for (NamingEnumeration<?> neu = attr.getAll(); neu.hasMoreElements();) {
newAttr.add(neu.nextElement());
... | java | public static Attribute cloneAttribute(String newAttrName, Attribute attr) throws WIMSystemException {
Attribute newAttr = new BasicAttribute(newAttrName);
try {
for (NamingEnumeration<?> neu = attr.getAll(); neu.hasMoreElements();) {
newAttr.add(neu.nextElement());
... | [
"public",
"static",
"Attribute",
"cloneAttribute",
"(",
"String",
"newAttrName",
",",
"Attribute",
"attr",
")",
"throws",
"WIMSystemException",
"{",
"Attribute",
"newAttr",
"=",
"new",
"BasicAttribute",
"(",
"newAttrName",
")",
";",
"try",
"{",
"for",
"(",
"Nami... | Clone the specified attribute with a new name.
@param newAttrName The new name of the attribute
@param attr The Attribute object to be cloned.
@return The cloned Attribute object with the new name.
@throws WIMSystemException | [
"Clone",
"the",
"specified",
"attribute",
"with",
"a",
"new",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java#L898-L908 |
67,718 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java | LdapHelper.convertToDashedString | public static String convertToDashedString(byte[] objectGUID) {
StringBuilder displayStr = new StringBuilder();
displayStr.append(prefixZeros(objectGUID[3] & 0xFF));
displayStr.append(prefixZeros(objectGUID[2] & 0xFF));
displayStr.append(prefixZeros(objectGUID[1] & 0xFF));
displ... | java | public static String convertToDashedString(byte[] objectGUID) {
StringBuilder displayStr = new StringBuilder();
displayStr.append(prefixZeros(objectGUID[3] & 0xFF));
displayStr.append(prefixZeros(objectGUID[2] & 0xFF));
displayStr.append(prefixZeros(objectGUID[1] & 0xFF));
displ... | [
"public",
"static",
"String",
"convertToDashedString",
"(",
"byte",
"[",
"]",
"objectGUID",
")",
"{",
"StringBuilder",
"displayStr",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"displayStr",
".",
"append",
"(",
"prefixZeros",
"(",
"objectGUID",
"[",
"3",
"]",
... | Convert the byte array to Active Directory GUID format.
@return | [
"Convert",
"the",
"byte",
"array",
"to",
"Active",
"Directory",
"GUID",
"format",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapHelper.java#L915-L940 |
67,719 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/DataModelSerializer.java | DataModelSerializer.serializeAsJson | public static JsonValue serializeAsJson(Object o) throws IOException {
try {
return findFieldsToSerialize(o).mainObject;
} catch (IllegalStateException ise) {
// the reflective attempt to build the object failed.
throw new IOException("Unable to build JSON for Object"... | java | public static JsonValue serializeAsJson(Object o) throws IOException {
try {
return findFieldsToSerialize(o).mainObject;
} catch (IllegalStateException ise) {
// the reflective attempt to build the object failed.
throw new IOException("Unable to build JSON for Object"... | [
"public",
"static",
"JsonValue",
"serializeAsJson",
"(",
"Object",
"o",
")",
"throws",
"IOException",
"{",
"try",
"{",
"return",
"findFieldsToSerialize",
"(",
"o",
")",
".",
"mainObject",
";",
"}",
"catch",
"(",
"IllegalStateException",
"ise",
")",
"{",
"// th... | Convert a POJO into a serialized JsonValue object
@param o the POJO to serialize
@return | [
"Convert",
"a",
"POJO",
"into",
"a",
"serialized",
"JsonValue",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/DataModelSerializer.java#L349-L358 |
67,720 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/DataModelSerializer.java | DataModelSerializer.getClassForFieldName | private static ClassAndMethod getClassForFieldName(String fieldName, Class<?> classToLookForFieldIn) {
return internalGetClassForFieldName(fieldName, classToLookForFieldIn, false);
} | java | private static ClassAndMethod getClassForFieldName(String fieldName, Class<?> classToLookForFieldIn) {
return internalGetClassForFieldName(fieldName, classToLookForFieldIn, false);
} | [
"private",
"static",
"ClassAndMethod",
"getClassForFieldName",
"(",
"String",
"fieldName",
",",
"Class",
"<",
"?",
">",
"classToLookForFieldIn",
")",
"{",
"return",
"internalGetClassForFieldName",
"(",
"fieldName",
",",
"classToLookForFieldIn",
",",
"false",
")",
";",... | Gets a class for a JSON field name, by looking in a given Class for an appropriate setter.
The setter is assumed not to be a Collection.
@param fieldName the name to use to search for the getter.
@param classToLookForFieldIn the Class to search for the getter within.
@return instance of ClassAndMethod if one is found,... | [
"Gets",
"a",
"class",
"for",
"a",
"JSON",
"field",
"name",
"by",
"looking",
"in",
"a",
"given",
"Class",
"for",
"an",
"appropriate",
"setter",
".",
"The",
"setter",
"is",
"assumed",
"not",
"to",
"be",
"a",
"Collection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/DataModelSerializer.java#L395-L397 |
67,721 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/DataModelSerializer.java | DataModelSerializer.getClassForCollectionOfFieldName | private static ClassAndMethod getClassForCollectionOfFieldName(String fieldName, Class<?> classToLookForFieldIn) {
return internalGetClassForFieldName(fieldName, classToLookForFieldIn, true);
} | java | private static ClassAndMethod getClassForCollectionOfFieldName(String fieldName, Class<?> classToLookForFieldIn) {
return internalGetClassForFieldName(fieldName, classToLookForFieldIn, true);
} | [
"private",
"static",
"ClassAndMethod",
"getClassForCollectionOfFieldName",
"(",
"String",
"fieldName",
",",
"Class",
"<",
"?",
">",
"classToLookForFieldIn",
")",
"{",
"return",
"internalGetClassForFieldName",
"(",
"fieldName",
",",
"classToLookForFieldIn",
",",
"true",
... | Gets a class for a JSON field name, by looking in a given Class for an appropriate setter.
The setter is assumed to be a Collection.
@param fieldName the name to use to search for the getter.
@param classToLookForFieldIn the Class to search for the getter within.
@return instance of ClassAndMethod if one is found, nul... | [
"Gets",
"a",
"class",
"for",
"a",
"JSON",
"field",
"name",
"by",
"looking",
"in",
"a",
"given",
"Class",
"for",
"an",
"appropriate",
"setter",
".",
"The",
"setter",
"is",
"assumed",
"to",
"be",
"a",
"Collection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/DataModelSerializer.java#L407-L409 |
67,722 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/DataModelSerializer.java | DataModelSerializer.internalGetClassForFieldName | private static ClassAndMethod internalGetClassForFieldName(String fieldName, Class<?> classToLookForFieldIn, boolean isForArray) {
Method found = null;
//precalc the field name as a setter to use for each method test.
String fieldNameAsASetter = new StringBuilder("set").append(fieldName.substri... | java | private static ClassAndMethod internalGetClassForFieldName(String fieldName, Class<?> classToLookForFieldIn, boolean isForArray) {
Method found = null;
//precalc the field name as a setter to use for each method test.
String fieldNameAsASetter = new StringBuilder("set").append(fieldName.substri... | [
"private",
"static",
"ClassAndMethod",
"internalGetClassForFieldName",
"(",
"String",
"fieldName",
",",
"Class",
"<",
"?",
">",
"classToLookForFieldIn",
",",
"boolean",
"isForArray",
")",
"{",
"Method",
"found",
"=",
"null",
";",
"//precalc the field name as a setter to... | Utility method, given a JSON field name, and an associated POJO, it will hunt for the appropriate setter to use, and if located return
the type the setter expects, along with a reflected reference to the method itself.
@param fieldName the name of the json key being queried.
@param classToLookForFieldIn the object to ... | [
"Utility",
"method",
"given",
"a",
"JSON",
"field",
"name",
"and",
"an",
"associated",
"POJO",
"it",
"will",
"hunt",
"for",
"the",
"appropriate",
"setter",
"to",
"use",
"and",
"if",
"located",
"return",
"the",
"type",
"the",
"setter",
"expects",
"along",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/DataModelSerializer.java#L420-L456 |
67,723 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java | ThreadIdentityManager.addThreadIdentityService | public static void addThreadIdentityService(ThreadIdentityService tis) {
if (tis != null) {
threadIdentityServices.add(tis);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "A ThreadIdentityService implementation was added.", tis.getClass()... | java | public static void addThreadIdentityService(ThreadIdentityService tis) {
if (tis != null) {
threadIdentityServices.add(tis);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "A ThreadIdentityService implementation was added.", tis.getClass()... | [
"public",
"static",
"void",
"addThreadIdentityService",
"(",
"ThreadIdentityService",
"tis",
")",
"{",
"if",
"(",
"tis",
"!=",
"null",
")",
"{",
"threadIdentityServices",
".",
"add",
"(",
"tis",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
... | Add a ThreadIdentityService reference. This method is called by
ThreadIdentityManagerConfigurator when a ThreadIdentityService shows
up in the OSGI framework.
@param tis | [
"Add",
"a",
"ThreadIdentityService",
"reference",
".",
"This",
"method",
"is",
"called",
"by",
"ThreadIdentityManagerConfigurator",
"when",
"a",
"ThreadIdentityService",
"shows",
"up",
"in",
"the",
"OSGI",
"framework",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java#L57-L64 |
67,724 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java | ThreadIdentityManager.addJ2CIdentityService | public static void addJ2CIdentityService(J2CIdentityService j2cIdentityService) {
if (j2cIdentityService != null) {
j2cIdentityServices.add(j2cIdentityService);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "A J2CIdentityService implement... | java | public static void addJ2CIdentityService(J2CIdentityService j2cIdentityService) {
if (j2cIdentityService != null) {
j2cIdentityServices.add(j2cIdentityService);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "A J2CIdentityService implement... | [
"public",
"static",
"void",
"addJ2CIdentityService",
"(",
"J2CIdentityService",
"j2cIdentityService",
")",
"{",
"if",
"(",
"j2cIdentityService",
"!=",
"null",
")",
"{",
"j2cIdentityServices",
".",
"add",
"(",
"j2cIdentityService",
")",
";",
"if",
"(",
"TraceComponen... | Add a J2CIdentityService reference. This method is called by
ThreadIdentityManagerConfigurator when a J2CIdentityService shows
up in the OSGI framework.
@param j2cIdentityService | [
"Add",
"a",
"J2CIdentityService",
"reference",
".",
"This",
"method",
"is",
"called",
"by",
"ThreadIdentityManagerConfigurator",
"when",
"a",
"J2CIdentityService",
"shows",
"up",
"in",
"the",
"OSGI",
"framework",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java#L73-L80 |
67,725 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java | ThreadIdentityManager.removeThreadIdentityService | public static void removeThreadIdentityService(ThreadIdentityService tis) {
if (tis != null) {
threadIdentityServices.remove(tis);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "A ThreadIdentityService implementation was removed.", tis.ge... | java | public static void removeThreadIdentityService(ThreadIdentityService tis) {
if (tis != null) {
threadIdentityServices.remove(tis);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "A ThreadIdentityService implementation was removed.", tis.ge... | [
"public",
"static",
"void",
"removeThreadIdentityService",
"(",
"ThreadIdentityService",
"tis",
")",
"{",
"if",
"(",
"tis",
"!=",
"null",
")",
"{",
"threadIdentityServices",
".",
"remove",
"(",
"tis",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnab... | Remove a ThreadIdentityService reference. This method is called by
ThreadIdentityManagerConfigurator when a ThreadIdentityService leaves
the OSGI framework.
@param tis | [
"Remove",
"a",
"ThreadIdentityService",
"reference",
".",
"This",
"method",
"is",
"called",
"by",
"ThreadIdentityManagerConfigurator",
"when",
"a",
"ThreadIdentityService",
"leaves",
"the",
"OSGI",
"framework",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java#L89-L96 |
67,726 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java | ThreadIdentityManager.removeJ2CIdentityService | public static void removeJ2CIdentityService(J2CIdentityService j2cIdentityService) {
if (j2cIdentityService != null) {
j2cIdentityServices.remove(j2cIdentityService);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "A J2CIdentityService imp... | java | public static void removeJ2CIdentityService(J2CIdentityService j2cIdentityService) {
if (j2cIdentityService != null) {
j2cIdentityServices.remove(j2cIdentityService);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "A J2CIdentityService imp... | [
"public",
"static",
"void",
"removeJ2CIdentityService",
"(",
"J2CIdentityService",
"j2cIdentityService",
")",
"{",
"if",
"(",
"j2cIdentityService",
"!=",
"null",
")",
"{",
"j2cIdentityServices",
".",
"remove",
"(",
"j2cIdentityService",
")",
";",
"if",
"(",
"TraceCo... | Remove a J2CIdentityService reference. This method is called by
ThreadIdentityManagerConfigurator when a J2CIdentityService leaves
the OSGI framework.
@param j2cIdentityService | [
"Remove",
"a",
"J2CIdentityService",
"reference",
".",
"This",
"method",
"is",
"called",
"by",
"ThreadIdentityManagerConfigurator",
"when",
"a",
"J2CIdentityService",
"leaves",
"the",
"OSGI",
"framework",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java#L105-L112 |
67,727 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java | ThreadIdentityManager.removeAllThreadIdentityServices | public static void removeAllThreadIdentityServices() {
threadIdentityServices.clear();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "All the ThreadIdentityService implementations were removed.");
}
} | java | public static void removeAllThreadIdentityServices() {
threadIdentityServices.clear();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "All the ThreadIdentityService implementations were removed.");
}
} | [
"public",
"static",
"void",
"removeAllThreadIdentityServices",
"(",
")",
"{",
"threadIdentityServices",
".",
"clear",
"(",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",... | Remove all the ThreadIdentityService references. This method is called by
ThreadIdentityManagerConfigurator when the ThreadIdentityService service tracker is closed. | [
"Remove",
"all",
"the",
"ThreadIdentityService",
"references",
".",
"This",
"method",
"is",
"called",
"by",
"ThreadIdentityManagerConfigurator",
"when",
"the",
"ThreadIdentityService",
"service",
"tracker",
"is",
"closed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java#L118-L123 |
67,728 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java | ThreadIdentityManager.removeAllJ2CIdentityServices | public static void removeAllJ2CIdentityServices() {
j2cIdentityServices.clear();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "All the J2CIdentityService implementations were removed.");
}
} | java | public static void removeAllJ2CIdentityServices() {
j2cIdentityServices.clear();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "All the J2CIdentityService implementations were removed.");
}
} | [
"public",
"static",
"void",
"removeAllJ2CIdentityServices",
"(",
")",
"{",
"j2cIdentityServices",
".",
"clear",
"(",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
"."... | Remove all the J2CIdentityService references. This method is called by
ThreadIdentityManagerConfigurator when the J2CIdentityService service tracker is closed. | [
"Remove",
"all",
"the",
"J2CIdentityService",
"references",
".",
"This",
"method",
"is",
"called",
"by",
"ThreadIdentityManagerConfigurator",
"when",
"the",
"J2CIdentityService",
"service",
"tracker",
"is",
"closed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java#L129-L134 |
67,729 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java | ThreadIdentityManager.checkForRecursionAndSet | private static boolean checkForRecursionAndSet() {
if (recursionMarker.get() == null) {
recursionMarker.set(Boolean.TRUE);
return false;
} else {
return true; // recursion detected.
}
} | java | private static boolean checkForRecursionAndSet() {
if (recursionMarker.get() == null) {
recursionMarker.set(Boolean.TRUE);
return false;
} else {
return true; // recursion detected.
}
} | [
"private",
"static",
"boolean",
"checkForRecursionAndSet",
"(",
")",
"{",
"if",
"(",
"recursionMarker",
".",
"get",
"(",
")",
"==",
"null",
")",
"{",
"recursionMarker",
".",
"set",
"(",
"Boolean",
".",
"TRUE",
")",
";",
"return",
"false",
";",
"}",
"else... | Check for recursion.
As a rule, ThreadIdentityManager should NEVER be re-entered. However, it can
be called from the Tr code (during log rollover, for example), so if the
ThreadIdentityService issues another Tr (or if ANY code called by ThreadIdentityService
issues a Tr), it will likely cause infinite recursion.
If w... | [
"Check",
"for",
"recursion",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java#L282-L289 |
67,730 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java | ThreadIdentityManager.runAsServer | public static Object runAsServer() {
LinkedHashMap<ThreadIdentityService, Object> token = null;
if (!checkForRecursionAndSet()) {
try {
for (int i = 0, size = threadIdentityServices.size(); i < size; ++i) {
ThreadIdentityService tis = threadIdentityServic... | java | public static Object runAsServer() {
LinkedHashMap<ThreadIdentityService, Object> token = null;
if (!checkForRecursionAndSet()) {
try {
for (int i = 0, size = threadIdentityServices.size(); i < size; ++i) {
ThreadIdentityService tis = threadIdentityServic... | [
"public",
"static",
"Object",
"runAsServer",
"(",
")",
"{",
"LinkedHashMap",
"<",
"ThreadIdentityService",
",",
"Object",
">",
"token",
"=",
"null",
";",
"if",
"(",
"!",
"checkForRecursionAndSet",
"(",
")",
")",
"{",
"try",
"{",
"for",
"(",
"int",
"i",
"... | Set the server's identity as the thread identity.
@return A token representing the identity previously on the thread.
This token must be passed to the subsequent reset call. | [
"Set",
"the",
"server",
"s",
"identity",
"as",
"the",
"thread",
"identity",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java#L304-L323 |
67,731 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java | ThreadIdentityManager.resetCheckedInternal | @SuppressWarnings({ "rawtypes" })
private static void resetCheckedInternal(Object token, Exception firstException) throws ThreadIdentityException {
Exception cachedException = firstException;
if (threadIdentityServices.isEmpty() == false || j2cIdentityServices.isEmpty() == false) {
if (!... | java | @SuppressWarnings({ "rawtypes" })
private static void resetCheckedInternal(Object token, Exception firstException) throws ThreadIdentityException {
Exception cachedException = firstException;
if (threadIdentityServices.isEmpty() == false || j2cIdentityServices.isEmpty() == false) {
if (!... | [
"@",
"SuppressWarnings",
"(",
"{",
"\"rawtypes\"",
"}",
")",
"private",
"static",
"void",
"resetCheckedInternal",
"(",
"Object",
"token",
",",
"Exception",
"firstException",
")",
"throws",
"ThreadIdentityException",
"{",
"Exception",
"cachedException",
"=",
"firstExce... | Reset the identity on the thread.
@param token The token returned by a previous call to set the thread identity.
The token represents the previous identity on the thread.
@param firstException This is the first exception that may have been thrown by set()
@throws ThreadIdentityException | [
"Reset",
"the",
"identity",
"on",
"the",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java#L344-L386 |
67,732 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java | ThreadIdentityManager.getJ2CInvocationSubject | public static Subject getJ2CInvocationSubject() {
Subject j2cSubject = null;
for (J2CIdentityService j2cIdentityService : j2cIdentityServices) {
if (j2cIdentityService.isJ2CThreadIdentityEnabled()) {
Subject subject = j2cIdentityService.getJ2CInvocationSubject();
... | java | public static Subject getJ2CInvocationSubject() {
Subject j2cSubject = null;
for (J2CIdentityService j2cIdentityService : j2cIdentityServices) {
if (j2cIdentityService.isJ2CThreadIdentityEnabled()) {
Subject subject = j2cIdentityService.getJ2CInvocationSubject();
... | [
"public",
"static",
"Subject",
"getJ2CInvocationSubject",
"(",
")",
"{",
"Subject",
"j2cSubject",
"=",
"null",
";",
"for",
"(",
"J2CIdentityService",
"j2cIdentityService",
":",
"j2cIdentityServices",
")",
"{",
"if",
"(",
"j2cIdentityService",
".",
"isJ2CThreadIdentity... | Get a J2C subject based on the invocation subject.
Use first subject that is not null. | [
"Get",
"a",
"J2C",
"subject",
"based",
"on",
"the",
"invocation",
"subject",
".",
"Use",
"first",
"subject",
"that",
"is",
"not",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.security.thread/src/com/ibm/ws/kernel/security/thread/ThreadIdentityManager.java#L392-L404 |
67,733 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/jaas/JAASConfigurationImpl.java | JAASConfigurationImpl.getEntries | @Override
public Map<String, List<AppConfigurationEntry>> getEntries() {
Map<String, List<AppConfigurationEntry>> jaasConfigurationEntries = new HashMap<String, List<AppConfigurationEntry>>();
Map<String, String> jaasConfigIDs = new HashMap<String, String>();
if (jaasLoginContextEntries != ... | java | @Override
public Map<String, List<AppConfigurationEntry>> getEntries() {
Map<String, List<AppConfigurationEntry>> jaasConfigurationEntries = new HashMap<String, List<AppConfigurationEntry>>();
Map<String, String> jaasConfigIDs = new HashMap<String, String>();
if (jaasLoginContextEntries != ... | [
"@",
"Override",
"public",
"Map",
"<",
"String",
",",
"List",
"<",
"AppConfigurationEntry",
">",
">",
"getEntries",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"List",
"<",
"AppConfigurationEntry",
">",
">",
"jaasConfigurationEntries",
"=",
"new",
"HashMap",
"... | Get all jaasLoginContextEntry in the server.xml and create any missing default entries.
If there are no jaas configuration, then create all the default entries system.DEFAULT,
system.WEB_INBOUND, system.DESERIALIZE_CONTEXT, system.UNAUTHENTICATED and WSLogin
@return | [
"Get",
"all",
"jaasLoginContextEntry",
"in",
"the",
"server",
".",
"xml",
"and",
"create",
"any",
"missing",
"default",
"entries",
".",
"If",
"there",
"are",
"no",
"jaas",
"configuration",
"then",
"create",
"all",
"the",
"default",
"entries",
"system",
".",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/jaas/JAASConfigurationImpl.java#L76-L113 |
67,734 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/TraceInstrumentation.java | TraceInstrumentation.invoke | @Override
@Trivial
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
if ("addTransformer".equals(method.getName())) {
addTransformer((ClassFileTransformer) args[0], args.length > 1 ? (Boolean) args[1] : false);
return null;
}
if (... | java | @Override
@Trivial
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
if ("addTransformer".equals(method.getName())) {
addTransformer((ClassFileTransformer) args[0], args.length > 1 ? (Boolean) args[1] : false);
return null;
}
if (... | [
"@",
"Override",
"@",
"Trivial",
"public",
"Object",
"invoke",
"(",
"Object",
"proxy",
",",
"Method",
"method",
",",
"Object",
"[",
"]",
"args",
")",
"throws",
"Throwable",
"{",
"if",
"(",
"\"addTransformer\"",
".",
"equals",
"(",
"method",
".",
"getName",... | If this method is traced it can call proxy.toString which causes another invoke call leading to an infinite loop. | [
"If",
"this",
"method",
"is",
"traced",
"it",
"can",
"call",
"proxy",
".",
"toString",
"which",
"causes",
"another",
"invoke",
"call",
"leading",
"to",
"an",
"infinite",
"loop",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/TraceInstrumentation.java#L53-L90 |
67,735 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java | J2CSecurityHelper.addSubjectCustomData | public static void addSubjectCustomData(Subject callSubject, Hashtable<String, Object> newCred) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "addSubjectCustomData", newCred);
}
AddPrivateCredentials action = new AddPrivateCredentials(callSubject, ... | java | public static void addSubjectCustomData(Subject callSubject, Hashtable<String, Object> newCred) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "addSubjectCustomData", newCred);
}
AddPrivateCredentials action = new AddPrivateCredentials(callSubject, ... | [
"public",
"static",
"void",
"addSubjectCustomData",
"(",
"Subject",
"callSubject",
",",
"Hashtable",
"<",
"String",
",",
"Object",
">",
"newCred",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"... | This method adds the custom Hashtable provided to the private credentials of the
Subject passed in.
@param callSubject The Subject which should have its private credentials updated with the custom Hashtable
@param newCred The custom Hashtable with information in the format required for WebSphere
to do a Hashtable logi... | [
"This",
"method",
"adds",
"the",
"custom",
"Hashtable",
"provided",
"to",
"the",
"private",
"credentials",
"of",
"the",
"Subject",
"passed",
"in",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java#L161-L170 |
67,736 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java | J2CSecurityHelper.getCustomCredentials | public static Hashtable<String, Object> getCustomCredentials(Subject callSubject, String cacheKey) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "getCustomCredentials", cacheKey);
}
if (callSubject == null || cacheKey == null) {
if (Tra... | java | public static Hashtable<String, Object> getCustomCredentials(Subject callSubject, String cacheKey) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "getCustomCredentials", cacheKey);
}
if (callSubject == null || cacheKey == null) {
if (Tra... | [
"public",
"static",
"Hashtable",
"<",
"String",
",",
"Object",
">",
"getCustomCredentials",
"(",
"Subject",
"callSubject",
",",
"String",
"cacheKey",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
... | This method extracts the custom hashtable from the provided Subject using the
cacheKey.
@param callSubject The Subject which is checked for the custom hashtable
@param cacheKey The cache key for the entries in the custom hashtable
@return The custom hashtable containing the security information. | [
"This",
"method",
"extracts",
"the",
"custom",
"hashtable",
"from",
"the",
"provided",
"Subject",
"using",
"the",
"cacheKey",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java#L224-L240 |
67,737 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java | J2CSecurityHelper.handlePasswordValidationCallback | public static void handlePasswordValidationCallback(PasswordValidationCallback callback, Subject executionSubject, Hashtable<String, Object> addedCred, String appRealm,
Invocation[] invocations)
throws RemoteException, WSSecurityException {
... | java | public static void handlePasswordValidationCallback(PasswordValidationCallback callback, Subject executionSubject, Hashtable<String, Object> addedCred, String appRealm,
Invocation[] invocations)
throws RemoteException, WSSecurityException {
... | [
"public",
"static",
"void",
"handlePasswordValidationCallback",
"(",
"PasswordValidationCallback",
"callback",
",",
"Subject",
"executionSubject",
",",
"Hashtable",
"<",
"String",
",",
"Object",
">",
"addedCred",
",",
"String",
"appRealm",
",",
"Invocation",
"[",
"]",... | The PasswordValidationCallback is used for password validation. This callback is used by the Resource Adapter
to employ the password validation facilities of its containing runtime. This Callback is passed to the CallbackHandler
provided by the J2C runtime during invocation of the handle method by the Resource Adapter.... | [
"The",
"PasswordValidationCallback",
"is",
"used",
"for",
"password",
"validation",
".",
"This",
"callback",
"is",
"used",
"by",
"the",
"Resource",
"Adapter",
"to",
"employ",
"the",
"password",
"validation",
"facilities",
"of",
"its",
"containing",
"runtime",
".",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java#L260-L304 |
67,738 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java | J2CSecurityHelper.addUniqueIdAndGroupsForUser | private static void addUniqueIdAndGroupsForUser(String securityName,
Hashtable<String, Object> credData, String appRealm) // 675924
throws WSSecurityException, RemoteException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
... | java | private static void addUniqueIdAndGroupsForUser(String securityName,
Hashtable<String, Object> credData, String appRealm) // 675924
throws WSSecurityException, RemoteException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
... | [
"private",
"static",
"void",
"addUniqueIdAndGroupsForUser",
"(",
"String",
"securityName",
",",
"Hashtable",
"<",
"String",
",",
"Object",
">",
"credData",
",",
"String",
"appRealm",
")",
"// 675924",
"throws",
"WSSecurityException",
",",
"RemoteException",
"{",
"if... | Checks if the provided securityName is valid against the user registry. In case it is
valid it then gets uniqueId and the groups for the user with the given securityName.
It then uses this information to create the custom hashtable required for login.
@param securityName The user security name
@param credData The hash... | [
"Checks",
"if",
"the",
"provided",
"securityName",
"is",
"valid",
"against",
"the",
"user",
"registry",
".",
"In",
"case",
"it",
"is",
"valid",
"it",
"then",
"gets",
"uniqueId",
"and",
"the",
"groups",
"for",
"the",
"user",
"with",
"the",
"given",
"securit... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java#L489-L544 |
67,739 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java | J2CSecurityHelper.checkUserPassword | private static boolean checkUserPassword(String userSecurityName, String password, UserRegistry registry, String realmName, Hashtable<String, Object> addedCred,
Invocation isCCInvoked) { // 675924
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
... | java | private static boolean checkUserPassword(String userSecurityName, String password, UserRegistry registry, String realmName, Hashtable<String, Object> addedCred,
Invocation isCCInvoked) { // 675924
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
... | [
"private",
"static",
"boolean",
"checkUserPassword",
"(",
"String",
"userSecurityName",
",",
"String",
"password",
",",
"UserRegistry",
"registry",
",",
"String",
"realmName",
",",
"Hashtable",
"<",
"String",
",",
"Object",
">",
"addedCred",
",",
"Invocation",
"is... | Checks the user name and password against the user registry provided. If the user name and
password are valid it returns true.
@param userSecurityName The user security name.
@param password the password
@param registry The registry against which the user name and password should be validated
@param realmName The real... | [
"Checks",
"the",
"user",
"name",
"and",
"password",
"against",
"the",
"user",
"registry",
"provided",
".",
"If",
"the",
"user",
"name",
"and",
"password",
"are",
"valid",
"it",
"returns",
"true",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java#L561-L612 |
67,740 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java | J2CSecurityHelper.getCacheKey | public static String getCacheKey(String uniqueId, String appRealm) {
StringBuilder cacheKey = new StringBuilder();
if (uniqueId == null || appRealm == null) {
cacheKey.append(CACHE_KEY_PREFIX);
} else {
cacheKey.append(CACHE_KEY_PREFIX).append(uniqueId).append(CACHE_KEY_S... | java | public static String getCacheKey(String uniqueId, String appRealm) {
StringBuilder cacheKey = new StringBuilder();
if (uniqueId == null || appRealm == null) {
cacheKey.append(CACHE_KEY_PREFIX);
} else {
cacheKey.append(CACHE_KEY_PREFIX).append(uniqueId).append(CACHE_KEY_S... | [
"public",
"static",
"String",
"getCacheKey",
"(",
"String",
"uniqueId",
",",
"String",
"appRealm",
")",
"{",
"StringBuilder",
"cacheKey",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"uniqueId",
"==",
"null",
"||",
"appRealm",
"==",
"null",
")",
... | This method constructs the cache key that is required by security for caching
the Subject.
@param uniqueId The unique Id of the user
@param appRealm The application realm that the user belongs to
@return the cache key | [
"This",
"method",
"constructs",
"the",
"cache",
"key",
"that",
"is",
"required",
"by",
"security",
"for",
"caching",
"the",
"Subject",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java#L622-L630 |
67,741 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java | J2CSecurityHelper.validateCallbackInformation | private static boolean validateCallbackInformation(Hashtable<String, Object> credData, String securityName, Invocation isInvoked) {
boolean status = true;
if (isInvoked == Invocation.CALLERPRINCIPALCALLBACK) {
String existingName = (String) credData.get(AttributeNameConstants.WSCREDENTIAL_SE... | java | private static boolean validateCallbackInformation(Hashtable<String, Object> credData, String securityName, Invocation isInvoked) {
boolean status = true;
if (isInvoked == Invocation.CALLERPRINCIPALCALLBACK) {
String existingName = (String) credData.get(AttributeNameConstants.WSCREDENTIAL_SE... | [
"private",
"static",
"boolean",
"validateCallbackInformation",
"(",
"Hashtable",
"<",
"String",
",",
"Object",
">",
"credData",
",",
"String",
"securityName",
",",
"Invocation",
"isInvoked",
")",
"{",
"boolean",
"status",
"=",
"true",
";",
"if",
"(",
"isInvoked"... | This method validates whether the user security name provided by the CallerPrincipalCallback and
the PasswordValidationCallback match. It does this check only in case the CallerPrincipalCallback
was invoked prior to the current invocation of the PasswordValidationCallback.
@param credData The custom hashtable that wil... | [
"This",
"method",
"validates",
"whether",
"the",
"user",
"security",
"name",
"provided",
"by",
"the",
"CallerPrincipalCallback",
"and",
"the",
"PasswordValidationCallback",
"match",
".",
"It",
"does",
"this",
"check",
"only",
"in",
"case",
"the",
"CallerPrincipalCal... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java#L643-L653 |
67,742 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java | J2CSecurityHelper.objectId | public static String objectId(Object o)
{
return (o == null) ? "0x0" : o.getClass().getName() + "@" + Integer.toHexString(o.hashCode());
} | java | public static String objectId(Object o)
{
return (o == null) ? "0x0" : o.getClass().getName() + "@" + Integer.toHexString(o.hashCode());
} | [
"public",
"static",
"String",
"objectId",
"(",
"Object",
"o",
")",
"{",
"return",
"(",
"o",
"==",
"null",
")",
"?",
"\"0x0\"",
":",
"o",
".",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\"@\"",
"+",
"Integer",
".",
"toHexString",
"(",
"o"... | A string that identifies an object instance within WAS messages and heap dumps.
@param o The Object instance.
@return the class name of bean concatenated with its hashcode in hexadecimal. | [
"A",
"string",
"that",
"identifies",
"an",
"object",
"instance",
"within",
"WAS",
"messages",
"and",
"heap",
"dumps",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityHelper.java#L686-L689 |
67,743 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.activate | synchronized void activate(ComponentContext componentContext) throws Exception {
this.componentContext = componentContext;
this.classAvailableTransformer = new ClassAvailableTransformer(this, instrumentation, includeBootstrap);
this.transformer = new ProbeClassFileTransformer(this, instrumentati... | java | synchronized void activate(ComponentContext componentContext) throws Exception {
this.componentContext = componentContext;
this.classAvailableTransformer = new ClassAvailableTransformer(this, instrumentation, includeBootstrap);
this.transformer = new ProbeClassFileTransformer(this, instrumentati... | [
"synchronized",
"void",
"activate",
"(",
"ComponentContext",
"componentContext",
")",
"throws",
"Exception",
"{",
"this",
".",
"componentContext",
"=",
"componentContext",
";",
"this",
".",
"classAvailableTransformer",
"=",
"new",
"ClassAvailableTransformer",
"(",
"this... | Activation callback from the Declarative Services runtime where the
component is ready for activation.
@param bundleContext the bundleContext | [
"Activation",
"callback",
"from",
"the",
"Declarative",
"Services",
"runtime",
"where",
"the",
"component",
"is",
"ready",
"for",
"activation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L175-L210 |
67,744 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.deactivate | synchronized void deactivate() throws Exception {
this.proxyActivator.deactivate();
this.instrumentation.removeTransformer(this.classAvailableTransformer);
this.instrumentation.removeTransformer(this.transformer);
this.shuttingDown = true;
// Save the classes that have listeners... | java | synchronized void deactivate() throws Exception {
this.proxyActivator.deactivate();
this.instrumentation.removeTransformer(this.classAvailableTransformer);
this.instrumentation.removeTransformer(this.transformer);
this.shuttingDown = true;
// Save the classes that have listeners... | [
"synchronized",
"void",
"deactivate",
"(",
")",
"throws",
"Exception",
"{",
"this",
".",
"proxyActivator",
".",
"deactivate",
"(",
")",
";",
"this",
".",
"instrumentation",
".",
"removeTransformer",
"(",
"this",
".",
"classAvailableTransformer",
")",
";",
"this"... | Deactivation callback from the Declarative Services runtime where the
component is deactivated.
@param bundleContext the bundleContext | [
"Deactivation",
"callback",
"from",
"the",
"Declarative",
"Services",
"runtime",
"where",
"the",
"component",
"is",
"deactivated",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L218-L253 |
67,745 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.registerMonitor | @Override
public boolean registerMonitor(Object monitor) {
// Process the annotated object, build a configuration, and create probe
// listeners that represent each call site of the monitor.
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "mo... | java | @Override
public boolean registerMonitor(Object monitor) {
// Process the annotated object, build a configuration, and create probe
// listeners that represent each call site of the monitor.
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "mo... | [
"@",
"Override",
"public",
"boolean",
"registerMonitor",
"(",
"Object",
"monitor",
")",
"{",
"// Process the annotated object, build a configuration, and create probe",
"// listeners that represent each call site of the monitor.",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnable... | Register an annotated object as a monitor. The annotations will be used
to generate the appropriate configuration.
@param monitor an annotated pojo that acts as a probe listener | [
"Register",
"an",
"annotated",
"object",
"as",
"a",
"monitor",
".",
"The",
"annotations",
"will",
"be",
"used",
"to",
"generate",
"the",
"appropriate",
"configuration",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L281-L322 |
67,746 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.unregisterMonitor | @Override
public boolean unregisterMonitor(Object annotatedObject) {
// Clear the listener data
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "unregisteringMonitor = " + annotatedObject);
}
Set<ProbeListener> listeners = removeList... | java | @Override
public boolean unregisterMonitor(Object annotatedObject) {
// Clear the listener data
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "unregisteringMonitor = " + annotatedObject);
}
Set<ProbeListener> listeners = removeList... | [
"@",
"Override",
"public",
"boolean",
"unregisterMonitor",
"(",
"Object",
"annotatedObject",
")",
"{",
"// Clear the listener data",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
"... | Unregister the specified monitor. Unregistering a monitor may cause one
or more probes to be deactivated and the associated classes retransformed.
@param the monitor to unregister
@return true iff the monitor was successfully unregistered | [
"Unregister",
"the",
"specified",
"monitor",
".",
"Unregistering",
"a",
"monitor",
"may",
"cause",
"one",
"or",
"more",
"probes",
"to",
"be",
"deactivated",
"and",
"the",
"associated",
"classes",
"retransformed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L338-L368 |
67,747 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.removeListenersForMonitor | Set<ProbeListener> removeListenersForMonitor(Object monitor) {
Set<ProbeListener> listeners = null;
listenersLock.writeLock().lock();
try {
listeners = listenersForMonitor.remove(monitor);
if (listeners == null) {
listeners = Collections.emptySet();
... | java | Set<ProbeListener> removeListenersForMonitor(Object monitor) {
Set<ProbeListener> listeners = null;
listenersLock.writeLock().lock();
try {
listeners = listenersForMonitor.remove(monitor);
if (listeners == null) {
listeners = Collections.emptySet();
... | [
"Set",
"<",
"ProbeListener",
">",
"removeListenersForMonitor",
"(",
"Object",
"monitor",
")",
"{",
"Set",
"<",
"ProbeListener",
">",
"listeners",
"=",
"null",
";",
"listenersLock",
".",
"writeLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"listen... | Remove the listeners associated with the specified monitor from the set
of registered listeners.
@param monitor the monitor that owns the listeners
@return the set of listeners that were associated with the monitor | [
"Remove",
"the",
"listeners",
"associated",
"with",
"the",
"specified",
"monitor",
"from",
"the",
"set",
"of",
"registered",
"listeners",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L450-L466 |
67,748 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.processNewListeners | Collection<Class<?>> processNewListeners(Collection<ProbeListener> listeners) {
Set<Class<?>> classesToTransform = new HashSet<Class<?>>();
Set<ProbeListener> matchingListeners = new HashSet<ProbeListener>();
Set<Class<?>> monitorableTemp;
synchronized (this.monitorable) {
m... | java | Collection<Class<?>> processNewListeners(Collection<ProbeListener> listeners) {
Set<Class<?>> classesToTransform = new HashSet<Class<?>>();
Set<ProbeListener> matchingListeners = new HashSet<ProbeListener>();
Set<Class<?>> monitorableTemp;
synchronized (this.monitorable) {
m... | [
"Collection",
"<",
"Class",
"<",
"?",
">",
">",
"processNewListeners",
"(",
"Collection",
"<",
"ProbeListener",
">",
"listeners",
")",
"{",
"Set",
"<",
"Class",
"<",
"?",
">",
">",
"classesToTransform",
"=",
"new",
"HashSet",
"<",
"Class",
"<",
"?",
">",... | Process recently registered listeners and calculate which classes need
to be transformed with probes that drive the listeners.
@param listeners the collection of recently registered listeners
@return the classes that must be retransformed with probes | [
"Process",
"recently",
"registered",
"listeners",
"and",
"calculate",
"which",
"classes",
"need",
"to",
"be",
"transformed",
"with",
"probes",
"that",
"drive",
"the",
"listeners",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L476-L502 |
67,749 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.processRemovedListeners | synchronized Collection<Class<?>> processRemovedListeners(Collection<ProbeListener> listeners) {
Set<Class<?>> classesToTransform = new HashSet<Class<?>>();
for (ProbeListener listener : listeners) {
Collection<ProbeImpl> listenerProbes = removeProbesByListener(listener);
for (P... | java | synchronized Collection<Class<?>> processRemovedListeners(Collection<ProbeListener> listeners) {
Set<Class<?>> classesToTransform = new HashSet<Class<?>>();
for (ProbeListener listener : listeners) {
Collection<ProbeImpl> listenerProbes = removeProbesByListener(listener);
for (P... | [
"synchronized",
"Collection",
"<",
"Class",
"<",
"?",
">",
">",
"processRemovedListeners",
"(",
"Collection",
"<",
"ProbeListener",
">",
"listeners",
")",
"{",
"Set",
"<",
"Class",
"<",
"?",
">",
">",
"classesToTransform",
"=",
"new",
"HashSet",
"<",
"Class"... | Process the recently unregistered listeners and calculate which classes
need to be transformed to remove deactivated probes.
@param listeners the collection of recently removed listeners
@return the classes that must be retransformed to remove probes | [
"Process",
"the",
"recently",
"unregistered",
"listeners",
"and",
"calculate",
"which",
"classes",
"need",
"to",
"be",
"transformed",
"to",
"remove",
"deactivated",
"probes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L512-L527 |
67,750 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.classAvailable | public void classAvailable(Class<?> clazz) {
if (!isMonitorable(clazz)) {
return;
}
listenersLock.readLock().lock();
try {
for (ProbeListener listener : allRegisteredListeners) {
ProbeFilter filter = listener.getProbeFilter();
if (f... | java | public void classAvailable(Class<?> clazz) {
if (!isMonitorable(clazz)) {
return;
}
listenersLock.readLock().lock();
try {
for (ProbeListener listener : allRegisteredListeners) {
ProbeFilter filter = listener.getProbeFilter();
if (f... | [
"public",
"void",
"classAvailable",
"(",
"Class",
"<",
"?",
">",
"clazz",
")",
"{",
"if",
"(",
"!",
"isMonitorable",
"(",
"clazz",
")",
")",
"{",
"return",
";",
"}",
"listenersLock",
".",
"readLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{"... | Process a recently defined class to determine if it needs to be
transformed with probes.
@param clazz a recently defined class | [
"Process",
"a",
"recently",
"defined",
"class",
"to",
"determine",
"if",
"it",
"needs",
"to",
"be",
"transformed",
"with",
"probes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L535-L555 |
67,751 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.getProbe | public synchronized ProbeImpl getProbe(Class<?> probedClass, String key) {
Map<String, ProbeImpl> classProbes = probesByKey.get(probedClass);
if (classProbes != null) {
return classProbes.get(key);
}
return null;
} | java | public synchronized ProbeImpl getProbe(Class<?> probedClass, String key) {
Map<String, ProbeImpl> classProbes = probesByKey.get(probedClass);
if (classProbes != null) {
return classProbes.get(key);
}
return null;
} | [
"public",
"synchronized",
"ProbeImpl",
"getProbe",
"(",
"Class",
"<",
"?",
">",
"probedClass",
",",
"String",
"key",
")",
"{",
"Map",
"<",
"String",
",",
"ProbeImpl",
">",
"classProbes",
"=",
"probesByKey",
".",
"get",
"(",
"probedClass",
")",
";",
"if",
... | Get an existing instance of a probe with the specified source class and
key.
@param probedClass the probe source class
@param key the probe key
@return an existing probe or null | [
"Get",
"an",
"existing",
"instance",
"of",
"a",
"probe",
"with",
"the",
"specified",
"source",
"class",
"and",
"key",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L617-L623 |
67,752 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.addActiveProbesforListener | public void addActiveProbesforListener(ProbeListener listener, Collection<ProbeImpl> probes) {
// Add the probes for the specified listener. This is purely additive.
// Since a listener's configuration can't be updated after registration,
// we're adding probes for recently initialized / modifi... | java | public void addActiveProbesforListener(ProbeListener listener, Collection<ProbeImpl> probes) {
// Add the probes for the specified listener. This is purely additive.
// Since a listener's configuration can't be updated after registration,
// we're adding probes for recently initialized / modifi... | [
"public",
"void",
"addActiveProbesforListener",
"(",
"ProbeListener",
"listener",
",",
"Collection",
"<",
"ProbeImpl",
">",
"probes",
")",
"{",
"// Add the probes for the specified listener. This is purely additive.",
"// Since a listener's configuration can't be updated after registr... | Update the appropriate collections to reflect recently activated probes
for the specified listener.
@param listener the listener with recently activated probes
@param probes the collection of probes that were activated | [
"Update",
"the",
"appropriate",
"collections",
"to",
"reflect",
"recently",
"activated",
"probes",
"for",
"the",
"specified",
"listener",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L673-L682 |
67,753 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.addListenerByProbe | void addListenerByProbe(ProbeImpl probe, ProbeListener listener) {
Set<ProbeListener> listeners = listenersByProbe.get(probe);
if (listeners == null) {
listeners = new CopyOnWriteArraySet<ProbeListener>();
listenersByProbe.putIfAbsent(probe, listeners);
listeners = li... | java | void addListenerByProbe(ProbeImpl probe, ProbeListener listener) {
Set<ProbeListener> listeners = listenersByProbe.get(probe);
if (listeners == null) {
listeners = new CopyOnWriteArraySet<ProbeListener>();
listenersByProbe.putIfAbsent(probe, listeners);
listeners = li... | [
"void",
"addListenerByProbe",
"(",
"ProbeImpl",
"probe",
",",
"ProbeListener",
"listener",
")",
"{",
"Set",
"<",
"ProbeListener",
">",
"listeners",
"=",
"listenersByProbe",
".",
"get",
"(",
"probe",
")",
";",
"if",
"(",
"listeners",
"==",
"null",
")",
"{",
... | Add the specified listener to the collection of listeners associated
with the specified probe.
@param probe the probe that fires for the listener
@param listener the listener that's driven by the probe | [
"Add",
"the",
"specified",
"listener",
"to",
"the",
"collection",
"of",
"listeners",
"associated",
"with",
"the",
"specified",
"probe",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L691-L699 |
67,754 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.removeListenerByProbe | boolean removeListenerByProbe(ProbeImpl probe, ProbeListener listener) {
boolean deactivatedProbe = false;
Set<ProbeListener> listeners = listenersByProbe.get(probe);
if (listeners != null) {
listeners.remove(listener);
if (listeners.isEmpty()) {
deactiva... | java | boolean removeListenerByProbe(ProbeImpl probe, ProbeListener listener) {
boolean deactivatedProbe = false;
Set<ProbeListener> listeners = listenersByProbe.get(probe);
if (listeners != null) {
listeners.remove(listener);
if (listeners.isEmpty()) {
deactiva... | [
"boolean",
"removeListenerByProbe",
"(",
"ProbeImpl",
"probe",
",",
"ProbeListener",
"listener",
")",
"{",
"boolean",
"deactivatedProbe",
"=",
"false",
";",
"Set",
"<",
"ProbeListener",
">",
"listeners",
"=",
"listenersByProbe",
".",
"get",
"(",
"probe",
")",
";... | Remove the specified listener from the collection of listeners associated
with the specified probe.
@param probe the probe that fired for the listener
@param listener the listener that was driven by the probe
@return true if removing the listener caused the probe to become disabled | [
"Remove",
"the",
"specified",
"listener",
"from",
"the",
"collection",
"of",
"listeners",
"associated",
"with",
"the",
"specified",
"probe",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L710-L723 |
67,755 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.deactivateProbe | synchronized void deactivateProbe(ProbeImpl probe) {
listenersByProbe.remove(probe);
activeProbesById.remove(probe.getIdentifier());
Class<?> clazz = probe.getSourceClass();
Map<String, ProbeImpl> classProbesByKey = probesByKey.get(clazz);
classProbesByKey.remove(probe.getName()... | java | synchronized void deactivateProbe(ProbeImpl probe) {
listenersByProbe.remove(probe);
activeProbesById.remove(probe.getIdentifier());
Class<?> clazz = probe.getSourceClass();
Map<String, ProbeImpl> classProbesByKey = probesByKey.get(clazz);
classProbesByKey.remove(probe.getName()... | [
"synchronized",
"void",
"deactivateProbe",
"(",
"ProbeImpl",
"probe",
")",
"{",
"listenersByProbe",
".",
"remove",
"(",
"probe",
")",
";",
"activeProbesById",
".",
"remove",
"(",
"probe",
".",
"getIdentifier",
"(",
")",
")",
";",
"Class",
"<",
"?",
">",
"c... | Deactivate the specified probe and remove all data associated with the
probe.
@param probe the probe to deactivate | [
"Deactivate",
"the",
"specified",
"probe",
"and",
"remove",
"all",
"data",
"associated",
"with",
"the",
"probe",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L731-L741 |
67,756 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.addProbesByListener | synchronized void addProbesByListener(ProbeListener listener, Collection<ProbeImpl> probes) {
Set<ProbeImpl> listenerProbes = probesByListener.get(listener);
if (listenerProbes == null) {
listenerProbes = new HashSet<ProbeImpl>();
probesByListener.put(listener, listenerProbes);
... | java | synchronized void addProbesByListener(ProbeListener listener, Collection<ProbeImpl> probes) {
Set<ProbeImpl> listenerProbes = probesByListener.get(listener);
if (listenerProbes == null) {
listenerProbes = new HashSet<ProbeImpl>();
probesByListener.put(listener, listenerProbes);
... | [
"synchronized",
"void",
"addProbesByListener",
"(",
"ProbeListener",
"listener",
",",
"Collection",
"<",
"ProbeImpl",
">",
"probes",
")",
"{",
"Set",
"<",
"ProbeImpl",
">",
"listenerProbes",
"=",
"probesByListener",
".",
"get",
"(",
"listener",
")",
";",
"if",
... | Associate the specified collection of probes with the specified listener.
@param listener the listener that probes are fired to
@param probes the probes fired to the listener | [
"Associate",
"the",
"specified",
"collection",
"of",
"probes",
"with",
"the",
"specified",
"listener",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L749-L756 |
67,757 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.removeProbesByListener | synchronized Collection<ProbeImpl> removeProbesByListener(ProbeListener listener) {
Set<ProbeImpl> listenerProbes = probesByListener.remove(listener);
if (listenerProbes == null) {
listenerProbes = Collections.emptySet();
}
return listenerProbes;
} | java | synchronized Collection<ProbeImpl> removeProbesByListener(ProbeListener listener) {
Set<ProbeImpl> listenerProbes = probesByListener.remove(listener);
if (listenerProbes == null) {
listenerProbes = Collections.emptySet();
}
return listenerProbes;
} | [
"synchronized",
"Collection",
"<",
"ProbeImpl",
">",
"removeProbesByListener",
"(",
"ProbeListener",
"listener",
")",
"{",
"Set",
"<",
"ProbeImpl",
">",
"listenerProbes",
"=",
"probesByListener",
".",
"remove",
"(",
"listener",
")",
";",
"if",
"(",
"listenerProbes... | Remove all probes that were fired at the specified listener.
@param listener the listener that probes were fired to
@return the probes that were assocaited with the listener | [
"Remove",
"all",
"probes",
"that",
"were",
"fired",
"at",
"the",
"specified",
"listener",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L765-L771 |
67,758 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.isExcludedClass | public boolean isExcludedClass(String className) {
// We rely heavily on reflection to deliver probes
if (className.startsWith("java/lang/reflect")) {
return true;
}
// Miscellaneous sun.misc classes
if (className.startsWith("sun/misc")) {
return true;
... | java | public boolean isExcludedClass(String className) {
// We rely heavily on reflection to deliver probes
if (className.startsWith("java/lang/reflect")) {
return true;
}
// Miscellaneous sun.misc classes
if (className.startsWith("sun/misc")) {
return true;
... | [
"public",
"boolean",
"isExcludedClass",
"(",
"String",
"className",
")",
"{",
"// We rely heavily on reflection to deliver probes",
"if",
"(",
"className",
".",
"startsWith",
"(",
"\"java/lang/reflect\"",
")",
")",
"{",
"return",
"true",
";",
"}",
"// Miscellaneous sun.... | Determine if the named class is one that should be excluded from
monitoring via probe injection. The patterns below generally
include classes required to implement JVM function on which the
monitoring code depends.
@param className the internal name of the class | [
"Determine",
"if",
"the",
"named",
"class",
"is",
"one",
"that",
"should",
"be",
"excluded",
"from",
"monitoring",
"via",
"probe",
"injection",
".",
"The",
"patterns",
"below",
"generally",
"include",
"classes",
"required",
"to",
"implement",
"JVM",
"function",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L781-L816 |
67,759 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java | ProbeManagerImpl.isMonitorable | public boolean isMonitorable(Class<?> clazz) {
// Faster(?) path
if (notMonitorable.contains(clazz)) {
return false;
} else if (monitorable.contains(clazz)) {
return true;
}
boolean isMonitorable = true;
if (!instrumentation.isModifiableClass(claz... | java | public boolean isMonitorable(Class<?> clazz) {
// Faster(?) path
if (notMonitorable.contains(clazz)) {
return false;
} else if (monitorable.contains(clazz)) {
return true;
}
boolean isMonitorable = true;
if (!instrumentation.isModifiableClass(claz... | [
"public",
"boolean",
"isMonitorable",
"(",
"Class",
"<",
"?",
">",
"clazz",
")",
"{",
"// Faster(?) path",
"if",
"(",
"notMonitorable",
".",
"contains",
"(",
"clazz",
")",
")",
"{",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"monitorable",
".",
"con... | Determine of the specified class can be monitored via the probes
infrastructure.
@param clazz the monitoring candidate
@return false if the class can't be monitored | [
"Determine",
"of",
"the",
"specified",
"class",
"can",
"be",
"monitored",
"via",
"the",
"probes",
"infrastructure",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/ProbeManagerImpl.java#L826-L860 |
67,760 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TopicPattern.java | TopicPattern.checkPrefix | boolean checkPrefix(char[] chars, int[] cursor) {
if (chars.length > cursor[0] && chars[cursor[0]] == MatchSpace.NONWILD_MARKER)
return false;
if (prefix == null)
return true;
if (cursor[1] - cursor[0] < prefix.minlen)
// a conservative test, but if we can't pass it, we'll certainly fail l... | java | boolean checkPrefix(char[] chars, int[] cursor) {
if (chars.length > cursor[0] && chars[cursor[0]] == MatchSpace.NONWILD_MARKER)
return false;
if (prefix == null)
return true;
if (cursor[1] - cursor[0] < prefix.minlen)
// a conservative test, but if we can't pass it, we'll certainly fail l... | [
"boolean",
"checkPrefix",
"(",
"char",
"[",
"]",
"chars",
",",
"int",
"[",
"]",
"cursor",
")",
"{",
"if",
"(",
"chars",
".",
"length",
">",
"cursor",
"[",
"0",
"]",
"&&",
"chars",
"[",
"cursor",
"[",
"0",
"]",
"]",
"==",
"MatchSpace",
".",
"NONWI... | Override checkPrefix to implement topic semantics | [
"Override",
"checkPrefix",
"to",
"implement",
"topic",
"semantics"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TopicPattern.java#L32-L55 |
67,761 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TopicPattern.java | TopicPattern.topicSkipForward | static boolean topicSkipForward(char[] chars, int[] cursor) {
if (cursor[0] == cursor[1])
return false;
while (cursor[0] < cursor[1] && chars[cursor[0]] != MatchSpace.SUBTOPIC_SEPARATOR_CHAR)
cursor[0]++;
return true;
} | java | static boolean topicSkipForward(char[] chars, int[] cursor) {
if (cursor[0] == cursor[1])
return false;
while (cursor[0] < cursor[1] && chars[cursor[0]] != MatchSpace.SUBTOPIC_SEPARATOR_CHAR)
cursor[0]++;
return true;
} | [
"static",
"boolean",
"topicSkipForward",
"(",
"char",
"[",
"]",
"chars",
",",
"int",
"[",
"]",
"cursor",
")",
"{",
"if",
"(",
"cursor",
"[",
"0",
"]",
"==",
"cursor",
"[",
"1",
"]",
")",
"return",
"false",
";",
"while",
"(",
"cursor",
"[",
"0",
"... | Skip forward to the next separator character
@param chars the characters to be examined
@param cursor the int[2] { start, end } "cursor" describing the area to be examined
@return true if something was skipped, false if nothing could be skipped | [
"Skip",
"forward",
"to",
"the",
"next",
"separator",
"character"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TopicPattern.java#L62-L68 |
67,762 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TopicPattern.java | TopicPattern.checkSuffix | boolean checkSuffix(char[] chars, int[] cursor) {
if (suffix == null)
return true;
if (cursor[1] - cursor[0] < suffix.minlen)
// a conservative test, but if we can't pass it, we'll certainly fail later
return false;
int last = suffix.items.length - 1;
for (int i = last; i >= 0; i--) {
... | java | boolean checkSuffix(char[] chars, int[] cursor) {
if (suffix == null)
return true;
if (cursor[1] - cursor[0] < suffix.minlen)
// a conservative test, but if we can't pass it, we'll certainly fail later
return false;
int last = suffix.items.length - 1;
for (int i = last; i >= 0; i--) {
... | [
"boolean",
"checkSuffix",
"(",
"char",
"[",
"]",
"chars",
",",
"int",
"[",
"]",
"cursor",
")",
"{",
"if",
"(",
"suffix",
"==",
"null",
")",
"return",
"true",
";",
"if",
"(",
"cursor",
"[",
"1",
"]",
"-",
"cursor",
"[",
"0",
"]",
"<",
"suffix",
... | Override checkSuffix to implement topic semantics | [
"Override",
"checkSuffix",
"to",
"implement",
"topic",
"semantics"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TopicPattern.java#L71-L95 |
67,763 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TopicPattern.java | TopicPattern.topicSkipBackward | static boolean topicSkipBackward(char[] chars, int[] cursor) {
if (cursor[0] == cursor[1])
return false;
while (cursor[0] < cursor[1] &&
chars[cursor[1]-1] != MatchSpace.SUBTOPIC_SEPARATOR_CHAR)
cursor[1]--;
return true;
} | java | static boolean topicSkipBackward(char[] chars, int[] cursor) {
if (cursor[0] == cursor[1])
return false;
while (cursor[0] < cursor[1] &&
chars[cursor[1]-1] != MatchSpace.SUBTOPIC_SEPARATOR_CHAR)
cursor[1]--;
return true;
} | [
"static",
"boolean",
"topicSkipBackward",
"(",
"char",
"[",
"]",
"chars",
",",
"int",
"[",
"]",
"cursor",
")",
"{",
"if",
"(",
"cursor",
"[",
"0",
"]",
"==",
"cursor",
"[",
"1",
"]",
")",
"return",
"false",
";",
"while",
"(",
"cursor",
"[",
"0",
... | Skip backward to the next separator character
@param chars the characters to be examined
@param cursor the int[2] { start, end } "cursor" describing the area to be examined
@return true if something was skipped, false if nothing could be skipped | [
"Skip",
"backward",
"to",
"the",
"next",
"separator",
"character"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TopicPattern.java#L102-L109 |
67,764 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TopicPattern.java | TopicPattern.matchBackward | static boolean matchBackward(char[] chars, char[] pattern, int[] cursor) {
int start = cursor[1] - pattern.length;
if (start < cursor[0])
// candidate is too short to possibly match
return false;
if (!matchForward(chars, pattern, new int[] {start, cursor[1]}))
return false;
// The cand... | java | static boolean matchBackward(char[] chars, char[] pattern, int[] cursor) {
int start = cursor[1] - pattern.length;
if (start < cursor[0])
// candidate is too short to possibly match
return false;
if (!matchForward(chars, pattern, new int[] {start, cursor[1]}))
return false;
// The cand... | [
"static",
"boolean",
"matchBackward",
"(",
"char",
"[",
"]",
"chars",
",",
"char",
"[",
"]",
"pattern",
",",
"int",
"[",
"]",
"cursor",
")",
"{",
"int",
"start",
"=",
"cursor",
"[",
"1",
"]",
"-",
"pattern",
".",
"length",
";",
"if",
"(",
"start",
... | Match characters in a backward direction | [
"Match",
"characters",
"in",
"a",
"backward",
"direction"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TopicPattern.java#L112-L122 |
67,765 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TopicPattern.java | TopicPattern.parsePattern | public static Object parsePattern(String pattern) {
// Unfortunately, this method shares a fair amount of logic with Topic.parsePattern
// but it is hard to figure out how to factor them.
char[] accum = new char[pattern.length()];
int finger = 0;
List tokens = new ArrayList();
boolean trivial = ... | java | public static Object parsePattern(String pattern) {
// Unfortunately, this method shares a fair amount of logic with Topic.parsePattern
// but it is hard to figure out how to factor them.
char[] accum = new char[pattern.length()];
int finger = 0;
List tokens = new ArrayList();
boolean trivial = ... | [
"public",
"static",
"Object",
"parsePattern",
"(",
"String",
"pattern",
")",
"{",
"// Unfortunately, this method shares a fair amount of logic with Topic.parsePattern",
"// but it is hard to figure out how to factor them.",
"char",
"[",
"]",
"accum",
"=",
"new",
"char",
"[",
"p... | Parse a string topic pattern into a TopicPattern object
@param pattern the string pattern to be parsed
@return an object representing the result, as follows.
<ul>
<li>the pattern as a string if the pattern contains no wildcards
and hence is better treated as an equality test.
<li>the pattern as a TopicPattern object ot... | [
"Parse",
"a",
"string",
"topic",
"pattern",
"into",
"a",
"TopicPattern",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TopicPattern.java#L139-L211 |
67,766 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/StringArrayWrapper.java | StringArrayWrapper.create | public static StringArrayWrapper create(String[] data, String bigDestName) throws JMSException
{
int size = 0;
if (data != null) size = data.length;
List fakedFullMsgPath = new ArrayList(size+1);
if (size > 0)
{
for (int i = 0; i < size; i++)
{
... | java | public static StringArrayWrapper create(String[] data, String bigDestName) throws JMSException
{
int size = 0;
if (data != null) size = data.length;
List fakedFullMsgPath = new ArrayList(size+1);
if (size > 0)
{
for (int i = 0; i < size; i++)
{
... | [
"public",
"static",
"StringArrayWrapper",
"create",
"(",
"String",
"[",
"]",
"data",
",",
"String",
"bigDestName",
")",
"throws",
"JMSException",
"{",
"int",
"size",
"=",
"0",
";",
"if",
"(",
"data",
"!=",
"null",
")",
"size",
"=",
"data",
".",
"length",... | This method is used for unit test purposes to simulate the creation of a
StringArrayWrapper whose destinations are all on the local bus.
The individual strings of the first parameter may be of the following form;
destName - just the destination name to be used.
destName:bus - destination name and associated bu... | [
"This",
"method",
"is",
"used",
"for",
"unit",
"test",
"purposes",
"to",
"simulate",
"the",
"creation",
"of",
"a",
"StringArrayWrapper",
"whose",
"destinations",
"are",
"all",
"on",
"the",
"local",
"bus",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/StringArrayWrapper.java#L88-L171 |
67,767 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/StringArrayWrapper.java | StringArrayWrapper.getArray | public String[] getArray()
{
// Create a copy to return to provide isolation.
String[] newArray = null;
// Returning a list of the destination names excluding the
// 'big' destination name.
newArray = new String[fullMsgPath.size()-1];
for (int i = 0; i < newArray.length; i++)
... | java | public String[] getArray()
{
// Create a copy to return to provide isolation.
String[] newArray = null;
// Returning a list of the destination names excluding the
// 'big' destination name.
newArray = new String[fullMsgPath.size()-1];
for (int i = 0; i < newArray.length; i++)
... | [
"public",
"String",
"[",
"]",
"getArray",
"(",
")",
"{",
"// Create a copy to return to provide isolation.",
"String",
"[",
"]",
"newArray",
"=",
"null",
";",
"// Returning a list of the destination names excluding the",
"// 'big' destination name.",
"newArray",
"=",
"new",
... | Returns a list of the destination names not including the 'big'
destination name. | [
"Returns",
"a",
"list",
"of",
"the",
"destination",
"names",
"not",
"including",
"the",
"big",
"destination",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/StringArrayWrapper.java#L189-L204 |
67,768 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AdministratorImpl.java | AdministratorImpl.createDestinationLocalization | public void createDestinationLocalization(
DestinationDefinition destinationDefinition,
LocalizationDefinition destinationLocalizationDefinition,
Set destinationLocalizingMEs,
boolean isTemporary) throws SIResourceException, SIMPDestinationAlreadyExistsException
{
if (TraceComponent.... | java | public void createDestinationLocalization(
DestinationDefinition destinationDefinition,
LocalizationDefinition destinationLocalizationDefinition,
Set destinationLocalizingMEs,
boolean isTemporary) throws SIResourceException, SIMPDestinationAlreadyExistsException
{
if (TraceComponent.... | [
"public",
"void",
"createDestinationLocalization",
"(",
"DestinationDefinition",
"destinationDefinition",
",",
"LocalizationDefinition",
"destinationLocalizationDefinition",
",",
"Set",
"destinationLocalizingMEs",
",",
"boolean",
"isTemporary",
")",
"throws",
"SIResourceException",... | Method only called by unit tests to create destinations | [
"Method",
"only",
"called",
"by",
"unit",
"tests",
"to",
"create",
"destinations"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AdministratorImpl.java#L429-L448 |
67,769 | OpenLiberty/open-liberty | dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/java/JavaRuntimeInformation.java | JavaRuntimeInformation.introspect | @Override
public void introspect(PrintWriter writer) {
RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean();
introspectUptime(runtime, writer);
introspectVendorVersion(runtime, writer);
introspectInputArguments(runtime, writer);
Map<String, String> props = introspect... | java | @Override
public void introspect(PrintWriter writer) {
RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean();
introspectUptime(runtime, writer);
introspectVendorVersion(runtime, writer);
introspectInputArguments(runtime, writer);
Map<String, String> props = introspect... | [
"@",
"Override",
"public",
"void",
"introspect",
"(",
"PrintWriter",
"writer",
")",
"{",
"RuntimeMXBean",
"runtime",
"=",
"ManagementFactory",
".",
"getRuntimeMXBean",
"(",
")",
";",
"introspectUptime",
"(",
"runtime",
",",
"writer",
")",
";",
"introspectVendorVer... | Grab a snapshot of the current system properties.
@param out the output stream to write diagnostics to | [
"Grab",
"a",
"snapshot",
"of",
"the",
"current",
"system",
"properties",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/java/JavaRuntimeInformation.java#L53-L64 |
67,770 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/ConfigEntry.java | ConfigEntry.getProperties | public ArrayList getProperties(){
ArrayList properties = new ArrayList();
if (configEntry.properties != null){
Iterator it = configEntry.properties.values().iterator();
while (it.hasNext()){
Property property = new Property((com.ibm.ws.cache.config.Property)it.next());
properties.add(property);
}
... | java | public ArrayList getProperties(){
ArrayList properties = new ArrayList();
if (configEntry.properties != null){
Iterator it = configEntry.properties.values().iterator();
while (it.hasNext()){
Property property = new Property((com.ibm.ws.cache.config.Property)it.next());
properties.add(property);
}
... | [
"public",
"ArrayList",
"getProperties",
"(",
")",
"{",
"ArrayList",
"properties",
"=",
"new",
"ArrayList",
"(",
")",
";",
"if",
"(",
"configEntry",
".",
"properties",
"!=",
"null",
")",
"{",
"Iterator",
"it",
"=",
"configEntry",
".",
"properties",
".",
"va... | This method returns a list of properties defined on a cache-entry
@return A list of properties | [
"This",
"method",
"returns",
"a",
"list",
"of",
"properties",
"defined",
"on",
"a",
"cache",
"-",
"entry"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/ConfigEntry.java#L73-L83 |
67,771 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/ConfigEntry.java | ConfigEntry.getCacheIds | public CacheId[] getCacheIds(){
CacheId[] cacheIds = new CacheId[configEntry.cacheIds.length];
for ( int i=0; i<configEntry.cacheIds.length; i++ ){
cacheIds[i] = new CacheId(configEntry.cacheIds[i]);
}
return cacheIds;
} | java | public CacheId[] getCacheIds(){
CacheId[] cacheIds = new CacheId[configEntry.cacheIds.length];
for ( int i=0; i<configEntry.cacheIds.length; i++ ){
cacheIds[i] = new CacheId(configEntry.cacheIds[i]);
}
return cacheIds;
} | [
"public",
"CacheId",
"[",
"]",
"getCacheIds",
"(",
")",
"{",
"CacheId",
"[",
"]",
"cacheIds",
"=",
"new",
"CacheId",
"[",
"configEntry",
".",
"cacheIds",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"configEntry",
".",
... | This method returns an array of CacheId objects that contain cache ID generation rules
used to produce a valid cache ID.
@return Array of CacheId objects | [
"This",
"method",
"returns",
"an",
"array",
"of",
"CacheId",
"objects",
"that",
"contain",
"cache",
"ID",
"generation",
"rules",
"used",
"to",
"produce",
"a",
"valid",
"cache",
"ID",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/ConfigEntry.java#L91-L97 |
67,772 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/ConfigEntry.java | ConfigEntry.getDependencyIds | public DependencyId[] getDependencyIds(){
DependencyId[] depIds = new DependencyId[configEntry.dependencyIds.length];
for ( int i=0; i<configEntry.dependencyIds.length; i++ ){
depIds[i] = new DependencyId(configEntry.dependencyIds[i]);
}
return depIds;
} | java | public DependencyId[] getDependencyIds(){
DependencyId[] depIds = new DependencyId[configEntry.dependencyIds.length];
for ( int i=0; i<configEntry.dependencyIds.length; i++ ){
depIds[i] = new DependencyId(configEntry.dependencyIds[i]);
}
return depIds;
} | [
"public",
"DependencyId",
"[",
"]",
"getDependencyIds",
"(",
")",
"{",
"DependencyId",
"[",
"]",
"depIds",
"=",
"new",
"DependencyId",
"[",
"configEntry",
".",
"dependencyIds",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"... | This method returns an array of DependencyId objects that specified addditional cache
indentifers that associated multiple cache entries to the same group identiifier.
@return Array of DependencyId objects | [
"This",
"method",
"returns",
"an",
"array",
"of",
"DependencyId",
"objects",
"that",
"specified",
"addditional",
"cache",
"indentifers",
"that",
"associated",
"multiple",
"cache",
"entries",
"to",
"the",
"same",
"group",
"identiifier",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/ConfigEntry.java#L105-L111 |
67,773 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/ConfigEntry.java | ConfigEntry.getInvalidations | public Invalidation[] getInvalidations(){
Invalidation[] invalidations = new Invalidation[configEntry.invalidations.length];
for ( int i=0; i<configEntry.invalidations.length; i++ ){
invalidations[i] = new Invalidation(configEntry.invalidations[i]);
}
return invalidations;
} | java | public Invalidation[] getInvalidations(){
Invalidation[] invalidations = new Invalidation[configEntry.invalidations.length];
for ( int i=0; i<configEntry.invalidations.length; i++ ){
invalidations[i] = new Invalidation(configEntry.invalidations[i]);
}
return invalidations;
} | [
"public",
"Invalidation",
"[",
"]",
"getInvalidations",
"(",
")",
"{",
"Invalidation",
"[",
"]",
"invalidations",
"=",
"new",
"Invalidation",
"[",
"configEntry",
".",
"invalidations",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"... | This method returns an array of Invalidation objects that written custom Java code or through
rules that are defined in the cache policy of each entry.
@return Array of Invalidation objects | [
"This",
"method",
"returns",
"an",
"array",
"of",
"Invalidation",
"objects",
"that",
"written",
"custom",
"Java",
"code",
"or",
"through",
"rules",
"that",
"are",
"defined",
"in",
"the",
"cache",
"policy",
"of",
"each",
"entry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/ConfigEntry.java#L119-L125 |
67,774 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/NBAcceptChannelSelector.java | NBAcceptChannelSelector.closeSocketChannel | private void closeSocketChannel(SocketChannel sc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
try {
Tr.event(this, tc, "Closing connection, local: " + sc.socket().getLocalSocketAddress() + " remote: " + sc.socket().getRemoteSocketAddress());
} ca... | java | private void closeSocketChannel(SocketChannel sc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
try {
Tr.event(this, tc, "Closing connection, local: " + sc.socket().getLocalSocketAddress() + " remote: " + sc.socket().getRemoteSocketAddress());
} ca... | [
"private",
"void",
"closeSocketChannel",
"(",
"SocketChannel",
"sc",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"try",
"{",
"Tr",
".",
"event",
"(",
"this",
",",
"tc... | Handle closing the socket channel with appropriate debug and error
protection.
@param sc | [
"Handle",
"closing",
"the",
"socket",
"channel",
"with",
"appropriate",
"debug",
"and",
"error",
"protection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/NBAcceptChannelSelector.java#L374-L392 |
67,775 | OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.jasper.el/src/org/apache/el/util/ReflectionUtil.java | ReflectionUtil.toTypeArray | public static Class<?>[] toTypeArray(String[] s) throws ClassNotFoundException {
if (s == null)
return null;
Class<?>[] c = new Class[s.length];
for (int i = 0; i < s.length; i++) {
c[i] = forName(s[i]);
}
return c;
} | java | public static Class<?>[] toTypeArray(String[] s) throws ClassNotFoundException {
if (s == null)
return null;
Class<?>[] c = new Class[s.length];
for (int i = 0; i < s.length; i++) {
c[i] = forName(s[i]);
}
return c;
} | [
"public",
"static",
"Class",
"<",
"?",
">",
"[",
"]",
"toTypeArray",
"(",
"String",
"[",
"]",
"s",
")",
"throws",
"ClassNotFoundException",
"{",
"if",
"(",
"s",
"==",
"null",
")",
"return",
"null",
";",
"Class",
"<",
"?",
">",
"[",
"]",
"c",
"=",
... | Converts an array of Class names to Class types.
@param s The array of class names
@return An array of Class instance where the element at index i in the
result is an instance of the class with the name at index i in
the input
@throws ClassNotFoundException If a class of a given name cannot be found | [
"Converts",
"an",
"array",
"of",
"Class",
"names",
"to",
"Class",
"types",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.jasper.el/src/org/apache/el/util/ReflectionUtil.java#L105-L113 |
67,776 | OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.jasper.el/src/org/apache/el/util/ReflectionUtil.java | ReflectionUtil.toTypeNameArray | public static String[] toTypeNameArray(Class<?>[] c) {
if (c == null)
return null;
String[] s = new String[c.length];
for (int i = 0; i < c.length; i++) {
s[i] = c[i].getName();
}
return s;
} | java | public static String[] toTypeNameArray(Class<?>[] c) {
if (c == null)
return null;
String[] s = new String[c.length];
for (int i = 0; i < c.length; i++) {
s[i] = c[i].getName();
}
return s;
} | [
"public",
"static",
"String",
"[",
"]",
"toTypeNameArray",
"(",
"Class",
"<",
"?",
">",
"[",
"]",
"c",
")",
"{",
"if",
"(",
"c",
"==",
"null",
")",
"return",
"null",
";",
"String",
"[",
"]",
"s",
"=",
"new",
"String",
"[",
"c",
".",
"length",
"... | Converts an array of Class types to Class names.
@param c The array of class instances
@return An array of Class names where the element at index i in the
result is the name of the class instance at index i in the input | [
"Converts",
"an",
"array",
"of",
"Class",
"types",
"to",
"Class",
"names",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.jasper.el/src/org/apache/el/util/ReflectionUtil.java#L121-L129 |
67,777 | OpenLiberty/open-liberty | dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ObjectPool.java | ObjectPool.add | public boolean add(Object o) {
synchronized (pool) {
if (index < pool.length) {
pool[index++] = o;
// if (DEBUG && tc.isDebugEnabled() )
// Tr.debug(tc,"added to pool " + name + " at " + index);
return true;
}
}
... | java | public boolean add(Object o) {
synchronized (pool) {
if (index < pool.length) {
pool[index++] = o;
// if (DEBUG && tc.isDebugEnabled() )
// Tr.debug(tc,"added to pool " + name + " at " + index);
return true;
}
}
... | [
"public",
"boolean",
"add",
"(",
"Object",
"o",
")",
"{",
"synchronized",
"(",
"pool",
")",
"{",
"if",
"(",
"index",
"<",
"pool",
".",
"length",
")",
"{",
"pool",
"[",
"index",
"++",
"]",
"=",
"o",
";",
"// if (DEBUG && tc.isDebugEnabled() )",
"// Tr.deb... | Returns true if the object was added back to the pool | [
"Returns",
"true",
"if",
"the",
"object",
"was",
"added",
"back",
"to",
"the",
"pool"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ObjectPool.java#L38-L50 |
67,778 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ConversationReceiveListenerDataReceivedInvocation.java | ConversationReceiveListenerDataReceivedInvocation.getThreadContext | protected synchronized Dispatchable getThreadContext()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getThreadContext");
// Start D202625
// Save the position of the data
int currentPos = data.position();
int currentLimit = data.limit();
... | java | protected synchronized Dispatchable getThreadContext()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getThreadContext");
// Start D202625
// Save the position of the data
int currentPos = data.position();
int currentLimit = data.limit();
... | [
"protected",
"synchronized",
"Dispatchable",
"getThreadContext",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getThr... | This method will ask the receive listener for the thread context.
@return Returns any thread context that the receive listener has for this data. | [
"This",
"method",
"will",
"ask",
"the",
"receive",
"listener",
"for",
"the",
"thread",
"context",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ConversationReceiveListenerDataReceivedInvocation.java#L94-L134 |
67,779 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/handlers/LogRepositoryConfiguration.java | LogRepositoryConfiguration.setLogDataDirectory | public void setLogDataDirectory(String logDataDirectory) {
LogState state = ivLog.setDataDirectory(logDataDirectory);
if (state != null) {
updateLogConfiguration(state);
state.copyTo(ivLog);
}
} | java | public void setLogDataDirectory(String logDataDirectory) {
LogState state = ivLog.setDataDirectory(logDataDirectory);
if (state != null) {
updateLogConfiguration(state);
state.copyTo(ivLog);
}
} | [
"public",
"void",
"setLogDataDirectory",
"(",
"String",
"logDataDirectory",
")",
"{",
"LogState",
"state",
"=",
"ivLog",
".",
"setDataDirectory",
"(",
"logDataDirectory",
")",
";",
"if",
"(",
"state",
"!=",
"null",
")",
"{",
"updateLogConfiguration",
"(",
"state... | Setters for Log Data | [
"Setters",
"for",
"Log",
"Data"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/handlers/LogRepositoryConfiguration.java#L323-L329 |
67,780 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/handlers/LogRepositoryConfiguration.java | LogRepositoryConfiguration.updateTraceConfiguration | private void updateTraceConfiguration(TraceState state) {
if (DIRECTORY_TYPE.equals(state.ivStorageType)) {
LogRepositoryComponent.setTraceDirectoryDestination(state.ivDataDirectory, state.ivPurgeBySizeEnabled, state.ivPurgeByTimeEnabled,
state.ivFileSwitchEnabled, state.ivBufferingEnabled, state.ivPurgeMaxSi... | java | private void updateTraceConfiguration(TraceState state) {
if (DIRECTORY_TYPE.equals(state.ivStorageType)) {
LogRepositoryComponent.setTraceDirectoryDestination(state.ivDataDirectory, state.ivPurgeBySizeEnabled, state.ivPurgeByTimeEnabled,
state.ivFileSwitchEnabled, state.ivBufferingEnabled, state.ivPurgeMaxSi... | [
"private",
"void",
"updateTraceConfiguration",
"(",
"TraceState",
"state",
")",
"{",
"if",
"(",
"DIRECTORY_TYPE",
".",
"equals",
"(",
"state",
".",
"ivStorageType",
")",
")",
"{",
"LogRepositoryComponent",
".",
"setTraceDirectoryDestination",
"(",
"state",
".",
"i... | update all info for Trace Repository | [
"update",
"all",
"info",
"for",
"Trace",
"Repository"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/handlers/LogRepositoryConfiguration.java#L399-L409 |
67,781 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/handlers/LogRepositoryConfiguration.java | LogRepositoryConfiguration.setTraceMemory | public void setTraceMemory(String dataDirectory, long memoryBufferSize) {
TraceState state = (TraceState)ivTrace.clone();
state.ivStorageType = MEMORYBUFFER_TYPE;
state.ivDataDirectory = dataDirectory;
state.ivMemoryBufferSize = memoryBufferSize;
updateTraceConfiguration(state);
state.copyTo(ivTrace);... | java | public void setTraceMemory(String dataDirectory, long memoryBufferSize) {
TraceState state = (TraceState)ivTrace.clone();
state.ivStorageType = MEMORYBUFFER_TYPE;
state.ivDataDirectory = dataDirectory;
state.ivMemoryBufferSize = memoryBufferSize;
updateTraceConfiguration(state);
state.copyTo(ivTrace);... | [
"public",
"void",
"setTraceMemory",
"(",
"String",
"dataDirectory",
",",
"long",
"memoryBufferSize",
")",
"{",
"TraceState",
"state",
"=",
"(",
"TraceState",
")",
"ivTrace",
".",
"clone",
"(",
")",
";",
"state",
".",
"ivStorageType",
"=",
"MEMORYBUFFER_TYPE",
... | Modify the trace to use a memory buffer
@param dataDirectory directory where buffer will be dumped if requested
@param memoryBufferSize amount of memory (in Mb) to be used for this circular buffer | [
"Modify",
"the",
"trace",
"to",
"use",
"a",
"memory",
"buffer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/handlers/LogRepositoryConfiguration.java#L436-L445 |
67,782 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/internal/utils/OAuthClientUtil.java | OAuthClientUtil.getWrappedServletRequestObject | private static HttpServletRequest getWrappedServletRequestObject(HttpServletRequest sr) {
if (sr instanceof HttpServletRequestWrapper) {
HttpServletRequestWrapper w = (HttpServletRequestWrapper) sr;
// make sure we drill all the way down to an
// SRTServletRequest...there
... | java | private static HttpServletRequest getWrappedServletRequestObject(HttpServletRequest sr) {
if (sr instanceof HttpServletRequestWrapper) {
HttpServletRequestWrapper w = (HttpServletRequestWrapper) sr;
// make sure we drill all the way down to an
// SRTServletRequest...there
... | [
"private",
"static",
"HttpServletRequest",
"getWrappedServletRequestObject",
"(",
"HttpServletRequest",
"sr",
")",
"{",
"if",
"(",
"sr",
"instanceof",
"HttpServletRequestWrapper",
")",
"{",
"HttpServletRequestWrapper",
"w",
"=",
"(",
"HttpServletRequestWrapper",
")",
"sr"... | Drill down through any possible HttpServletRequestWrapper objects.
@param sr
@return | [
"Drill",
"down",
"through",
"any",
"possible",
"HttpServletRequestWrapper",
"objects",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/internal/utils/OAuthClientUtil.java#L481-L492 |
67,783 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/FileSharedServerLeaseLog.java | FileSharedServerLeaseLog.getFileSharedServerLeaseLog | public static FileSharedServerLeaseLog getFileSharedServerLeaseLog(String logDirStem, String localRecoveryIdentity, String recoveryGroup) {
if (tc.isEntryEnabled())
Tr.entry(tc, "FileSharedServerLeaseLog", new Object[] { logDirStem, localRecoveryIdentity, recoveryGroup });
if (_serverInstal... | java | public static FileSharedServerLeaseLog getFileSharedServerLeaseLog(String logDirStem, String localRecoveryIdentity, String recoveryGroup) {
if (tc.isEntryEnabled())
Tr.entry(tc, "FileSharedServerLeaseLog", new Object[] { logDirStem, localRecoveryIdentity, recoveryGroup });
if (_serverInstal... | [
"public",
"static",
"FileSharedServerLeaseLog",
"getFileSharedServerLeaseLog",
"(",
"String",
"logDirStem",
",",
"String",
"localRecoveryIdentity",
",",
"String",
"recoveryGroup",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
... | Access the singleton instance of the FileSystem Lease log.
@return ChannelFrameworkImpl | [
"Access",
"the",
"singleton",
"instance",
"of",
"the",
"FileSystem",
"Lease",
"log",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/FileSharedServerLeaseLog.java#L106-L116 |
67,784 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/wsspi/ejbcontainer/JITDeploy.java | JITDeploy.parseRMICCompatible | public static int parseRMICCompatible(String options) // PM46698
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "parseRMICCompatible: " + options);
int flags;
if (options == null)
{
... | java | public static int parseRMICCompatible(String options) // PM46698
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "parseRMICCompatible: " + options);
int flags;
if (options == null)
{
... | [
"public",
"static",
"int",
"parseRMICCompatible",
"(",
"String",
"options",
")",
"// PM46698",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",... | Parse an rmic compatibility options string.
@param options the options string
@return the compatibility flags
@see #isRMICCompatibleValues | [
"Parse",
"an",
"rmic",
"compatibility",
"options",
"string",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/wsspi/ejbcontainer/JITDeploy.java#L83-L126 |
67,785 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/wsspi/ejbcontainer/JITDeploy.java | JITDeploy.registerJIT_StubClassPlugin | public static void registerJIT_StubClassPlugin(ClassLoader classloader)
{
boolean isRegistered = JIT_StubPluginImpl.register(classloader);
if (!isRegistered)
{
throw new IllegalArgumentException("Specified ClassLoader does not support JIT_StubClassPlugin : " + classloader);
... | java | public static void registerJIT_StubClassPlugin(ClassLoader classloader)
{
boolean isRegistered = JIT_StubPluginImpl.register(classloader);
if (!isRegistered)
{
throw new IllegalArgumentException("Specified ClassLoader does not support JIT_StubClassPlugin : " + classloader);
... | [
"public",
"static",
"void",
"registerJIT_StubClassPlugin",
"(",
"ClassLoader",
"classloader",
")",
"{",
"boolean",
"isRegistered",
"=",
"JIT_StubPluginImpl",
".",
"register",
"(",
"classloader",
")",
";",
"if",
"(",
"!",
"isRegistered",
")",
"{",
"throw",
"new",
... | F1339-8988 | [
"F1339",
"-",
"8988"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/wsspi/ejbcontainer/JITDeploy.java#L255-L263 |
67,786 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/TopicBasedCache.java | TopicBasedCache.setStageTopics | synchronized void setStageTopics(String stageName, String[] topics) {
for (String t : topics) {
if (t.equals("*")) {
wildcardStageTopics.put("", stageName);
} else if (t.endsWith("/*")) {
wildcardStageTopics.put(t.substring(0, t.length() - 1), stageName);
... | java | synchronized void setStageTopics(String stageName, String[] topics) {
for (String t : topics) {
if (t.equals("*")) {
wildcardStageTopics.put("", stageName);
} else if (t.endsWith("/*")) {
wildcardStageTopics.put(t.substring(0, t.length() - 1), stageName);
... | [
"synchronized",
"void",
"setStageTopics",
"(",
"String",
"stageName",
",",
"String",
"[",
"]",
"topics",
")",
"{",
"for",
"(",
"String",
"t",
":",
"topics",
")",
"{",
"if",
"(",
"t",
".",
"equals",
"(",
"\"*\"",
")",
")",
"{",
"wildcardStageTopics",
".... | Set the list of topics to be associated with the specified work stage.
@param stageName
the work stage name
@param topics
the topics associated with the work stage | [
"Set",
"the",
"list",
"of",
"topics",
"to",
"be",
"associated",
"with",
"the",
"specified",
"work",
"stage",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/TopicBasedCache.java#L95-L108 |
67,787 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/TopicBasedCache.java | TopicBasedCache.getTopicData | TopicData getTopicData(Topic topic, String topicName) {
TopicData topicData = null;
if (topic != null) {
topicData = topic.getTopicData();
}
if (topicData == null) {
topicData = topicDataCache.get(topicName);
if (topic != null && topicData != null) {... | java | TopicData getTopicData(Topic topic, String topicName) {
TopicData topicData = null;
if (topic != null) {
topicData = topic.getTopicData();
}
if (topicData == null) {
topicData = topicDataCache.get(topicName);
if (topic != null && topicData != null) {... | [
"TopicData",
"getTopicData",
"(",
"Topic",
"topic",
",",
"String",
"topicName",
")",
"{",
"TopicData",
"topicData",
"=",
"null",
";",
"if",
"(",
"topic",
"!=",
"null",
")",
"{",
"topicData",
"=",
"topic",
".",
"getTopicData",
"(",
")",
";",
"}",
"if",
... | Get the cached information about the specified topic. The cached data
will allow us to avoid the expense of finding various and sundry data
associated with a specific topic and topic hierarchies.
@param topic
the topic associated with an event
@param topicName
the topic name associated with an event
@return the cached... | [
"Get",
"the",
"cached",
"information",
"about",
"the",
"specified",
"topic",
".",
"The",
"cached",
"data",
"will",
"allow",
"us",
"to",
"avoid",
"the",
"expense",
"of",
"finding",
"various",
"and",
"sundry",
"data",
"associated",
"with",
"a",
"specific",
"to... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/TopicBasedCache.java#L233-L257 |
67,788 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/AccessLists.java | AccessLists.accessDenied | public boolean accessDenied(InetAddress remoteAddr) {
String hostname = null; //F184719
// check the inclusion lists first to see if the client matches
if (includeAccess.getActive() || includeAccessNames.getActive()) {
boolean closeSocket = true;
if (includeAccess.getA... | java | public boolean accessDenied(InetAddress remoteAddr) {
String hostname = null; //F184719
// check the inclusion lists first to see if the client matches
if (includeAccess.getActive() || includeAccessNames.getActive()) {
boolean closeSocket = true;
if (includeAccess.getA... | [
"public",
"boolean",
"accessDenied",
"(",
"InetAddress",
"remoteAddr",
")",
"{",
"String",
"hostname",
"=",
"null",
";",
"//F184719",
"// check the inclusion lists first to see if the client matches",
"if",
"(",
"includeAccess",
".",
"getActive",
"(",
")",
"||",
"includ... | Query whether a given client address is denied by this configuration.
@param remoteAddr
@return boolean | [
"Query",
"whether",
"a",
"given",
"client",
"address",
"is",
"denied",
"by",
"this",
"configuration",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/AccessLists.java#L112-L191 |
67,789 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java | PtoPInputHandler.eventPrecommitAdd | final protected void eventPrecommitAdd(MessageItem msg, final TransactionCommon transaction) throws SIDiscriminatorSyntaxException, SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "eventPrecommitAdd", new Object[] { msg, transaction });
... | java | final protected void eventPrecommitAdd(MessageItem msg, final TransactionCommon transaction) throws SIDiscriminatorSyntaxException, SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "eventPrecommitAdd", new Object[] { msg, transaction });
... | [
"final",
"protected",
"void",
"eventPrecommitAdd",
"(",
"MessageItem",
"msg",
",",
"final",
"TransactionCommon",
"transaction",
")",
"throws",
"SIDiscriminatorSyntaxException",
",",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
... | Method eventPrecommitAdd.
@param msg
@param transaction
@throws SIStoreException
@throws SIResourceException | [
"Method",
"eventPrecommitAdd",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java#L1129-L1245 |
67,790 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java | PtoPInputHandler.sendAckMessage | @Override
public void sendAckMessage(SIBUuid8 sourceMEUuid,
SIBUuid12 destUuid,
SIBUuid8 busUuid,
long ackPrefix,
int priority,
Reliability reliability,
... | java | @Override
public void sendAckMessage(SIBUuid8 sourceMEUuid,
SIBUuid12 destUuid,
SIBUuid8 busUuid,
long ackPrefix,
int priority,
Reliability reliability,
... | [
"@",
"Override",
"public",
"void",
"sendAckMessage",
"(",
"SIBUuid8",
"sourceMEUuid",
",",
"SIBUuid12",
"destUuid",
",",
"SIBUuid8",
"busUuid",
",",
"long",
"ackPrefix",
",",
"int",
"priority",
",",
"Reliability",
"reliability",
",",
"SIBUuid12",
"stream",
",",
... | sendAckMessage is called from preCommitCallback after
the message has been delivered to the final destination | [
"sendAckMessage",
"is",
"called",
"from",
"preCommitCallback",
"after",
"the",
"message",
"has",
"been",
"delivered",
"to",
"the",
"final",
"destination"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java#L1293-L1330 |
67,791 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java | PtoPInputHandler.sendNackMessage | @Override
public void sendNackMessage(SIBUuid8 sourceMEUuid,
SIBUuid12 destUuid,
SIBUuid8 busUuid,
long startTick,
long endTick,
int priority,
... | java | @Override
public void sendNackMessage(SIBUuid8 sourceMEUuid,
SIBUuid12 destUuid,
SIBUuid8 busUuid,
long startTick,
long endTick,
int priority,
... | [
"@",
"Override",
"public",
"void",
"sendNackMessage",
"(",
"SIBUuid8",
"sourceMEUuid",
",",
"SIBUuid12",
"destUuid",
",",
"SIBUuid8",
"busUuid",
",",
"long",
"startTick",
",",
"long",
"endTick",
",",
"int",
"priority",
",",
"Reliability",
"reliability",
",",
"SI... | Sends a Nack message back to the originating ME | [
"Sends",
"a",
"Nack",
"message",
"back",
"to",
"the",
"originating",
"ME"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java#L1335-L1377 |
67,792 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java | PtoPInputHandler.createControlNackMessage | private ControlNack createControlNackMessage()
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createControlNackMessage");
ControlNack nackMsg = null;
// Create new NackMessage
try
... | java | private ControlNack createControlNackMessage()
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createControlNackMessage");
ControlNack nackMsg = null;
// Create new NackMessage
try
... | [
"private",
"ControlNack",
"createControlNackMessage",
"(",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\... | Creates an NACK message for sending
@return the new NACK message
@throws SIResourceException if the message can't be created. | [
"Creates",
"an",
"NACK",
"message",
"for",
"sending"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java#L1442-L1490 |
67,793 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java | PtoPInputHandler.createControlRequestFlush | protected ControlRequestFlush createControlRequestFlush() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createControlRequestFlush");
ControlRequestFlush rflushMsg = null;
// Create new message
try
... | java | protected ControlRequestFlush createControlRequestFlush() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createControlRequestFlush");
ControlRequestFlush rflushMsg = null;
// Create new message
try
... | [
"protected",
"ControlRequestFlush",
"createControlRequestFlush",
"(",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
... | Creates a REQUESTFLUSH message for sending
@return the new REQUESTFLUSH message
@throws SIResourceException if the message can't be created. | [
"Creates",
"a",
"REQUESTFLUSH",
"message",
"for",
"sending"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java#L1554-L1601 |
67,794 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java | PtoPInputHandler.checkCanExceptionMessage | private int checkCanExceptionMessage(DestinationHandler destinationHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"checkCanExceptionMessage",
new Object[] { destinationHandler })... | java | private int checkCanExceptionMessage(DestinationHandler destinationHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"checkCanExceptionMessage",
new Object[] { destinationHandler })... | [
"private",
"int",
"checkCanExceptionMessage",
"(",
"DestinationHandler",
"destinationHandler",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
... | Check whether it will be possible to place a message on the exception destination belonging
to a destination.
@param destinationHandler
@return an integer reason code | [
"Check",
"whether",
"it",
"will",
"be",
"possible",
"to",
"place",
"a",
"message",
"on",
"the",
"exception",
"destination",
"belonging",
"to",
"a",
"destination",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java#L2926-L2946 |
67,795 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java | PtoPInputHandler.checkTargetAbleToAcceptOrExceptionMessage | private int checkTargetAbleToAcceptOrExceptionMessage(JsDestinationAddress targetDestinationAddr)
throws SITemporaryDestinationNotFoundException, SIResourceException, SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java | private int checkTargetAbleToAcceptOrExceptionMessage(JsDestinationAddress targetDestinationAddr)
throws SITemporaryDestinationNotFoundException, SIResourceException, SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | [
"private",
"int",
"checkTargetAbleToAcceptOrExceptionMessage",
"(",
"JsDestinationAddress",
"targetDestinationAddr",
")",
"throws",
"SITemporaryDestinationNotFoundException",
",",
"SIResourceException",
",",
"SINotPossibleInCurrentConfigurationException",
"{",
"if",
"(",
"TraceCompon... | See if a target destination or, if necessary, its exception destination, can
handle any more messages.
@return reason code signifying whether the destination can accept messages or the reason for
not being able to do so.
@throws SINotPossibleInCurrentConfigurationException
@throws SIResourceException
@throws SITempora... | [
"See",
"if",
"a",
"target",
"destination",
"or",
"if",
"necessary",
"its",
"exception",
"destination",
"can",
"handle",
"any",
"more",
"messages",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java#L3324-L3360 |
67,796 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java | PtoPInputHandler.checkLinkAbleToExceptionMessage | private int checkLinkAbleToExceptionMessage()
throws SIException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkLinkAbleToExceptionMessage");
int blockingReason = DestinationHandler.OUTPUT_HANDLER_NOT_FOUND;
blocking... | java | private int checkLinkAbleToExceptionMessage()
throws SIException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkLinkAbleToExceptionMessage");
int blockingReason = DestinationHandler.OUTPUT_HANDLER_NOT_FOUND;
blocking... | [
"private",
"int",
"checkLinkAbleToExceptionMessage",
"(",
")",
"throws",
"SIException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"checkLin... | See if a link's exception destination can handle any more messages.
@return reason code signifying whether the destination can accept messages or the reason for
not being able to do so. | [
"See",
"if",
"a",
"link",
"s",
"exception",
"destination",
"can",
"handle",
"any",
"more",
"messages",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java#L3368-L3382 |
67,797 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java | PtoPInputHandler.checkStillBlocked | @Override
public int checkStillBlocked()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkStillBlocked");
// For safety, we assume that the destination is blocked (def 244425 and 464463)
int blockingReason = DestinationHandler.OUTPUT_H... | java | @Override
public int checkStillBlocked()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkStillBlocked");
// For safety, we assume that the destination is blocked (def 244425 and 464463)
int blockingReason = DestinationHandler.OUTPUT_H... | [
"@",
"Override",
"public",
"int",
"checkStillBlocked",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"checkStillBlocked\"",
")",
... | See if the condition that led to the link being blocked has been resolved. The block could have been
caused by a number of factors, such as the routing destination being full or put-disabled or the
link exception destination being full, etc, etc.
This code is called by the processAckExpected code in the target stream
... | [
"See",
"if",
"the",
"condition",
"that",
"led",
"to",
"the",
"link",
"being",
"blocked",
"has",
"been",
"resolved",
".",
"The",
"block",
"could",
"have",
"been",
"caused",
"by",
"a",
"number",
"of",
"factors",
"such",
"as",
"the",
"routing",
"destination",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPInputHandler.java#L3400-L3495 |
67,798 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/NodeStack.java | NodeStack.balancedPush | void balancedPush(
int state,
GBSNode node)
{
push(state, node);
if (node.balance() != 0)
_bpidx = _cidx;
} | java | void balancedPush(
int state,
GBSNode node)
{
push(state, node);
if (node.balance() != 0)
_bpidx = _cidx;
} | [
"void",
"balancedPush",
"(",
"int",
"state",
",",
"GBSNode",
"node",
")",
"{",
"push",
"(",
"state",
",",
"node",
")",
";",
"if",
"(",
"node",
".",
"balance",
"(",
")",
"!=",
"0",
")",
"_bpidx",
"=",
"_cidx",
";",
"}"
] | Push a node and associated state onto the stack, remembering
a height imbalance if there is one. | [
"Push",
"a",
"node",
"and",
"associated",
"state",
"onto",
"the",
"stack",
"remembering",
"a",
"height",
"imbalance",
"if",
"there",
"is",
"one",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/NodeStack.java#L186-L193 |
67,799 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/NodeStack.java | NodeStack.processSubFringe | void processSubFringe(
GBSNode p)
{
/* Depth of a balanced T-zero tree for */
/* this tree's K factor */
int t0_depth = _tree.tZeroDepth();
/* Determine top-most node we must visit in the tree walk ... | java | void processSubFringe(
GBSNode p)
{
/* Depth of a balanced T-zero tree for */
/* this tree's K factor */
int t0_depth = _tree.tZeroDepth();
/* Determine top-most node we must visit in the tree walk ... | [
"void",
"processSubFringe",
"(",
"GBSNode",
"p",
")",
"{",
"/* Depth of a balanced T-zero tree for */",
"/* this tree's K factor */",
"int",
"t0_depth",
"=",
"_tree",
".",
"tZeroDepth",
"(",
")",
";",
"/* Determine top-most node we must visit in the tree walk ... | Walk through a fringe of the tree.
<p>We are positioned at a node that is within a fringe of a tree.
This method will go through every node in the fringe, invoking
processNode on every node in the tree. processNode is an abstract
method that is implemented by all subclasses.</p>
@param p The node at which to start. | [
"Walk",
"through",
"a",
"fringe",
"of",
"the",
"tree",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/NodeStack.java#L260-L279 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.