public class OssShipperConfig extends Object implements ShipperConfig
| 构造器和说明 |
|---|
OssShipperConfig() |
OssShipperConfig(String ossBucket,
String ossPrefix,
String roleArn,
int bufferInteval,
int bufferMb) |
OssShipperConfig(String ossBucket,
String ossPrefix,
String roleArn,
int bufferInteval,
int bufferMb,
String compressType)
create a oss shipper config
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
FromJsonObj(net.sf.json.JSONObject obj) |
int |
GetBufferInterval() |
int |
GetBufferMb() |
String |
GetCompressType() |
net.sf.json.JSONObject |
GetJsonObj() |
String |
GetOssBucket() |
String |
GetOssPrefix() |
String |
GetRoleArm() |
String |
GetShipperType() |
public OssShipperConfig(String ossBucket, String ossPrefix, String roleArn, int bufferInteval, int bufferMb)
public OssShipperConfig(String ossBucket, String ossPrefix, String roleArn, int bufferInteval, int bufferMb, String compressType)
ossBucket - oss bucket nameossPrefix - the prefix path in oss where to save the log dataroleArn - the ram arn used to get the temporary write permission to the
oss bucketbufferInteval - the time(seconds) to buffer before save to ossbufferMb - the data size(MB) to buffer before save to osscompressType - the compress type, only support 'snappy' or 'none'public OssShipperConfig()
public void FromJsonObj(net.sf.json.JSONObject obj)
throws LogException
FromJsonObj 在接口中 ShipperConfigLogExceptionpublic String GetOssBucket()
public String GetOssPrefix()
public String GetRoleArm()
public int GetBufferInterval()
public int GetBufferMb()
public String GetCompressType()
public String GetShipperType()
GetShipperType 在接口中 ShipperConfigpublic net.sf.json.JSONObject GetJsonObj()
GetJsonObj 在接口中 ShipperConfigCopyright © 2016. All Rights Reserved.