ComputeResourceUtilization resourceUtilization = new ComputeResourceUtilization("test",
sbi.inetAddress.getHostAddress(),
sbi.inetAddress.getHostName(),
measuredResources);
SystemCapabilities systemCapabilities = new SystemCapabilities();
PlatformCapability[] platformCapabilities = systemCapabilities.getPlatformCapabilities(new DynamicConfiguration());
ResourceCapability resourceCapability = new ResourceCapability(sbi.inetAddress.getHostAddress(),
sbi.inetAddress.getHostName(),
true,
platformCapabilities,
resourceUtilization);
instantiatorResource = new InstantiatorResource(null,
sbi,
"test",
sbi.uuid,
null,
resourceCapability,
50);
service = createServiceElement();
OperationalString opString = new OpString("test", null);
opString.addService(service);
OpStringManager parent = null;
boolean active = true;
Configuration config = new DynamicConfiguration();
OpStringManagerController opStringManagerController = new OpStringManagerController();
manager = new DefaultOpStringManager(opString,
parent,
active,
config,