Unregisters resources related to web app.

@see WebAppVisitor#visit(WebApp)
494197
public void visit(final WebApp webApp) {
		//CHECKSTYLE:OFF
		try {
			httpService.unregister("/");
		} catch (Exception ignore) {
			LOG.warn("Unregistration exception. Skipping.", ignore);
		}
		//CHECKSTYLE:ON
	}
1242711
private void unregisterAllServlets() {

        for (String endpoint : registeredServlets) {
            registeredServlets.remove(endpoint);
            web.unregister(endpoint);
            LOG.info("endpoint {} unregistered", endpoint);
        }

    }
1065573
public static void unregister() {
    synchronized (monitor) {
      checkState(handler != null, "Zipkin exporter is not registered.");
      unregister(Tracing.getExportComponent().getSpanExporter());
      handler = null;
    }
  }
202661
public void deactivateApp(int appId) {
		getResourceFactory().getApiResource("/app/" + appId + "/deactivate")
				.entity(new Empty(), MediaType.APPLICATION_JSON_TYPE).post();
	}
372006
public void visit(final WebAppServlet webAppServlet) {
		NullArgumentException.validateNotNull(webAppServlet, "Web app servlet");
		final String[] aliases = webAppServlet.getAliases();
		if (aliases != null && aliases.length > 0) {
			for (final String alias : aliases) {
				try {
					final Servlet servlet = newInstance(Servlet.class,
							bundleClassLoader,
							webAppServlet.getServletClassName());
					httpService.registerServlet(alias, servlet,
							convertInitParams(webAppServlet.getInitParams()),
							httpContext);
					//CHECKSTYLE:OFF
				} catch (Throwable ignore) {
					LOG.error("Registration exception. Skipping.", ignore);
				}
				//CHECKSTYLE:ON
			}
		} else {
			LOG.warn("Servlet [" + webAppServlet
					+ "] does not have any alias. Skipped.");
		}
	}
797756
void unregister() {
        trackerLock.lock();
        try {
            if (tracker != null) {
                // simply closing the tracker causes the services to be unregistered
                tracker.close();
                tracker = null;
            }
        } finally {
            trackerLock.unlock();
        }
    }
281747
void unregistered() {
        try {
            if (!m_alreadyStopped) {
                m_alreadyStopped = true;
                try {
                    m_handler.stopped(this);
                } finally {
                    try {
                        m_writeStream.shutdown();
                    } finally {
                        if (m_readStream != null) {
                            m_readStream.shutdown();
                        }
                    }
                }
            }
        } finally {
            networkLog.debug("Closing channel " + m_toString);
            try {
                m_channel.close();
            } catch (IOException e) {
                networkLog.warn(e);
            }
        }
    }
755728
@Invalidate
    public void stop(){
        for(ServiceRegistration registration: registrations){
            registration.unregister();
        }
        registrations.clear();
        names.clear();
    }
1145622
@Override
  public void unregister(final Identifier id) {
    LOG.log(Level.FINE, "id: " + id);
    idToAddrMap.remove(id);
  }
718936
public void free()
    {
        if (m_env != null)
        {
            m_env.removeApplication(this);
            m_env.freeIfDone();
        }
        
        super.free();

        if (m_databaseCollection != null)
            m_databaseCollection.free();
        m_databaseCollection = null;

        m_env = null;

        m_resources = null;
    }
1110339
private void unregister(String path,ZKMBeanInfo bean) throws JMException {
        if(path==null)
            return;
        if (!bean.isHidden()) {
            MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
            try {
                mbs.unregisterMBean(makeObjectName(path, bean));
            } catch (JMException e) {
                LOG.warn("Failed to unregister MBean " + bean.getName());
                throw e;
            }
        }
    }
287801
public void visit(final WebAppErrorPage webAppErrorPage) {
		NullArgumentException.validateNotNull(webAppErrorPage,
				"Web app error page");
		try {
			webContainer.registerErrorPage(webAppErrorPage.getError(),
					webAppErrorPage.getLocation(), httpContext);
			//CHECKSTYLE:OFF
		} catch (Exception ignore) {
			LOG.error(REGISTRATION_EXCEPTION_SKIPPING, ignore);
		}
		//CHECKSTYLE:ON
	}
1295511
public void unregisterAll() {
        for(Map.Entry<ZKMBeanInfo,String> e: mapBean2Path.entrySet()) {
            try {
                unregister(e.getValue(), e.getKey());
            } catch (JMException e1) {
                LOG.warn("Error during unregister", e1);
            }
        }
        mapBean2Path.clear();
        mapName2Bean.clear();
    }
1292284
public void cleanup() {
        List<Threshold> th = getThresholds();
        for (Threshold t : th) {
            final String tName = t.getDefinition().getName();
            try {
            	MBeanUtil.getInstance().unregisterMBean(createName(tName));
            } catch (MBeanRegistrationException e) {
				log.warn("can't unregister " + tName + ", ignored.", e);
			}
		}
        super.cleanup();
    }
1096715
@Override
  public void unregister(Monitor<?> monitor) {
    Preconditions.checkNotNull(monitor, "monitor");
    try {
      monitors.remove(monitor);
    } catch (Exception e) {
      throw new IllegalArgumentException("invalid object", e);
    }
  }
186123
@Override
    public void deleteApplication(ApplicationDefinition appDef) {
        checkServiceState();
        for(TableDefinition tableDef: appDef.getTableDefinitions().values()) {
            m_logService.deleteTable(Tenant.getTenant(appDef), appDef.getAppName(), tableDef.getTableName());
        }
    }
692717
public void stop() {
      // This method might get called several times.
      if (stopped) return;
      if (needToUnregister) {
         try {
            unregisterMBeans(resourceDMBeans);
            needToUnregister = false;
         } catch (Exception e) {
            log.problemsUnregisteringMBeans(e);
         }
      }
      stopped = true;
   }