001/*******************************************************************************
002 * Copyright (c) 2006-2014 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 ******************************************************************************/
009package org.nuxeo.ecm.core.redis;
010
011import org.nuxeo.common.xmap.annotation.XNode;
012import org.nuxeo.common.xmap.annotation.XObject;
013
014@XObject("host")
015public class RedisHostDescriptor {
016
017    @XNode("@name")
018    public String name;
019
020    @XNode("@port")
021    public int port;
022
023    /** Empty constructor. */
024    public RedisHostDescriptor() {
025    }
026
027    protected RedisHostDescriptor(String name, int port) {
028        this.name = name;
029        this.port = port;
030    }
031}