Examples of UnknownEventException


Examples of net.jini.core.event.UnknownEventException

            }
            loaderLogger.info("Instantiating {}", ServiceLogUtil.logName(event));

            if(event.getID()!=ServiceProvisionEvent.ID) {
                logger.warn("Unknown event type [{}], ID={}", event.getClass().getName(), event.getID());
                throw new UnknownEventException("Unknown event type ["+event.getID()+"]");
            }

            /* Verify that the Cybernode does not instantiate a service past
             * it's specified max per machine or planned value
             *
 
View Full Code Here

Examples of net.jini.core.event.UnknownEventException

    public void notify(RemoteEvent theEvent)
        throws UnknownEventException, RemoteException {
        if(theEvent == null)
            throw new IllegalArgumentException("event is null");
        if(!(theEvent instanceof SLAThresholdEvent)) {
            throw new UnknownEventException("Not a SLAThresholdEvent "+
                                            "["+
                                            theEvent.getClass().getName()+
                                            "]");
        }
        buildAndSend((SLAThresholdEvent)theEvent);
View Full Code Here

Examples of net.jini.core.event.UnknownEventException

     * @throws UnknownEventException If the RemoteEvent cannot be downcast to a
     * RemoteServiceEvent
     */
    public void notify(final RemoteEvent rEvent)throws UnknownEventException {
        if(!(rEvent instanceof RemoteServiceEvent))
            throw new UnknownEventException("Unsupported event class");
        RemoteServiceEvent rsEvent = (RemoteServiceEvent)rEvent;
        service.submit(new ClientNotification(rsEvent));
    }
View Full Code Here

Examples of net.jini.core.event.UnknownEventException

    throws LeaseDeniedException, UnknownEventException, RemoteException {

        if(descriptor == null)
            throw new IllegalArgumentException("descriptor is null");
        if(descriptor.eventID == null)
            throw new UnknownEventException("Event ID is null");
        EventHandler eHandler = eventTable.get(descriptor.eventID);
        if(eHandler == null)
            throw new UnknownEventException("Unknown event ID "+descriptor.eventID);

        /* Prepare the RemoteEventListener */
        RemoteEventListener preparedListener = (RemoteEventListener)listenerPreparer.prepareProxy(listener);
        if(logger.isDebugEnabled())
            logger.debug("Register listener {} for Event {}", preparedListener.toString(), descriptor.toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.