All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cloudfoundry.client.lib.domain.ApplicationLog Maven / Gradle / Ivy

The newest version!
package org.cloudfoundry.client.lib.domain;

import org.immutables.value.Value;

import java.util.Date;

@Value.Immutable
public abstract class ApplicationLog implements Comparable {

    public enum MessageType {
        STDOUT, STDERR
    }

    public abstract String getApplicationGuid();

    public abstract String getMessage();

    public abstract Date getTimestamp();

    public abstract MessageType getMessageType();

    public abstract String getSourceId();

    public abstract String getSourceName();

    @Override
    public int compareTo(ApplicationLog other) {
        return getTimestamp().compareTo(other.getTimestamp());
    }

    @Override
    public String toString() {
        return String.format("%s [%s] %s (%s, %s)", getApplicationGuid(), getTimestamp(), getMessage(), getMessageType(),
                getSourceName());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy