Search in sources :

Example 1 with SalRoleServiceImpl

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;
}
Also used : SalRoleServiceImpl(org.opendaylight.openflowplugin.impl.services.sal.SalRoleServiceImpl) DeviceInfo(org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo)

Aggregations

DeviceInfo (org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo)1 SalRoleServiceImpl (org.opendaylight.openflowplugin.impl.services.sal.SalRoleServiceImpl)1