gr.iti.mklab.sfc.storages.StdoutStorage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mklab-stream-manager Show documentation
Show all versions of mklab-stream-manager Show documentation
Monitors a set of social streams (e.g. Twitter status updates) and collects the incoming content.
The newest version!
package gr.iti.mklab.sfc.storages;
import gr.iti.mklab.framework.common.domain.config.Configuration;
import gr.iti.mklab.framework.common.domain.Item;
import java.io.IOException;
public class StdoutStorage implements Storage {
private String storageName = "StdOut";
public StdoutStorage(Configuration config) {
}
@Override
public void store(Item update) throws IOException {
System.out.println(update.toString());
}
@Override
public boolean delete(String id) throws IOException {
System.out.println("{ delete : " + id + "}");
return false;
}
@Override
public boolean open(){
return true;
}
@Override
public void close() {
}
@Override
public boolean checkStatus() {
return true;
}
@Override
public String getStorageName(){
return this.storageName;
}
}