Package java.rmi

Examples of java.rmi.AlreadyBoundException


        short appId = (Short)xc.getXletProperty("dvb.app.id");
       
        IxcObject ixcObj = new IxcObject(orgId, appId, name, obj);
       
        if (ixcList.contains(ixcObj))
            throw new AlreadyBoundException();
       
        ixcList.add(ixcObj);
       
        logger.info("Bound /" + Integer.toString(orgId, 16) + "/" + Integer.toString(appId, 16) + "/" + name);
    }
View Full Code Here


        return get(name);
    }

    public void bind(String name, Remote obj) throws RemoteException, AlreadyBoundException, AccessException {
        if (containsKey(name)) {
            throw new AlreadyBoundException(name);
        }

        put(name, obj);
    }
View Full Code Here

  {
    if (name == null)
      throw new NullPointerException();
   
    if (serverMap.containsKey(name))
      throw new AlreadyBoundException();
   
    try
    {
      GameServerImpl gameServer = new GameServerImpl(name, gamePlayerProvider);
      gameServer.addObserver(this)
View Full Code Here

            throw new NullPointerException(Messages.getString("rmi.5C")); //$NON-NLS-1$
        }

        if (table.containsKey(name)) {
            // rmi.5E=There is already binding to the name {0}.
            throw new AlreadyBoundException(Messages.getString("rmi.5E", name)); //$NON-NLS-1$
        }
        checkAccess("RegistryImpl.bind"); //$NON-NLS-1$
        table.put(name, obj);
    }
View Full Code Here

            throw new NullPointerException(Messages.getString("rmi.5C")); //$NON-NLS-1$
        }

        if (table.containsKey(name)) {
            // rmi.5E=There is already binding to the name {0}.
            throw new AlreadyBoundException(Messages.getString("rmi.5E", name)); //$NON-NLS-1$
        }
        checkAccess("RegistryImpl.bind"); //$NON-NLS-1$
        table.put(name, obj);
    }
View Full Code Here

    /**
     * {@link java.rmi.AlreadyBoundException#AlreadyBoundException(java.lang.String)}.
     */
    public void testAlreadyBoundExceptionString() {
        AlreadyBoundException e = new AlreadyBoundException("fixture");
        assertEquals("fixture", e.getMessage());
        assertNull(e.getCause());
    }
View Full Code Here

    /**
     * {@link java.rmi.AlreadyBoundException#AlreadyBoundException()}.
     */
    public void testAlreadyBoundException() {
        AlreadyBoundException e = new AlreadyBoundException();
        assertNull(e.getMessage());
        assertNull(e.getCause());
    }
View Full Code Here

TOP

Related Classes of java.rmi.AlreadyBoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.