Examples of master()


Examples of com.couchbase.client.core.config.Partition.master()

        if (request instanceof ReplicaGetRequest) {
            nodeId = partition.replica(((ReplicaGetRequest) request).replica()-1);
        } else if(request instanceof ObserveRequest && ((ObserveRequest) request).replica() > 0){
            nodeId = partition.replica(((ObserveRequest) request).replica()-1);
        } else {
            nodeId = partition.master();
        }

        if (nodeId == -2) {
            if (request instanceof ReplicaGetRequest) {
                request.observable().onError(new ReplicaNotConfiguredException("Replica number "
View Full Code Here

Examples of com.exigen.ie.constrainer.Observer.master()

    HashSet dependendts = new HashSet();

    for (int i = 0; i < _observers.size(); ++i)
    {
      Observer obs = (Observer) _observers.elementAt(i);
      Object master = obs.master();

      if (master == null)
        continue;

      if (dependendts.contains(master))
View Full Code Here

Examples of org.drools.planner.api.domain.variable.DependentPlanningVariable.master()

    }

    private void processPropertyAnnotations() {
        DependentPlanningVariable dependentPlanningVariableAnnotation = variablePropertyDescriptor.getReadMethod()
                .getAnnotation(DependentPlanningVariable.class);
        String masterPropertyName = dependentPlanningVariableAnnotation.master();
        masterPlanningVariableDescriptor = planningEntityDescriptor.getPlanningVariableDescriptor(masterPropertyName);
        if (masterPlanningVariableDescriptor == null) {
            throw new IllegalStateException("The planningEntityClass ("
                    + planningEntityDescriptor.getPlanningEntityClass()
                    + ") has a DependentPlanningVariable annotated property (" + variablePropertyDescriptor.getName()
View Full Code Here

Examples of org.drools.planner.api.domain.variable.DependentPlanningVariable.master()

    }

    private void processPropertyAnnotations() {
        DependentPlanningVariable dependentPlanningVariableAnnotation = variablePropertyDescriptor.getReadMethod()
                .getAnnotation(DependentPlanningVariable.class);
        String masterPropertyName = dependentPlanningVariableAnnotation.master();
        masterPlanningVariableDescriptor = planningEntityDescriptor.getPlanningVariableDescriptor(masterPropertyName);
        if (masterPlanningVariableDescriptor == null) {
            throw new IllegalStateException("The planningEntityClass ("
                    + planningEntityDescriptor.getPlanningEntityClass()
                    + ") has a DependentPlanningVariable annotated property (" + variablePropertyDescriptor.getName()
View Full Code Here

Examples of org.drools.planner.api.domain.variable.DependentPlanningVariable.master()

    }

    private void processPropertyAnnotations() {
        DependentPlanningVariable dependentPlanningVariableAnnotation = variablePropertyDescriptor.getReadMethod()
                .getAnnotation(DependentPlanningVariable.class);
        String masterPropertyName = dependentPlanningVariableAnnotation.master();
        masterPlanningVariableDescriptor = planningEntityDescriptor.getPlanningVariableDescriptor(masterPropertyName);
        if (masterPlanningVariableDescriptor == null) {
            throw new IllegalStateException("The planningEntityClass ("
                    + planningEntityDescriptor.getPlanningEntityClass()
                    + ") has a DependentPlanningVariable annotated property (" + variablePropertyDescriptor.getName()
View Full Code Here

Examples of org.springframework.data.redis.connection.RedisSentinelConfiguration.master()

        return this.sentinelConfiguration;
      }
      Sentinel sentinelProperties = this.properties.getSentinel();
      if (sentinelProperties != null) {
        RedisSentinelConfiguration config = new RedisSentinelConfiguration();
        config.master(sentinelProperties.getMaster());
        config.setSentinels(createSentinels(sentinelProperties));
        return config;
      }
      return null;
    }
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.