use of org.opendaylight.openflowplugin.impl.services.sal.SalRoleServiceImpl in project openflowplugin by opendaylight.
the class RoleManagerImpl method createContext.
@Override
public RoleContext createContext(@Nonnull final DeviceContext deviceContext) {
final DeviceInfo deviceInfo = deviceContext.getDeviceInfo();
final RoleContextImpl roleContext = new RoleContextImpl(deviceContext.getDeviceInfo(), timer, CHECK_ROLE_MASTER_TIMEOUT, config);
roleContext.setRoleService(new SalRoleServiceImpl(roleContext, deviceContext));
contexts.put(deviceInfo, roleContext);
return roleContext;
}
Aggregations