net.stamfest.rrd
Class RRDCachedClient

java.lang.Object
  extended by net.stamfest.rrd.RRDCachedClient
All Implemented Interfaces:
RRDUpdate

public class RRDCachedClient
extends Object
implements RRDUpdate

Because Java does not support UNIX Sockets, this can only be used with rrdcached listening on a TCP socket.

Author:
peter

Constructor Summary
RRDCachedClient(String host, int port)
           
 
Method Summary
 void close()
           
 CommandResult flush(String filename)
           
 CommandResult flushall(String filename)
           
 CommandResult update(String filename, String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RRDCachedClient

public RRDCachedClient(String host,
                       int port)
                throws UnknownHostException,
                       IOException
Throws:
UnknownHostException
IOException
Method Detail

update

public CommandResult update(String filename,
                            String[] args)
                     throws Exception
Specified by:
update in interface RRDUpdate
Throws:
Exception

flush

public CommandResult flush(String filename)
                    throws Exception
Throws:
Exception

flushall

public CommandResult flushall(String filename)
                       throws Exception
Throws:
Exception

close

public void close()
           throws IOException
Throws:
IOException


Copyright © 2010-2013. All Rights Reserved.