Examples of PushException


Examples of at.molindo.notify.channel.IPushChannel.PushException

    IPushChannelPreferences cPrefs = prefs.getChannelPrefs().get(channel.getId());
    if (cPrefs == null) {
      cPrefs = channel.newDefaultPreferences();
      if (cPrefs == null) {
        // don't flood user after he configures this channel
        throw new PushException("channel not configured for user", false);
      }
    }

    if (!channel.getNotificationTypes().contains(notification.getType())) {
      // channel not applicable for type
      throw new PushException("channel not applicable for type " + notification.getType(), false);
    }

    Dispatch dispatch = _dispatchService.create(notification, prefs, cPrefs);

    if (!channel.isConfigured(dispatch.getParams())) {
      // don't flood user after he configures this channel
      throw new PushException("channel not configured for user", false);
    }

    if (!ignoreFrequency && !Frequency.INSTANT.equals(cPrefs.getFrequency())) {
      // temporary as other dispatcher will handle this
      throw new PushException("channel not configured for this frequency", true);
    }

    channel.push(dispatch);
  }
View Full Code Here

Examples of com.alibaba.otter.common.push.PushException

    }

    public synchronized void init() {
        this.mediaSubscribeManager = SubscribeManagerFactory.getSubscribeManager(SubscribeType.MEDIA);
        if (this.mediaSubscribeManager == null) {
            throw new PushException("MediaDatasourceSupplier : mediaSubscribeManager is null, check the spring config");
        }

        String matrixStr = mediaSubscribeManager.fetchConfig(groupKey);
        this.haInfo = parse(matrixStr);
        this.mediaSubscribeManager.registerCallback(this.groupKey, subscribeCallback);
View Full Code Here

Examples of com.alibaba.otter.common.push.PushException

    }

    public DatasourceInfo fetchMaster() {
        synchronized (lock) {
            if (this.haInfo == null) {
                throw new PushException("haInfo is null, check the init phase");
            }
            return this.haInfo.getMaster();
        }
    }
View Full Code Here

Examples of com.google.enterprise.connector.pusher.PushException

        throw new RepositoryDocumentException(re);
      } catch (RepositoryDocumentException rde) {
        expectedId++;
        throw rde;
      } catch (Throwable t) {
        throw new PushException(t);
      }
      return PusherStatus.OK;
    }
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.