|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Transport
Interface delcares client capabilities. PerfMon clients must implement it.
TransportFactory| Method Summary | |
|---|---|
void |
disconnect()
Disconnects client from server agent |
String |
getAddressLabel()
Returns address string if one was set by setAddressLabel |
String |
readln()
Basic primitive for reading server agent output |
String[] |
readMetrics()
Method to be used after startWithMetrics Returns array containing collected metric values |
void |
setAddressLabel(String label)
Set connected address string to be used in labels, since SocketAddress does not provide any info. |
void |
setInterval(long interval)
Sets metrics collection interval |
void |
shutdownAgent()
Commands server agent to close all connections and shutdown the process |
void |
startWithMetrics(String[] metricsArray)
Asks agent to start metrics transmission. |
boolean |
test()
Method to test if transport connection established with applicable server agent |
void |
writeln(String line)
Basic agent communication primitive, send one command string |
| Method Detail |
|---|
void disconnect()
String[] readMetrics()
String readln()
void setInterval(long interval)
interval - void shutdownAgent()
void startWithMetrics(String[] metricsArray)
throws IOException
metricsArray - String array containing metric description
IOExceptionboolean test()
void writeln(String line)
throws IOException
line - command string to send
IOExceptionString getAddressLabel()
void setAddressLabel(String label)
label - the label to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||