# TCP input
type forward
port 24224
# HTTP input
type http
port 8888
# Log Forwarding
type forward
# primary host
host 192.168.0.1
port 24224
# use secondary host
host 192.168.0.2
port 24224
standby
# use longer flush_interval to reduce CPU usage.
# note that this is a trade-off against latency.
flush_interval 60s
8.fluent对java的支持:fluent-logger-java is a Java library, to record events via Fluentd, from Java application.
http://fluentd.org/releases/java/ 可下载最新的jar
import java.util.HashMap;
import java.util.Map;
import org.fluentd.logger.FluentLogger;
public class Main {
private static FluentLogger LOG = FluentLogger.getLogger("app", "192.168.0.1", 24224);
public static void main(String[] args) {
// ...
Map data = new HashMap();
data.put("from", "aaa");
data.put("to", "bbb");
LOG.log("follow", data); //...
FluentLogger.close();
}
}
配置fluentd服务器端/etc/td-agent/td-agent.conf
添加:
##必须启动tcp端口,端口号为24224,不加port属性默认为24224
type tcp
port 24224
##app.** 与java中的app匹配
##匹配输出到/var/log/td-agent/td-agent.log
type stdout
POJ-1273-Drainage Ditches
http://poj.org/problem?id=1273
基本的最大流,按LRJ的白书写的
#include<iostream>
#include<cstring>
#include<queue>
using namespace std;
#define INF 0x7fffffff
int ma
开启列模式: Alt+C 鼠标选择 OR Alt+鼠标左键拖动
列模式替换或复制内容(多行):
右键-->格式-->填充所选内容-->选择相应操作
OR
Ctrl+Shift+V(复制多行数据,必须行数一致)
-------------------------------------------------------
About Health Monitor
Beginning with Release 11g, Oracle Database includes a framework called Health Monitor for running diagnostic checks on the database.
About Health Monitor Checks
Health M
实现功能的代码:
# include <stdio.h>
# include <malloc.h>
struct Student
{
int age;
float score;
char name[100];
};
int main(void)
{
int len;
struct Student * pArr;
int i,
http://wiki.sdn.sap.com/wiki/display/BOBJ/Troubleshooting+Crystal+Reports+off+BW#TroubleshootingCrystalReportsoffBW-TracingBOE
Quite useful, especially this part:
SAP BW connectivity
For t