//
// IpuCountConfig.h
// ipu-count-client
//
// Created by tony on 16/3/4.
// Copyright © 2016年 shelomi. All rights reserved.
//
#import <Foundation/Foundation.h>
#define CONFIG_PATH @"res/count-config.xml"
#define TAG_MONITOR @"monitor"
#define TAG_COUNT @"count"
#define TAG_METHOD @"method"
#define ATTR_CLASS @"class"
@class IpuDelegateVO;
@class IpuCountServiceVO;
@interface IpuCountConfig : NSObject <NSXMLParserDelegate>
+(IpuCountConfig *)sharedManager;
/*
设置count-service.plist与count-config.xml文件的存储路径
如:“/count-service.plist”
若不设置,默认存储路径为:“/Res/config/count-service.plist”
*/
+(void)setServicePath:(NSString *)sPath setConfigPath:(NSString *)cPath;
//获取最高权重服务对象
-(IpuCountServiceVO *)getMostWeightService;
//获取UDP服务列表
-(void)getUDPRequestInfo;
//获取count-service.plist中的count_service_url值
-(NSString *)getCountServiceUrl;
//获取count-service.plist中的count_heartbeat_interval值
-(NSNumber *)getCountHeartBeatInterval;
//解析count-config.xml
-(NSMutableDictionary *)getConfig;
-(NSArray *)getAllDelegateVOs;
-(IpuDelegateVO *)getDelegateByClassName:(NSString *)clazzName;
-(IpuDelegateVO *)getDelegateByInstance:(NSObject *)obj;
-(IpuDelegateVO *)getDelegateByClass:(Class)clazz;
// 开启日志发送功能
-(void)openCountLog;
//关闭日志发送功能
-(void)closeCountLog;
//是否关闭日志发送功能
-(BOOL)isCloseCountLog;
@end
|