/** * Casts the <code>Service</code> into <code>RemotingService</code> * and calls super.setService. * * @param service the <code>RemotingService</code> to associate with this destination. */ public void setService(Service service) { RemotingService remotingService = (RemotingService)service; super.setService(remotingService); setMethodMatcher(remotingService.getMethodMatcher()); }
/** * * {@inheritDoc} */ @Override protected void destroyDestination(String destinationId, MessageBroker broker) { RemotingService remotingService = (RemotingService) broker.getServiceByType(RemotingService.class.getName()); if (remotingService == null) { return; } if (log.isInfoEnabled()) { log.info("Removing remoting destination '" + destinationId + "'"); } remotingService.removeDestination(destinationId); }
/** * Invoked automatically to allow the <code>RemotingService</code> to setup its corresponding * MBean control. * * @param broker The <code>MessageBroker</code> that manages this <code>RemotingService</code>. */ protected void setupServiceControl(MessageBroker broker) { controller = new RemotingServiceControl(this, broker.getControl()); controller.register(); setControl(controller); } }
return (RemotingDestination) rs.getDestination(destinationName);
/** * Creates a <code>RemotingDestination</code> instance, sets its id, sets it manageable * if the <code>AbstractService</code> that created it is manageable, * and sets its <code>Service</code> to the <code>AbstractService</code> that * created it. * * @param id The id of the <code>RemotingDestination</code>. * @return The <code>Destination</code> instanced created. */ public Destination createDestination(String id) { RemotingDestination destination = new RemotingDestination(); destination.setId(id); destination.setManaged(isManaged()); destination.setService(this); return destination; }
RemotingDestination destination = (RemotingDestination) remotingService.createDestination(destinationId);
return (RemotingDestination) rs.getDestination(destinationName);
/** * Creates a <code>RemotingDestination</code> instance, sets its id, sets it manageable * if the <code>AbstractService</code> that created it is manageable, * and sets its <code>Service</code> to the <code>AbstractService</code> that * created it. * * @param id The id of the <code>RemotingDestination</code>. * @return The <code>Destination</code> instanced created. */ public Destination createDestination(String id) { RemotingDestination destination = new RemotingDestination(); destination.setId(id); destination.setManaged(isManaged()); destination.setService(this); return destination; }
RemotingDestination destination = (RemotingDestination)getDestination(msg);
/** * Invoked automatically to allow the <code>RemotingService</code> to setup its corresponding * MBean control. * * @param broker The <code>MessageBroker</code> that manages this <code>RemotingService</code>. */ protected void setupServiceControl(MessageBroker broker) { controller = new RemotingServiceControl(this, broker.getControl()); controller.register(); setControl(controller); } }
/** * Casts the <code>Service</code> into <code>RemotingService</code> * and calls super.setService. * * @param service the <code>RemotingService</code> to associate with this destination. */ public void setService(Service service) { RemotingService remotingService = (RemotingService)service; super.setService(remotingService); setMethodMatcher(remotingService.getMethodMatcher()); }
RemotingDestination destination = (RemotingDestination)getDestination(msg);