2020-08-07 11:20:07 +00:00
|
|
|
package biz.nellemann.hmci
|
2020-08-07 06:13:48 +00:00
|
|
|
|
2020-08-07 11:20:07 +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})"
|
|
|
|
}
|
|
|
|
|
2020-08-07 11:20:07 +00:00
|
|
|
void processMetrics() {
|
|
|
|
log.info("processMetrics() - TODO: Store metrics here.")
|
|
|
|
}
|
2020-08-07 06:13:48 +00:00
|
|
|
}
|