/** * Starts the associated services. * * @throws Exception */ protected synchronized void startServices() throws Exception { if (getLogService() != null) { getLogService().start(); } if (getStatusService() != null) { getStatusService().start(); } }
/** * Stops the associated services. * * @throws Exception */ protected synchronized void stopServices() throws Exception { if (getLogService() != null) { getLogService().stop(); } if (getStatusService() != null) { getStatusService().stop(); } }
getStatusService().setContactEmail( item.getNodeValue()); getStatusService().setEnabled( getBoolean(item, true)); getStatusService().setHomeRef( new Reference(item.getNodeValue())); getStatusService().setOverwrite( getBoolean(item, true));
getComponent().getStatusService().setContactEmail( item.getNodeValue()); getComponent().getStatusService().setEnabled( getBoolean(item, true)); getComponent().getStatusService().setHomeRef( new Reference(item.getNodeValue())); getComponent().getStatusService().setOverwriting( getBoolean(item, true));
component.getStatusService().setEnabled(false);
component.getStatusService().setEnabled(false);
/** * Constructor. */ public Component() { super(); this.hosts = new CopyOnWriteArrayList<VirtualHost>(); this.clients = new ClientList(null); this.servers = new ServerList(null, this); this.realms = new CopyOnWriteArrayList<Realm>(); this.services = new ServiceList(getContext()); if (Engine.getInstance() != null) { // To be done before setting the helper... this.services.add(new org.restlet.service.TaskService()); this.helper = new ComponentHelper(this); Context childContext = getContext().createChildContext(); this.defaultHost = new VirtualHost(childContext); this.internalRouter = new InternalRouter(childContext); this.services.add(new LogService()); getLogService().setContext(childContext); this.services.add(new StatusService()); getStatusService().setContext(childContext); this.clients.setContext(childContext); this.servers.setContext(childContext); } }