use of org.opencastproject.serviceregistry.api.SystemLoad.NodeLoad in project opencast by opencast.
the class ServiceRegistryInMemoryImpl method getMaxLoads.
/**
* {@inheritDoc}
*
* @see org.opencastproject.serviceregistry.api.ServiceRegistry#getMaxLoads()
*/
@Override
public SystemLoad getMaxLoads() throws ServiceRegistryException {
SystemLoad systemLoad = new SystemLoad();
systemLoad.addNodeLoad(new NodeLoad(LOCALHOST, Runtime.getRuntime().availableProcessors()));
return systemLoad;
}
Aggregations