All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.distributeme.support.lifecycle.LifecycleSupportServiceImpl Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
package org.distributeme.support.lifecycle;

import org.distributeme.core.lifecycle.*;

import java.util.List;
import java.util.Map;

public class LifecycleSupportServiceImpl implements LifecycleSupportService{
	
	private LifecycleComponent component = LifecycleComponentImpl.INSTANCE;

	@Override
	public boolean isOnline() {
		return component.isOnline();
	}

	@Override
	public void printStatusToSystemOut() {
		component.printStatusToSystemOut();
	}

	@Override
	public void printStatusToLogInfo() {
		component.printStatusToLogInfo();
	}

	@Override
	public List getPublicServices() {
		return component.getPublicServices();
	}

	@Override
	public void registerPublicService(String serviceId,
			ServiceAdapter instance) {
		throw new AssertionError("This method can only be called locally");
	}

	@Override
	public ServiceInfo getServiceInfo(String serviceId) {
		return component.getServiceInfo(serviceId);
	}

	@Override
	public void shutdown(String message) {
		component.shutdown(message);
		
	}

	@Override
	public HealthStatus getHealthStatus(String serviceId) {
		return component.getHealthStatus(serviceId);
	}

	@Override
	public Map getHealthStatuses() {
		return component.getHealthStatuses();
	}
	
	

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy