@Override public String toString() { return wrapped == null ? "" : wrapped.toString(); } }
/** {@inheritDoc} */ // Called by JMeter ListenToTest if remoteStop is true @Override public void exit() { log.info("about to exit remote server on {}", hostAndPort); try { remote.rexit(); } catch (RemoteException e) { log.warn("Could not perform remote exit: " + e.toString()); } }
/** * Returns the detail message, including the message from the nested * exception the server wants thrown */ public String getMessage() { return super.getMessage() + "; that is transporting: \n\t" + toThrow.toString(); }
@Override public void run() { try { registrar.destroy(); mainThread.interrupt(); } catch (RemoteException e) { if (logger.isLoggable(Level.SEVERE)) { logger.log(Level.SEVERE, e.toString(), e); } } } });
public NamingEnumeration list(String name) throws NamingException { try { return new CmiNames(reg.list()); } catch (AccessException e) { throw new NamingException(e.toString()); } catch (RemoteException e) { throw new NamingException(e.toString()); } }
public Object get(Object key) { try { return DUnitLauncher.getMaster().get(key); } catch (RemoteException e) { throw new TestException(e.toString(), e); } }
public boolean put(Object key, Object value) { try { return DUnitLauncher.getMaster().put(key, value); } catch (RemoteException e) { throw new TestException(e.toString(), e); } }
public int addAndGet(Object key, int delta, int defaultValue) { try { return DUnitLauncher.getMaster().addAndGet(key, delta, defaultValue); } catch (RemoteException e) { throw new TestException(e.toString(), e); } }
public boolean remove(Object key) { try { return DUnitLauncher.getMaster().remove(key); } catch (RemoteException e) { throw new TestException(e.toString(), e); } }
public Map<Object, Object> getMapCopy() { try { return DUnitLauncher.getMaster().getMapCopy(); } catch (RemoteException e) { throw new TestException(e.toString(), e); } }
public void acquireSharedLock() { try { DUnitLauncher.getMaster().acquireSharedLock(); } catch (RemoteException e) { throw new TestException(e.toString(), e); } }
public void releaseSharedLock() { try { DUnitLauncher.getMaster().releaseSharedLock(); } catch (RemoteException e) { throw new TestException(e.toString(), e); } } }
public void unbind(String name) throws NamingException { if (TraceCarol.isDebugJndiCarol()) TraceCarol.debugJndiCarol("unbind(" + name + ")"); if (name.equals("")) { throw new InvalidNameException("Cannot unbind empty name"); } try { reg.unbind(name); } catch (java.rmi.RemoteException e) { throw new NamingException(e.toString()); } catch (java.rmi.NotBoundException e) { throw new NameNotFoundException(e.toString()); } }
/** * This is the implementation of the javax.ejb.EJBHome remove method. * @exception RemoveException on error during removal */ public final void remove(Handle handle) throws RemoteException, RemoveException { container.authorizeRemoteMethod(BaseContainer.EJBHome_remove_Handle); EJBObject ejbo; try { ejbo = handle.getEJBObject(); } catch ( RemoteException ex ) { _logger.log(Level.FINE, "Exception in method remove()", ex); NoSuchObjectException nsoe = new NoSuchObjectException(ex.toString()); nsoe.initCause(ex); throw nsoe; } ejbo.remove(); }
public RMIRemoteSessionController createRemoteSessionController() { RMIRemoteSessionController controller = null; try { if (getSession().isServerSession()) { controller = new RMIRemoteSessionControllerDispatcher((((ServerSession)getSession()).acquireClientSession())); } else { controller = new RMIRemoteSessionControllerDispatcher((getSession())); } } catch (RemoteException exception) { System.out.println("Error in invocation " + exception.toString()); } return controller; }
public RMIRemoteSessionController createRemoteSessionController() { RMIRemoteSessionController controller = null; try { if (getSession().isServerSession()) { controller = new RMIRemoteSessionControllerDispatcher((((ServerSession)getSession()).acquireClientSession())); } else { controller = new RMIRemoteSessionControllerDispatcher((getSession())); } } catch (RemoteException exception) { System.out.println("Error in invocation " + exception.toString()); } return controller; }
/** * Bind the object to the specified name. * * @param name name that the object is being bound to. * @param obj object that is being bound. * @throws NamingException if there is a naming exception. */ @Override public void bind(String name, Object obj) throws NamingException { name = getRelativeName(name); if (isjavaURL(name)) { javaUrlContext.bind(name, obj); } else { try { getProvider().bind(name, obj); } catch (RemoteException ex) { throw new CommunicationException(ex.toString()); } } }
/** * Rebind the object to the specified name. * * @param name name that the object is being bound to. * @param obj object that is being bound. * @throws NamingException if there is a naming exception. */ @Override public void rebind(String name, Object obj) throws NamingException { name = getRelativeName(name); if (isjavaURL(name)) { javaUrlContext.rebind(name, obj); } else { try { getProvider().rebind(name, obj); } catch (RemoteException ex) { throw new CommunicationException(ex.toString()); } } }
/** * Bind the object to the specified name. * * @param name name that the object is being bound to. * @param obj object that is being bound. * @throws NamingException if there is a naming exception. */ @Override public void bind(String name, Object obj) throws NamingException { name = getRelativeName(name); if (isjavaURL(name)) { javaUrlContext.bind(name, obj); } else { try { getProvider().bind(name, obj); } catch (RemoteException ex) { throw new CommunicationException(ex.toString()); } } }
/** * Unbind the object with the specified name. * * @param name that is being unbound. * @throws NamingException if there is a naming exception. */ @Override public void unbind(String name) throws NamingException { name = getRelativeName(name); if (isjavaURL(name)) { javaUrlContext.unbind(name); } else { try { getProvider().unbind(name); } catch (RemoteException ex) { throw new CommunicationException(ex.toString()); } } }