/*
 * 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.karaf.cellar.log;

import java.io.Serializable;

public class ClusterLogKey implements Serializable {

    private String nodeId;
    private String nodeAlias;
    private long timeStamp;
    private String id;

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public String getNodeAlias() {
        return nodeAlias;
    }

    public void setNodeAlias(String nodeAlias) {
        this.nodeAlias = nodeAlias;
    }

    public long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

}

@@ -914,16 +914,43 @@
 alizable
+, Comparable%3CClusterLogKey%3E
  %7B%0A%0A    
@@ -1630,10 +1630,141 @@
 %0A    %7D%0A%0A
+    @Override%0A    public int compareTo(ClusterLogKey o) %7B%0A        return new Long(this.timeStamp - o.timeStamp).intValue();%0A    %7D%0A%0A
 %7D%0A

Add comparable on the cluster log key