VirtualNetworkApplianceManagerImpl extends ManagerBase implements VirtualNetworkApplianceManager, VirtualNetworkApplianceService, VirtualMachineGuru, Listener,
        Configurable, StateListener<VirtualMachine.State, VirtualMachine.Event, VirtualMachine> { @Override public VirtualRouter destroyRouter(final long routerId, final Account caller, final Long callerUserId) throws ResourceUnavailableException, ConcurrentOperationException { return _nwHelper.destroyRouter(routerId, caller, callerUserId); } protected  VirtualNetworkApplianceManagerImpl(); @Override VirtualRouter destroyRouter(final long routerId, final Account caller, final Long callerUserId); @Override @DB VirtualRouter upgradeRouter(final UpgradeRouterCmd cmd); @ActionEvent(eventType = EventTypes.EVENT_ROUTER_STOP, eventDescription = "stopping router Vm", async = true) @Override VirtualRouter stopRouter(final long routerId, final boolean forced); @DB void processStopOrRebootAnswer(final DomainRouterVO router, final Answer answer); @Override @ActionEvent(eventType = EventTypes.EVENT_ROUTER_REBOOT, eventDescription = "rebooting router Vm", async = true) VirtualRouter rebootRouter(final long routerId, final boolean reprogramNetwork); @Override boolean configure(final String name, final Map<String, Object> params); @Override boolean start(); @Override boolean stop(); @Override boolean finalizeVirtualMachineProfile(final VirtualMachineProfile profile, final DeployDestination dest, final ReservationContext context); @Override boolean finalizeDeployment(final Commands cmds, final VirtualMachineProfile profile, final DeployDestination dest, final ReservationContext context); @Override boolean finalizeCommandsOnStart(final Commands cmds, final VirtualMachineProfile profile); @Override boolean finalizeStart(final VirtualMachineProfile profile, final long hostId, final Commands cmds, final ReservationContext context); @Override void finalizeStop(final VirtualMachineProfile profile, final Answer answer); @Override void finalizeExpunge(final VirtualMachine vm); @Override boolean startRemoteAccessVpn(final Network network, final RemoteAccessVpn vpn, final List<? extends VirtualRouter> routers); @Override boolean deleteRemoteAccessVpn(final Network network, final RemoteAccessVpn vpn, final List<? extends VirtualRouter> routers); @Override DomainRouterVO stop(final VirtualRouter router, final boolean forced, final User user, final Account caller); @Override boolean removeDhcpSupportForSubnet(final Network network, final List<DomainRouterVO> routers); @Override @ActionEvent(eventType = EventTypes.EVENT_ROUTER_START, eventDescription = "starting router Vm", async = true) VirtualRouter startRouter(final long id); @Override VirtualRouter startRouter(final long routerId, final boolean reprogramNetwork); @Override List<VirtualRouter> getRoutersForNetwork(final long networkId); @Override String getDnsBasicZoneUpdate(); @Override int getTimeout(); @Override boolean isRecurring(); @Override boolean processAnswers(final long agentId, final long seq, final Answer[] answers); @Override boolean processCommands(final long agentId, final long seq, final Command[] commands); @Override void processConnect(final Host host, final StartupCommand cmd, final boolean forRebalance); @Override AgentControlAnswer processControlCommand(final long agentId, final AgentControlCommand cmd); @Override boolean processDisconnect(final long agentId, final Status state); @Override boolean processTimeout(final long agentId, final long seq); @Override void prepareStop(final VirtualMachineProfile profile); @Override VirtualRouter findRouter(final long routerId); @Override List<Long> upgradeRouterTemplate(final UpgradeRouterTemplateCmd cmd); @Override String getConfigComponentName(); @Override ConfigKey<?>[] getConfigKeys(); @Override boolean preStateTransitionEvent(final VirtualMachine.State oldState, final VirtualMachine.Event event, final VirtualMachine.State newState, final VirtualMachine vo, final boolean status,
                                           final Object opaque); @Override boolean postStateTransitionEvent(final StateMachine2.Transition<VirtualMachine.State, VirtualMachine.Event> transition, final VirtualMachine vo, final boolean status, final Object opaque); @Override boolean prepareAggregatedExecution(final Network network, final List<DomainRouterVO> routers); @Override boolean completeAggregatedExecution(final Network network, final List<DomainRouterVO> routers);  }
@Test public void testDestroyRouter() throws Exception { }