/** * @exclude */ public Object serviceCommand(CommandMessage message) { incrementMessageCount(true, message); Object commandResult = super.serviceCommonCommands(message); if (commandResult == null) { commandResult = manageSubscriptions(message); } return commandResult; }
/** * */ public Object serviceMessage(Message message, boolean throttle) { return serviceMessage(message, throttle, null); }
/** * Returns the <code>Destination</code> of the <code>ServiceAdapter</code>. * * @return The <code>Destination</code> of the <code>ServiceAdapter</code>. */ public Destination getDestination() { return (Destination)getParent(); }
private ServiceException createServiceException(String message) { ServiceException ex = new ServiceException(); ex.setMessage(message); return ex; }
/** * Casts the <code>Destination</code> into <code>MessageDestination</code> * and calls super.addDestination. * * @param destination The <code>Destination</code> instance to be added. */ public void addDestination(Destination destination) { MessageDestination messageDestination = (MessageDestination)destination; super.addDestination(messageDestination); }
/** * Casts the <code>Destination</code> into <code>HTTPProxyDestination</code> * and calls super.setDestination. * @param destination The HTTP proxy destination. */ public void setDestination(Destination destination) { Destination dest = (HTTPProxyDestination) destination; super.setDestination(dest); }
public String getId() { return serviceAdapter.getId(); }
/** * Returns the <code>MessageBroker</code> of the <code>AbstractService</code>. * * @return MessageBroker of the <code>AbstractService</code>. */ public MessageBroker getMessageBroker() { return (MessageBroker)getParent(); }
/** * */ public AuthenticationService(boolean enableManagement) { // this service can never be managed super(false); super.setId(ID); }
/** * Managed subclasses should override this method to setup and * register their corresponding MBean control. * * @param destination The associated <code>Destination</code> for the adapter. */ protected void setupAdapterControl(Destination destination) { setManaged(false); }
/** * Casts the <code>Destination</code> into <code>HTTPProxyDestination</code> * and calls super.addDestination. * * @param destination The <code>Destination</code> instance to be added. */ public void addDestination(Destination destination) { HTTPProxyDestination proxyDestination = (HTTPProxyDestination)destination; super.addDestination(proxyDestination); }
/** * */ @Override public Object serviceCommand(CommandMessage message) { if (managed) incrementMessageCount(true, message); Object commandResult = super.serviceCommonCommands(message); if (commandResult == null) commandResult = manageSubscriptions(message); return commandResult; }
/** * Casts the <code>Destination</code> into <code>RemotingDestination</code> * and calls super.setDestination. * * @param destination remoting destination to associate with this adapter */ @Override public void setDestination(Destination destination) { Destination dest = (RemotingDestination)destination; super.setDestination(dest); }
@Override public Object serviceMessage(Message message) { return serviceMessage(message, true); }
/** * Returns the <code>Destination</code> of the <code>ServiceAdapter</code>. * * @return The <code>Destination</code> of the <code>ServiceAdapter</code>. */ public Destination getDestination() { return (Destination)getParent(); }
/** * Returns the <code>MessageBroker</code> of the <code>AbstractService</code>. * * @return MessageBroker of the <code>AbstractService</code>. */ public MessageBroker getMessageBroker() { return (MessageBroker)getParent(); }
/** * Casts the <code>Destination</code> into <code>RemotingDestination</code> * and calls super.addDestination. * * @param destination The <code>Destination</code> instance to be added. */ public void addDestination(Destination destination) { RemotingDestination remotingDest = (RemotingDestination)destination; super.addDestination(remotingDest); }
/** * */ @Override public Object serviceCommand(CommandMessage message) { if (managed) incrementMessageCount(true, message); Object commandResult = super.serviceCommonCommands(message); if (commandResult == null) commandResult = manageSubscriptions(message); return commandResult; }
/** * Casts the <code>Destination</code> into <code>MessageDestination</code> * and calls super.addDestination. * * @param destination The <code>Destination</code> instance to be added. */ @Override public void addDestination(Destination destination) { MessageDestination messageDestination = (MessageDestination)destination; super.addDestination(messageDestination); }
/** * Casts the <code>Destination</code> into <code>RemotingDestination</code> * and calls super.addDestination. * * @param destination The <code>Destination</code> instance to be added. */ public void addDestination(Destination destination) { RemotingDestination remotingDest = (RemotingDestination)destination; super.addDestination(remotingDest); }