Mercurial > hg > blitz_condensed
diff src/org/dancres/blitz/remote/StatsAdmin.java @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/dancres/blitz/remote/StatsAdmin.java Sat Mar 21 11:00:06 2009 +0000 @@ -0,0 +1,31 @@ +package org.dancres.blitz.remote; + +import java.rmi.Remote; +import java.rmi.RemoteException; + +import org.dancres.blitz.stats.Stat; +import org.dancres.blitz.stats.StatsBoard; +import org.dancres.blitz.stats.Switch; + +/** + Proxy interface to provide access to and configuration of Blitz statistics. +*/ +public interface StatsAdmin extends Remote { + /** + @return an array of Stat instances. The instances will be some mix of + the Stat implementations in <code>org.dancres.blitz.stats</code>. + + @see org.dancres.blitz.stats.TypesStat + @see org.dancres.blitz.stats.OpStat + */ + public Stat[] getStats() throws RemoteException; + + /** + Remotely configure the generation of stats. Typically switching some + on and some off (hence Switch). Switch instances will be any of those + in <code>org.dancres.blitz.stats</code> + + @see org.dancres.blitz.stats.OpSwitch + */ + public void setSwitches(Switch[] aListOfSwitches) throws RemoteException; +}