org.cloudfoundry.client.lib.domain.ApplicationLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudfoundry-client-lib Show documentation
Show all versions of cloudfoundry-client-lib Show documentation
A Cloud Foundry client library for Java
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