code
stringlengths
73
34.1k
label
stringclasses
1 value
public synchronized void putString(String item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putString", item); checkValid(); // A String is presented by a BIT16 denoting the length followed by encoded bytes. If the // String is null, then a leng...
java
public synchronized void putSIDestinationAddress(SIDestinationAddress destAddr, short fapLevel) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putSIDestinationAddress", new Object[]{destAddr, Short.valueOf(fapLevel)}); checkValid(); String destName = nul...
java
public synchronized void putSelectionCriteria(SelectionCriteria criteria) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putSelectionCriteria", criteria); checkValid(); String discriminator = null; String selector = null; short selectorDomain...
java
public synchronized void putXid(Xid xid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "putXid", xid); putInt(xid.getFormatId()); putInt(xid.getGlobalTransactionId().length); put(xid.getGlobalTransactionId()); putInt(xid.getBranchQualifier().length)...
java
public synchronized void putSITransaction(SITransaction transaction) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "putSITransaction", transaction); Transaction commsTx = (Transaction)transaction; int flags = -1; if (transaction == null) { ...
java
public int putMessgeWithoutEncode(List<DataSlice> messageParts) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putMessgeWithoutEncode", messageParts); int messageLength = 0; // Now we have a list of MessagePart objects. First work out the overall length. ...
java
public synchronized void putDataSlice(DataSlice slice) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putDataSlice", slice); // First pump in the length putInt(slice.getLength()); // Now add in the payload wrap(slice.getBytes(), slice.getOffs...
java
public synchronized void putSIMessageHandles(SIMessageHandle[] siMsgHandles) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "putSIMessageHandles", siMsgHandles); putInt(siMsgHandles.length); for (int handleIndex = 0; handleIndex < siMsgHandles.length; ++handleI...
java
public synchronized void putException(Throwable throwable, String probeId, Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putException", new Object[]{throwable, probeId, conversation}); Throw...
java
public synchronized String getString() { checkReleased(); String returningString = null; // Read the length in short stringLength = receivedBuffer.getShort(); // Allocate the right amount of space for it byte[] stringBytes = new byte[stringLength]; // And copy the data in ...
java
public synchronized SIDestinationAddress getSIDestinationAddress(short fapLevel) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSIDestinationAddress", Short.valueOf(fapLevel)); //469395 checkReleased(); boolean isFromMediation = false; /*******...
java
public synchronized SelectionCriteria getSelectionCriteria() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSelectionCriteria"); //469395 checkReleased(); SelectorDomain selectorDomain = SelectorDomain.getSelectorDomain(getShort()); if (TraceCom...
java
public synchronized Xid getXid() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getXid"); checkReleased(); int formatId = getInt(); int glidLength = getInt(); byte[] globalTransactionId = get(glidLength); int blqfLength = getInt(); byte...
java
public synchronized SIBusMessage getMessage(CommsConnection commsConnection) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMessage"); checkReleased(); SIBusMessage mess = null; // Now build a JsMessage from the return...
java
public synchronized SIMessageHandle[] getSIMessageHandles() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSIMessageHandles"); int arrayCount = getInt(); // BIT32 ArrayCount if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ...
java
public synchronized int peekInt() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "peekInt"); checkReleased(); int result = 0; if (receivedBuffer != null) { int currentPosition = receivedBuffer.position(); result = receivedBuf...
java
public synchronized long peekLong() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "peekLong"); checkReleased(); long result = 0; if (receivedBuffer != null) { int currentPosition = receivedBuffer.position(); result = receive...
java
public synchronized void skip(int lengthToSkip) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "skip", lengthToSkip); checkReleased(); if (receivedBuffer != null) { receivedBuffer.position(receivedBuffer.position() + lengthToSkip); } ...
java
public synchronized void rewind() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rewind"); checkReleased(); if (receivedBuffer != null) { receivedBuffer.rewind(); } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
java
public List<DataSlice> encodeFast(AbstractMessage message, CommsConnection commsConnection, Conversation conversation) throws MessageEncodeFailedException, SIConnectionDroppedException, IncorrectMessageTypeException, UnsupportedEncodingException, MessageCopyFailedException { if (TraceCompone...
java
public static int calculateEncodedStringLength(String s) { if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "calculateEncodedStringLength", s); final int length; if(s == null) { length = 3; } else { try { ...
java
public synchronized boolean getBoolean() { final byte value = get(); if(value == CommsConstants.TRUE_BYTE) return true; else if(value == CommsConstants.FALSE_BYTE) return false; else throw new IllegalStateException("Unexpected byte: " + value); }
java
protected File assertDirectory(String dirName, String locName) { File d = new File(dirName); if (d.isFile()) throw new LocationException("Path must reference a directory", MessageFormat.format(BootstrapConstants.messages.getString("error.specifiedLocation"), locName, ...
java
protected void substituteSymbols(Map<String, String> initProps) { for (Entry<String, String> entry : initProps.entrySet()) { Object value = entry.getValue(); if (value instanceof String) { String strValue = (String) value; Matcher m = SYMBOL_DEF.matcher(st...
java
public boolean checkCleanStart() { String fwClean = get(BootstrapConstants.INITPROP_OSGI_CLEAN); if (fwClean != null && fwClean.equals(BootstrapConstants.OSGI_CLEAN_VALUE)) { return true; } String osgiClean = get(BootstrapConstants.OSGI_CLEAN); return Boolean.valueOf...
java
protected ReturnCode generateServerEnv(boolean generatePassword) { double jvmLevel; String s = null; try { s = AccessController.doPrivileged(new java.security.PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { ...
java
protected void setProbeListeners(ProbeImpl probe, Collection<ProbeListener> listeners) { Set<ProbeListener> enabled = enabledProbes.get(probe); if (enabled == null) { enabled = new HashSet<ProbeListener>(); enabledProbes.put(probe, enabled); } enabled.addAll(liste...
java
protected Set<ProbeListener> getProbeListeners(ProbeImpl probe) { Set<ProbeListener> listeners = enabledProbes.get(probe); if (listeners == null) { listeners = Collections.emptySet(); } return listeners; }
java
protected void unbox(final Type type) { switch (type.getSort()) { case Type.BOOLEAN: visitTypeInsn(CHECKCAST, "java/lang/Boolean"); visitMethodInsn(INVOKEVIRTUAL, "java/lang/Boolean", "booleanValue", "()Z", false); break; case Type.BYTE: ...
java
void replaceArgsWithArray(String desc) { Type[] methodArgs = Type.getArgumentTypes(desc); createObjectArray(methodArgs.length); // [target] args... array for (int i = methodArgs.length - 1; i >= 0; i--) { if (methodArgs[i].getSize() == 2) { visitInsn(DUP_X2); // [targ...
java
void restoreArgsFromArray(String desc) { Type[] methodArgs = Type.getArgumentTypes(desc); for (int i = 0; i < methodArgs.length; i++) { // [target] array visitInsn(DUP); // [target] args... array array visitLdcInsn(Integer.valueOf(i)); // [target] args... array array idx ...
java
protected void setProbeInProgress(boolean inProgress) { if (inProgress && !this.probeInProgress) { this.probeInProgress = true; if (this.probeMethodAdapter != null) { this.mv = this.visitor; } } else if (!inProgress && this.probeInProgress) { ...
java
public void setTargetSignificance(String targetSignificance) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setTargetSignificance", targetSignificance); } _targetSignificance = targetSignificance; }
java
public void setTargetTransportChain(String targetTransportChain) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setTargetTransportChain", targetTransportChain); } _targetTransportChain = targetTransportChain; }
java
public void setUseServerSubject(Boolean useServerSubject) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setUseServerSubject", useServerSubject); } _useServerSubject = useServerSubject; }
java
public void setRetryInterval(String retryInterval) { _retryInterval = (retryInterval == null ? null : Integer.valueOf(retryInterval)); }
java
static PortComponent getPortComponentByEJBLink(String ejbLink, Adaptable containerToAdapt) throws UnableToAdaptException { return getHighLevelElementByServiceImplBean(ejbLink, containerToAdapt, PortComponent.class, LinkType.EJB); }
java
static PortComponent getPortComponentByServletLink(String servletLink, Adaptable containerToAdapt) throws UnableToAdaptException { return getHighLevelElementByServiceImplBean(servletLink, containerToAdapt, PortComponent.class, LinkType.SERVLET); }
java
static WebserviceDescription getWebserviceDescriptionByEJBLink(String ejbLink, Adaptable containerToAdapt) throws UnableToAdaptException { return getHighLevelElementByServiceImplBean(ejbLink, containerToAdapt, WebserviceDescription.class, LinkType.EJB); }
java
static WebserviceDescription getWebserviceDescriptionByServletLink(String servletLink, Adaptable containerToAdapt) throws UnableToAdaptException { return getHighLevelElementByServiceImplBean(servletLink, containerToAdapt, WebserviceDescription.class, LinkType.SERVLET); }
java
@SuppressWarnings("unchecked") private static <T> T getHighLevelElementByServiceImplBean(String portLink, Adaptable containerToAdapt, Class<T> clazz, LinkType linkType) throws UnableToAdaptException { if (null == portLink) { return null; } if (PortComponent.class.isAssignableFrom...
java
public long getCompletionTime() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getCompletionTime"); long completionTime =-1; //only calculate if the timeout is not infinite long timeOut = getTimeout(); if(timeOut != SIMPConstants.INFINITE_TIMEOU...
java
protected synchronized void deactivate(ComponentContext context) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Unregistering JNDIEntry " + serviceRegistration); } if (this.serviceRegistration != null) { this.serviceRegistration.unregis...
java
public static UserProfile getUserProfile() { UserProfile userProfile = null; Subject subject = getSubject(); Iterator<UserProfile> userProfilesIterator = subject.getPrivateCredentials(UserProfile.class).iterator(); if (userProfilesIterator.hasNext()) { userProfile = userProfi...
java
public void dispatchAsynchException(ProxyQueue proxyQueue, Exception exception) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "dispatchAsynchException", new Object[] { proxyQueue, exception }); // Create a runnable with the ...
java
public void dispatchAsynchEvent(short eventId, Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dispatchAsynchEvent", new Object[] { ""+eventId, conversation }); // Create a runnable with the d...
java
public void dispatchCommsException(SICoreConnection conn, ProxyQueueConversationGroup proxyQueueConversationGroup, SIConnectionLostException exception) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this...
java
public void dispatchDestinationListenerEvent(SICoreConnection conn, SIDestinationAddress destinationAddress, DestinationAvailability destinationAvailability, DestinationListener destinationListener) { if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dispatchDestin...
java
public void dispatchConsumerSetChangeCallbackEvent(ConsumerSetChangeCallback consumerSetChangeCallback,boolean isEmpty) { if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dispatchConsumerSetChangeCallbackEvent", new Object[]{consumerSetChangeCallback, isEmpty})...
java
public void dispatchStoppableConsumerSessionStopped(ConsumerSessionProxy consumerSessionProxy) { if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dispatchStoppableConsumerSessionStopped", consumerSessionProxy); //Create a new StoppableAsynchConsumerCallbackThread an...
java
private void dispatchThread(Runnable runnable) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dispatchThread"); try { // Get a thread from the pool to excute it // By only passing the thread we default to wait if the threadpool queue is ...
java
private static void invokeCallback(SICoreConnection conn, ConsumerSession session, // d172528 Exception exception, int eventId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "invokeCallback", new Ob...
java
@Sensitive public static String getHeader(HttpServletRequest req, String key) { HttpServletRequest sr = getWrappedServletRequestObject(req); return sr.getHeader(key); }
java
@Override public void destroy() // PK20881 { if (tc.isEntryEnabled()) Tr.entry(tc, "destroy"); // Dummy transactionWrappers may not be in any table and so // will not have a resourceCallback registered to remove them. if (_resourceCallback != null) _resou...
java
protected void close() throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "close" ); if (flushHelper != null) flushHelper.shutdown(); ...
java
private void setFileSpaceLeft() throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "setFileSpaceLeft", new Object[] { new Long(fileLogHeader.fileSize), new Long...
java
final void flush() throws ObjectManagerException { final String methodName = "flush"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName); int startPage = 0; ...
java
protected void reserve(long reservedDelta) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "reserve", new Object[] { new Long(reservedDelta) } ...
java
private long reserveLogFileSpace(long reservedDelta) { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "reserveLogFileSpace", new Object[] { new Long(reservedDelta) }); long s...
java
private long paddingReserveLogSpace(long spaceToReserve) throws ObjectManagerException { if (trace.isEntryEnabled()) trace.entry(this, cclass, "paddingReserveLogSpace", new Object[] { new Long(spaceToReserve) }); syn...
java
protected final long writeNext(LogRecord logRecord , long reservedDelta , boolean checkSpace , boolean flush ) throws ObjectManagerException { // if (T...
java
protected final long markAndWriteNext(LogRecord logRecord, long reservedDelta, boolean checkSpace, boolean flush) throws ObjectManagerException { if (Tracing.isAn...
java
private int addPart(LogRecord logRecord, byte[] fillingBuffer, boolean completed, int offset, int partLength) throws ObjectManagerException { final String methodName = "addPart"; if (T...
java
public void cancel() { //d583637, F73234 synchronized (ivCancelLock) { //d601399 ivIsCanceled = true; if (ivScheduledFuture != null) ivScheduledFuture.cancel(false); ivCache = null; ivElements = null; } }
java
protected void renderTextAreaValue(FacesContext facesContext, UIComponent uiComponent) throws IOException { ResponseWriter writer = facesContext.getResponseWriter(); Object addNewLineAtStart = uiComponent.getAttributes().get(ADD_NEW_LINE_AT_START_ATTR); if (addNewLineAtStart != null...
java
public final void put(long priority, Object value) { // if (tc.isEntryEnabled()) // SibTr.entry(tc, "put", new Object[] { new Long(priority), value}); PriorityQueueNode node = new PriorityQueueNode(priority,value); // Resize the array (double it) if we are out of space. if (size == elements.leng...
java
protected void moveUp(int pos) { // if (tc.isEntryEnabled()) // SibTr.entry(tc, "moveUp", new Integer(pos)); PriorityQueueNode node = elements[pos]; long priority = node.priority; while ((pos > 0) && (elements[parent(pos)].priority > priority)) { setElement(elements[parent(pos)], pos);...
java
public final Object getMin() throws NoSuchElementException { PriorityQueueNode max = null; if (size == 0) throw new NoSuchElementException(); max = elements[0]; setElement(elements[--size], 0); heapify(0); return max.value; }
java
protected final void setElement(PriorityQueueNode node, int pos) { // if (tc.isEntryEnabled()) // SibTr.entry(tc, "setElement", new Object[] { node, new Integer(pos)}); elements[pos] = node; node.pos = pos; // if (tc.isEntryEnabled()) // SibTr.exit(tc, "setElement"); }
java
protected void heapify(int position) { // if (tc.isEntryEnabled()) // SibTr.entry(tc, "heapify", new Integer(position)); // Heapify the remaining heap int i = -1; int l; int r; int smallest = position; // Heapify routine from CMR. // This was done without recursion. while (sm...
java
public static void setJPAComponent(JPAComponent instance) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "setJPAComponent", instance); jpaComponent = instance; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.exit(...
java
public Tag decorate(Tag tag) { Tag t = null; for (int i = 0; i < this.decorators.length; i++) { t = this.decorators[i].decorate(tag); if (t != null) { return t; } } return tag; }
java
protected PriorityConverterMap getConverters() { //the map to be returned PriorityConverterMap allConverters = new PriorityConverterMap(); //add the default converters if (addDefaultConvertersFlag()) { allConverters.addAll(getDefaultConverters()); } //add the...
java
JsMessagingEngine[] getMEsToCheck() { final String methodName = "getMEsToCheck"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } JsMessagingEngine[] retVal = SibRaEngineComponent.getMessagingEngines (_...
java
JsMessagingEngine[] removeStoppedMEs (JsMessagingEngine[] MEList) { final String methodName = "removeStoppedMEs"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, MEList); } JsMessagingEngine[] startedMEs =...
java
public void messagingEngineDestroyed(JsMessagingEngine messagingEngine) { final String methodName = "messagingEngineDestroyed"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } /* ...
java
public RemoteListCache getCache() { RemoteRepositoryCache logCache = getLogResult()==null ? null : getLogResult().getCache(); RemoteRepositoryCache traceCache = getTraceResult()==null ? null : getTraceResult().getCache(); return switched ? new RemoteListCacheImpl(traceCache, logCache) : new RemoteListCacheImpl(lo...
java
public void setCache(RemoteListCache cache) { if (cache instanceof RemoteListCacheImpl) { RemoteListCacheImpl cacheImpl = (RemoteListCacheImpl)cache; if (getLogResult() != null) { RemoteRepositoryCache logCache = switched ? cacheImpl.getTraceCache() : cacheImpl.getLogCache(); if (logCache != null) { ...
java
protected Iterator<RepositoryLogRecord> getNewIterator(int offset, int length) { OnePidRecordListImpl logResult = getLogResult(); OnePidRecordListImpl traceResult = getTraceResult(); if (logResult == null && traceResult == null) { return EMPTY_ITERATOR; } else if (traceResult == null) { return logResult.g...
java
@Override public void processXML() throws InjectionException { @SuppressWarnings("unchecked") List<ServiceRef> serviceRefs = (List<ServiceRef>) ivNameSpaceConfig.getWebServiceRefs(); // no need to do any work if there are no service refs in the XML if (serviceRefs == null || servic...
java
@Override public void resolve(InjectionBinding<WebServiceRef> binding) throws InjectionException { // This was a JAX-WS service reference, we need to do some setup for // our object factory, and we also need to make sure we store the // metadata away in the appropriate location. We...
java
private static void checkResponseCode(URLConnection uc) throws IOException { if (uc instanceof HttpURLConnection) { HttpURLConnection httpConnection = (HttpURLConnection) uc; int rc = httpConnection.getResponseCode(); if (rc != HttpURLConnection.HTTP_OK && rc != HttpURLConnec...
java
private String getCommonRootDir(String filePath, HashMap validFilePaths) { for (Iterator it = validFilePaths.entrySet().iterator(); it.hasNext();) { Map.Entry entry = (Map.Entry) it.next(); String path = (String) ((entry).getKey()); if (filePath.startsWith(path)) ...
java
private ArrayList<String> getExtensionInstallDirs() throws IOException { String extensiondir = root + "etc/extensions/"; ArrayList<String> extensionDirs = new ArrayList<String>(); for (Entry entry : container) { if (entry.getName().startsWith(extensiondir) && entry.getName().endsWit...
java
public static void printNeededIFixes(File outputDir, List extractedFiles) { try { // To get the ifix information we run the productInfo validate command which as well as // listing the state of the runtime, also displays any ifixes that need to be reapplied. Runtime runtime =...
java
protected Set listMissingCoreFeatures(File outputDir) throws SelfExtractorFileException { Set missingFeatures = new HashSet(); // If we have a Require Feature manifest header, we need to check that the runtime we're extracting into contains the // required features. If the customer has minifie...
java
protected static boolean argIsOption(String arg, String option) { return arg.equalsIgnoreCase(option) || arg.equalsIgnoreCase('-' + option); }
java
protected static void displayCommandLineHelp(SelfExtractor extractor) { // This method takes a SelfExtractor in case we want to tailor the help to the current archive // Get the name of the JAR file to display in the command syntax"); String jarName = System.getProperty("sun.java.command", "wlp-...
java
public void handleLicenseAcceptance(LicenseProvider licenseProvider, boolean acceptLicense) { // // Display license requirement // SelfExtract.wordWrappedOut(SelfExtract.format("licenseStatement", new Object[] { licenseProvider.getProgramName(), licenseProvider.getLicenseName() })); ...
java
private static boolean obtainLicenseAgreement(LicenseProvider licenseProvider) { // Prompt for word-wrapped display of license agreement & information boolean view; SelfExtract.wordWrappedOut(SelfExtract.format("showAgreement", "--viewLicenseAgreement")); view = SelfExtract.getResponse(...
java
public String close() { if (instance == null) { return null; } try { container.close(); instance = null; } catch (IOException e) { return e.getMessage(); } return null; }
java
public void clear() { // TODO not currently used since EventImpl itself doesn't have a clear this.parentMap = null; if (null != this.values) { for (int i = 0; i < this.values.length; i++) { this.values[i] = null; } this.values = null; }...
java
public V get(String name) { V rc = null; K key = getKey(name); if (null != key) { rc = get(key); } return rc; }
java
private K getKey(String name) { if (null != this.keys) { // we have locally stored values final K[] temp = this.keys; K key; for (int i = 0; i < temp.length; i++) { key = temp[i]; if (null != key && name.equals(key.toString())) { ...
java
public V get(K key) { return get(key.hashCode() / SIZE_ROW, key.hashCode() % SIZE_ROW); }
java
public void put(K key, V value) { final int hash = key.hashCode(); final int row = hash / SIZE_ROW; final int column = hash & (SIZE_ROW - 1); // DON'T use the % operator as we // need the result to be ...
java
public V remove(K key) { final int hash = key.hashCode(); final int row = hash / SIZE_ROW; final int column = hash & (SIZE_ROW - 1); // DON'T use the % operator as we // need the result to be // n...
java
@SuppressWarnings("unchecked") private void validateKey(int index) { final int size = (index + 1); if (null == this.keys) { // nothing has been created yet this.keys = (K[]) new Object[size]; } else if (index >= this.keys.length) { // this row puts us beyo...
java
@SuppressWarnings("unchecked") private void validateTable(int targetRow) { // TODO pooling of the arrays? if (null == this.values) { // nothing has been created yet int size = (targetRow + 1); if (SIZE_TABLE > size) { size = SIZE_TABLE; ...
java
public String getRemoteEngineUuid() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRemoteEngineUuid"); String engineUUID = _anycastInputHandler.getLocalisationUuid().toString(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java