// Path: webservice/src/main/java/com/griddelta/memnon/MemnonApplication.java
// public class MemnonApplication extends Application<MemnonConfiguration> {
//     public static CassandraStorage storage = null;
//     MemnonConfiguration config = null;
// 
//     public static void main(String[] args) throws Exception {    	
//         MemnonApplication app = new MemnonApplication();
//         app.run(args);
//     }
// 
//     @Override
//     public void initialize(Bootstrap<MemnonConfiguration> bootstrap) {
//         bootstrap.addBundle(new AssetsBundle("/ui", "/foo"));
//         // bootstrap.addCommand(new MemnonCommand(this));
//     }
// 
//     @Override
//     public void run(MemnonConfiguration configuration, Environment env) throws Exception {    	
//         this.setStorage(new CassandraStorage(configuration.getHost(), configuration.getPort()));
//         env.jersey().register(new DataResource(this));
//         env.healthChecks().register("Cassandra", new CassandraHealthCheck(this, configuration));
//         env.jersey().register(new KeyspaceExceptionMapper());
//     }
// 
//     public CassandraStorage getStorage() {
//         return storage;
//     }
// 
//     public void setStorage(CassandraStorage storage) {
//         MemnonApplication.storage = storage;
//     }
// 
//     public MemnonConfiguration getConfig() {
//         return config;
//     }
// 
//     public void setConfig(MemnonConfiguration config) {
//         this.config = config;
//     }
// }


import com.griddelta.memnon.MemnonApplication;
package com.hmsonline.memnon;



public class EmbeddableServer implements Runnable {
    String[] args = null;
    
    public EmbeddableServer(String[] args){
        this.args = args;        
    }

    public void run() {
        try {
// Path: webservice/src/main/java/com/griddelta/memnon/MemnonApplication.java
// public class MemnonApplication extends Application<MemnonConfiguration> {
//     public static CassandraStorage storage = null;
//     MemnonConfiguration config = null;
// 
//     public static void main(String[] args) throws Exception {    	
//         MemnonApplication app = new MemnonApplication();
//         app.run(args);
//     }
// 
//     @Override
//     public void initialize(Bootstrap<MemnonConfiguration> bootstrap) {
//         bootstrap.addBundle(new AssetsBundle("/ui", "/foo"));
//         // bootstrap.addCommand(new MemnonCommand(this));
//     }
// 
//     @Override
//     public void run(MemnonConfiguration configuration, Environment env) throws Exception {    	
//         this.setStorage(new CassandraStorage(configuration.getHost(), configuration.getPort()));
//         env.jersey().register(new DataResource(this));
//         env.healthChecks().register("Cassandra", new CassandraHealthCheck(this, configuration));
//         env.jersey().register(new KeyspaceExceptionMapper());
//     }
// 
//     public CassandraStorage getStorage() {
//         return storage;
//     }
// 
//     public void setStorage(CassandraStorage storage) {
//         MemnonApplication.storage = storage;
//     }
// 
//     public MemnonConfiguration getConfig() {
//         return config;
//     }
// 
//     public void setConfig(MemnonConfiguration config) {
//         this.config = config;
//     }
// }


// Path: webservice/src/test/java/com/hmsonline/memnon/EmbeddableServer.java
import com.griddelta.memnon.MemnonApplication;

package com.hmsonline.memnon;



public class EmbeddableServer implements Runnable {
    String[] args = null;
    
    public EmbeddableServer(String[] args){
        this.args = args;        
    }

    public void run() {
        try {
            MemnonApplication.main(this.args);