package edu.usc.glidein.util;

import java.net.InetAddress;

import org.apache.log4j.Logger;

public class ServiceUtil {
	private static Logger logger = Logger.getLogger(ServiceUtil.class);
	
	public static String getServiceHost() {
		// Set the default condor host
		try {
			InetAddress addr = InetAddress.getLocalHost();
			return addr.getHostName();
		}  catch (Exception e) {
			logger.warn("Unable to get service host",e);
			return null;
		}
	}
}

Add util class to return the local host name
Add util class to return the local host name

git-svn-id: bdb5f82b9b83a1400e05d69d262344b821646179@1629 e217846f-e12e-0410-a4e5-89ccaea66ff7
