hmci/src/main/groovy/biz/nellemann/hmci/ManagedSystem.groovy

29 lines
625 B
Groovy
Raw Normal View History

package biz.nellemann.hmci
2020-08-07 06:13:48 +00:00
import groovy.util.logging.Slf4j
@Slf4j
2020-08-07 06:13:48 +00:00
class ManagedSystem {
public String id
public String name
public String type
public String model
public String serialNumber
protected List<String> pcmLinks = new ArrayList<>()
public Map<String, LogicalPartition> partitions = new HashMap<String, LogicalPartition>()
ManagedSystem(String id) {
this.id = id
}
String toString() {
return "[${id}] ${name} (${type}-${model} ${serialNumber})"
}
void processMetrics() {
log.info("processMetrics() - TODO: Store metrics here.")
}
2020-08-07 06:13:48 +00:00
}