code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
private static final String toUTF8String(byte[] b) {
String ns = null;
try {
ns = new String(b, "UTF8");
} catch (UnsupportedEncodingException e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Error converting to string;... | java |
private static final String toSimpleString(byte[] b) {
StringBuilder sb = new StringBuilder();
for (int i = 0, len = b.length; i < len; i++) {
sb.append((char) (b[i] & 0xff));
}
String str = sb.toString();
return str;
} | java |
private static final byte[] getSimpleBytes(String str) {
StringBuilder sb = new StringBuilder(str);
byte[] b = new byte[sb.length()];
for (int i = 0, len = sb.length(); i < len; i++) {
b[i] = (byte) sb.charAt(i);
}
return b;
} | java |
public static ProtectedFunctionMapper getInstance() {
ProtectedFunctionMapper funcMapper;
if (System.getSecurityManager() != null) {
funcMapper = (ProtectedFunctionMapper) AccessController.doPrivileged(
new PrivilegedAction() {
@Ove... | java |
@Override
public Method resolveFunction(String prefix, String localName) {
return (Method) this.fnmap.get(prefix + ":" + localName);
} | java |
public void setItemType(JMFType elem) {
if (elem == null)
throw new NullPointerException("Repeated item cannot be null");
itemType = (JSType)elem;
itemType.parent = this;
itemType.siblingPosition = 0;
} | java |
protected void incrementActiveConns() {
int count = this.activeConnections.incrementAndGet();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Increment active, current=" + count);
}
} | java |
protected void decrementActiveConns() {
int count = this.activeConnections.decrementAndGet();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Decrement active, current=" + count);
}
if (0 == count && this.quiescing) {
signalNoConne... | java |
@Trivial
public void enactOpen(long openAt) {
String methodName = "enactOpen";
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled() ) {
Tr.debug(tc, methodName + " On [ " + path + " ] at [ " + toRelSec(initialAt, openAt) + " (s) ]");
}
if ( zipFileState == Zip... | java |
@Trivial
protected ZipFile reacquireZipFile() throws IOException, ZipException {
String methodName = "reacquireZipFile";
File rawZipFile = new File(path);
long newZipLength = FileUtils.fileLength(rawZipFile);
long newZipLastModified = FileUtils.fileLastModified(rawZipFile);
... | java |
public static String getAttribute(XMLStreamReader reader, String localName) {
int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
String name = reader.getAttributeLocalName(i);
if (localName.equals(name)) {
return reader.getAttributeValue(i);... | java |
public static <T> T createInstanceByElement(XMLStreamReader reader, Class<T> clazz, Set<String> attrNames) {
if (reader == null || clazz == null || attrNames == null)
return null;
try {
T instance = clazz.newInstance();
int count = reader.getAttributeCount();
... | java |
public void removeEjbBindings()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeEjbBindings called");
// Just loop through the values, not the keys, as the simple-binding-name
// key may have a # in front of it when the bean was not simple,... | java |
public boolean isUniqueShortDefaultBinding(String interfaceName)
{
// If there were no explicit bindings, and only one implicit
// binding, then it is considered uniquie. d457053.1
BindingData bdata = ivServerContextBindingMap.get(interfaceName);
if (bdata != n... | java |
public void removeShortDefaultBindings()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeShortDefaultBindings called");
for (String bindingName : ivEjbContextShortDefaultJndiNames)
{
removeFromServerContextBindingMap(bindingName... | java |
private void addToServerContextBindingMap(String interfaceName,
String bindingName)
throws NameAlreadyBoundException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "addToServerContextBindingMap : "... | java |
public static BindingsHelper getLocalHelper(HomeRecord homeRecord)
{
if (homeRecord.ivLocalBindingsHelper == null)
{
homeRecord.ivLocalBindingsHelper =
new BindingsHelper(homeRecord,
cvAllLocalBindings,
... | java |
public static BindingsHelper getRemoteHelper(HomeRecord homeRecord)
{
if (homeRecord.ivRemoteBindingsHelper == null)
{
homeRecord.ivRemoteBindingsHelper =
new BindingsHelper(homeRecord,
cvAllRemoteBindings,
... | java |
public synchronized void stop() {
if (timer != null) {
timer.keepRunning = false;
timer.interrupt();
timer = null;
}
// Remove this manager from the space alert list
LogRepositorySpaceAlert.getInstance().removeRepositoryInfo(this);
} | java |
protected static long calculateFileSplit(long repositorySize) {
if (repositorySize <= 0) {
return MAX_LOG_FILE_SIZE;
}
if (repositorySize < MIN_REPOSITORY_SIZE) {
throw new IllegalArgumentException("Specified repository size is too small");
}
long result = repositorySize / SPLIT_RATIO;
if (resul... | java |
private void initFileList(boolean force) {
if (totalSize < 0 || force) {
fileList.clear();
parentFilesMap.clear();
totalSize = 0L;
File[] files = listRepositoryFiles();
if (files.length > 0) {
Arrays.sort(files, fileComparator);
for (File file: files) {
long size = AccessHelper.getFileLeng... | java |
protected void deleteEmptyRepositoryDirs() {
File[] directories = listRepositoryDirs();
//determine if the server/controller instance directory is empty
for(int i = 0; i < directories.length; i++){
// This is a directory we should not delete
boolean currentDir = ivSubDirectory != null && ivSubDirectory.c... | java |
protected void deleteDirectory(File directoryName){
if (debugLogger.isLoggable(Level.FINE) && isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "deleteDirectory", "empty directory "+((directoryName == null) ? "None":
directoryName.getPath()));
}
if (AccessHelper.deleteFile(directoryName)) { //... | java |
private boolean purgeOldFiles(long total) {
boolean result = false;
// Should delete some files.
if (debugLogger.isLoggable(Level.FINE) && LogRepositoryBaseImpl.isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "purgeOldFiles", "total: "+total+" listSz: "+fileList.size());
}
while(total > 0 && fi... | java |
private FileDetails purgeOldestFile() {
debugListLL("prepurgeOldestFile") ;
debugListHM("prepurgeOldestFile") ;
FileDetails returnFD = getOldestInactive() ;
if (debugLogger.isLoggable(Level.FINE) && LogRepositoryBaseImpl.isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "purgeOldestFile", "oldestI... | java |
public synchronized String addNewFileFromSubProcess(long spTimeStamp, String spPid, String spLabel) {
// TODO: It is theoretically possible that subProcess already created one of these (although it won't happen in our scenario.
// Consider either pulling actual pid from the files on initFileList or looking for the ... | java |
public void inactivateSubProcess(String spPid) {
synchronized (fileList) { // always lock fileList first to avoid deadlock
synchronized(activeFilesMap) { // Right into sync block because 99% case is that map contains pid
activeFilesMap.remove(spPid) ;
}
}
if (debugLogger.isLoggable(Level.FINE) && LogR... | java |
protected int getContentLength(boolean update) {
if (update){
contentLength = (int) this.getFileSize(update);
return contentLength;
} else {
if (contentLength==-1){
contentLength = (int) this.getFileSize(update);
retur... | java |
public void logError(String moduleName, String beanName, String methodName)
{
Tr.error(tc, ivError.getMessageId(), new Object[] { beanName, moduleName, methodName, ivField });
} | java |
protected void restore(ObjectInputStream ois, int dataVersion) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "restore", new Object[] { dataVersion});
checkPersistentVersionId(dataVersion);
if (TraceComponent.isAnyTracingEnabl... | java |
synchronized void captureCheckpointManagedObjects()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"captureCheckpointManagedObjectsremove"
);
// Now that we are synchron... | java |
private void write(ManagedObject managedObject)
throws ObjectManagerException
{
final String methodName = "write";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName,
... | java |
public void writeHeader()
throws ObjectManagerException
{
final String methodName = "writeHeader";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
try {
... | java |
public static RestRepositoryConnection createConnection(RestRepositoryConnectionProxy proxy) throws RepositoryBackendIOException {
readRepoProperties(proxy);
RestRepositoryConnection connection = new RestRepositoryConnection(repoProperties.getProperty(REPOSITORY_URL_PROP).trim());
connection.se... | java |
public static boolean repositoryDescriptionFileExists(RestRepositoryConnectionProxy proxy) {
boolean exists = false;
try {
URL propertiesFileURL = getPropertiesFileLocation();
// Are we accessing the properties file (from DHE) using a proxy ?
if (proxy != null) {
... | java |
private static void checkHttpResponseCodeValid(URLConnection connection) throws RepositoryHttpException, IOException {
// if HTTP URL not File URL
if (connection instanceof HttpURLConnection) {
HttpURLConnection conn = (HttpURLConnection) connection;
conn.setRequestMethod("GET");... | java |
public static boolean isZos() {
String os = AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
return System.getProperty("os.name");
}
});
return os != null && (os.equalsIgnoreCase("OS/390") || os.e... | java |
private InputStream safeOpen(String file) {
URL url = bundle.getEntry(file);
if (url != null) {
try {
return url.openStream();
} catch (IOException e) {
// if we get an IOException just return null for default page.
}
}
return null;
} | java |
public static String parseTempPrefix(String destinationName)
{
//Temporary dests are of the form _Q/_T<Prefix>_<MEId><TempdestId>
String prefix = null;
if (destinationName != null
&& (destinationName
.startsWith(SIMPConstants.TEMPORARY_PUBSUB_DESTINATION_PREFIX))
|| destinationName.sta... | java |
public static void setGuaranteedDeliveryProperties(ControlMessage msg,
SIBUuid8 sourceMEUuid,
SIBUuid8 targetMEUuid,
SIBUuid12 streamId,
... | java |
@Override
// Don't log this call: Rely on 'intern(String, boolean)' to log the intern call and result.
@Trivial
public String intern(String value) {
return intern(value, Util_InternMap.DO_FORCE);
} | java |
public boolean isChanged() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isChanged");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "isChanged", changed);
return changed;
} | java |
public void setUnChanged() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setUnChanged");
changed = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setUnChanged");
} | java |
public void setChanged() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setChanged");
changed = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setChanged");
} | java |
public Object put(String key, Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", new Object[]{key, PasswordUtils.replaceValueIfKeyIsPassword(key,value)});
// If the value is null (which is allowed for a Map Message) we can't tell
// quickly whether... | java |
public void addWebServiceFeatureInfo(String seiName, WebServiceFeatureInfo featureInfo) {
PortComponentRefInfo portComponentRefInfo = seiNamePortComponentRefInfoMap.get(seiName);
if (portComponentRefInfo == null) {
portComponentRefInfo = new PortComponentRefInfo(seiName);
seiName... | java |
@Trivial
final String getName() {
Map<String, String> execProps = getExecutionProperties();
String taskName = execProps == null ? null : execProps.get(ManagedTask.IDENTITY_NAME);
return taskName == null ? task.toString() : taskName;
} | java |
public static WASConfiguration getDefaultWasConfiguration() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getDefaultWasConfiguration()");
WASConfiguration config = new WASConfiguration();
if (TraceComponent.isAnyTracingEnabl... | java |
public void performRecovery(ObjectManagerState objectManagerState)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"performRecovery",
... | java |
public void initialize(CacheConfig cc) {
if (tc.isEntryEnabled())
Tr.entry(tc, "initialize");
cacheConfig = cc;
if (null != cc){
try {
if (tc.isDebugEnabled())
Tr.debug(tc, "Initializing CacheUnit " + uniqueServerNameFQ);
nullRemoteSe... | java |
public void batchUpdate(String cacheName, HashMap invalidateIdEvents, HashMap invalidateTemplateEvents, ArrayList pushEntryEvents) {
if (tc.isEntryEnabled())
Tr.entry(tc, "batchUpdate():"+cacheName);
invalidationAuditDaemon.registerInvalidations(cacheName, invalidateIdEvents.values().iterat... | java |
public CacheEntry getEntry(String cacheName, Object id, boolean ignoreCounting ) {
if (tc.isEntryEnabled())
Tr.entry(tc, "getEntry: {0}", id);
DCache cache = ServerCache.getCache(cacheName);
CacheEntry cacheEntry = null;
if ( cache != null ) {
cacheEntry = (Cac... | java |
public void setEntry(String cacheName, CacheEntry cacheEntry) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setEntry: {0}", cacheEntry.id);
cacheEntry = invalidationAuditDaemon.filterEntry(cacheName, cacheEntry);
if (cacheEntry != null) {
DCache cache = ServerCache.getCache(ca... | java |
public void setExternalCacheFragment(ExternalInvalidation externalCacheFragment) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setExternalCacheFragment: {0}", externalCacheFragment.getUri());
externalCacheFragment = invalidationAuditDaemon.filterExternalCacheFragment(ServerCache.cache.getCacheNam... | java |
public void startServices(boolean startTLD) {
synchronized (this.serviceMonitor) { //multiple threads can call this concurrently
if (this.batchUpdateDaemon == null) {
//----------------------------------------------
// Initialize BatchUpdateDaemon object
//------------------... | java |
public void addAlias(String cacheName, Object id, Object[] aliasArray) {
if (id != null && aliasArray != null) {
DCache cache = ServerCache.getCache(cacheName);
if (cache != null) {
try {
cache.addAlias(id, aliasArray, false, false);
} ... | java |
public void removeAlias(String cacheName, Object alias) {
if (alias != null) {
DCache cache = ServerCache.getCache(cacheName);
if (cache != null) {
try {
cache.removeAlias(alias, false, false);
} catch (IllegalArgumentException e) {
... | java |
public CommandCache getCommandCache(String cacheName) throws DynamicCacheServiceNotStarted, IllegalStateException {
if (servletCacheUnit == null) {
throw new DynamicCacheServiceNotStarted("Servlet cache service has not been started.");
}
return servletCacheUnit.getCommandCache(cacheName);
} | java |
public JSPCache getJSPCache(String cacheName) throws DynamicCacheServiceNotStarted, IllegalStateException {
if (servletCacheUnit == null) {
throw new DynamicCacheServiceNotStarted("Servlet cache service has not been started.");
}
return servletCacheUnit.getJSPCache(cacheName);
} | java |
public Object createObjectCache(String cacheName) throws DynamicCacheServiceNotStarted, IllegalStateException {
if (objectCacheUnit == null) {
throw new DynamicCacheServiceNotStarted("Object cache service has not been started.");
}
return objectCacheUnit.createObjectCache(cacheName);
} | java |
public EventSource createEventSource(boolean createAsyncEventSource, String cacheName) throws DynamicCacheServiceNotStarted {
if (objectCacheUnit == null) {
throw new DynamicCacheServiceNotStarted("Object cache service has not been started.");
}
return objectCacheUnit.createEventSource(createAsync... | java |
public DERObject toASN1Object()
{
ASN1EncodableVector dev = new ASN1EncodableVector();
dev.add(policyQualifierId);
dev.add(qualifier);
return new DERSequence(dev);
} | java |
public void sendAckExpectedMessage(long ackExpStamp,
int priority,
Reliability reliability,
SIBUuid12 stream) // not used for ptp
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() ... | java |
public void sendSilenceMessage(
long startStamp,
long endStamp,
long completedPrefix,
boolean requestedOnly,
int priority,
Reliability reliability,
SIBUuid12 stream)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.ent... | java |
protected void handleRollback(LocalTransaction transaction)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "handleRollback", transaction);
// Roll back the transaction if we created it.
if (transaction != null)
{
try
{
transaction.rollback... | java |
public void updateTargetCellule(SIBUuid8 targetMEUuid) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "updateTargetCellule", targetMEUuid);
this.targetMEUuid = targetMEUuid;
sourceStreamManager.updateTargetCellule(targetMEUui... | java |
public void updateRoutingCellule( SIBUuid8 routingME )
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "updateRoutingCellule", routingME);
this.routingMEUuid = routingME;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr... | java |
public void enqueueWork(AsyncUpdate unit) throws ClosedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "enqueueWork", unit);
synchronized (this)
{
if (closed)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java |
private void startExecutingUpdates() throws ClosedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "startExecutingUpdates");
// swap the enqueuedUnits and executingUnits.
ArrayList temp = executingUnits;
executingUnits = enqueuedUnits;
enqueuedUni... | java |
public void alarm(Object thandle)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "alarm", new Object[] {this, mp.getMessagingEngineUuid()});
synchronized (this)
{
if (!closed)
{
if ((executeSinceExpiry) || executing)
{ // has committed... | java |
public void waitTillAllUpdatesExecuted() throws InterruptedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "waitTillAllUpdatesExecuted");
synchronized (this)
{
while (enqueuedUnits.size() > 0 || executing)
{
try
{
thi... | java |
public Throwable getRootCause() {
Throwable root = getError();
while(true) {
if(root instanceof ServletException) {
ServletException se = (ServletException)_error;
Throwable seRoot = se.getRootCause();
if(seRoot == null) {
r... | java |
protected void activate(ComponentContext context) {
securityServiceRef.activate(context);
unauthSubjectServiceRef.activate(context);
authServiceRef.activate(context);
credServiceRef.activate(context);
} | java |
protected void initialise(String logFileName,
int logFileType,
java.util.Map objectStoreLocations,
ObjectManagerEventCallback[] callbacks)
throws ObjectManagerException {
final String methodName = "init... | java |
protected ObjectManagerState createObjectManagerState(String logFileName,
int logFileType,
java.util.Map objectStoreLocations,
ObjectManagerEventC... | java |
public final boolean warmStarted()
{
final String methodName = "warmStarted";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
boolean isWarmStarted = false;
if (objectMana... | java |
public final void shutdown()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "shutdown"
);
objectManagerState.shutdown();
if (Tracing.... | java |
public final void shutdownFast()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "shutdownFast"
);
if (!testInterfaces) {
if (Traci... | java |
public final void waitForCheckpoint()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "waitForCheckpoint"
);
if (!testInterfaces) {
... | java |
public final Transaction getTransaction()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getTransaction"
);
// If the log is full introduce a ... | java |
public final Transaction getTransactionByXID(byte[] XID)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getTransactionByXID"
, "XIDe=" + XID + "(byte[]"
... | java |
public final java.util.Iterator getTransactionIterator()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getTransactionIterator"
);
java.util.I... | java |
public final ObjectStore getObjectStore(String objectStoreName)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getObjectStore"
, "objectStoreName=" + obje... | java |
public final java.util.Iterator getObjectStoreIterator()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getObjectStoreIterator"
);
java.util.I... | java |
public final Token getNamedObject(String name
, Transaction transaction)
throws ObjectManagerException
{
final String methodName = "getNamedObject";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cc... | java |
public final Token removeNamedObject(String name
, Transaction transaction)
throws ObjectManagerException {
final String methodName = "removeNamedObject";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(thi... | java |
public final void setTransactionsPerCheckpoint(long persistentTransactionsPerCheckpoint
, long nonPersistentTransactionsPerCheckpoint
, Transaction transaction)
throws ObjectManagerException
{
... | java |
public final void setMaximumActiveTransactions(int maximumActiveTransactions
, Transaction transaction)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
... | java |
public java.util.Map captureStatistics(String name
)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"captureStatistics",... | java |
public void registerEventCallback(ObjectManagerEventCallback callback)
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, "registerEventCallback", callback);
objectManagerState.registerEventCallback(callback);
if (Tracing.isAnyTracingEnable... | java |
public String getLogProviderDefinition(BootstrapConfig bootProps) {
String logProvider = bootProps.get(BOOTPROP_LOG_PROVIDER);
if (logProvider == null)
logProvider = defaults.getProperty(MANIFEST_LOG_PROVIDER);
if (logProvider != null)
bootProps.put(BOOTPROP_LOG_PROVIDE... | java |
public String getOSExtensionDefinition(BootstrapConfig bootProps) {
String osExtension = bootProps.get(BOOTPROP_OS_EXTENSIONS);
if (osExtension == null) {
String normalizedName = getNormalizedOperatingSystemName(bootProps.get("os.name"));
osExtension = defaults.getProperty(MANIF... | java |
private TypeContainer getProperty(String propName) {
TypeContainer container = cache.get(propName);
if (container == null) {
container = new TypeContainer(propName, config, version);
TypeContainer existing = cache.putIfAbsent(propName, container);
if (existing != null... | java |
private void publishStartedEvent() {
BatchEventsPublisher publisher = getBatchEventsPublisher();
if (publisher != null) {
publisher.publishSplitFlowEvent(getSplitName(),
getFlowName(),
getTopLevelInstanc... | java |
private void publishEndedEvent() {
BatchEventsPublisher publisher = getBatchEventsPublisher();
if (publisher != null) {
publisher.publishSplitFlowEvent(getSplitName(),
getFlowName(),
getTopLevelInstanceI... | java |
public void setHeaders(Map<String, String> map) {
headers = new MetadataMap<String, String>();
for (Map.Entry<String, String> entry : map.entrySet()) {
String[] values = entry.getValue().split(",");
for (String v : values) {
if (v.length() != 0) {
... | java |
public WebClient createWebClient() {
String serviceAddress = getAddress();
int queryIndex = serviceAddress != null ? serviceAddress.lastIndexOf('?') : -1;
if (queryIndex != -1) {
serviceAddress = serviceAddress.substring(0, queryIndex);
}
Service service = new JAXRSSe... | java |
public <T> T create(Class<T> cls, Object... varValues) {
return cls.cast(createWithValues(varValues));
} | java |
public static final Object deserialize(byte[] bytes) throws Exception {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(tc, "deserialize");
Object o;
try {
ByteArrayInputStream bis = new ByteArrayInputStream(... | java |
public static final String getMessage(String key, Object... args) {
return NLS.getFormattedMessage(key, args, key);
} | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.