Package com.jointhegrid.ironcount.manager

Examples of com.jointhegrid.ironcount.manager.Workload


  }

  public static void applyWorkload(String file) {
    ObjectMapper m = new ObjectMapper();
    JavaType t = TypeFactory.type(Workload.class);
    Workload work = null;
    try {
      work = (Workload) m.readValue(new File(file), t);
    } catch (IOException ex) {
      System.out.println(ex);
    }
View Full Code Here


*
* @author edward
*/
public class SerializeWorkload {
  public static void main(String []args){
    Workload w = new Workload();
    w.active = true;
    w.consumerGroup = "group1";
    w.maxWorkers = 4;
    w.messageHandlerName = "com.jointhegrid.ironcount.mockingbird.MockingBirdMessageHandler";
    w.name = "testworkload";
View Full Code Here

public class HandlerExceptionIntegrationTest extends IronIntegrationTest {

  @Test
  public void disableWorkload() {
    Workload w = new Workload();
    w.active = true;
    w.consumerGroup = "group1";
    w.maxWorkers = 4;
    w.messageHandlerName = "com.jointhegrid.ironcount.HeartAttachHandler";
    w.name = "testworkload";
View Full Code Here

public class DisableWorkloadTest extends IronIntegrationTest {

  @Test
  public void disableWorkload(){
    Workload w = new Workload();
    w.active = true;
    w.consumerGroup = "group1";
    w.maxWorkers = 4;
    w.messageHandlerName = "com.jointhegrid.ironcount.SimpleMessageHandler";
    w.name = "testworkload";
View Full Code Here

public class HandlerFromURLIntegrationTest extends IronIntegrationTest {

  @Test
  public void test() throws MalformedURLException, Exception{
     Workload w = new Workload();
    w.active = true;
    w.consumerGroup = "group1";
    w.maxWorkers = 4;
    w.messageHandlerName = "com.jointhegrid.fromurl.MessageToFileHandlerFromURL";
    w.name = "fromURL";
View Full Code Here

public class StateMachineTest extends IronIntegrationTest {

  @Test
  public void disableWorkload() {
    Workload w = new Workload();
    w.active = true;
    w.consumerGroup = "group1";
    w.maxWorkers = 4;
    w.messageHandlerName = "com.jointhegrid.ironcount.SimpleMessageHandler";
    w.name = "testworkload";
View Full Code Here

public class ClassNotFoundTestIntegrationTest
        extends IronIntegrationTest {

  @Test
  public void disableWorkload(){
    Workload w = new Workload();
    w.active = true;
    w.consumerGroup = "group1";
    w.maxWorkers = 4;
    w.messageHandlerName = "bad.class.name";
    w.name = "testworkload";
View Full Code Here

    cqlQuery.setQuery("create columnfamily mockingbird (key 'org.apache.cassandra.db.marshal.UTF8Type' primary key) with  "
            + "comparator = 'org.apache.cassandra.db.marshal.UTF8Type' "
            + "and default_validation = 'CounterColumnType' ");
    QueryResult<CqlRows<String, String, String>> result = cqlQuery.execute();

    Workload w = new Workload();
    w.active = true;
    w.consumerGroup = "group1";
    w.maxWorkers = 4;
    w.messageHandlerName = "com.jointhegrid.ironcount.mockingbird.MockingBirdMessageHandler";
    w.name = "testworkload";
View Full Code Here

   @Test
  public void mockingBirdDemo() throws FileNotFoundException, IOException {


    Workload w = new Workload();
    w.active = true;
    w.consumerGroup = "group1";
    w.maxWorkers = 4;
    w.messageHandlerName = "com.jointhegrid.ironcount.caligraphy.CaligraphyMessageHandler";
    w.name = "cworkload";
View Full Code Here

            + "comparator = 'org.apache.cassandra.db.marshal.UTF8Type' "
            + "and default_validation = 'CounterColumnType' ");
    result = cqlQuery.execute();

  
    Workload reducer = new Workload();
    reducer.active = true;
    reducer.consumerGroup = "group1";
    reducer.maxWorkers = 4;
    reducer.messageHandlerName = "com.jointhegrid.ironcount.mapreduce.ReduceHandler";

    reducer.name = "reduce";
    reducer.properties = new HashMap<String, String>();

    reducer.properties.put("mr.cas", "localhost:9157");
    reducer.properties.put("mr.ks", "mr");

    reducer.topic = "reduce";
    reducer.zkConnect = "localhost:8888";

    Workload mapper = new Workload();
    mapper.active = true;
    mapper.consumerGroup = "group1";
    mapper.maxWorkers = 4;
    mapper.messageHandlerName = "com.jointhegrid.ironcount.mapreduce.MapHandler";
    mapper.name = "map";
View Full Code Here

TOP

Related Classes of com.jointhegrid.ironcount.manager.Workload

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.