code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public Entry remove(Entry removePointer)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "remove", new Object[] { removePointer });
Entry removedEntry = null;
//check that the entry to be removed is not null and is in this list
if(contains(removePointer))
{
//call the int... | java |
public Entry getFirst()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getFirst");
if (tc.isEntryEnabled())
SibTr.exit(tc, "getFirst", first);
return first;
} | java |
public Entry getLast()
{
if (tc.isEntryEnabled())
{
SibTr.entry(tc, "getLast");
SibTr.exit(tc, "getLast", last);
}
return last;
} | java |
private void addMemberToList(JSConsumerKey key, boolean specificList)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry( tc, "addMemberToList", new Object[] {key, Boolean.valueOf(specificList)});
if(specificList)
{
if(specificKeyMembers == null)
{
//... | java |
public void removeMember(JSConsumerKey key)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeMember", key);
LocalQPConsumerKey anyKey = null;
// We lock the CD so other members are not added/removed while
// we do this
synchronized(consumerDispatche... | java |
public LocalQPConsumerKey resolvedKey()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "resolvedKey");
LocalQPConsumerKey key = null;
if(generalMemberCount > 0)
{
// If we only have one this is easy
if(singleMember != null)
key = singleMe... | java |
public void setConsumerActive(boolean active)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setConsumerActive", active);
if(active)
{
consumerThreadID = Thread.currentThread().getId();
}
else
{
consumerThreadID = 0;
}
consumerThre... | java |
public boolean filterMatches(AbstractItem item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "filterMatches", item);
boolean match = false;
LocalQPConsumerKey matchingMember = null;
// Hopefully we have a general consumer so we don't need to parse the mess... | java |
public ConsumableKey getMatchingMember(ConsumableKey preferedKey)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getMatchingMember");
ConsumableKey key = null;
// The last move of the getCursor found a match
if(currentMatch)
{
// There was a gener... | java |
public void attachMessage(ConsumableKey consumerKey)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "attachMessage", msgAttachedMember);
SibTr.exit(tc, "attachMessage", consumerKey);
}
if(msgAttachedMember == null)
msgAttachedMember = consumerKey... | java |
public boolean hasNonSpecificConsumers()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "hasNonSpecificConsumers");
boolean value;
if (generalMemberCount > 0)
value = true;
else
value = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEna... | java |
@Override
public Object createResource(ResourceInfo info) throws Exception {
ComponentMetaData cData = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
if (cData != null)
applications.add(cData.getJ2EEName().getApplication());
return cloudantS... | java |
public Object getCloudantClient(ResourceInfo info) throws Exception {
return cloudantSvc.getCloudantClient(
info == null ? ResourceInfo.AUTH_APPLICATION : info.getAuth(),
info == null ? null : info.getLoginPropertyList());... | java |
private URL getRelativePath(FacesContext facesContext, String path) throws IOException
{
URL url = (URL) _relativePaths.get(path);
if (url == null)
{
url = _factory.resolveURL(facesContext, _src, path);
if (url != null)
{
ViewResource viewR... | java |
private void include(AbstractFaceletContext ctx, UIComponent parent) throws IOException, FacesException,
FaceletException, ELException
{
ctx.pushPageContext(new PageContextImpl());
try
{
this.refresh(parent);
DefaultFaceletContext ctxWrapper = new DefaultF... | java |
public void include(AbstractFaceletContext ctx, UIComponent parent, URL url) throws IOException, FacesException,
FaceletException, ELException
{
DefaultFacelet f = (DefaultFacelet) _factory.getFacelet(ctx, url);
f.include(ctx, parent);
} | java |
@Override
public synchronized void process() throws InjectionException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "process: " + this);
// -------------------------------------------------------------------... | java |
private void createPersistenceMaps(ComponentNameSpaceConfiguration masterCompNSConfig,
List<ComponentNameSpaceConfiguration> compNSConfigs) {
Map<Class<?>, Collection<String>> classesToComponents = new HashMap<Class<?>, Collection<String>>();
Map<String, Collection... | java |
private String dumpJavaColonCompEnvMap() {
StringBuffer buffer = new StringBuffer("");
buffer.append("EJBContext.lookup data structure contents:\n");
buffer.append(" Contains **" + ivJavaColonCompEnvMap.size() + "** bindings.\n");
if (!ivJavaColonCompEnvMap.isEmpty()) {
Set... | java |
@Override
public boolean isProcessDynamicNeeded(List<Class<?>> injectionClasses) {
for (Class<?> klass : injectionClasses) {
if (!ivProcessedInjectionClasses.contains(klass)) {
return true;
}
}
return false;
} | java |
public static List<ProvisioningFeatureDefinition> getKernelFeatures(BundleContext ctx, WsLocationAdmin locationService) {
List<ProvisioningFeatureDefinition> result = kernelDefs;
if (result == null) {
result = kernelDefs = getKernelFeatures(ctx, locationService, false);
}
ret... | java |
public String download() {
try {
HttpURLConnection conn = getConnection();
return readConnection(conn);
} catch (Exception e) {
Assert.fail(e.getMessage());
}
return null;
} | java |
public OpenAPI downloadModel() throws Exception {
String download = download();
if (download != null) {
try {
SwaggerParseResult parseResult = new OpenAPIParser().readContents(download, null, null, null);
if (parseResult != null) {
return p... | java |
public static OpenAPIConnection openAPIDocsConnection(LibertyServer server, boolean secure) {
return new OpenAPIConnection(server, OPEN_API_DOCS).secure(secure);
} | java |
public static OpenAPIConnection openAPIUIConnection(LibertyServer server, boolean secure) {
return new OpenAPIConnection(server, OPEN_API_UI).secure(secure);
} | java |
public void processDrsInbound(long localClock) {
// Is dsrClock timestamp from the remote machine missing
// or was the CE's timestampls already altered?
if (drsClock <= 0) {
return;
}
// Adjust timestamps for this machines clock.
long clockDifference = localC... | java |
@Override
public synchronized Object getValue() {
if (id != null) {
if (serializedValue != null) {
long oldSize = -1;
if (cacheEntryPool != null) {
if (cacheEntryPool.cache.isCacheSizeInMBEnabled()) {
oldSize = getObject... | java |
protected void setValue(Object value) {
this.value = value;
serializedValue = null;
timeStamp = System.currentTimeMillis();
this.valueHashcode = 0;
} | java |
public void reset() {
if (refCount.get() > 0 && isRefCountingEnabled()) {
Tr.warning(tc, "reset called on " + id + " with a refCount of " + refCount);
Thread.dumpStack();
}
cacheName = null;
drsClock = -1;
timeStamp = -1;
serializedId = null;
... | java |
public void copy(CacheEntry cacheEntry) {
if (cacheEntry == this)
return;
if (useByteBuffer && this.value != null) {
if (this.value instanceof DistributedNioMapObject) {
((DistributedNioMapObject) this.value).release();
}
}
this.valu... | java |
@Override
public Object getUserMetaData() {
if (serializedUserMetaData != null) {
try {
userMetaData = SerializationUtility.deserialize(serializedUserMetaData, cacheName);
} catch (Exception ex) {
com.ibm.ws.ffdc.FFDCFilter.processException(ex, "com.ib... | java |
@Override
public long getCacheValueSize() {
long valuesize = -1;
if (this.value != null) {
Object localValue = this.value;
valuesize = ObjectSizer.getSize(localValue);
} else {
if (this.serializedValue != null) {
byte[] localSerializedValue... | java |
public HttpSession generateNewId(WebApp webapp) {
HttpSession existingSession = (HttpSession) webappToSessionMap.get(webapp);
if (existingSession != null) {
if (!webapp.getSessionContext().isValid(existingSession, request, false)) {
existingSession = null;
}
... | java |
public RecoverableUnitSection lookupSection(int identity)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "lookupSection",new java.lang.Object[]{this,new Integer(identity)});
SQLRecoverableUnitSectionImpl recoverableUnitSection = (SQLRecoverableUnitSectionImpl)_recoverableUnitSections.get(new Integer(identity));
... | java |
protected synchronized void invoke()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "invoke");
try
{
listener.errorOccurred(exception,
segmentType,
requestNumber,
... | java |
protected synchronized void reset(Connection connection,
ConversationReceiveListener listener,
SIConnectionLostException exception,
int segmentType,
int requestNumber,
int priority,
... | java |
private void _idAdded(String clientId)
{
// An id to visit has been added, update our other
// collections to reflect this.
// Update the ids collection
_ids.add(_getIdFromClientId(clientId));
// Update the unvisited ids collection
_unvisitedClientIds.add(clientId);
// Update the subtre... | java |
private String _getVisitId(UIComponent component)
{
// We first check to see whether the component's id
// is in our id collection. We do this before checking
// for the full client id because getting the full client id
// is more expensive than just getting the local id.
String id = component.ge... | java |
private String _getIdFromClientId(String clientId)
{
final char separator = getFacesContext().getNamingContainerSeparatorChar();
int lastIndex = clientId.lastIndexOf(separator);
String id = null;
if (lastIndex < 0)
{
id = clientId;
}
else if (lastIndex < (clientId.length() - 1))
... | java |
private void _addSubtreeClientId(String clientId)
{
// Loop over the client id and find the substring corresponding to
// each ancestor NamingContainer client id. For each ancestor
// NamingContainer, add an entry into the map for the full client
// id.
final char separator = getFacesContext().ge... | java |
private void _removeSubtreeClientId(String clientId)
{
// Loop through each entry in the map and check to see whether
// the client id to remove should be contained in the corresponding
// collection - ie. whether the key (the NamingContainer client id)
// is present at the start of the client id to r... | java |
@Override
public ORB createServerORB(Map<String, Object> config, Map<String, Object> extraConfig, List<IIOPEndpoint> endpoints, Collection<SubsystemFactory> subsystemFactories) throws ConfigException {
ORB orb = createORB(translateToTargetArgs(config, subsystemFactories), translateToTargetProps(config, extr... | java |
@Override
public ORB createClientORB(Map<String, Object> clientProps, Collection<SubsystemFactory> subsystemFactories) throws ConfigException {
return createORB(translateToClientArgs(clientProps, subsystemFactories), translateToClientProps(clientProps, subsystemFactories));
} | java |
private ORB createORB(String[] args, Properties props) {
return ORB.init(args, props);
} | java |
private String[] translateToTargetArgs(Map<String, Object> props, Collection<SubsystemFactory> subsystemFactories) throws ConfigException {
ArrayList<String> list = new ArrayList<String>();
for (SubsystemFactory sf : subsystemFactories) {
sf.addTargetORBInitArgs(props, list);
}
... | java |
private String[] translateToClientArgs(Map<String, Object> clientProps, Collection<SubsystemFactory> subsystemFactories) throws ConfigException {
ArrayList<String> list = new ArrayList<String>();
for (SubsystemFactory sf : subsystemFactories) {
sf.addClientORBInitArgs(clientProps, list);
... | java |
private Properties translateToClientProps(Map<String, Object> clientProps, Collection<SubsystemFactory> subsystemFactories) throws ConfigException {
Properties result = createYokoORBProperties();
for (SubsystemFactory sf : subsystemFactories) {
addInitializerPropertyForSubsystem(result, sf, ... | java |
public static String getName() {
String secname = null;
WSCredential credential = getCallerWSCredential();
try {
if (credential != null && !credential.isUnauthenticated()) {
String realmSecname = credential.getRealmSecurityName();
if (realmSecname != n... | java |
public static String getUser() {
String accessid = null;
WSCredential credential = getCallerWSCredential();
try {
if (credential != null && !credential.isUnauthenticated())
accessid = credential.getAccessId();
} catch (Exception e) {
if (TraceComp... | java |
private Boolean compareListValues( // was BooleanValue
Object firstVal,
Object secondVal,
boolean lessThan,
boolean permissive,
boolean overallTrue) // If true we are searching for at least one TRUE result, else at least one FALSE.
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnab... | java |
private URL setURL(URL url) throws RepositoryIllegalArgumentException {
int port = url.getPort();
if (port == -1) {
throw new RepositoryIllegalArgumentException("Bad proxy URL", new IllegalArgumentException("Proxy URL does not contain a port"));
}
String host = url.getHost();... | java |
protected void setMBean(ServiceReference<?> ref) {
// Use "jmx.objectname" for determining the ObjectName to be consistent with Apache Aries.
Object jmxObjectName = ref.getProperty("jmx.objectname");
if (jmxObjectName instanceof String) {
try {
// Construct an ObjectN... | java |
public void printStackToDebug() {
Throwable t = new Throwable();
StackTraceElement[] ste = t.getStackTrace();
int start = (ste.length > 6) ? 6 : ste.length;
for (int i = start; i >= 1; i--) {
Tr.debug(tc, "Calling Stack Element[" + i + "]: " + ste[i]);
}
} | java |
public void setPoolManagerRef(WsByteBufferPoolManagerImpl oManagerRef) {
this.oWsByteBufferPoolManager = oManagerRef;
this.trusted = oManagerRef.isTrustedUsers();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setPoolManagerRef: trusted=" + this.tr... | java |
public void setDirectShadowBuffer(ByteBuffer buffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "setDirectShadowBuffer");
}
if (!this.trusted)
checkValidity();
this.oWsBBDirect = buffer;
if (TraceComponent.isAnyTra... | java |
public void setParmsToDirectBuffer() {
if (oByteBuffer.isDirect()) {
this.oWsBBDirect = this.oByteBuffer;
return;
}
if (oWsBBDirect == null) {
this.oWsBBDirect = ByteBuffer.allocateDirect(oByteBuffer.capacity());
}
// set the position and li... | java |
private void taskHostStatus(RESTRequest request, RESTResponse response) {
String taskID = RESTHelper.getRequiredParam(request, APIConstants.PARAM_TASK_ID);
String host = RESTHelper.getRequiredParam(request, APIConstants.PARAM_HOST);
String taskHostStatusJson = getMultipleRoutingHelper().getHost... | java |
protected void prepareExpansion() throws IOException {
WsResource expansionResource = deployedAppServices.getLocationAdmin().resolveResource(AppManagerConstants.EXPANDED_APPS_DIR);
expansionResource.create();
} | java |
@Override
public DeployedAppInfo createDeployedAppInfo(ApplicationInformation<DeployedAppInfo> appInfo)
throws UnableToAdaptException {
String appPid = appInfo.getPid();
String appName = appInfo.getName();
String appPath = appInfo.getLocation();
File appFile = new File(appP... | java |
protected String createCssContentString() {
StringBuilder css = new StringBuilder();
css.append("<style>");
// body
css.append("body {");
css.append("background-color: #152935;");
css.append("font-family: serif;");
css.append("margin: 0;");
css.append("}\... | java |
public void complete(VirtualConnection vc, TCPReadRequestContext req) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl) vc.getStateMap().get(Callb... | java |
protected void reConnect(VirtualConnection inVC, IOException ioe) {
if (getLink().isReconnectAllowed()) {
// start the reconnect
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Attempting reconnect: " + getLink().getVirtualConnection());
... | java |
void callErrorCallback(VirtualConnection inVC, IOException ioe) {
// otherwise pass the error along to the channel above us, or close
// the connection if nobody is above
setPersistent(false);
if (this.bEarlyReads && null != getAppReadCallback()) {
if (TraceComponent.isAnyTra... | java |
private boolean resetWriteBuffers() {
int stop = getPendingStop();
WsByteBuffer[] list = getPendingBuffers();
// verify we can actually attempt the re-write
if (null == this.positionList || null == list) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | java |
protected void nowReconnectedAsync() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Reconnected async for " + this);
}
// reset the data buffers first
if (!resetWriteBuffers()) {
if (TraceComponent.isAnyTracingEnabled() && tc.i... | java |
protected void nowReconnectedSync(IOException originalExcep) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Reconnected sync for " + this);
}
if (!resetWriteBuffers()) {
if (TraceComponent.isAnyTracingEnabled() && tc... | java |
private VirtualConnection startEarlyRead(InterChannelCallback cb, boolean forceQueue) {
// disallow rewrites once we start mixing the request and temp responses
getLink().disallowRewrites();
setAppReadCallback(cb);
// check for an existing final response
if (headersParsed() && !... | java |
@Override
public void setRequest(HttpRequestMessage msg) throws IllegalRequestObjectException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "setRequest: " + msg);
}
// null message isn't allowed
if (null == msg) {
throw new... | java |
@Override
public void sendRequestHeaders() throws IOException, MessageSentException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "sendRequestHeaders(sync)");
}
if (headersSent()) {
throw new MessageSentException("Headers already s... | java |
@Override
public VirtualConnection sendRequestHeaders(InterChannelCallback callback, boolean bForce) throws MessageSentException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "sendRequestHeaders(async)");
}
if (headersSent()) {
thro... | java |
@Override
public void sendRequestBody(WsByteBuffer[] body) throws IOException, MessageSentException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "sendRequestBody(sync)");
}
if (isMessageSent()) {
throw new MessageSentException("Me... | java |
@Override
public VirtualConnection sendRequestBody(WsByteBuffer[] body, InterChannelCallback callback, boolean bForce) throws MessageSentException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "sendRequestBody(async)");
}
if (isMessageSent()) ... | java |
@Override
public void finishRequestMessage(WsByteBuffer[] body) throws IOException, MessageSentException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "finishRequestMessage(sync)");
}
if (isMessageSent()) {
throw new MessageSentExc... | java |
@Override
public VirtualConnection finishRequestMessage(WsByteBuffer[] body, InterChannelCallback callback, boolean bForce) throws MessageSentException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "finishRequestMessage(async)");
}
if (isMessa... | java |
private HttpInvalidMessageException checkRequestValidity() {
if (shouldReadResponseImmediately()) {
// ignore body validation as this might happen after sending only
// the headers if 100-continue, Upgrade, immediate-read, etc.
return null;
}
long len = getReq... | java |
VirtualConnection parseResponseMessageAsync() {
VirtualConnection readVC = null;
try {
do {
if (parseMessage()) {
// finished parsing the message
return getVC();
}
if (TraceComponent.isAnyTracingEnabled(... | java |
private void parseResponseMessageSync() throws IOException {
// if read buffers are available, then attempt a parse otherwise go
// into the "read data then parse" loop
if (isReadDataAvailable()) {
try {
// if data is already available, don't modify the buffer
... | java |
private boolean checkBodyValidity() throws IOException {
// LI4335 - allow response body reading if early reads are in place
if (isImmediateReadEnabled() || this.bEarlyReads) {
if (!headersParsed()) {
// this means they are requesting body buffers prior to sending
... | java |
protected void wakeupReadAhead() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Received synchronous read-ahead wake-up call.");
}
synchronized (this.readAheadSyncer) {
this.readAheadSyncer.notify();
}
} | java |
private void prepareForCaller(IdentifierType id, String qualifiedEntityType, String uid, String uName,
boolean isIgnoreRepositoryErrors, Set<String> failureRepositoryIds) throws WIMException {
String METHODNAME = "prepareForCaller";
if (id != null) {
String ... | java |
private Entity innerRetrieveEntityFromRepository(Root root, Entity retEntDO, String uniqueId, boolean isAllowOperationIfReposDown,
Set<String> failureRepositoryIds) throws WIMException {
String METHODNAME = "retrieveEntityFromRepository";
List<String... | java |
private String getRealmNameOrFirstBest(Root root) {
String value = null;
value = getRealmName(root);
if (value == null) {
try {
value = getRealmName();
} catch (Exception e) {
// leave realm at null
}
}
return va... | java |
@FFDCIgnore({ EntityNotFoundException.class, Exception.class })
private String getUniqueNameByUniqueId(String uniqueId, boolean isAllowOperationIfReposDown, Set<String> failureRepositoryIds) throws WIMException {
final String METHODNAME = "getUniqueNameByUniqueId";
String uniqueName = null;
... | java |
void initResolve() {
featureNamesToResolve = new HashSet<>();
samplesToInstall = new ArrayList<>();
resolvedFeatures = new HashMap<>();
requestedFeatureNames = new HashSet<>();
featuresMissing = new ArrayList<>();
resourcesWrongProduct = new ArrayList<>();
require... | java |
List<List<RepositoryResource>> createInstallLists() {
List<List<RepositoryResource>> installLists = new ArrayList<>();
// Create install list for each sample
for (SampleResource sample : samplesToInstall) {
installLists.add(createInstallList(sample));
}
// Create in... | java |
public final synchronized long nextId(Object obj)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "nextId", obj);
long id = _idCount++;
// Keep incrementing the id until we
// find one that hasn't been reserved.
while (_idMap.get(id) != null)
{
id = _idCount++;
}
// Add the new id to the map associatin... | java |
public final synchronized void removeId(long id)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "removeId", new Long(id));
_idMap.remove(id);
if (tc.isEntryEnabled()) Tr.exit(tc, "removeId");
} | java |
public final synchronized boolean reserveId(long id, Object obj)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "reserveId", new Object[] {new Long(id), obj});
boolean reserved = false;
// The id can only be reserved if it
// isn't already in the map
if (_idMap.get(id) == null)
{
_idMap.put(id, obj);
rese... | java |
public final synchronized Object[] getAllObjects()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "getAllObjects");
Object[] values = _idMap.values();
if (tc.isEntryEnabled()) Tr.exit(tc, "getAllObjects", values);
return values;
} | java |
public synchronized Object getCacheKey(EvictionTableEntry evt) //3821 NK begin
throws IOException,
EOFException,
FileManagerException,
ClassNotFoundException,
HashtableOnDiskException {
Object key = null;
if (filemgr == ... | java |
public synchronized boolean remove(Object key)
throws IOException,
EOFException,
FileManagerException,
ClassNotFoundException,
HashtableOnDiskException {
if (filemgr == null) {
throw new HashtableOnDi... | java |
public synchronized boolean updateExpirationInHeader(Object key, long expirationTime, long validatorExpirationTime)
throws IOException,
EOFException,
FileManagerException,
ClassNotFoundException,
HashtableOnDiskException... | java |
int walkHash(HashtableAction action, int retrieveMode, int index, int length)
throws IOException,
EOFException,
FileManagerException,
ClassNotFoundException,
HashtableOnDiskException {
iterationLock.p();
... | java |
public void listfiles(Writer o)
throws IOException,
EOFException,
FileManagerException,
ClassNotFoundException,
HashtableOnDiskException {
ListAction act = new ListAction(o);
walkHash(act, RETRIEVE_KEY, 0... | java |
private void countAndVerifyObjects()
throws IOException,
EOFException,
FileManagerException,
ClassNotFoundException,
HashtableOnDiskException {
println("countAndVerifyObjects(): Hashtable " + filename + " was not... | java |
private void countObjects()
throws IOException,
EOFException,
FileManagerException,
ClassNotFoundException,
HashtableOnDiskException {
println("countObjects(): Hashtable " + filename + " was not closed properly. ... | java |
private void rehash()
throws IOException,
EOFException,
FileManagerException,
ClassNotFoundException,
HashtableOnDiskException {
int size = (header.tablesize() * 2) + 1;
if (this.tempTableSize > size) {
... | java |
private void doRehash(int new_table_size)
throws IOException,
EOFException,
FileManagerException,
ClassNotFoundException,
HashtableOnDiskException {
//
// Acquire the lock to prevent iteration while doubl... | java |
void setRehashFlag(long location)
throws IOException,
EOFException {
rehashInProgress = location;
filemgr.seek(rehashOffset);
filemgr.writeLong(location);
} | java |
public synchronized boolean contains(int id)
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "contains", ""+id);
mutableKey.setValue(id);
boolean returnValue = idToConvTable.containsKey(mutableKey);
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "contains", ""+returnValue);
return retu... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.