@Test public void testUnlock() { deployment.tableLockId = VPC_ID; deployment.unlock(); verify(mockVpcDao, times(1)).releaseFromLockTable(VPC_ID); }
@Override protected void unlock() { if (tableLockId != null) { vpcDao.releaseFromLockTable(tableLockId); if (logger.isDebugEnabled()) { logger.debug("Lock is released for vpc id " + tableLockId + " as a part of router startup in " + dest); } } }
VpcRouterDeploymentDefinition extends RouterDeploymentDefinition { @Override protected void unlock() { if (tableLockId != null) { vpcDao.releaseFromLockTable(tableLockId); if (logger.isDebugEnabled()) { logger.debug("Lock is released for vpc id " + tableLockId + " as a part of router startup in " + dest); } } } }
VpcRouterDeploymentDefinition extends RouterDeploymentDefinition { @Override protected void unlock() { if (tableLockId != null) { vpcDao.releaseFromLockTable(tableLockId); if (logger.isDebugEnabled()) { logger.debug("Lock is released for vpc id " + tableLockId + " as a part of router startup in " + dest); } } } protected  VpcRouterDeploymentDefinition(final Network guestNetwork, final Vpc vpc, final DeployDestination dest, final Account owner,
                                            final Map<Param, Object> params); }
VpcRouterDeploymentDefinition extends RouterDeploymentDefinition { @Override protected void unlock() { if (tableLockId != null) { vpcDao.releaseFromLockTable(tableLockId); if (logger.isDebugEnabled()) { logger.debug("Lock is released for vpc id " + tableLockId + " as a part of router startup in " + dest); } } } protected  VpcRouterDeploymentDefinition(final Network guestNetwork, final Vpc vpc, final DeployDestination dest, final Account owner,
                                            final Map<Param, Object> params); @Override Vpc getVpc(); @Override boolean isVpcRouter(); @Override boolean needsPublicNic(); @Override boolean hasSourceNatService(); boolean hasGatewayService(); @Override void generateDeploymentPlan(); @Override boolean isRedundant(); }
VpcRouterDeploymentDefinition extends RouterDeploymentDefinition { @Override protected void unlock() { if (tableLockId != null) { vpcDao.releaseFromLockTable(tableLockId); if (logger.isDebugEnabled()) { logger.debug("Lock is released for vpc id " + tableLockId + " as a part of router startup in " + dest); } } } protected  VpcRouterDeploymentDefinition(final Network guestNetwork, final Vpc vpc, final DeployDestination dest, final Account owner,
                                            final Map<Param, Object> params); @Override Vpc getVpc(); @Override boolean isVpcRouter(); @Override boolean needsPublicNic(); @Override boolean hasSourceNatService(); boolean hasGatewayService(); @Override void generateDeploymentPlan(); @Override boolean isRedundant();  }