public class ServerToNodeMetadata extends Object implements com.google.common.base.Function<Server,NodeMetadata>
Constructor and Description |
---|
ServerToNodeMetadata(com.google.common.base.Function<Hdd,Volume> fnVolume,
com.google.common.base.Supplier<Set<? extends Location>> locations,
com.google.common.base.Supplier<Map<String,? extends Hardware>> hardwareFlavors,
com.google.common.base.Supplier<Map<String,? extends Image>> images,
OneAndOneApi api,
GroupNamingConvention.Factory groupNamingConvention) |
@Inject public ServerToNodeMetadata(com.google.common.base.Function<Hdd,Volume> fnVolume, com.google.common.base.Supplier<Set<? extends Location>> locations, com.google.common.base.Supplier<Map<String,? extends Hardware>> hardwareFlavors, com.google.common.base.Supplier<Map<String,? extends Image>> images, OneAndOneApi api, GroupNamingConvention.Factory groupNamingConvention)
public NodeMetadata apply(Server server)
apply
in interface com.google.common.base.Function<Server,NodeMetadata>
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.