mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-27 21:56:38 +10:00
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@720 84d0f5b1-2673-498c-a247-62c4ff18d310
47 lines
795 B
Java
47 lines
795 B
Java
package com.nhn.hippo.web.calltree;
|
|
|
|
/**
|
|
*
|
|
* @author netspider
|
|
*
|
|
*/
|
|
public class ServerRequest {
|
|
private final String id;
|
|
private final Server from;
|
|
private final Server to;
|
|
private int callCount = 1;
|
|
|
|
public ServerRequest(Server from, Server to) {
|
|
this.from = from;
|
|
this.to = to;
|
|
this.id = from.getId() + to.getId();
|
|
}
|
|
|
|
public void increaseCallCount() {
|
|
callCount++;
|
|
}
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public Server getFrom() {
|
|
return from;
|
|
}
|
|
|
|
public Server getTo() {
|
|
return to;
|
|
}
|
|
|
|
public int getCallCount() {
|
|
return callCount;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("{from=").append(from).append(", to=").append(to).append(", cc=").append(callCount).append("}");
|
|
return sb.toString();
|
|
}
|
|
}
|