protected Object lookupLinkNative(final Name name) throws NamingException { Name realName = getRealName(name); if (realName.isEmpty()) { return new RemoteContext(provider, scheme, getEnvironment()); } ProviderEnvironment environment = provider.getProviderEnvironment(); final RetryContext context = canRetry(environment) ? new RetryContext() : null; return performWithRetry((context_, name_, ignored) -> { final ConnectionPeerIdentity peerIdentity = provider.getPeerIdentityForNamingUsingRetry(context_); return getRemoteTransport(peerIdentity).lookup(this, name_, peerIdentity, true); }, environment, context, realName, null); }
URI location = context.currentDestination(); Messages.log.tracef(t, "Communication error while contacting %s", location); updateBlackList(environment, context, t); context.addFailure(injectDestination(t, location)); } catch (NamingException e) { Messages.log.tracef(t, "Unexpected throwable while contacting %s", location); context.addTransientFail(location); context.addFailure(injectDestination(t, location));
final String relName = unmarshaller.readUTF(); prefix.add(relName); final RelativeFederatingContext context = new RelativeFederatingContext(new FastHashtable<String, Object>(remoteContext.getEnvironment()), remoteContext, prefix); results.add(new Binding(relName, context, true)); } else if (b == Protocol.P_BINDING) {
public Context createRootContext(final NamingProvider namingProvider, final String nameScheme, final FastHashtable<String, Object> env, final ProviderEnvironment providerEnvironment) throws NamingException { // [WNFC-22] treat the java scheme as null return new RemoteContext((RemoteNamingProvider) namingProvider, "java".equals(nameScheme) ? null : nameScheme, env); } }
URI location = context.currentDestination(); Messages.log.tracef(t, "Communication error while contacting %s", location); updateBlackList(environment, context, t); context.addFailure(injectDestination(t, location)); } catch (NamingException e) { Messages.log.tracef(t, "Unexpected throwable while contacting %s", location); context.addTransientFail(location); context.addFailure(injectDestination(t, location));
final int parameterType = is.readUnsignedByte(); if (parameterType == Protocol.P_CONTEXT) { return new RelativeFederatingContext(new FastHashtable<>(context.getEnvironment()), context, NamingUtils.toCompositeName(name)); } else if (parameterType == Protocol.P_OBJECT) { try (Unmarshaller unmarshaller = createUnmarshaller(is, configuration)) {
public Context createRootContext(final NamingProvider namingProvider, final String nameScheme, final FastHashtable<String, Object> env, final ProviderEnvironment providerEnvironment) throws NamingException { // [WNFC-22] treat the java scheme as null return new RemoteContext((RemoteNamingProvider) namingProvider, "java".equals(nameScheme) ? null : nameScheme, env); } }
protected void renameNative(final Name oldName, final Name newName) throws NamingException { Name realOldName = getRealName(oldName); Name realNewName = getRealName(newName); ProviderEnvironment environment = provider.getProviderEnvironment(); final RetryContext context = canRetry(environment) ? new RetryContext() : null; performWithRetry((context_, oldName_, newName_) -> { final ConnectionPeerIdentity peerIdentity = provider.getPeerIdentityForNamingUsingRetry(context_); getRemoteTransport(peerIdentity).rename(oldName_, newName_, peerIdentity); return null; }, environment, context, realOldName, realNewName); }
URI location = context.currentDestination(); Messages.log.tracef(t, "Communication error while contacting %s", location); updateBlackList(environment, context, t); context.addFailure(injectDestination(t, location)); } catch (NamingException e) { Messages.log.tracef(t, "Unexpected throwable while contacting %s", location); context.addTransientFail(location); context.addFailure(injectDestination(t, location));
final String relName = unmarshaller.readUTF(); prefix.add(relName); final RelativeFederatingContext context = new RelativeFederatingContext(new FastHashtable<String, Object>(remoteContext.getEnvironment()), remoteContext, prefix); results.add(new Binding(relName, context, true)); } else if (b == Protocol.P_BINDING) {
public Context createRootContext(final NamingProvider namingProvider, final String nameScheme, final FastHashtable<String, Object> env, final ProviderEnvironment providerEnvironment) throws NamingException { // [WNFC-22] treat the java scheme as null return new RemoteContext((RemoteNamingProvider) namingProvider, "java".equals(nameScheme) ? null : nameScheme, env); } }
protected Object lookupNative(final Name name) throws NamingException { Name realName = getRealName(name); if (realName.isEmpty()) { return new RemoteContext(provider, scheme, getEnvironment()); } ProviderEnvironment environment = provider.getProviderEnvironment(); final RetryContext context = canRetry(environment) ? new RetryContext() : null; return performWithRetry((context_, name_, ignored) -> { final ConnectionPeerIdentity peerIdentity = provider.getPeerIdentityForNamingUsingRetry(context_); return getRemoteTransport(peerIdentity).lookup(this, name_, peerIdentity, false); }, environment, context, realName, null); }
final String relName = unmarshaller.readUTF(); prefix.add(relName); final RelativeFederatingContext context = new RelativeFederatingContext(new FastHashtable<String, Object>(remoteContext.getEnvironment()), remoteContext, prefix); results.add(new Binding(relName, context, true)); } else if (b == Protocol.P_BINDING) {
protected void unbindNative(final Name name) throws NamingException { Name realName = getRealName(name); ProviderEnvironment environment = provider.getProviderEnvironment(); final RetryContext context = canRetry(environment) ? new RetryContext() : null; performWithRetry((context_, name_, ignored) -> { final ConnectionPeerIdentity peerIdentity = provider.getPeerIdentityForNamingUsingRetry(context_); getRemoteTransport(peerIdentity).unbind(name_, peerIdentity); return null; }, environment, context, realName, null); }
final int parameterType = is.readUnsignedByte(); if (parameterType == Protocol.P_CONTEXT) { return new RelativeFederatingContext(new FastHashtable<>(context.getEnvironment()), context, NamingUtils.toCompositeName(name)); } else if (parameterType == Protocol.P_OBJECT) { try (Unmarshaller unmarshaller = createUnmarshaller(is, configuration)) {
protected CloseableNamingEnumeration<NameClassPair> listNative(final Name name) throws NamingException { Name realName = getRealName(name); ProviderEnvironment environment = provider.getProviderEnvironment(); final RetryContext context = canRetry(environment) ? new RetryContext() : null; return performWithRetry((context_, name_, ignored) -> { final ConnectionPeerIdentity peerIdentity = provider.getPeerIdentityForNamingUsingRetry(context_); return getRemoteTransport(peerIdentity).list(name_, peerIdentity); }, environment, context, realName, null); }
final int parameterType = is.readUnsignedByte(); if (parameterType == Protocol.P_CONTEXT) { return new RelativeFederatingContext(new FastHashtable<>(context.getEnvironment()), context, NamingUtils.toCompositeName(name)); } else if (parameterType == Protocol.P_OBJECT) { try (Unmarshaller unmarshaller = createUnmarshaller(is, configuration)) {
protected void bindNative(final Name name, final Object obj) throws NamingException { Name realName = getRealName(name); ProviderEnvironment environment = provider.getProviderEnvironment(); final RetryContext context = canRetry(environment) ? new RetryContext() : null; performWithRetry((context_, name_, obj_) -> { final ConnectionPeerIdentity peerIdentity = provider.getPeerIdentityForNamingUsingRetry(context_); getRemoteTransport(peerIdentity).bind(name_, obj_, peerIdentity, false); return null; }, environment, context, realName, obj); }
protected CloseableNamingEnumeration<Binding> listBindingsNative(final Name name) throws NamingException { Name realName = getRealName(name); ProviderEnvironment environment = provider.getProviderEnvironment(); final RetryContext context = canRetry(environment) ? new RetryContext() : null; return performWithRetry((context_, name_, ignored) -> { final ConnectionPeerIdentity peerIdentity = provider.getPeerIdentityForNamingUsingRetry(context_); return getRemoteTransport(peerIdentity).listBindings(name_, this, peerIdentity); }, environment, context, realName, null); }
protected void destroySubcontextNative(final Name name) throws NamingException { Name realName = getRealName(name); ProviderEnvironment environment = provider.getProviderEnvironment(); final RetryContext context = canRetry(environment) ? new RetryContext() : null; performWithRetry((context_, name_, ignored) -> { final ConnectionPeerIdentity peerIdentity = provider.getPeerIdentityForNamingUsingRetry(context_); getRemoteTransport(peerIdentity).destroySubcontext(name_, peerIdentity); return null; }, environment, context, realName, null); }