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,400
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbSpiLocalTransactionImpl.java
WSRdbSpiLocalTransactionImpl.rollback
public void rollback() throws ResourceException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "rollback", ivMC); // if the MC marked Stale, it means the user requested a purge pool with an immediate option // so don't allow any work on the mc if (ivMC._mcStale) { ...
java
public void rollback() throws ResourceException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "rollback", ivMC); // if the MC marked Stale, it means the user requested a purge pool with an immediate option // so don't allow any work on the mc if (ivMC._mcStale) { ...
[ "public", "void", "rollback", "(", ")", "throws", "ResourceException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "this", ",", "tc", ",", "\"rollback\"", ",", "ivMC", ")", ";", "// if the MC marked Stale, it means th...
Rollback a local transaction @exception ResourceException - Possible causes for this exception are: 1) if there is no transaction active that can be rolledback 2) rollback was called from an invalid transaction state
[ "Rollback", "a", "local", "transaction" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbSpiLocalTransactionImpl.java#L338-L448
67,401
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsObjectMessageImpl.java
JsJmsObjectMessageImpl.serializeRealObject
private void serializeRealObject() throws ObjectFailedToSerializeException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "serializeRealObject"); if (hasRealObject) { // If the realObject isn't null, we need to serialize it & set it int...
java
private void serializeRealObject() throws ObjectFailedToSerializeException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "serializeRealObject"); if (hasRealObject) { // If the realObject isn't null, we need to serialize it & set it int...
[ "private", "void", "serializeRealObject", "(", ")", "throws", "ObjectFailedToSerializeException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", ...
Private method to serialize the 'real' object into the payload. This method is only called if we have a 'real' object AND it has not already been serialized Note that this doesn't preclude realObject being null, as null may be the real value set using setRealObject(). @exception ObjectFailedToSerializeException Seria...
[ "Private", "method", "to", "serialize", "the", "real", "object", "into", "the", "payload", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsObjectMessageImpl.java#L373-L419
67,402
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsObjectMessageImpl.java
JsJmsObjectMessageImpl.deserializeToRealObject
private Serializable deserializeToRealObject() throws IOException, ClassNotFoundException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "deserializeToRealObject"); Serializable obj = null; ObjectInputStream ois = null; byte[] bytes ...
java
private Serializable deserializeToRealObject() throws IOException, ClassNotFoundException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "deserializeToRealObject"); Serializable obj = null; ObjectInputStream ois = null; byte[] bytes ...
[ "private", "Serializable", "deserializeToRealObject", "(", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry",...
Private method to deserialize the 'real' object from the payload. The deserialized object is returned by the method & stored in a SoftReference for potential future use. A SoftReference is used because we still have the serialized obejct in the message itself, and, if the object is large, holding both forms could caus...
[ "Private", "method", "to", "deserialize", "the", "real", "object", "from", "the", "payload", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsObjectMessageImpl.java#L436-L488
67,403
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ProducerSessionImpl.java
ProducerSessionImpl.getConnection
public SICoreConnection getConnection() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && CoreSPIProducerSession.tc.isEntryEnabled()) { SibTr.entry(CoreSPIProducerSession.tc, "getConnection", this); SibTr.exit(CoreSPIProducerSession.tc, "getConnection", _conn); ...
java
public SICoreConnection getConnection() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && CoreSPIProducerSession.tc.isEntryEnabled()) { SibTr.entry(CoreSPIProducerSession.tc, "getConnection", this); SibTr.exit(CoreSPIProducerSession.tc, "getConnection", _conn); ...
[ "public", "SICoreConnection", "getConnection", "(", ")", "throws", "SISessionUnavailableException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "CoreSPIProducerSession", ".", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr",...
Returns this sessions connection
[ "Returns", "this", "sessions", "connection" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ProducerSessionImpl.java#L608-L617
67,404
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ProducerSessionImpl.java
ProducerSessionImpl.disableDiscriminatorAccessCheckAtSend
void disableDiscriminatorAccessCheckAtSend(String discriminatorAtCreate) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "disableDiscriminatorAccessCheckAtSend"); _checkDiscriminatorAccessAtSend = false; this._discriminatorAtCreate = discriminatorAtCreate; if...
java
void disableDiscriminatorAccessCheckAtSend(String discriminatorAtCreate) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "disableDiscriminatorAccessCheckAtSend"); _checkDiscriminatorAccessAtSend = false; this._discriminatorAtCreate = discriminatorAtCreate; if...
[ "void", "disableDiscriminatorAccessCheckAtSend", "(", "String", "discriminatorAtCreate", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"disa...
Disable discriminator access checks at send time
[ "Disable", "discriminator", "access", "checks", "at", "send", "time" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ProducerSessionImpl.java#L696-L706
67,405
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/io/async/TimeSlot.java
TimeSlot.addEntry
public void addEntry(TimerWorkItem addItem, long curTime) { // this routine assumes the slot is not full this.mostRecentlyAccessedTime = curTime; this.lastEntryIndex++; this.entries[lastEntryIndex] = addItem; }
java
public void addEntry(TimerWorkItem addItem, long curTime) { // this routine assumes the slot is not full this.mostRecentlyAccessedTime = curTime; this.lastEntryIndex++; this.entries[lastEntryIndex] = addItem; }
[ "public", "void", "addEntry", "(", "TimerWorkItem", "addItem", ",", "long", "curTime", ")", "{", "// this routine assumes the slot is not full", "this", ".", "mostRecentlyAccessedTime", "=", "curTime", ";", "this", ".", "lastEntryIndex", "++", ";", "this", ".", "ent...
Add a timer item. @param addItem @param curTime
[ "Add", "a", "timer", "item", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/TimeSlot.java#L69-L75
67,406
OpenLiberty/open-liberty
dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/Split.java
Split.getFlows
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-") public List<Flow> getFlows() { if (flows == null) { flows = new ArrayList<Flow>(); } return this.flows; }
java
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-") public List<Flow> getFlows() { if (flows == null) { flows = new ArrayList<Flow>(); } return this.flows; }
[ "@", "Generated", "(", "value", "=", "\"com.ibm.jtc.jax.tools.xjc.Driver\"", ",", "date", "=", "\"2014-06-11T05:49:00-04:00\"", ",", "comments", "=", "\"JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-\"", ")", "public", "List", "<", "Flow", ">", "getFlows", "(", ")", "{", ...
Gets the value of the flows property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the flows property. <p> For example, to add a new...
[ "Gets", "the", "value", "of", "the", "flows", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/Split.java#L96-L102
67,407
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSchemaInterpreterImpl.java
JSchemaInterpreterImpl.decode
public JMFMessage decode(JSchema schema, byte[] contents, int offset, int length) throws JMFMessageCorruptionException { return new JSMessageImpl(schema, contents, offset, length, true); }
java
public JMFMessage decode(JSchema schema, byte[] contents, int offset, int length) throws JMFMessageCorruptionException { return new JSMessageImpl(schema, contents, offset, length, true); }
[ "public", "JMFMessage", "decode", "(", "JSchema", "schema", ",", "byte", "[", "]", "contents", ",", "int", "offset", ",", "int", "length", ")", "throws", "JMFMessageCorruptionException", "{", "return", "new", "JSMessageImpl", "(", "schema", ",", "contents", ",...
Implementation of decode
[ "Implementation", "of", "decode" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSchemaInterpreterImpl.java#L39-L42
67,408
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/ServerCommand.java
ServerCommand.read
protected String read(SocketChannel sc) throws IOException { sc.read(buffer); buffer.flip(); decoder.decode(buffer, charBuffer, true); charBuffer.flip(); String result = charBuffer.toString(); // Clear out buffers buffer.clear(); charBuffer.clear(); ...
java
protected String read(SocketChannel sc) throws IOException { sc.read(buffer); buffer.flip(); decoder.decode(buffer, charBuffer, true); charBuffer.flip(); String result = charBuffer.toString(); // Clear out buffers buffer.clear(); charBuffer.clear(); ...
[ "protected", "String", "read", "(", "SocketChannel", "sc", ")", "throws", "IOException", "{", "sc", ".", "read", "(", "buffer", ")", ";", "buffer", ".", "flip", "(", ")", ";", "decoder", ".", "decode", "(", "buffer", ",", "charBuffer", ",", "true", ")"...
Reads a command or command response from a socket channel. <p>This method is not safe for use by multiple concurrent threads. @param sc the socket channel @return the command or command response
[ "Reads", "a", "command", "or", "command", "response", "from", "a", "socket", "channel", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/ServerCommand.java#L73-L88
67,409
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/ServerCommand.java
ServerCommand.write
protected void write(SocketChannel sc, String s) throws IOException { sc.write(encoder.encode(CharBuffer.wrap(s))); }
java
protected void write(SocketChannel sc, String s) throws IOException { sc.write(encoder.encode(CharBuffer.wrap(s))); }
[ "protected", "void", "write", "(", "SocketChannel", "sc", ",", "String", "s", ")", "throws", "IOException", "{", "sc", ".", "write", "(", "encoder", ".", "encode", "(", "CharBuffer", ".", "wrap", "(", "s", ")", ")", ")", ";", "}" ]
Writes a command or command response to a socket channel. <p>This method is not safe for use by multiple concurrent threads. @param sc the socket channel @param s the command or command response
[ "Writes", "a", "command", "or", "command", "response", "to", "a", "socket", "channel", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/ServerCommand.java#L98-L100
67,410
OpenLiberty/open-liberty
dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtBadMPConfigAsEnvVars.java
MPJwtBadMPConfigAsEnvVars.MPJwtBadMPConfigAsEnvVars_GoodMpJwtConfigSpecifiedInServerXml
@Test public void MPJwtBadMPConfigAsEnvVars_GoodMpJwtConfigSpecifiedInServerXml() throws Exception { resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_AltConfigNotInApp_goodServerXmlConfig.xml"); standardTestFlow(resourceServer, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_R...
java
@Test public void MPJwtBadMPConfigAsEnvVars_GoodMpJwtConfigSpecifiedInServerXml() throws Exception { resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_AltConfigNotInApp_goodServerXmlConfig.xml"); standardTestFlow(resourceServer, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_R...
[ "@", "Test", "public", "void", "MPJwtBadMPConfigAsEnvVars_GoodMpJwtConfigSpecifiedInServerXml", "(", ")", "throws", "Exception", "{", "resourceServer", ".", "reconfigureServerUsingExpandedConfiguration", "(", "_testName", ",", "\"rs_server_AltConfigNotInApp_goodServerXmlConfig.xml\""...
The server will be started with all mp-config properties set to bad values in environment variables. The server.xml has a valid mp_jwt config specified. The config settings should come from server.xml. The test should run successfully . @throws Exception
[ "The", "server", "will", "be", "started", "with", "all", "mp", "-", "config", "properties", "set", "to", "bad", "values", "in", "environment", "variables", ".", "The", "server", ".", "xml", "has", "a", "valid", "mp_jwt", "config", "specified", ".", "The", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtBadMPConfigAsEnvVars.java#L66-L73
67,411
OpenLiberty/open-liberty
dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtBadMPConfigAsEnvVars.java
MPJwtBadMPConfigAsEnvVars.MPJwtBadMPConfigAsEnvVars_MpJwtConfigNotSpecifiedInServerXml
@Test public void MPJwtBadMPConfigAsEnvVars_MpJwtConfigNotSpecifiedInServerXml() throws Exception { standardTestFlow(resourceServer, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_ROOT_CONTEXT, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_APP, MpJwtFatConstants.MPJWT_APP_CLASS_NO_MP_CONFIG_IN_APP,...
java
@Test public void MPJwtBadMPConfigAsEnvVars_MpJwtConfigNotSpecifiedInServerXml() throws Exception { standardTestFlow(resourceServer, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_ROOT_CONTEXT, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_APP, MpJwtFatConstants.MPJWT_APP_CLASS_NO_MP_CONFIG_IN_APP,...
[ "@", "Test", "public", "void", "MPJwtBadMPConfigAsEnvVars_MpJwtConfigNotSpecifiedInServerXml", "(", ")", "throws", "Exception", "{", "standardTestFlow", "(", "resourceServer", ",", "MpJwtFatConstants", ".", "NO_MP_CONFIG_IN_APP_ROOT_CONTEXT", ",", "MpJwtFatConstants", ".", "N...
The server will be started with all mp-config properties set to bad values in environment variables. The server.xml has NO mp_jwt config specified. The config settings should come from the env vars. The test should fail @throws Exception
[ "The", "server", "will", "be", "started", "with", "all", "mp", "-", "config", "properties", "set", "to", "bad", "values", "in", "environment", "variables", ".", "The", "server", ".", "xml", "has", "NO", "mp_jwt", "config", "specified", ".", "The", "config"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtBadMPConfigAsEnvVars.java#L83-L90
67,412
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.doRead
private boolean doRead(int amountToRead) throws IOException{ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "doRead, Current buffer, " + _buffer + ", reading from the TCP Channel, readLine : " + _isReadLine); } try { i...
java
private boolean doRead(int amountToRead) throws IOException{ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "doRead, Current buffer, " + _buffer + ", reading from the TCP Channel, readLine : " + _isReadLine); } try { i...
[ "private", "boolean", "doRead", "(", "int", "amountToRead", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "...
This method will call the synchronous or asynchronous method depending on how everything is set up @return If we have read any data or not @throws IOException
[ "This", "method", "will", "call", "the", "synchronous", "or", "asynchronous", "method", "depending", "on", "how", "everything", "is", "set", "up" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L87-L111
67,413
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.syncRead
private boolean syncRead(int amountToRead) throws IOException{ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "syncRead, Executing a synchronous read"); } // Allocate the buffer and set it on the TCP Channel setAndAllocateBuffer(amountToRea...
java
private boolean syncRead(int amountToRead) throws IOException{ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "syncRead, Executing a synchronous read"); } // Allocate the buffer and set it on the TCP Channel setAndAllocateBuffer(amountToRea...
[ "private", "boolean", "syncRead", "(", "int", "amountToRead", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", ...
Issues a synchronous read to the TCP Channel. @return If we have read any data or not @throws IOException
[ "Issues", "a", "synchronous", "read", "to", "the", "TCP", "Channel", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L119-L151
67,414
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.immediateRead
private boolean immediateRead(int amountToRead){ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "immediateRead, Executing a read"); } if(amountToRead > 1){ //Allocate a new temp buffer, then set the position to 0 and limit to the amo...
java
private boolean immediateRead(int amountToRead){ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "immediateRead, Executing a read"); } if(amountToRead > 1){ //Allocate a new temp buffer, then set the position to 0 and limit to the amo...
[ "private", "boolean", "immediateRead", "(", "int", "amountToRead", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"immediateRead, Execu...
This method will execute an immediate read The immediate read will issue a read to the TCP Channel and immediately return with whatever can fit in the buffers This will only ever be called after we had read the 1 byte from the isReady or initialRead methods. As such we will allocate a buffer and add in the 1 byte. This...
[ "This", "method", "will", "execute", "an", "immediate", "read", "The", "immediate", "read", "will", "issue", "a", "read", "to", "the", "TCP", "Channel", "and", "immediately", "return", "with", "whatever", "can", "fit", "in", "the", "buffers", "This", "will",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L163-L212
67,415
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.read
public int read() throws IOException { validate(); int rc = -1; if(doRead(1)){ rc = _buffer.get() & 0x000000FF; } _buffer.release(); _buffer = null; return rc; }
java
public int read() throws IOException { validate(); int rc = -1; if(doRead(1)){ rc = _buffer.get() & 0x000000FF; } _buffer.release(); _buffer = null; return rc; }
[ "public", "int", "read", "(", ")", "throws", "IOException", "{", "validate", "(", ")", ";", "int", "rc", "=", "-", "1", ";", "if", "(", "doRead", "(", "1", ")", ")", "{", "rc", "=", "_buffer", ".", "get", "(", ")", "&", "0x000000FF", ";", "}", ...
Read the first available byte @return int - the byte read @throws IOException
[ "Read", "the", "first", "available", "byte" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L220-L232
67,416
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.read
public int read(byte[] output, int offset, int length) throws IOException { int size = -1; validate(); if (0 == length) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "read(byte[],int,int), Target length was 0"); ...
java
public int read(byte[] output, int offset, int length) throws IOException { int size = -1; validate(); if (0 == length) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "read(byte[],int,int), Target length was 0"); ...
[ "public", "int", "read", "(", "byte", "[", "]", "output", ",", "int", "offset", ",", "int", "length", ")", "throws", "IOException", "{", "int", "size", "=", "-", "1", ";", "validate", "(", ")", ";", "if", "(", "0", "==", "length", ")", "{", "if",...
Read into the provided byte array with the length and offset provided @param output @param offset @param length @return int - the number of bytes read @throws IOException
[ "Read", "into", "the", "provided", "byte", "array", "with", "the", "length", "and", "offset", "provided" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L254-L279
67,417
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.setAndAllocateBuffer
private void setAndAllocateBuffer(int sizeToAllocate) { if(_buffer == null){ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "setAndAllocateBuffer, Buffer is null, size to allocate is : " + sizeToAllocate); } _buffer = a...
java
private void setAndAllocateBuffer(int sizeToAllocate) { if(_buffer == null){ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "setAndAllocateBuffer, Buffer is null, size to allocate is : " + sizeToAllocate); } _buffer = a...
[ "private", "void", "setAndAllocateBuffer", "(", "int", "sizeToAllocate", ")", "{", "if", "(", "_buffer", "==", "null", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr",...
Allocate the buffer size we need and then pre-configure the buffer to prepare it to be read into Once it has been prepared set the buffer to the TCP Channel
[ "Allocate", "the", "buffer", "size", "we", "need", "and", "then", "pre", "-", "configure", "the", "buffer", "to", "prepare", "it", "to", "be", "read", "into", "Once", "it", "has", "been", "prepared", "set", "the", "buffer", "to", "the", "TCP", "Channel" ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L285-L301
67,418
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.validate
private void validate() throws IOException { if (null != _error) { throw _error; } if(!_isReadLine && !_isReady){ //If there is no data available then isReady will have returned false and this throw an IllegalStateException if (TraceComponent.isAnyTra...
java
private void validate() throws IOException { if (null != _error) { throw _error; } if(!_isReadLine && !_isReady){ //If there is no data available then isReady will have returned false and this throw an IllegalStateException if (TraceComponent.isAnyTra...
[ "private", "void", "validate", "(", ")", "throws", "IOException", "{", "if", "(", "null", "!=", "_error", ")", "{", "throw", "_error", ";", "}", "if", "(", "!", "_isReadLine", "&&", "!", "_isReady", ")", "{", "//If there is no data available then isReady will ...
This checks if we have already had an exception thrown. If so it just rethrows that exception This check is done before any reads are done @throws IOException
[ "This", "checks", "if", "we", "have", "already", "had", "an", "exception", "thrown", ".", "If", "so", "it", "just", "rethrows", "that", "exception", "This", "check", "is", "done", "before", "any", "reads", "are", "done" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L309-L320
67,419
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.setupReadListener
public void setupReadListener(ReadListener readListenerl, SRTUpgradeInputStream31 srtUpgradeStream){ if(readListenerl == null){ if (TraceComponent.isAnyTracingEnabled() && tc.isErrorEnabled()) Tr.error(tc, "readlistener.is.null"); throw new NullPointerException(T...
java
public void setupReadListener(ReadListener readListenerl, SRTUpgradeInputStream31 srtUpgradeStream){ if(readListenerl == null){ if (TraceComponent.isAnyTracingEnabled() && tc.isErrorEnabled()) Tr.error(tc, "readlistener.is.null"); throw new NullPointerException(T...
[ "public", "void", "setupReadListener", "(", "ReadListener", "readListenerl", ",", "SRTUpgradeInputStream31", "srtUpgradeStream", ")", "{", "if", "(", "readListenerl", "==", "null", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", ...
Sets the ReadListener provided by the application to this stream Once the ReadListener is set we will kick off the initial read @param readListenerl
[ "Sets", "the", "ReadListener", "provided", "by", "the", "application", "to", "this", "stream", "Once", "the", "ReadListener", "is", "set", "we", "will", "kick", "off", "the", "initial", "read" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L362-L394
67,420
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.initialRead
public void initialRead(){ _isInitialRead = true; if(_buffer != null){ _buffer.release(); _buffer = null; } setAndAllocateBuffer(1); configurePreReadBuffer(1); //This if the first read of the ReadListener, which means force the re...
java
public void initialRead(){ _isInitialRead = true; if(_buffer != null){ _buffer.release(); _buffer = null; } setAndAllocateBuffer(1); configurePreReadBuffer(1); //This if the first read of the ReadListener, which means force the re...
[ "public", "void", "initialRead", "(", ")", "{", "_isInitialRead", "=", "true", ";", "if", "(", "_buffer", "!=", "null", ")", "{", "_buffer", ".", "release", "(", ")", ";", "_buffer", "=", "null", ";", "}", "setAndAllocateBuffer", "(", "1", ")", ";", ...
This method triggers the initial read on the connection, or the read for after the ReadListener.onDataAvailable has run The read done in this method is a forced async read, meaning it will always return on another thread The provided callback will be called when the read is completed and that callback will invoke the R...
[ "This", "method", "triggers", "the", "initial", "read", "on", "the", "connection", "or", "the", "read", "for", "after", "the", "ReadListener", ".", "onDataAvailable", "has", "run", "The", "read", "done", "in", "this", "method", "is", "a", "forced", "async", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L469-L483
67,421
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.configurePostInitialReadBuffer
public void configurePostInitialReadBuffer(){ _isInitialRead = false; _isFirstRead = false; _buffer = _tcpContext.getReadInterface().getBuffer(); configurePostReadBuffer(); }
java
public void configurePostInitialReadBuffer(){ _isInitialRead = false; _isFirstRead = false; _buffer = _tcpContext.getReadInterface().getBuffer(); configurePostReadBuffer(); }
[ "public", "void", "configurePostInitialReadBuffer", "(", ")", "{", "_isInitialRead", "=", "false", ";", "_isFirstRead", "=", "false", ";", "_buffer", "=", "_tcpContext", ".", "getReadInterface", "(", ")", ".", "getBuffer", "(", ")", ";", "configurePostReadBuffer",...
Called after the initial read is completed. This will set the first read flag to false, get the buffer from the TCP Channel, and post configure the buffer. Without this method we would lose the first byte we are reading
[ "Called", "after", "the", "initial", "read", "is", "completed", ".", "This", "will", "set", "the", "first", "read", "flag", "to", "false", "get", "the", "buffer", "from", "the", "TCP", "Channel", "and", "post", "configure", "the", "buffer", ".", "Without",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L489-L494
67,422
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.close
public Boolean close() { _isClosing = true; boolean closeResult = true; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "close, Initial read outstanding : " + _isInitialRead); } if(_isInitialRead){ if (TraceComponent...
java
public Boolean close() { _isClosing = true; boolean closeResult = true; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "close, Initial read outstanding : " + _isInitialRead); } if(_isInitialRead){ if (TraceComponent...
[ "public", "Boolean", "close", "(", ")", "{", "_isClosing", "=", "true", ";", "boolean", "closeResult", "=", "true", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", ...
Close the connection down by immediately timing out any existing read
[ "Close", "the", "connection", "down", "by", "immediately", "timing", "out", "any", "existing", "read" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L521-L578
67,423
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/SubscriptionIndex.java
SubscriptionIndex.getDurableSubscriptions
public synchronized int getDurableSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getDurableSubscriptions"); if (tc.isEntryEnabled()) SibTr.exit( tc, "getDurableSubscriptions", new Integer(durableSubscriptions)); return durableSubscriptions; }
java
public synchronized int getDurableSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getDurableSubscriptions"); if (tc.isEntryEnabled()) SibTr.exit( tc, "getDurableSubscriptions", new Integer(durableSubscriptions)); return durableSubscriptions; }
[ "public", "synchronized", "int", "getDurableSubscriptions", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getDurableSubscriptions\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", "...
Get number of durable subscriptions. @return number of durable subscriptions.
[ "Get", "number", "of", "durable", "subscriptions", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/SubscriptionIndex.java#L149-L161
67,424
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/SubscriptionIndex.java
SubscriptionIndex.getNonDurableSubscriptions
public synchronized int getNonDurableSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getNonDurableSubscriptions"); if (tc.isEntryEnabled()) SibTr.exit( tc, "getNonDurableSubscriptions", new Integer(nonDurableSubscriptions)); return nonDurableSubscriptions;...
java
public synchronized int getNonDurableSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getNonDurableSubscriptions"); if (tc.isEntryEnabled()) SibTr.exit( tc, "getNonDurableSubscriptions", new Integer(nonDurableSubscriptions)); return nonDurableSubscriptions;...
[ "public", "synchronized", "int", "getNonDurableSubscriptions", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getNonDurableSubscriptions\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(...
Get number of non-durable subscriptions. @return number of non-durable subscriptions.
[ "Get", "number", "of", "non", "-", "durable", "subscriptions", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/SubscriptionIndex.java#L168-L180
67,425
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/SubscriptionIndex.java
SubscriptionIndex.getTotalSubscriptions
public synchronized int getTotalSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getTotalSubscriptions"); int totalSubscriptions = durableSubscriptions + nonDurableSubscriptions; if (tc.isEntryEnabled()) SibTr.exit( tc, "getTotalSubscriptions", new Integer(...
java
public synchronized int getTotalSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getTotalSubscriptions"); int totalSubscriptions = durableSubscriptions + nonDurableSubscriptions; if (tc.isEntryEnabled()) SibTr.exit( tc, "getTotalSubscriptions", new Integer(...
[ "public", "synchronized", "int", "getTotalSubscriptions", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getTotalSubscriptions\"", ")", ";", "int", "totalSubscriptions", "=", "durableSubscriptions"...
Get total number of subscriptions. @return total number of subscriptions.
[ "Get", "total", "number", "of", "subscriptions", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/SubscriptionIndex.java#L187-L201
67,426
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertHeight.java
GBSInsertHeight.balance
void balance( NodeStack stack, GBSNode q) { GBSNode p; int bpidx = stack.balancePointIndex(); int x = bpidx; GBSNode bpoint = stack.node(x); GBSNode bfather = stack.node(x-1); /* Adjust balance factors in intervening nodes */ if (bpoint.leftChild...
java
void balance( NodeStack stack, GBSNode q) { GBSNode p; int bpidx = stack.balancePointIndex(); int x = bpidx; GBSNode bpoint = stack.node(x); GBSNode bfather = stack.node(x-1); /* Adjust balance factors in intervening nodes */ if (bpoint.leftChild...
[ "void", "balance", "(", "NodeStack", "stack", ",", "GBSNode", "q", ")", "{", "GBSNode", "p", ";", "int", "bpidx", "=", "stack", ".", "balancePointIndex", "(", ")", ";", "int", "x", "=", "bpidx", ";", "GBSNode", "bpoint", "=", "stack", ".", "node", "(...
Restore the height balance of a tree following an insert. @param stack The NodeStack used to do the insert. @param q The root of the newly added fringe.
[ "Restore", "the", "height", "balance", "of", "a", "tree", "following", "an", "insert", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertHeight.java#L212-L283
67,427
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertHeight.java
GBSInsertHeight.rotateLeft
private void rotateLeft( GBSNode bfather, GBSNode bpoint) { GBSNode bson = bpoint.leftChild(); if (bson.balance() == -1) /* Single LL rotation */ { bpoint.setLeftChild(bson.rightChild()); bson.setRightChild(bpoint); if (bfather.rightChi...
java
private void rotateLeft( GBSNode bfather, GBSNode bpoint) { GBSNode bson = bpoint.leftChild(); if (bson.balance() == -1) /* Single LL rotation */ { bpoint.setLeftChild(bson.rightChild()); bson.setRightChild(bpoint); if (bfather.rightChi...
[ "private", "void", "rotateLeft", "(", "GBSNode", "bfather", ",", "GBSNode", "bpoint", ")", "{", "GBSNode", "bson", "=", "bpoint", ".", "leftChild", "(", ")", ";", "if", "(", "bson", ".", "balance", "(", ")", "==", "-", "1", ")", "/* Single LL rotation ...
Do an LL or LR rotation. @param bfather The father of the balance point. @param bpoint The balance point.
[ "Do", "an", "LL", "or", "LR", "rotation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertHeight.java#L291-L322
67,428
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/Entry.java
Entry.getPrevious
public Entry getPrevious() { checkEntryParent(); Entry entry = null; if(!isFirst()) { entry = previous; } return entry; }
java
public Entry getPrevious() { checkEntryParent(); Entry entry = null; if(!isFirst()) { entry = previous; } return entry; }
[ "public", "Entry", "getPrevious", "(", ")", "{", "checkEntryParent", "(", ")", ";", "Entry", "entry", "=", "null", ";", "if", "(", "!", "isFirst", "(", ")", ")", "{", "entry", "=", "previous", ";", "}", "return", "entry", ";", "}" ]
Unsynchronized. Get the previous entry in the list. @return the previous entry in the list
[ "Unsynchronized", ".", "Get", "the", "previous", "entry", "in", "the", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/Entry.java#L53-L65
67,429
OpenLiberty/open-liberty
dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java
ImportlessPackager.analyzeJar
@Override public boolean analyzeJar(Analyzer analyzer) throws Exception { try { if (scanAgain) { //this will only have an effect on the first scan, because subsequent scanAgain //will use the errorMarker to decide if to scan again resetErrorMarker(); ...
java
@Override public boolean analyzeJar(Analyzer analyzer) throws Exception { try { if (scanAgain) { //this will only have an effect on the first scan, because subsequent scanAgain //will use the errorMarker to decide if to scan again resetErrorMarker(); ...
[ "@", "Override", "public", "boolean", "analyzeJar", "(", "Analyzer", "analyzer", ")", "throws", "Exception", "{", "try", "{", "if", "(", "scanAgain", ")", "{", "//this will only have an effect on the first scan, because subsequent scanAgain", "//will use the errorMarker to de...
all class types that need to be exported
[ "all", "class", "types", "that", "need", "to", "be", "exported" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java#L34-L118
67,430
OpenLiberty/open-liberty
dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java
ImportlessPackager.collectClassDependencies
private void collectClassDependencies (Clazz classInstance, Analyzer analyzer) throws Exception { // retrieve the imports from the known class path Set<TypeRef> importedClasses = classInstance.parseClassFile(); for (TypeRef importedClass:importedClasses) { if (canBeSkipped(importedClass)) // validate the impo...
java
private void collectClassDependencies (Clazz classInstance, Analyzer analyzer) throws Exception { // retrieve the imports from the known class path Set<TypeRef> importedClasses = classInstance.parseClassFile(); for (TypeRef importedClass:importedClasses) { if (canBeSkipped(importedClass)) // validate the impo...
[ "private", "void", "collectClassDependencies", "(", "Clazz", "classInstance", ",", "Analyzer", "analyzer", ")", "throws", "Exception", "{", "// retrieve the imports from the known class path", "Set", "<", "TypeRef", ">", "importedClasses", "=", "classInstance", ".", "pars...
Collect the imports from a class and add the imported classes to the map of all known classes importedReferencedTypes is updated to contain newly added imports allReferencedTypes is updated to avoid the duplicated process @param classInstance @param analyzer @throws Exception
[ "Collect", "the", "imports", "from", "a", "class", "and", "add", "the", "imported", "classes", "to", "the", "map", "of", "all", "known", "classes", "importedReferencedTypes", "is", "updated", "to", "contain", "newly", "added", "imports", "allReferencedTypes", "i...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java#L239-L256
67,431
OpenLiberty/open-liberty
dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java
ImportlessPackager.canBeSkipped
private boolean canBeSkipped (TypeRef importedClass) { // skip known imported classes and the ones in JRE if (allReferencedTypes.contains(importedClass) || importedReferencedTypes.contains(importedClass) || importedClass.isJava()) return true; // Skip the imported classes which are excluded String classPack...
java
private boolean canBeSkipped (TypeRef importedClass) { // skip known imported classes and the ones in JRE if (allReferencedTypes.contains(importedClass) || importedReferencedTypes.contains(importedClass) || importedClass.isJava()) return true; // Skip the imported classes which are excluded String classPack...
[ "private", "boolean", "canBeSkipped", "(", "TypeRef", "importedClass", ")", "{", "// skip known imported classes and the ones in JRE", "if", "(", "allReferencedTypes", ".", "contains", "(", "importedClass", ")", "||", "importedReferencedTypes", ".", "contains", "(", "impo...
check whether a imported class should be considered in further dependency check @param importedClass @return
[ "check", "whether", "a", "imported", "class", "should", "be", "considered", "in", "further", "dependency", "check" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java#L262-L275
67,432
OpenLiberty/open-liberty
dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java
ImportlessPackager.collectPackageDependencies
private Set<PackageRef> collectPackageDependencies() { Set<PackageRef> referencedPackages = new HashSet<PackageRef> (); for (TypeRef newReferencedType:importedReferencedTypes) { PackageRef packageRef = newReferencedType.getPackageRef(); if (referencedPackages.contains(packageRef)) // package already known ...
java
private Set<PackageRef> collectPackageDependencies() { Set<PackageRef> referencedPackages = new HashSet<PackageRef> (); for (TypeRef newReferencedType:importedReferencedTypes) { PackageRef packageRef = newReferencedType.getPackageRef(); if (referencedPackages.contains(packageRef)) // package already known ...
[ "private", "Set", "<", "PackageRef", ">", "collectPackageDependencies", "(", ")", "{", "Set", "<", "PackageRef", ">", "referencedPackages", "=", "new", "HashSet", "<", "PackageRef", ">", "(", ")", ";", "for", "(", "TypeRef", "newReferencedType", ":", "imported...
Collect the referenced packages information from the referenced classes information @return referencedPackages
[ "Collect", "the", "referenced", "packages", "information", "from", "the", "referenced", "classes", "information" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java#L297-L307
67,433
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/xml/metatype/MetatypeOcd.java
MetatypeOcd.addMetatypeAd
public boolean addMetatypeAd(MetatypeAd metatypeAd) { if (this.metatypeAds == null) this.metatypeAds = new LinkedList<MetatypeAd>(); for (MetatypeAd ad : metatypeAds) if (ad.getID().equals(metatypeAd.getID())) return false; this.metatypeAds.add(metatypeA...
java
public boolean addMetatypeAd(MetatypeAd metatypeAd) { if (this.metatypeAds == null) this.metatypeAds = new LinkedList<MetatypeAd>(); for (MetatypeAd ad : metatypeAds) if (ad.getID().equals(metatypeAd.getID())) return false; this.metatypeAds.add(metatypeA...
[ "public", "boolean", "addMetatypeAd", "(", "MetatypeAd", "metatypeAd", ")", "{", "if", "(", "this", ".", "metatypeAds", "==", "null", ")", "this", ".", "metatypeAds", "=", "new", "LinkedList", "<", "MetatypeAd", ">", "(", ")", ";", "for", "(", "MetatypeAd"...
Adds a metatype AD. @param metatypeAd the MetatypeAd to add @return true if the MetatypeAd was added, else false if it already exists in the list
[ "Adds", "a", "metatype", "AD", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/xml/metatype/MetatypeOcd.java#L171-L181
67,434
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncSocketChannel.java
AsyncSocketChannel.prepareSocket
public synchronized void prepareSocket() throws IOException { if (!prepared) { final long fd = getFileDescriptor(); if (fd == INVALID_SOCKET) { throw new AsyncException(AsyncProperties.aio_handle_unavailable); } channelIdentifier = provider.prepar...
java
public synchronized void prepareSocket() throws IOException { if (!prepared) { final long fd = getFileDescriptor(); if (fd == INVALID_SOCKET) { throw new AsyncException(AsyncProperties.aio_handle_unavailable); } channelIdentifier = provider.prepar...
[ "public", "synchronized", "void", "prepareSocket", "(", ")", "throws", "IOException", "{", "if", "(", "!", "prepared", ")", "{", "final", "long", "fd", "=", "getFileDescriptor", "(", ")", ";", "if", "(", "fd", "==", "INVALID_SOCKET", ")", "{", "throw", "...
Perform initialization steps for this new connection. @throws IOException
[ "Perform", "initialization", "steps", "for", "this", "new", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncSocketChannel.java#L349-L387
67,435
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/taglib/TagFileClassInfo.java
TagFileClassInfo.getParameterClassName
public String getParameterClassName(String attributeName, JspCoreContext context) throws JspCoreException { String parameterClassName = null; if (parameterClassNameMap == null) { parameterClassNameMap = new HashMap(); } parameterClassName = (String)parameter...
java
public String getParameterClassName(String attributeName, JspCoreContext context) throws JspCoreException { String parameterClassName = null; if (parameterClassNameMap == null) { parameterClassNameMap = new HashMap(); } parameterClassName = (String)parameter...
[ "public", "String", "getParameterClassName", "(", "String", "attributeName", ",", "JspCoreContext", "context", ")", "throws", "JspCoreException", "{", "String", "parameterClassName", "=", "null", ";", "if", "(", "parameterClassNameMap", "==", "null", ")", "{", "para...
PK36246 && 417178 override method in TagClassInfo, but since we aren't loading a class right now, we don't have to worry about the classpath in the context
[ "PK36246", "&&", "417178", "override", "method", "in", "TagClassInfo", "but", "since", "we", "aren", "t", "loading", "a", "class", "right", "now", "we", "don", "t", "have", "to", "worry", "about", "the", "classpath", "in", "the", "context" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/taglib/TagFileClassInfo.java#L62-L87
67,436
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/ChangeHistory.java
ChangeHistory.rollback
public ReturnCode rollback() { while (!history.isEmpty()) { final Action action = (Action) history.pop(); final ReturnCode ret = action.execute(); if (ret.getCode() != 0) { return ret; } } return ReturnCode.OK; }
java
public ReturnCode rollback() { while (!history.isEmpty()) { final Action action = (Action) history.pop(); final ReturnCode ret = action.execute(); if (ret.getCode() != 0) { return ret; } } return ReturnCode.OK; }
[ "public", "ReturnCode", "rollback", "(", ")", "{", "while", "(", "!", "history", ".", "isEmpty", "(", ")", ")", "{", "final", "Action", "action", "=", "(", "Action", ")", "history", ".", "pop", "(", ")", ";", "final", "ReturnCode", "ret", "=", "actio...
Attempts to undo changes in reverse order of actions taken;
[ "Attempts", "to", "undo", "changes", "in", "reverse", "order", "of", "actions", "taken", ";" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/ChangeHistory.java#L102-L111
67,437
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLDiscriminatorState.java
SSLDiscriminatorState.updateState
public void updateState(SSLContext context, SSLEngine engine, SSLEngineResult result, WsByteBuffer decNetBuf, int position, int limit) { this.sslContext = context; this.sslEngine = engine; this.sslEngineResult = result; this.decryptedNetBuffer = decNetBuf; this.netBufferPosition ...
java
public void updateState(SSLContext context, SSLEngine engine, SSLEngineResult result, WsByteBuffer decNetBuf, int position, int limit) { this.sslContext = context; this.sslEngine = engine; this.sslEngineResult = result; this.decryptedNetBuffer = decNetBuf; this.netBufferPosition ...
[ "public", "void", "updateState", "(", "SSLContext", "context", ",", "SSLEngine", "engine", ",", "SSLEngineResult", "result", ",", "WsByteBuffer", "decNetBuf", ",", "int", "position", ",", "int", "limit", ")", "{", "this", ".", "sslContext", "=", "context", ";"...
Update this state object with current information. This is called when a YES response comes from the discriminator. The position and limit must be saved here so the ready method can adjust them right away. @param context @param engine @param result @param decNetBuf @param position @param limit
[ "Update", "this", "state", "object", "with", "current", "information", ".", "This", "is", "called", "when", "a", "YES", "response", "comes", "from", "the", "discriminator", ".", "The", "position", "and", "limit", "must", "be", "saved", "here", "so", "the", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLDiscriminatorState.java#L59-L66
67,438
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejb/injection/processor/EJBInjectionBinding.java
EJBInjectionBinding.setXMLBeanInterface
private void setXMLBeanInterface(String homeInterfaceName, String interfaceName) // F743-32443 throws InjectionException { // If a home or business interface was specified in XML, then set that as // the injection type. Both may be null if the XML just provides an // override of an anno...
java
private void setXMLBeanInterface(String homeInterfaceName, String interfaceName) // F743-32443 throws InjectionException { // If a home or business interface was specified in XML, then set that as // the injection type. Both may be null if the XML just provides an // override of an anno...
[ "private", "void", "setXMLBeanInterface", "(", "String", "homeInterfaceName", ",", "String", "interfaceName", ")", "// F743-32443", "throws", "InjectionException", "{", "// If a home or business interface was specified in XML, then set that as", "// the injection type. Both may be nul...
Sets the beanInterface as specified by XML.
[ "Sets", "the", "beanInterface", "as", "specified", "by", "XML", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejb/injection/processor/EJBInjectionBinding.java#L265-L300
67,439
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejb/injection/processor/EJBInjectionBinding.java
EJBInjectionBinding.setBindingName
private void setBindingName() // d681743 throws InjectionException { Map<String, String> ejbRefBindings = ivNameSpaceConfig.getEJBRefBindings(); if (ejbRefBindings != null) { ivBindingName = ejbRefBindings.get(getJndiName()); if (ivBindingName != null && ivBindin...
java
private void setBindingName() // d681743 throws InjectionException { Map<String, String> ejbRefBindings = ivNameSpaceConfig.getEJBRefBindings(); if (ejbRefBindings != null) { ivBindingName = ejbRefBindings.get(getJndiName()); if (ivBindingName != null && ivBindin...
[ "private", "void", "setBindingName", "(", ")", "// d681743", "throws", "InjectionException", "{", "Map", "<", "String", ",", "String", ">", "ejbRefBindings", "=", "ivNameSpaceConfig", ".", "getEJBRefBindings", "(", ")", ";", "if", "(", "ejbRefBindings", "!=", "n...
Returns true if the user has configured a binding for this reference.
[ "Returns", "true", "if", "the", "user", "has", "configured", "a", "binding", "for", "this", "reference", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejb/injection/processor/EJBInjectionBinding.java#L305-L329
67,440
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejb/injection/processor/EJBInjectionBinding.java
EJBInjectionBinding.addInjectionTarget
@Override public void addInjectionTarget(Member member) throws InjectionException { // If the beanName attribute was found in the constructor or merge // method, then save the class of where it was located. if (ivBeanName != null && ivBeanNameClass == null) { ...
java
@Override public void addInjectionTarget(Member member) throws InjectionException { // If the beanName attribute was found in the constructor or merge // method, then save the class of where it was located. if (ivBeanName != null && ivBeanNameClass == null) { ...
[ "@", "Override", "public", "void", "addInjectionTarget", "(", "Member", "member", ")", "throws", "InjectionException", "{", "// If the beanName attribute was found in the constructor or merge", "// method, then save the class of where it was located.", "if", "(", "ivBeanName", "!="...
d638111.1
[ "d638111", ".", "1" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejb/injection/processor/EJBInjectionBinding.java#L343-L354
67,441
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeAtThrowMethodAdapter.java
ProbeAtThrowMethodAdapter.visitInsn
@Override public void visitInsn(int opcode) { if (opcode == ATHROW && !enabledListeners.isEmpty()) { String key = createKey(); ProbeImpl probe = getProbe(key); long probeId = probe.getIdentifier(); setProbeInProgress(true); visitInsn(DUP); // thro...
java
@Override public void visitInsn(int opcode) { if (opcode == ATHROW && !enabledListeners.isEmpty()) { String key = createKey(); ProbeImpl probe = getProbe(key); long probeId = probe.getIdentifier(); setProbeInProgress(true); visitInsn(DUP); // thro...
[ "@", "Override", "public", "void", "visitInsn", "(", "int", "opcode", ")", "{", "if", "(", "opcode", "==", "ATHROW", "&&", "!", "enabledListeners", ".", "isEmpty", "(", ")", ")", "{", "String", "key", "=", "createKey", "(", ")", ";", "ProbeImpl", "prob...
Inject code to fire a probe before any throw instruction.
[ "Inject", "code", "to", "fire", "a", "probe", "before", "any", "throw", "instruction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeAtThrowMethodAdapter.java#L63-L90
67,442
OpenLiberty/open-liberty
dev/com.ibm.rls.jdbc/src/com/ibm/ws/recoverylog/custom/jdbc/impl/SQLRecoverableUnitSectionImpl.java
SQLRecoverableUnitSectionImpl.addData
public void addData(int index, byte[] data) throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "addData",new java.lang.Object[] {new Integer(index), RLSUtils.toHexString(data,RLSUtils.MAX_DISPLAY_BYTES), this}); // If the parent recovery log instance has experienced a serious internal error ...
java
public void addData(int index, byte[] data) throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "addData",new java.lang.Object[] {new Integer(index), RLSUtils.toHexString(data,RLSUtils.MAX_DISPLAY_BYTES), this}); // If the parent recovery log instance has experienced a serious internal error ...
[ "public", "void", "addData", "(", "int", "index", ",", "byte", "[", "]", "data", ")", "throws", "InternalLogException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"addData\"", ",", "new", "java", ...
recovery method to add data directly to _writtenData array
[ "recovery", "method", "to", "add", "data", "directly", "to", "_writtenData", "array" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.rls.jdbc/src/com/ibm/ws/recoverylog/custom/jdbc/impl/SQLRecoverableUnitSectionImpl.java#L327-L368
67,443
OpenLiberty/open-liberty
dev/com.ibm.rls.jdbc/src/com/ibm/ws/recoverylog/custom/jdbc/impl/SQLRecoverableUnitSectionImpl.java
SQLRecoverableUnitSectionImpl.identity
public int identity() { if (tc.isEntryEnabled()) Tr.entry(tc, "identity",this); if (tc.isEntryEnabled()) Tr.exit(tc, "identity",new Integer(_identity)); return _identity; }
java
public int identity() { if (tc.isEntryEnabled()) Tr.entry(tc, "identity",this); if (tc.isEntryEnabled()) Tr.exit(tc, "identity",new Integer(_identity)); return _identity; }
[ "public", "int", "identity", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"identity\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "exit"...
Returns the identity of the recoverable unit section. @return The identity of the recoverable unit section.
[ "Returns", "the", "identity", "of", "the", "recoverable", "unit", "section", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.rls.jdbc/src/com/ibm/ws/recoverylog/custom/jdbc/impl/SQLRecoverableUnitSectionImpl.java#L596-L601
67,444
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/hpack/IntegerRepresentation.java
IntegerRepresentation.decode
public static int decode(WsByteBuffer headerBlock, int N) { // if (!headerBlock.hasRemaining()) { // throw new HeaderFieldDecodingException("No length to decode"); // } int I = HpackUtils.getLSB(headerBlock.get(), N); if (I < HpackUtils.ipow(2, N) - 1) { return...
java
public static int decode(WsByteBuffer headerBlock, int N) { // if (!headerBlock.hasRemaining()) { // throw new HeaderFieldDecodingException("No length to decode"); // } int I = HpackUtils.getLSB(headerBlock.get(), N); if (I < HpackUtils.ipow(2, N) - 1) { return...
[ "public", "static", "int", "decode", "(", "WsByteBuffer", "headerBlock", ",", "int", "N", ")", "{", "// if (!headerBlock.hasRemaining()) {", "// throw new HeaderFieldDecodingException(\"No length to decode\");", "// }", "int", "I", "=", "HpackUtils", ".", "getLSB", "(",...
Decodes a provided byte array that was encoded using an N-bit prefix. @param ba @param N @return @throws HeaderFieldDecodingException
[ "Decodes", "a", "provided", "byte", "array", "that", "was", "encoded", "using", "an", "N", "-", "bit", "prefix", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/hpack/IntegerRepresentation.java#L196-L229
67,445
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/DERBitString.java
DERBitString.getPadBits
static protected int getPadBits( int bitString) { int val = 0; for (int i = 3; i >= 0; i--) { // // this may look a little odd, but if it isn't done like this pre jdk1.2 // JVM's break! // if (i != 0) { ...
java
static protected int getPadBits( int bitString) { int val = 0; for (int i = 3; i >= 0; i--) { // // this may look a little odd, but if it isn't done like this pre jdk1.2 // JVM's break! // if (i != 0) { ...
[ "static", "protected", "int", "getPadBits", "(", "int", "bitString", ")", "{", "int", "val", "=", "0", ";", "for", "(", "int", "i", "=", "3", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "//", "// this may look a little odd, but if it isn't done like thi...
return the correct number of pad bits for a bit string defined in a 32 bit constant
[ "return", "the", "correct", "number", "of", "pad", "bits", "for", "a", "bit", "string", "defined", "in", "a", "32", "bit", "constant" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/DERBitString.java#L33-L75
67,446
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/DERBitString.java
DERBitString.getBytes
static protected byte[] getBytes(int bitString) { int bytes = 4; for (int i = 3; i >= 1; i--) { if ((bitString & (0xFF << (i * 8))) != 0) { break; } bytes--; } byte[] result = new byte[bytes]; for (int i...
java
static protected byte[] getBytes(int bitString) { int bytes = 4; for (int i = 3; i >= 1; i--) { if ((bitString & (0xFF << (i * 8))) != 0) { break; } bytes--; } byte[] result = new byte[bytes]; for (int i...
[ "static", "protected", "byte", "[", "]", "getBytes", "(", "int", "bitString", ")", "{", "int", "bytes", "=", "4", ";", "for", "(", "int", "i", "=", "3", ";", "i", ">=", "1", ";", "i", "--", ")", "{", "if", "(", "(", "bitString", "&", "(", "0x...
return the correct number of bytes for a bit string defined in a 32 bit constant
[ "return", "the", "correct", "number", "of", "bytes", "for", "a", "bit", "string", "defined", "in", "a", "32", "bit", "constant" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/DERBitString.java#L81-L100
67,447
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/DERBitString.java
DERBitString.getInstance
public static DERBitString getInstance( Object obj) { if (obj == null || obj instanceof DERBitString) { return (DERBitString)obj; } if (obj instanceof ASN1OctetString) { byte[] bytes = ((ASN1OctetString)obj).getOctets(); int ...
java
public static DERBitString getInstance( Object obj) { if (obj == null || obj instanceof DERBitString) { return (DERBitString)obj; } if (obj instanceof ASN1OctetString) { byte[] bytes = ((ASN1OctetString)obj).getOctets(); int ...
[ "public", "static", "DERBitString", "getInstance", "(", "Object", "obj", ")", "{", "if", "(", "obj", "==", "null", "||", "obj", "instanceof", "DERBitString", ")", "{", "return", "(", "DERBitString", ")", "obj", ";", "}", "if", "(", "obj", "instanceof", "...
return a Bit String from the passed in object @exception IllegalArgumentException if the object cannot be converted.
[ "return", "a", "Bit", "String", "from", "the", "passed", "in", "object" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/DERBitString.java#L107-L132
67,448
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/BasicAuthAuthenticator.java
BasicAuthAuthenticator.handleBasicAuth
private AuthenticationResult handleBasicAuth(String inRealm, HttpServletRequest req, HttpServletResponse res) { AuthenticationResult result = null; String hdrValue = req.getHeader(BASIC_AUTH_HEADER_NAME); if (hdrValue == null || !hdrValue.startsWith("Basic ")) { result = new Authent...
java
private AuthenticationResult handleBasicAuth(String inRealm, HttpServletRequest req, HttpServletResponse res) { AuthenticationResult result = null; String hdrValue = req.getHeader(BASIC_AUTH_HEADER_NAME); if (hdrValue == null || !hdrValue.startsWith("Basic ")) { result = new Authent...
[ "private", "AuthenticationResult", "handleBasicAuth", "(", "String", "inRealm", ",", "HttpServletRequest", "req", ",", "HttpServletResponse", "res", ")", "{", "AuthenticationResult", "result", "=", "null", ";", "String", "hdrValue", "=", "req", ".", "getHeader", "("...
handleBasicAuth generates AuthenticationResult This routine invokes basicAuthenticate which also generates AuthenticationResult.
[ "handleBasicAuth", "generates", "AuthenticationResult", "This", "routine", "invokes", "basicAuthenticate", "which", "also", "generates", "AuthenticationResult", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/BasicAuthAuthenticator.java#L95-L118
67,449
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/BasicAuthAuthenticator.java
BasicAuthAuthenticator.getBasicAuthRealmName
protected String getBasicAuthRealmName(WebRequest webRequest) { SecurityMetadata securityMetadata = webRequest.getSecurityMetadata(); if (securityMetadata != null) { LoginConfiguration loginConfig = securityMetadata.getLoginConfiguration(); if (loginConfig != null && loginConfig....
java
protected String getBasicAuthRealmName(WebRequest webRequest) { SecurityMetadata securityMetadata = webRequest.getSecurityMetadata(); if (securityMetadata != null) { LoginConfiguration loginConfig = securityMetadata.getLoginConfiguration(); if (loginConfig != null && loginConfig....
[ "protected", "String", "getBasicAuthRealmName", "(", "WebRequest", "webRequest", ")", "{", "SecurityMetadata", "securityMetadata", "=", "webRequest", ".", "getSecurityMetadata", "(", ")", ";", "if", "(", "securityMetadata", "!=", "null", ")", "{", "LoginConfiguration"...
Return a realm name if it's defined in the web.xml file. If it's not defined in the web.xml and displayAuthenticationRealm is set to true, then return the userRegistry realm. Otherwise return the realm as "Default Realm". @param webRequest @return realm
[ "Return", "a", "realm", "name", "if", "it", "s", "defined", "in", "the", "web", ".", "xml", "file", ".", "If", "it", "s", "not", "defined", "in", "the", "web", ".", "xml", "and", "displayAuthenticationRealm", "is", "set", "to", "true", "then", "return"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/BasicAuthAuthenticator.java#L162-L175
67,450
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/BasicAuthAuthenticator.java
BasicAuthAuthenticator.decodeBasicAuth
@Sensitive protected String decodeBasicAuth(String data, String encoding) { String output = ""; byte decodedByte[] = null; decodedByte = Base64Coder.base64DecodeString(data); if (decodedByte != null && decodedByte.length > 0) { boolean decoded = false; if (enc...
java
@Sensitive protected String decodeBasicAuth(String data, String encoding) { String output = ""; byte decodedByte[] = null; decodedByte = Base64Coder.base64DecodeString(data); if (decodedByte != null && decodedByte.length > 0) { boolean decoded = false; if (enc...
[ "@", "Sensitive", "protected", "String", "decodeBasicAuth", "(", "String", "data", ",", "String", "encoding", ")", "{", "String", "output", "=", "\"\"", ";", "byte", "decodedByte", "[", "]", "=", "null", ";", "decodedByte", "=", "Base64Coder", ".", "base64De...
2. This method intentionally returns empty string in case of error. With that, a caller doesn't need to check null object prior to introspect it.
[ "2", ".", "This", "method", "intentionally", "returns", "empty", "string", "in", "case", "of", "error", ".", "With", "that", "a", "caller", "doesn", "t", "need", "to", "check", "null", "object", "prior", "to", "introspect", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/BasicAuthAuthenticator.java#L180-L203
67,451
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.isUninstallable
public static boolean isUninstallable(Set<IFixInfo> installedFixes, IFixInfo fixToBeUninstalled) { if (Boolean.valueOf(System.getenv(S_DISABLE)).booleanValue()) { return true; } if (fixToBeUninstalled != null) { for (IFixInfo fix : installedFixes) { if (...
java
public static boolean isUninstallable(Set<IFixInfo> installedFixes, IFixInfo fixToBeUninstalled) { if (Boolean.valueOf(System.getenv(S_DISABLE)).booleanValue()) { return true; } if (fixToBeUninstalled != null) { for (IFixInfo fix : installedFixes) { if (...
[ "public", "static", "boolean", "isUninstallable", "(", "Set", "<", "IFixInfo", ">", "installedFixes", ",", "IFixInfo", "fixToBeUninstalled", ")", "{", "if", "(", "Boolean", ".", "valueOf", "(", "System", ".", "getenv", "(", "S_DISABLE", ")", ")", ".", "boole...
Return true if fixToBeUninstalled can be uninstalled. fixToBeUninstalled can only be uninstalled if there are no file conflicts with other fixes in the installedFixes Set that supersedes fixToBeUninstalled @param installedFixes The set of fixes that is already installed, the set does not include the fixToBeUninstalled...
[ "Return", "true", "if", "fixToBeUninstalled", "can", "be", "uninstalled", ".", "fixToBeUninstalled", "can", "only", "be", "uninstalled", "if", "there", "are", "no", "file", "conflicts", "with", "other", "fixes", "in", "the", "installedFixes", "Set", "that", "sup...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L46-L63
67,452
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.isUninstallable
public boolean isUninstallable(UninstallAsset uninstallAsset, Set<IFixInfo> installedFixes, List<UninstallAsset> uninstallAssets) { if (Boolean.valueOf(System.getenv(S_DISABLE)).booleanValue()) { return true; } IFixInfo fixToBeUninstalled = uninstallAsset.getIFixInfo(); for...
java
public boolean isUninstallable(UninstallAsset uninstallAsset, Set<IFixInfo> installedFixes, List<UninstallAsset> uninstallAssets) { if (Boolean.valueOf(System.getenv(S_DISABLE)).booleanValue()) { return true; } IFixInfo fixToBeUninstalled = uninstallAsset.getIFixInfo(); for...
[ "public", "boolean", "isUninstallable", "(", "UninstallAsset", "uninstallAsset", ",", "Set", "<", "IFixInfo", ">", "installedFixes", ",", "List", "<", "UninstallAsset", ">", "uninstallAssets", ")", "{", "if", "(", "Boolean", ".", "valueOf", "(", "System", ".", ...
Verfiy whether the fix is uninstallable and there is no other installed fix still require this feature. @param uninstallAsset fix to be uninstalled @param installedFixes installed fixes @param uninstallAssets the list of fixes that is to be uninstalled @return the true if there is no fix that depends on the uninstall ...
[ "Verfiy", "whether", "the", "fix", "is", "uninstallable", "and", "there", "is", "no", "other", "installed", "fix", "still", "require", "this", "feature", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L74-L90
67,453
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.fixRequiredByFeature
public static ArrayList<String> fixRequiredByFeature(String fixApar, Map<String, ProvisioningFeatureDefinition> installedFeatures) { ArrayList<String> dependencies = new ArrayList<String>(); for (ProvisioningFeatureDefinition fd : installedFeatures.values()) { String requireFixes = fd.getHea...
java
public static ArrayList<String> fixRequiredByFeature(String fixApar, Map<String, ProvisioningFeatureDefinition> installedFeatures) { ArrayList<String> dependencies = new ArrayList<String>(); for (ProvisioningFeatureDefinition fd : installedFeatures.values()) { String requireFixes = fd.getHea...
[ "public", "static", "ArrayList", "<", "String", ">", "fixRequiredByFeature", "(", "String", "fixApar", ",", "Map", "<", "String", ",", "ProvisioningFeatureDefinition", ">", "installedFeatures", ")", "{", "ArrayList", "<", "String", ">", "dependencies", "=", "new",...
Determine the fix apar is required by one of the installed features @param fixApar fix apar @param installedFeatures installed features @return true if the fix apar is required by one of the installed features, otherwise, return false.
[ "Determine", "the", "fix", "apar", "is", "required", "by", "one", "of", "the", "installed", "features" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L116-L132
67,454
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.determineOrder
public List<UninstallAsset> determineOrder(List<UninstallAsset> list) { if (list != null) { List<FixDependencyComparator> fixCompareList = new ArrayList<FixDependencyComparator>(); // Initialize the feature comparator for (UninstallAsset asset : list) { fixCom...
java
public List<UninstallAsset> determineOrder(List<UninstallAsset> list) { if (list != null) { List<FixDependencyComparator> fixCompareList = new ArrayList<FixDependencyComparator>(); // Initialize the feature comparator for (UninstallAsset asset : list) { fixCom...
[ "public", "List", "<", "UninstallAsset", ">", "determineOrder", "(", "List", "<", "UninstallAsset", ">", "list", ")", "{", "if", "(", "list", "!=", "null", ")", "{", "List", "<", "FixDependencyComparator", ">", "fixCompareList", "=", "new", "ArrayList", "<",...
Determine the order of the fixes according to their dependency @param list list of the fixes @return the sorted fixes list according to the fix dependency
[ "Determine", "the", "order", "of", "the", "fixes", "according", "to", "their", "dependency" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L140-L156
67,455
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.isSupersededBy
private static boolean isSupersededBy(List<Problem> apars1, List<Problem> apars2) { boolean result = true; // Now iterate over the current list of problems, and see if the incoming IFixInfo contains all of the problems from this IfixInfo. // If it does then return true, to indicate that this I...
java
private static boolean isSupersededBy(List<Problem> apars1, List<Problem> apars2) { boolean result = true; // Now iterate over the current list of problems, and see if the incoming IFixInfo contains all of the problems from this IfixInfo. // If it does then return true, to indicate that this I...
[ "private", "static", "boolean", "isSupersededBy", "(", "List", "<", "Problem", ">", "apars1", ",", "List", "<", "Problem", ">", "apars2", ")", "{", "boolean", "result", "=", "true", ";", "// Now iterate over the current list of problems, and see if the incoming IFixInfo...
Returns if the apars list apars1 is superseded by apars2. Apars1 is superseded by apars2 if all the apars in apars1 is also included in apars2 @param apars1 Fix to check @param apars2 @return Returns true if apars list apars1 is superseded by apars2. Else return false.
[ "Returns", "if", "the", "apars", "list", "apars1", "is", "superseded", "by", "apars2", ".", "Apars1", "is", "superseded", "by", "apars2", "if", "all", "the", "apars", "in", "apars1", "is", "also", "included", "in", "apars2" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L165-L184
67,456
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.confirmNoFileConflicts
private static boolean confirmNoFileConflicts(Set<UpdatedFile> updatedFiles1, Set<UpdatedFile> updatedFiles2) { for (Iterator<UpdatedFile> iter1 = updatedFiles1.iterator(); iter1.hasNext();) { UpdatedFile currFile1 = iter1.next(); for (Iterator<UpdatedFile> iter2 = updatedFiles2.iterato...
java
private static boolean confirmNoFileConflicts(Set<UpdatedFile> updatedFiles1, Set<UpdatedFile> updatedFiles2) { for (Iterator<UpdatedFile> iter1 = updatedFiles1.iterator(); iter1.hasNext();) { UpdatedFile currFile1 = iter1.next(); for (Iterator<UpdatedFile> iter2 = updatedFiles2.iterato...
[ "private", "static", "boolean", "confirmNoFileConflicts", "(", "Set", "<", "UpdatedFile", ">", "updatedFiles1", ",", "Set", "<", "UpdatedFile", ">", "updatedFiles2", ")", "{", "for", "(", "Iterator", "<", "UpdatedFile", ">", "iter1", "=", "updatedFiles1", ".", ...
Confirms that UpdatedFile lists does not contain any common files @param updatedFiles1 @param updatedFiles2 @return Return true if there are no conflicts and return false otherwise
[ "Confirms", "that", "UpdatedFile", "lists", "does", "not", "contain", "any", "common", "files" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L193-L205
67,457
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.close
@Override public void close(boolean deleteProgressFile) { final String methodName = "close()"; traceDebug(methodName, "cacheName=" + this.cacheName + " deleteProgressFile=" + deleteProgressFile); if (deleteProgressFile) { // 316654 // remove the InProgress (dummy) file when close...
java
@Override public void close(boolean deleteProgressFile) { final String methodName = "close()"; traceDebug(methodName, "cacheName=" + this.cacheName + " deleteProgressFile=" + deleteProgressFile); if (deleteProgressFile) { // 316654 // remove the InProgress (dummy) file when close...
[ "@", "Override", "public", "void", "close", "(", "boolean", "deleteProgressFile", ")", "{", "final", "String", "methodName", "=", "\"close()\"", ";", "traceDebug", "(", "methodName", ",", "\"cacheName=\"", "+", "this", ".", "cacheName", "+", "\" deleteProgressFile...
Call this method to close the disk file manager and operation.
[ "Call", "this", "method", "to", "close", "the", "disk", "file", "manager", "and", "operation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L608-L622
67,458
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.writeAuxiliaryDepTables
@Override public int writeAuxiliaryDepTables() { int returnCode = htod.writeAuxiliaryDepTables(); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } else { updatePropertyFile(); } return returnCode; }
java
@Override public int writeAuxiliaryDepTables() { int returnCode = htod.writeAuxiliaryDepTables(); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } else { updatePropertyFile(); } return returnCode; }
[ "@", "Override", "public", "int", "writeAuxiliaryDepTables", "(", ")", "{", "int", "returnCode", "=", "htod", ".", "writeAuxiliaryDepTables", "(", ")", ";", "if", "(", "returnCode", "==", "HTODDynacache", ".", "DISK_EXCEPTION", ")", "{", "stopOnError", "(", "t...
Call this method to offload auxiliary dependency tables to the disk and update property file.
[ "Call", "this", "method", "to", "offload", "auxiliary", "dependency", "tables", "to", "the", "disk", "and", "update", "property", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L627-L636
67,459
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.readLastScanFile
private void readLastScanFile() { final String methodName = "readLastScanFile()"; final File f = new File(lastScanFileName); traceDebug(methodName, "cacheName=" + this.cacheName); if (f.exists()) { final CacheOnDisk cod = this; AccessController.doPrivileged(new Pr...
java
private void readLastScanFile() { final String methodName = "readLastScanFile()"; final File f = new File(lastScanFileName); traceDebug(methodName, "cacheName=" + this.cacheName); if (f.exists()) { final CacheOnDisk cod = this; AccessController.doPrivileged(new Pr...
[ "private", "void", "readLastScanFile", "(", ")", "{", "final", "String", "methodName", "=", "\"readLastScanFile()\"", ";", "final", "File", "f", "=", "new", "File", "(", "lastScanFileName", ")", ";", "traceDebug", "(", "methodName", ",", "\"cacheName=\"", "+", ...
Call this method to read the timestamp of the last scan in Last Scan file.
[ "Call", "this", "method", "to", "read", "the", "timestamp", "of", "the", "last", "scan", "in", "Last", "Scan", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L641-L676
67,460
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.updateLastScanFile
protected void updateLastScanFile() { final String methodName = "updateLastScanFile()"; final File f = new File(lastScanFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { ...
java
protected void updateLastScanFile() { final String methodName = "updateLastScanFile()"; final File f = new File(lastScanFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { ...
[ "protected", "void", "updateLastScanFile", "(", ")", "{", "final", "String", "methodName", "=", "\"updateLastScanFile()\"", ";", "final", "File", "f", "=", "new", "File", "(", "lastScanFileName", ")", ";", "final", "CacheOnDisk", "cod", "=", "this", ";", "trac...
Call this method to update the timestamp of the last scan in Last Scan file.
[ "Call", "this", "method", "to", "update", "the", "timestamp", "of", "the", "last", "scan", "in", "Last", "Scan", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L681-L714
67,461
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.deletePropertyFile
private void deletePropertyFile() { final String methodName = "deletePropertyFile()"; final File f = new File(htodPropertyFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { ...
java
private void deletePropertyFile() { final String methodName = "deletePropertyFile()"; final File f = new File(htodPropertyFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { ...
[ "private", "void", "deletePropertyFile", "(", ")", "{", "final", "String", "methodName", "=", "\"deletePropertyFile()\"", ";", "final", "File", "f", "=", "new", "File", "(", "htodPropertyFileName", ")", ";", "final", "CacheOnDisk", "cod", "=", "this", ";", "tr...
Call this method to delete the HTOD property file.
[ "Call", "this", "method", "to", "delete", "the", "HTOD", "property", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L916-L932
67,462
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.deleteDiskCacheFiles
public void deleteDiskCacheFiles() { final String methodName = "deleteDiskCacheFiles()"; final File f = new File(swapDirPath); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { p...
java
public void deleteDiskCacheFiles() { final String methodName = "deleteDiskCacheFiles()"; final File f = new File(swapDirPath); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { p...
[ "public", "void", "deleteDiskCacheFiles", "(", ")", "{", "final", "String", "methodName", "=", "\"deleteDiskCacheFiles()\"", ";", "final", "File", "f", "=", "new", "File", "(", "swapDirPath", ")", ";", "final", "CacheOnDisk", "cod", "=", "this", ";", "traceDeb...
Call this method to delete all disk cache files per cache instance.
[ "Call", "this", "method", "to", "delete", "all", "disk", "cache", "files", "per", "cache", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L937-L957
67,463
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.readAndDeleteInvalidationFile
protected ValueSet readAndDeleteInvalidationFile() { final String methodName = "readAndDeleteInvalidationFile()"; final File f = new File(invalidationFileName); final CacheOnDisk cod = this; this.valueSet = new ValueSet(1); if (f.exists()) { AccessController.doPrivile...
java
protected ValueSet readAndDeleteInvalidationFile() { final String methodName = "readAndDeleteInvalidationFile()"; final File f = new File(invalidationFileName); final CacheOnDisk cod = this; this.valueSet = new ValueSet(1); if (f.exists()) { AccessController.doPrivile...
[ "protected", "ValueSet", "readAndDeleteInvalidationFile", "(", ")", "{", "final", "String", "methodName", "=", "\"readAndDeleteInvalidationFile()\"", ";", "final", "File", "f", "=", "new", "File", "(", "invalidationFileName", ")", ";", "final", "CacheOnDisk", "cod", ...
Call this method to read in all invalidation cache ids if the invalidation file exists. and then delete the invalidation file.
[ "Call", "this", "method", "to", "read", "in", "all", "invalidation", "cache", "ids", "if", "the", "invalidation", "file", "exists", ".", "and", "then", "delete", "the", "invalidation", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1076-L1118
67,464
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.createInvalidationFile
protected void createInvalidationFile() { final String methodName = "createInvalidationFile()"; final File f = new File(invalidationFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName + " valueSet=" + cod.valueSet.size()); AccessControlle...
java
protected void createInvalidationFile() { final String methodName = "createInvalidationFile()"; final File f = new File(invalidationFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName + " valueSet=" + cod.valueSet.size()); AccessControlle...
[ "protected", "void", "createInvalidationFile", "(", ")", "{", "final", "String", "methodName", "=", "\"createInvalidationFile()\"", ";", "final", "File", "f", "=", "new", "File", "(", "invalidationFileName", ")", ";", "final", "CacheOnDisk", "cod", "=", "this", ...
Call this method to create invalidation file to offload the invalidation cache ids. When the server is restarted, the invalidation cache ids are read back. The LPBT will be called to remove these cache ids from the disk.
[ "Call", "this", "method", "to", "create", "invalidation", "file", "to", "offload", "the", "invalidation", "cache", "ids", ".", "When", "the", "server", "is", "restarted", "the", "invalidation", "cache", "ids", "are", "read", "back", ".", "The", "LPBT", "will...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1124-L1159
67,465
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.alarm
public void alarm(final Object alarmContext) { final String methodName = "alarm()"; synchronized (this) { if (!stopping && !this.htod.invalidationBuffer.isDiskClearInProgress()) { this.htod.invalidationBuffer.invokeBackgroundInvalidation(HTODInvalidationBuffer.SCAN); ...
java
public void alarm(final Object alarmContext) { final String methodName = "alarm()"; synchronized (this) { if (!stopping && !this.htod.invalidationBuffer.isDiskClearInProgress()) { this.htod.invalidationBuffer.invokeBackgroundInvalidation(HTODInvalidationBuffer.SCAN); ...
[ "public", "void", "alarm", "(", "final", "Object", "alarmContext", ")", "{", "final", "String", "methodName", "=", "\"alarm()\"", ";", "synchronized", "(", "this", ")", "{", "if", "(", "!", "stopping", "&&", "!", "this", ".", "htod", ".", "invalidationBuff...
Call this method when the alarm is triggered. It is being checked to see whether a disk cleanup is scheduled to run.
[ "Call", "this", "method", "when", "the", "alarm", "is", "triggered", ".", "It", "is", "being", "checked", "to", "see", "whether", "a", "disk", "cleanup", "is", "scheduled", "to", "run", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1165-L1186
67,466
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.clearDiskCache
public void clearDiskCache() { if (htod.clearDiskCache() == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } else { updateLastScanFile(); updatePropertyFile(); createInProgressFile(); } }
java
public void clearDiskCache() { if (htod.clearDiskCache() == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } else { updateLastScanFile(); updatePropertyFile(); createInProgressFile(); } }
[ "public", "void", "clearDiskCache", "(", ")", "{", "if", "(", "htod", ".", "clearDiskCache", "(", ")", "==", "HTODDynacache", ".", "DISK_EXCEPTION", ")", "{", "stopOnError", "(", "this", ".", "htod", ".", "diskCacheException", ")", ";", "}", "else", "{", ...
Call this method to clear the disk cache per cache instance.
[ "Call", "this", "method", "to", "clear", "the", "disk", "cache", "per", "cache", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1222-L1230
67,467
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.writeCacheEntry
public int writeCacheEntry(CacheEntry ce) { // @A5C int returnCode = htod.writeCacheEntry(ce); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
java
public int writeCacheEntry(CacheEntry ce) { // @A5C int returnCode = htod.writeCacheEntry(ce); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
[ "public", "int", "writeCacheEntry", "(", "CacheEntry", "ce", ")", "{", "// @A5C", "int", "returnCode", "=", "htod", ".", "writeCacheEntry", "(", "ce", ")", ";", "if", "(", "returnCode", "==", "HTODDynacache", ".", "DISK_EXCEPTION", ")", "{", "stopOnError", "...
Call this method to write a cache entry to the disk.
[ "Call", "this", "method", "to", "write", "a", "cache", "entry", "to", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1235-L1241
67,468
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.readCacheEntry
public CacheEntry readCacheEntry(Object id) { // SKS-O Result result = htod.readCacheEntry(id); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); this.htod.returnToResultPool(result); return null; } CacheEntry ...
java
public CacheEntry readCacheEntry(Object id) { // SKS-O Result result = htod.readCacheEntry(id); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); this.htod.returnToResultPool(result); return null; } CacheEntry ...
[ "public", "CacheEntry", "readCacheEntry", "(", "Object", "id", ")", "{", "// SKS-O", "Result", "result", "=", "htod", ".", "readCacheEntry", "(", "id", ")", ";", "if", "(", "result", ".", "returnCode", "==", "HTODDynacache", ".", "DISK_EXCEPTION", ")", "{", ...
Call this method to read a cache entry from the disk. @param id - cache id.
[ "Call", "this", "method", "to", "read", "a", "cache", "entry", "from", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1249-L1259
67,469
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.delCacheEntry
public void delCacheEntry(CacheEntry ce, int cause, int source, boolean fromDepIdTemplateInvalidation) { htod.delCacheEntry(ce, cause, source, fromDepIdTemplateInvalidation); }
java
public void delCacheEntry(CacheEntry ce, int cause, int source, boolean fromDepIdTemplateInvalidation) { htod.delCacheEntry(ce, cause, source, fromDepIdTemplateInvalidation); }
[ "public", "void", "delCacheEntry", "(", "CacheEntry", "ce", ",", "int", "cause", ",", "int", "source", ",", "boolean", "fromDepIdTemplateInvalidation", ")", "{", "htod", ".", "delCacheEntry", "(", "ce", ",", "cause", ",", "source", ",", "fromDepIdTemplateInvalid...
Call this method to a cache entry from the disk. @param ce - cache entry.
[ "Call", "this", "method", "to", "a", "cache", "entry", "from", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1287-L1289
67,470
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.delCacheEntry
public void delCacheEntry(ValueSet removeList, int cause, int source, boolean fromDepIdTemplateInvalidation, boolean fireEvent) { htod.delCacheEntry(removeList, cause, source, fromDepIdTemplateInvalidation, fireEvent); }
java
public void delCacheEntry(ValueSet removeList, int cause, int source, boolean fromDepIdTemplateInvalidation, boolean fireEvent) { htod.delCacheEntry(removeList, cause, source, fromDepIdTemplateInvalidation, fireEvent); }
[ "public", "void", "delCacheEntry", "(", "ValueSet", "removeList", ",", "int", "cause", ",", "int", "source", ",", "boolean", "fromDepIdTemplateInvalidation", ",", "boolean", "fireEvent", ")", "{", "htod", ".", "delCacheEntry", "(", "removeList", ",", "cause", ",...
Call this method to remove multiple of cache ids from the disk. @param removeList - a collection of cache ids.
[ "Call", "this", "method", "to", "remove", "multiple", "of", "cache", "ids", "from", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1297-L1299
67,471
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.readDependency
public ValueSet readDependency(Object id, boolean delete) { // SKS-O Result result = htod.readDependency(id, delete); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); this.htod.returnToResultPool(result); return HTODDynacache...
java
public ValueSet readDependency(Object id, boolean delete) { // SKS-O Result result = htod.readDependency(id, delete); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); this.htod.returnToResultPool(result); return HTODDynacache...
[ "public", "ValueSet", "readDependency", "(", "Object", "id", ",", "boolean", "delete", ")", "{", "// SKS-O", "Result", "result", "=", "htod", ".", "readDependency", "(", "id", ",", "delete", ")", ";", "if", "(", "result", ".", "returnCode", "==", "HTODDyna...
Call this method to read a specified dependency id which contains the cache ids from the disk. @param id - dependency id. @param delete - boolean to delete the dependency id after reading @return valueSet - the collection of cache ids.
[ "Call", "this", "method", "to", "read", "a", "specified", "dependency", "id", "which", "contains", "the", "cache", "ids", "from", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1310-L1323
67,472
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.readTemplate
public ValueSet readTemplate(String template, boolean delete) { Result result = htod.readTemplate(template, delete); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); this.htod.returnToResultPool(result); return HTODDynacache....
java
public ValueSet readTemplate(String template, boolean delete) { Result result = htod.readTemplate(template, delete); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); this.htod.returnToResultPool(result); return HTODDynacache....
[ "public", "ValueSet", "readTemplate", "(", "String", "template", ",", "boolean", "delete", ")", "{", "Result", "result", "=", "htod", ".", "readTemplate", "(", "template", ",", "delete", ")", ";", "if", "(", "result", ".", "returnCode", "==", "HTODDynacache"...
Call this method to read a specified template which contains the cache ids from the disk. @param template - template id. @param delete - boolean to delete the template after reading @return valueSet - the collection of cache ids.
[ "Call", "this", "method", "to", "read", "a", "specified", "template", "which", "contains", "the", "cache", "ids", "from", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1334-L1347
67,473
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.readTemplatesByRange
public ValueSet readTemplatesByRange(int index, int length) { Result result = htod.readTemplatesByRange(index, length); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); this.htod.returnToResultPool(result); return HTODDynacac...
java
public ValueSet readTemplatesByRange(int index, int length) { Result result = htod.readTemplatesByRange(index, length); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); this.htod.returnToResultPool(result); return HTODDynacac...
[ "public", "ValueSet", "readTemplatesByRange", "(", "int", "index", ",", "int", "length", ")", "{", "Result", "result", "=", "htod", ".", "readTemplatesByRange", "(", "index", ",", "length", ")", ";", "if", "(", "result", ".", "returnCode", "==", "HTODDynacac...
Call this method to get the template ids based on the index and the length from the disk. @param index If index = 0, it starts the beginning. If index = 1, it means "next". If Index = -1, it means "previous". @param length The max number of templates to be read. If length = -1, it reads all templates until the end. @r...
[ "Call", "this", "method", "to", "get", "the", "template", "ids", "based", "on", "the", "index", "and", "the", "length", "from", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1409-L1422
67,474
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.getCacheIdsSize
public int getCacheIdsSize(boolean filter) { if (filter == CacheOnDisk.FILTER) { return htod.getCacheIdsSize(filter) - htod.invalidationBuffer.size(); } else { return htod.getCacheIdsSize(filter); } }
java
public int getCacheIdsSize(boolean filter) { if (filter == CacheOnDisk.FILTER) { return htod.getCacheIdsSize(filter) - htod.invalidationBuffer.size(); } else { return htod.getCacheIdsSize(filter); } }
[ "public", "int", "getCacheIdsSize", "(", "boolean", "filter", ")", "{", "if", "(", "filter", "==", "CacheOnDisk", ".", "FILTER", ")", "{", "return", "htod", ".", "getCacheIdsSize", "(", "filter", ")", "-", "htod", ".", "invalidationBuffer", ".", "size", "(...
Call this method to get the number of the cache ids in the disk. @param filter if true, filter the size from the invalidation buffer. Else, no filter - real size of entries in the disk @return int - the size
[ "Call", "this", "method", "to", "get", "the", "number", "of", "the", "cache", "ids", "in", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1432-L1439
67,475
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.delDependencyEntry
public void delDependencyEntry(Object id, Object entry) { // SKS-O if (htod.delDependencyEntry(id, entry) == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } }
java
public void delDependencyEntry(Object id, Object entry) { // SKS-O if (htod.delDependencyEntry(id, entry) == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } }
[ "public", "void", "delDependencyEntry", "(", "Object", "id", ",", "Object", "entry", ")", "{", "// SKS-O", "if", "(", "htod", ".", "delDependencyEntry", "(", "id", ",", "entry", ")", "==", "HTODDynacache", ".", "DISK_EXCEPTION", ")", "{", "stopOnError", "(",...
Call this method to delete a cache id from a specified dependency in the disk. @param id - dependency id. @param entry - cache id.
[ "Call", "this", "method", "to", "delete", "a", "cache", "id", "from", "a", "specified", "dependency", "in", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1512-L1516
67,476
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.delTemplateEntry
public void delTemplateEntry(String template, Object entry) { if (htod.delTemplateEntry(template, entry) == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } }
java
public void delTemplateEntry(String template, Object entry) { if (htod.delTemplateEntry(template, entry) == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } }
[ "public", "void", "delTemplateEntry", "(", "String", "template", ",", "Object", "entry", ")", "{", "if", "(", "htod", ".", "delTemplateEntry", "(", "template", ",", "entry", ")", "==", "HTODDynacache", ".", "DISK_EXCEPTION", ")", "{", "stopOnError", "(", "th...
Call this method to delete a cache id from a specified template in the disk. @param template - template id. @param entry - cache id.
[ "Call", "this", "method", "to", "delete", "a", "cache", "id", "from", "a", "specified", "template", "in", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1526-L1530
67,477
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.delDependency
public void delDependency(Object id) { // SKS-O if (htod.delDependency(id) == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } }
java
public void delDependency(Object id) { // SKS-O if (htod.delDependency(id) == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } }
[ "public", "void", "delDependency", "(", "Object", "id", ")", "{", "// SKS-O", "if", "(", "htod", ".", "delDependency", "(", "id", ")", "==", "HTODDynacache", ".", "DISK_EXCEPTION", ")", "{", "stopOnError", "(", "this", ".", "htod", ".", "diskCacheException",...
Call this method to delete speciifed dependency id from the disk. @param id - dependency id.
[ "Call", "this", "method", "to", "delete", "speciifed", "dependency", "id", "from", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1538-L1542
67,478
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.delTemplate
public void delTemplate(String template) { if (htod.delTemplate(template) == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } }
java
public void delTemplate(String template) { if (htod.delTemplate(template) == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } }
[ "public", "void", "delTemplate", "(", "String", "template", ")", "{", "if", "(", "htod", ".", "delTemplate", "(", "template", ")", "==", "HTODDynacache", ".", "DISK_EXCEPTION", ")", "{", "stopOnError", "(", "this", ".", "htod", ".", "diskCacheException", ")"...
Call this method to delete speciifed template from the disk. @param id - template id.
[ "Call", "this", "method", "to", "delete", "speciifed", "template", "from", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1550-L1554
67,479
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.writeDependency
public int writeDependency(Object id, ValueSet vs) { // SKS-O int returnCode = htod.writeDependency(id, vs); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
java
public int writeDependency(Object id, ValueSet vs) { // SKS-O int returnCode = htod.writeDependency(id, vs); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
[ "public", "int", "writeDependency", "(", "Object", "id", ",", "ValueSet", "vs", ")", "{", "// SKS-O", "int", "returnCode", "=", "htod", ".", "writeDependency", "(", "id", ",", "vs", ")", ";", "if", "(", "returnCode", "==", "HTODDynacache", ".", "DISK_EXCEP...
Call this method to write a dependency id with a collection of cache ids to the disk. @param id - dependency id. @param vs - a collection of cache ids.
[ "Call", "this", "method", "to", "write", "a", "dependency", "id", "with", "a", "collection", "of", "cache", "ids", "to", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1564-L1570
67,480
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.writeTemplate
public int writeTemplate(String template, ValueSet vs) { int returnCode = htod.writeTemplate(template, vs); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
java
public int writeTemplate(String template, ValueSet vs) { int returnCode = htod.writeTemplate(template, vs); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
[ "public", "int", "writeTemplate", "(", "String", "template", ",", "ValueSet", "vs", ")", "{", "int", "returnCode", "=", "htod", ".", "writeTemplate", "(", "template", ",", "vs", ")", ";", "if", "(", "returnCode", "==", "HTODDynacache", ".", "DISK_EXCEPTION",...
Call this method to write a template with a collection of cache ids to the disk. @param template - template id. @param vs - a collection of cache ids.
[ "Call", "this", "method", "to", "write", "a", "template", "with", "a", "collection", "of", "cache", "ids", "to", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1580-L1586
67,481
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.writeDependencyEntry
public int writeDependencyEntry(Object id, Object entry) { // SKS-O int returnCode = htod.writeDependencyEntry(id, entry); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
java
public int writeDependencyEntry(Object id, Object entry) { // SKS-O int returnCode = htod.writeDependencyEntry(id, entry); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
[ "public", "int", "writeDependencyEntry", "(", "Object", "id", ",", "Object", "entry", ")", "{", "// SKS-O", "int", "returnCode", "=", "htod", ".", "writeDependencyEntry", "(", "id", ",", "entry", ")", ";", "if", "(", "returnCode", "==", "HTODDynacache", ".",...
Call this method to add a cache id for a specified dependency id to the disk. @param id - dependency id. @param entry - cache id.
[ "Call", "this", "method", "to", "add", "a", "cache", "id", "for", "a", "specified", "dependency", "id", "to", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1596-L1602
67,482
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.writeTemplateEntry
public int writeTemplateEntry(String template, Object entry) { int returnCode = htod.writeTemplateEntry(template, entry); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
java
public int writeTemplateEntry(String template, Object entry) { int returnCode = htod.writeTemplateEntry(template, entry); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
[ "public", "int", "writeTemplateEntry", "(", "String", "template", ",", "Object", "entry", ")", "{", "int", "returnCode", "=", "htod", ".", "writeTemplateEntry", "(", "template", ",", "entry", ")", ";", "if", "(", "returnCode", "==", "HTODDynacache", ".", "DI...
Call this method to add a cache id for a specified template to the disk. @param template - template id. @param entry - cache id.
[ "Call", "this", "method", "to", "add", "a", "cache", "id", "for", "a", "specified", "template", "to", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1612-L1618
67,483
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.calculateSleepTime
protected long calculateSleepTime() { Calendar c = new GregorianCalendar(); int currentHour = c.get(Calendar.HOUR_OF_DAY); int currentMin = c.get(Calendar.MINUTE); int currentSec = c.get(Calendar.SECOND); long stime = SECONDS_FOR_24_HOURS - ((currentHour * 60 + currentMin) * 60 +...
java
protected long calculateSleepTime() { Calendar c = new GregorianCalendar(); int currentHour = c.get(Calendar.HOUR_OF_DAY); int currentMin = c.get(Calendar.MINUTE); int currentSec = c.get(Calendar.SECOND); long stime = SECONDS_FOR_24_HOURS - ((currentHour * 60 + currentMin) * 60 +...
[ "protected", "long", "calculateSleepTime", "(", ")", "{", "Calendar", "c", "=", "new", "GregorianCalendar", "(", ")", ";", "int", "currentHour", "=", "c", ".", "get", "(", "Calendar", ".", "HOUR_OF_DAY", ")", ";", "int", "currentMin", "=", "c", ".", "get...
return the sleep time in msec
[ "return", "the", "sleep", "time", "in", "msec" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1669-L1683
67,484
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.clearInvalidationBuffers
public void clearInvalidationBuffers() { this.htod.invalidationBuffer.clear(HTODInvalidationBuffer.EXPLICIT_BUFFER); // 3821 NK begin this.htod.invalidationBuffer.clear(HTODInvalidationBuffer.SCAN_BUFFER); if (this.evictionPolicy != CacheConfig.EVICTION_NONE) { this.htod.invalidation...
java
public void clearInvalidationBuffers() { this.htod.invalidationBuffer.clear(HTODInvalidationBuffer.EXPLICIT_BUFFER); // 3821 NK begin this.htod.invalidationBuffer.clear(HTODInvalidationBuffer.SCAN_BUFFER); if (this.evictionPolicy != CacheConfig.EVICTION_NONE) { this.htod.invalidation...
[ "public", "void", "clearInvalidationBuffers", "(", ")", "{", "this", ".", "htod", ".", "invalidationBuffer", ".", "clear", "(", "HTODInvalidationBuffer", ".", "EXPLICIT_BUFFER", ")", ";", "// 3821 NK begin", "this", ".", "htod", ".", "invalidationBuffer", ".", "cl...
This method clears invalidaiton buffers in HTODDynacache
[ "This", "method", "clears", "invalidaiton", "buffers", "in", "HTODDynacache" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1695-L1701
67,485
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.readHashcodeByRange
public Result readHashcodeByRange(int index, int length, boolean debug, boolean useValue) { // LI4337-17 Result result = this.htod.readHashcodeByRange(index, length, debug, useValue); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); } ...
java
public Result readHashcodeByRange(int index, int length, boolean debug, boolean useValue) { // LI4337-17 Result result = this.htod.readHashcodeByRange(index, length, debug, useValue); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); } ...
[ "public", "Result", "readHashcodeByRange", "(", "int", "index", ",", "int", "length", ",", "boolean", "debug", ",", "boolean", "useValue", ")", "{", "// LI4337-17", "Result", "result", "=", "this", ".", "htod", ".", "readHashcodeByRange", "(", "index", ",", ...
This method find the hashcode based on index and length. @param index If index = 0, it starts the beginning. If index = 1, it means "next". If Index = -1, it means "previous". @param length The max number of cache ids to be read. If length = -1, it reads all cache ids until the end. @param debug true to output id and ...
[ "This", "method", "find", "the", "hashcode", "based", "on", "index", "and", "length", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1731-L1737
67,486
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.updateExpirationTime
public int updateExpirationTime(Object id, long oldExpirationTime, int size, long newExpirationTime, long newValidatorExpirationTime) { int returnCode = this.htod.updateExpirationTime(id, oldExpirationTime, size, newExpirationTime, newValidatorExpirationTime); if (returnCode == HTODDynacache.DISK_EXCEPT...
java
public int updateExpirationTime(Object id, long oldExpirationTime, int size, long newExpirationTime, long newValidatorExpirationTime) { int returnCode = this.htod.updateExpirationTime(id, oldExpirationTime, size, newExpirationTime, newValidatorExpirationTime); if (returnCode == HTODDynacache.DISK_EXCEPT...
[ "public", "int", "updateExpirationTime", "(", "Object", "id", ",", "long", "oldExpirationTime", ",", "int", "size", ",", "long", "newExpirationTime", ",", "long", "newValidatorExpirationTime", ")", "{", "int", "returnCode", "=", "this", ".", "htod", ".", "update...
This method is used to update expiration times in GC and disk emtry header
[ "This", "method", "is", "used", "to", "update", "expiration", "times", "in", "GC", "and", "disk", "emtry", "header" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1742-L1748
67,487
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.checkDirectoryWriteable
protected int checkDirectoryWriteable(String location) { final String methodName = "checkDirectoryWriteable()"; int rc = CacheOnDisk.LOCATION_OK; if (location.equals("")) { rc = CacheOnDisk.LOCATION_NOT_DEFINED; } else if (location.startsWith("${") && location.indexOf("}") > ...
java
protected int checkDirectoryWriteable(String location) { final String methodName = "checkDirectoryWriteable()"; int rc = CacheOnDisk.LOCATION_OK; if (location.equals("")) { rc = CacheOnDisk.LOCATION_NOT_DEFINED; } else if (location.startsWith("${") && location.indexOf("}") > ...
[ "protected", "int", "checkDirectoryWriteable", "(", "String", "location", ")", "{", "final", "String", "methodName", "=", "\"checkDirectoryWriteable()\"", ";", "int", "rc", "=", "CacheOnDisk", ".", "LOCATION_OK", ";", "if", "(", "location", ".", "equals", "(", "...
Check the location whether it is writable or not @param location @return int 0 = OK 1 = LOCATION_NOT_DEFINED 2 = INVALID_LOCATION 3 = LOCATION_NOT_DIRECTORY 4 = LOCATION_NOT_WRITABLE 5 = LOCATION_CANNOT_MAKE_DIR
[ "Check", "the", "location", "whether", "it", "is", "writable", "or", "not" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1841-L1869
67,488
OpenLiberty/open-liberty
dev/wlp-mavenRepoTasks/src/com/ibm/ws/wlp/mavenFeatures/utils/Utils.java
Utils.getRepositorySubpath
public static String getRepositorySubpath(MavenCoordinates artifact) { StringBuffer buf = new StringBuffer(); String[] groupDirs = artifact.getGroupId().split("\\."); for (String dir : groupDirs) { buf.append(dir).append("/"); } buf.append(artifact.getArtifactId()).append("/").append(artifact.getVersion())...
java
public static String getRepositorySubpath(MavenCoordinates artifact) { StringBuffer buf = new StringBuffer(); String[] groupDirs = artifact.getGroupId().split("\\."); for (String dir : groupDirs) { buf.append(dir).append("/"); } buf.append(artifact.getArtifactId()).append("/").append(artifact.getVersion())...
[ "public", "static", "String", "getRepositorySubpath", "(", "MavenCoordinates", "artifact", ")", "{", "StringBuffer", "buf", "=", "new", "StringBuffer", "(", ")", ";", "String", "[", "]", "groupDirs", "=", "artifact", ".", "getGroupId", "(", ")", ".", "split", ...
Gets the expected path within a Maven repository for the given Maven artifact, based on its Maven coordinates. @param artifact the MavenArtifact whose path you want @return the path within a Maven repository where the artifact should be stored
[ "Gets", "the", "expected", "path", "within", "a", "Maven", "repository", "for", "the", "given", "Maven", "artifact", "based", "on", "its", "Maven", "coordinates", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-mavenRepoTasks/src/com/ibm/ws/wlp/mavenFeatures/utils/Utils.java#L26-L34
67,489
OpenLiberty/open-liberty
dev/wlp-mavenRepoTasks/src/com/ibm/ws/wlp/mavenFeatures/utils/Utils.java
Utils.getFileName
public static String getFileName(MavenCoordinates artifact, Constants.ArtifactType type) { return artifact.getArtifactId() + "-" + artifact.getVersion() + type.getMavenFileExtension(); }
java
public static String getFileName(MavenCoordinates artifact, Constants.ArtifactType type) { return artifact.getArtifactId() + "-" + artifact.getVersion() + type.getMavenFileExtension(); }
[ "public", "static", "String", "getFileName", "(", "MavenCoordinates", "artifact", ",", "Constants", ".", "ArtifactType", "type", ")", "{", "return", "artifact", ".", "getArtifactId", "(", ")", "+", "\"-\"", "+", "artifact", ".", "getVersion", "(", ")", "+", ...
Gets the expected file name for a Maven artifact, based on its Maven coordinates. @param artifact the MavenArtifact whose file name you want @param type the type of artifact @return the file name including extension
[ "Gets", "the", "expected", "file", "name", "for", "a", "Maven", "artifact", "based", "on", "its", "Maven", "coordinates", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-mavenRepoTasks/src/com/ibm/ws/wlp/mavenFeatures/utils/Utils.java#L46-L48
67,490
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java
JmsBytesMessageImpl.clearBody
@Override public void clearBody() throws javax.jms.JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "clearBody"); // Set the message into write-only mode, handle generic actions super.clearBody(); // Clear the locally...
java
@Override public void clearBody() throws javax.jms.JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "clearBody"); // Set the message into write-only mode, handle generic actions super.clearBody(); // Clear the locally...
[ "@", "Override", "public", "void", "clearBody", "(", ")", "throws", "javax", ".", "jms", ".", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", ...
Clear out the message body. All other parts of the message are left untouched. @exception JMSException if JMS fails to due to some internal JMS error.
[ "Clear", "out", "the", "message", "body", ".", "All", "other", "parts", "of", "the", "message", "are", "left", "untouched", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L240-L314
67,491
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java
JmsBytesMessageImpl.readByte
@Override public byte readByte() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readByte"); try { // Check that we are in read mode checkBodyReadable("readByte"); if (requiresInit) ...
java
@Override public byte readByte() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readByte"); try { // Check that we are in read mode checkBodyReadable("readByte"); if (requiresInit) ...
[ "@", "Override", "public", "byte", "readByte", "(", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",...
Read a signed 8-bit value from the stream message. @return the next byte from the stream message as a signed 8-bit <code>byte</code>. @exception MessageNotReadableException if message in write-only mode. @exception MessageEOFException if end of message stream @exception JMSException if JMS fails to read message due t...
[ "Read", "a", "signed", "8", "-", "bit", "value", "from", "the", "stream", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L354-L380
67,492
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java
JmsBytesMessageImpl.readBytes
@Override public int readBytes(byte[] value, int length) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readBytes", new Object[] { value, length }); try { // Check that we are in read mode checkBodyRe...
java
@Override public int readBytes(byte[] value, int length) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readBytes", new Object[] { value, length }); try { // Check that we are in read mode checkBodyRe...
[ "@", "Override", "public", "int", "readBytes", "(", "byte", "[", "]", "value", ",", "int", "length", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", ...
Read a portion of the bytes message stream. <P>If the length of array <code>value</code> is less than the bytes remaining to be read from the stream, the array should be filled. A subsequent call reads the next increment, etc. <P>If the bytes remaining in the stream is less than the length of array <code>value</code>...
[ "Read", "a", "portion", "of", "the", "bytes", "message", "stream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L438-L470
67,493
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java
JmsBytesMessageImpl.readChar
@Override public char readChar() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readChar"); try { // Check that we are in read mode checkBodyReadable("readChar"); if (requiresInit) ...
java
@Override public char readChar() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readChar"); try { // Check that we are in read mode checkBodyReadable("readChar"); if (requiresInit) ...
[ "@", "Override", "public", "char", "readChar", "(", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",...
Read a Unicode character value from the stream message. @return the next two bytes from the stream message as a Unicode character. @exception MessageNotReadableException if message in write-only mode. @exception MessageEOFException if end of message stream @exception JMSException if JMS fails to read message due to s...
[ "Read", "a", "Unicode", "character", "value", "from", "the", "stream", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L483-L518
67,494
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java
JmsBytesMessageImpl.readLong
@Override public long readLong() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readLong"); try { // Check that we are in read mode checkBodyReadable("readLong"); if (requiresInit) ...
java
@Override public long readLong() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readLong"); try { // Check that we are in read mode checkBodyReadable("readLong"); if (requiresInit) ...
[ "@", "Override", "public", "long", "readLong", "(", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",...
Read a signed 64-bit integer from the stream message. @return the next eight bytes from the stream message, interpreted as a <code>long</code>. @exception MessageNotReadableException if message in write-only mode. @exception MessageEOFException if end of message stream @exception JMSException if JMS fails to read mes...
[ "Read", "a", "signed", "64", "-", "bit", "integer", "from", "the", "stream", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L716-L752
67,495
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java
JmsBytesMessageImpl.readUTF
@Override public String readUTF() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readUTF"); String result; try { // Check that we are in read mode checkBodyReadable("readUTF"); if ...
java
@Override public String readUTF() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readUTF"); String result; try { // Check that we are in read mode checkBodyReadable("readUTF"); if ...
[ "@", "Override", "public", "String", "readUTF", "(", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", "...
Read in a string that has been encoded using a modified UTF-8 format from the stream message. <P>For more information on the UTF-8 format, see "File System Safe UCS Transformation Format (FSS_UFT)", X/Open Preliminary Specification, X/Open Company Ltd., Document Number: P316. This information also appears in ISO/IEC 1...
[ "Read", "in", "a", "string", "that", "has", "been", "encoded", "using", "a", "modified", "UTF", "-", "8", "format", "from", "the", "stream", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L912-L944
67,496
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java
JmsBytesMessageImpl.reset
@Override public void reset() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "reset"); // After reset has been called, the message body is immutable (the only way of changing it is to // call clearBody and start again...
java
@Override public void reset() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "reset"); // After reset has been called, the message body is immutable (the only way of changing it is to // call clearBody and start again...
[ "@", "Override", "public", "void", "reset", "(", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
Put the message in read-only mode, and reposition the stream of bytes to the beginning. @exception JMSException if JMS fails to reset the message due to some internal JMS error. @exception MessageFormatException if message has an invalid format.
[ "Put", "the", "message", "in", "read", "-", "only", "mode", "and", "reposition", "the", "stream", "of", "bytes", "to", "the", "beginning", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L955-L1013
67,497
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java
JmsBytesMessageImpl.writeBytes
@Override public void writeBytes(byte[] value) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeBytes", value); try { // Check that we are in write mode checkBodyWriteable("writeBytes"); ...
java
@Override public void writeBytes(byte[] value) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeBytes", value); try { // Check that we are in write mode checkBodyWriteable("writeBytes"); ...
[ "@", "Override", "public", "void", "writeBytes", "(", "byte", "[", "]", "value", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry",...
Write a byte array to the stream message. @param value of the byte array to be written. @exception MessageNotWriteableException if message in read-only mode. @exception JMSException if JMS fails to write message due to some internal JMS error.
[ "Write", "a", "byte", "array", "to", "the", "stream", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L1110-L1187
67,498
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java
JmsBytesMessageImpl.writeBytes
@Override public void writeBytes(byte[] value, int offset, int length) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeBytes", new Object[] { value, offset, length }); try { // Check if the producer has promi...
java
@Override public void writeBytes(byte[] value, int offset, int length) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeBytes", new Object[] { value, offset, length }); try { // Check if the producer has promi...
[ "@", "Override", "public", "void", "writeBytes", "(", "byte", "[", "]", "value", ",", "int", "offset", ",", "int", "length", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEna...
Write a portion of a byte array to the stream message. @param value the byte array value to be written. @param offset the initial offset within the byte array. @param length the number of bytes to use. @exception MessageNotWriteableException if message in read-only mode. @exception JMSException if JMS fails to write ...
[ "Write", "a", "portion", "of", "a", "byte", "array", "to", "the", "stream", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L1200-L1239
67,499
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java
JmsBytesMessageImpl.writeObject
@Override public void writeObject(Object value) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "writeObject"); // Check if the producer has promised not to modify the payload after it's been set checkProducerPromise("writeO...
java
@Override public void writeObject(Object value) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "writeObject"); // Check if the producer has promised not to modify the payload after it's been set checkProducerPromise("writeO...
[ "@", "Override", "public", "void", "writeObject", "(", "Object", "value", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "...
Write a Java object to the stream message. <P>Note that this method only works for the objectified primitive object types (Integer, Double, Long ...), String's and byte arrays. @param value the Java object to be written. @exception MessageNotWriteableException if message in read-only mode. @exception MessageFormatEx...
[ "Write", "a", "Java", "object", "to", "the", "stream", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L1540-L1595