com.foilen.infra.api.model.machine.Application Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of foilen-infra-api Show documentation
Show all versions of foilen-infra-api Show documentation
This is the infra service API
The newest version!
/*
Foilen Infra API
https://github.com/foilen/foilen-infra-api
Copyright (c) 2017-2021 Foilen (https://foilen.com)
The MIT License
http://opensource.org/licenses/MIT
*/
package com.foilen.infra.api.model.machine;
import java.util.SortedSet;
import java.util.TreeSet;
import com.foilen.infra.api.model.machine.model.IPApplicationDefinition;
import com.foilen.smalltools.restapi.model.AbstractApiBase;
import com.google.common.collect.ComparisonChain;
/**
* This is for any application/service that is installed on a machine.
*/
public class Application extends AbstractApiBase implements Comparable {
// Application
private String name;
private String description;
// Details
private IPApplicationDefinition applicationDefinition = new IPApplicationDefinition();
// Network
private SortedSet domainNames = new TreeSet<>();
public Application() {
}
/**
* Primary key.
*
* @param name
* the name
*/
public Application(String name) {
this.name = name;
}
@Override
public int compareTo(Application o) {
return ComparisonChain.start() //
.compare(this.name, o.name) //
.result();
}
public IPApplicationDefinition getApplicationDefinition() {
return applicationDefinition;
}
public String getDescription() {
return description;
}
public SortedSet getDomainNames() {
return domainNames;
}
public String getName() {
return name;
}
public void setApplicationDefinition(IPApplicationDefinition applicationDefinition) {
this.applicationDefinition = applicationDefinition;
}
public void setDescription(String description) {
this.description = description;
}
public void setDomainNames(SortedSet domainNames) {
this.domainNames = domainNames;
}
public void setName(String name) {
this.name = name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy