@Override public void run(Action action) throws ActionFailureException, ActionParameterException { // Look it up. final AbstractPushMessageActionDefinition actionDef = actionDefinitions.get(action.getAppliesToActionDefinition()); if (actionDef == null) { throw new ActionFailureException("Action is not provided by the PushOver provider. Please open a bug."); } actionDef.run(action); }
@Override public void run(Action action) throws ActionFailureException, ActionParameterException { // Look it up. final SshActionDefinition actionDef = actionDefinitions.get(action.getAppliesToActionDefinition()); if (actionDef == null) { throw new ActionFailureException("Action is not provided by the SSH provider. Please open a bug."); } actionDef.run(action); }
@Override public void run(Action action) throws ActionFailureException, ActionParameterException { // Look it up. final WemoActionDefinition actionDef = actionDefinitions.get(action.getAppliesToActionDefinition()); if (actionDef == null) { throw new ActionFailureException("Action is not provided by the " + getName() + " provider. Please open a bug."); } actionDef.run(action); }
@Override public void run(Action action) throws ActionFailureException, ActionParameterException { if (LOG.isTraceEnabled()) { LOG.entry(action); } final UUID actionDefinitionUuid = action.getAppliesToActionDefinition(); final UUID providerUuid = actionDefinitionToProvider.get(actionDefinitionUuid); final Provider provider = providers.get(providerUuid); try { provider.run(action); } catch (ActionFailureException | ActionParameterException e) { LOG.throwing(e); throw e; } catch (Exception e) { // Any unknown or unexpected exceptions are wrapped as a failure and thrown. final ActionFailureException afe = new ActionFailureException(e); LOG.throwing(afe); throw afe; } if (LOG.isTraceEnabled()) { LOG.exit(); } }
logger.entry(action); if (ShowNotificationActionDefinition.INSTANCE.getUUID().equals(action.getAppliesToActionDefinition())) { final String host = action.getParameters().get(HostParameterDefinition.DEF_UUID); if (host == null) {