net.sf.infrared.agent.transport
Interface Forwarder

All Known Implementing Classes:
SocketForwarder

public interface Forwarder

Interface to implement the forwarding strategy


Method Summary
 void destroy()
          This is to inform the forwarder that it has been destroyed, all cleanup activities need to be handled by this method.
 void forward(Statistics stats)
          Forward the collected statistics to the central store
 void forward(Statistics[] stats)
          Variant for handling collection of unmerged stats
 void init(boolean suspended)
          This is to inform the forwarder to perform initialization.
 void resume()
          Infrom the forwarder to resume operation
 void suspend()
          Inform the forwarder to suspend operation
 

Method Detail

init

public void init(boolean suspended)
This is to inform the forwarder to perform initialization.

Parameters:
suspended - - whether the forwarded needs to be initialized in a suspended state.

forward

public void forward(Statistics stats)
Forward the collected statistics to the central store

Parameters:
stats -

forward

public void forward(Statistics[] stats)
Variant for handling collection of unmerged stats

Parameters:
stats -

suspend

public void suspend()
Inform the forwarder to suspend operation


resume

public void resume()
Infrom the forwarder to resume operation


destroy

public void destroy()
This is to inform the forwarder that it has been destroyed, all cleanup activities need to be handled by this method.