net.anotheria.moskito.central.connectors
Class AbstractCentralConnector

java.lang.Object
  extended by net.anotheria.moskito.core.plugins.AbstractMoskitoPlugin
      extended by net.anotheria.moskito.central.connectors.AbstractCentralConnector
All Implemented Interfaces:
MoskitoPlugin, SnapshotConsumer
Direct Known Subclasses:
DiMeCentralConnector, EmbeddedConnector, RESTConnector

public abstract class AbstractCentralConnector
extends AbstractMoskitoPlugin
implements SnapshotConsumer

Parent class for all central connectors. Describes full logic.

Author:
dagafonov

Constructor Summary
AbstractCentralConnector()
          Default constructor.
 
Method Summary
 void consumeSnapshot(ProducerSnapshot coreSnapshot)
           
 void deInitialize()
           
 void initialize()
           
protected abstract  void sendData(Snapshot snapshot)
          Connector specific implementation.
 String toString()
           
 
Methods inherited from class net.anotheria.moskito.core.plugins.AbstractMoskitoPlugin
setConfigurationName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractCentralConnector

public AbstractCentralConnector()
Default constructor.

Method Detail

initialize

public void initialize()
Specified by:
initialize in interface MoskitoPlugin
Overrides:
initialize in class AbstractMoskitoPlugin

deInitialize

public void deInitialize()
Specified by:
deInitialize in interface MoskitoPlugin
Overrides:
deInitialize in class AbstractMoskitoPlugin

consumeSnapshot

public void consumeSnapshot(ProducerSnapshot coreSnapshot)
Specified by:
consumeSnapshot in interface SnapshotConsumer

sendData

protected abstract void sendData(Snapshot snapshot)
Connector specific implementation.

Parameters:
snapshot -

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2013 anotheria.net. All Rights Reserved.