class FileConnection implements ObjectStoreConnection {

    @Override
    public boolean deleteServiceHost(String domainName, String serviceName, String hostName) {

        final String caller = "deleteServiceHost";
        DomainStruct domainStruct = getDomainStruct(domainName);
        if (domainStruct == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "domain not found", caller);
        }
        ServiceIdentity service = getServiceObject(domainStruct, serviceName);
        if (service == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "service not found", caller);
        }
        List<String> hosts = service.getHosts();
        if (hosts == null) {
            return false;
        }
        hosts.remove(hostName);
        putDomainStruct(domainName, domainStruct);
        return true;
    }

    public  FileConnection(File rootDir, File quotaDir);

}