Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.apache.activemq.partition.dto;
 
 
The main Configuration class for the PartitionBroker plugin
 
 public class Partitioning {
 
     static final public ObjectMapper MAPPER = new ObjectMapper();
     static {
     }
 
     static final public ObjectMapper TO_STRING_MAPPER = new ObjectMapper();
     static {
     }

    
If a client connects with a clientId which is listed in the map, then he will be immediately reconnected to the partition target immediately.
 
     @JsonProperty("by_client_id")
     @JsonDeserialize(contentAs = Target.class)
     public HashMap<StringTargetbyClientId;

    
If a client connects with a user priciple which is listed in the map, then he will be immediately reconnected to the partition target immediately.
 
     @JsonProperty("by_user_name")
     @JsonDeserialize(contentAs = Target.class)
     public HashMap<StringTargetbyUserName;

    
If a client connects with source ip which is listed in the map, then he will be immediately reconnected to the partition target immediately.
 
     @JsonProperty("by_source_ip")
     @JsonDeserialize(contentAs = Target.class)
     public HashMap<StringTargetbySourceIp;

    
Used to map the preferred partitioning of queues across a set of brokers. Once a it is deemed that a connection mostly works with a set of targets configured in this map, the client will be reconnected to the appropriate target.
 
     @JsonProperty("by_queue")
     @JsonDeserialize(contentAs = Target.class)
     public HashMap<StringTargetbyQueue;

    
Used to map the preferred partitioning of topics across a set of brokers. Once a it is deemed that a connection mostly works with a set of targets configured in this map, the client will be reconnected to the appropriate target.
 
     @JsonProperty("by_topic")
     @JsonDeserialize(contentAs = Target.class)
     public HashMap<StringTargetbyTopic;

    
Maps broker names to broker URLs.
 
     @JsonProperty("brokers")
     @JsonDeserialize(contentAs = String.class)
     public HashMap<StringStringbrokers;
 
    @Override
    public String toString() {
        try {
            return .writeValueAsString(this);
        } catch (IOException e) {
            return super.toString();
        }
    }
    public HashMap<StringStringgetBrokers() {
        return ;
    }
    public void setBrokers(HashMap<StringStringbrokers) {
        this. = brokers;
    }
    public HashMap<StringTargetgetByClientId() {
        return ;
    }
    public void setByClientId(HashMap<StringTargetbyClientId) {
        this. = byClientId;
    }
    public HashMap<StringTargetgetByQueue() {
        return ;
    }
    public void setByQueue(HashMap<StringTargetbyQueue) {
        this. = byQueue;
    }
    public HashMap<StringTargetgetBySourceIp() {
        return ;
    }
    public void setBySourceIp(HashMap<StringTargetbySourceIp) {
        this. = bySourceIp;
    }
    public HashMap<StringTargetgetByTopic() {
        return ;
    }
    public void setByTopic(HashMap<StringTargetbyTopic) {
        this. = byTopic;
    }
    public HashMap<StringTargetgetByUserName() {
        return ;
    }
    public void setByUserName(HashMap<StringTargetbyUserName) {
        this. = byUserName;
    }
New to GrepCode? Check out our FAQ X