Package com.betfair.cougar.transport.api.protocol.events.jms

Examples of com.betfair.cougar.transport.api.protocol.events.jms.JMSParamBindingDescriptor


    private EventBindingDescriptor[] eventBindings;
    private ServiceVersion serviceVersion;

    public PingEventServiceBindingDescriptor() {
        List<JMSParamBindingDescriptor> bindingDescriptors = new ArrayList<JMSParamBindingDescriptor>();
        JMSParamBindingDescriptor emissionTime = new JMSParamBindingDescriptor("emissionTime", JMSParamBindingDescriptor.ParamSource.BODY);
        bindingDescriptors.add(emissionTime);
        eventBindings = new EventBindingDescriptor[] { new JMSEventBindingDescriptor("PingEvent",bindingDescriptors,PingEvent.class) };

        serviceVersion = new ServiceVersion("v"+CougarVersion.getMajorMinorVersion());
    }
View Full Code Here


  private final ServiceVersion serviceVersion = new ServiceVersion("v2.0");
  private final String serviceName = "Baseline";

  public BaselineJMSServiceBindingDescriptor() {
    List<JMSParamBindingDescriptor> timeTickParamBindings = new ArrayList<JMSParamBindingDescriptor>();
    timeTickParamBindings.add(new JMSParamBindingDescriptor("time", ParamSource.BODY));
    timeTickEventDescriptor = new JMSEventBindingDescriptor("TimeTick", timeTickParamBindings, TimeTick.class);

    List<JMSParamBindingDescriptor> matchedBetParamBindings = new ArrayList<JMSParamBindingDescriptor>();
    matchedBetParamBindings.add(new JMSParamBindingDescriptor("matchedBet", ParamSource.BODY));
    matchedBetParamBindings.add(new JMSParamBindingDescriptor("market", ParamSource.BODY));
    matchedBetEventDescriptor = new JMSEventBindingDescriptor("MatchedBet", matchedBetParamBindings, MatchedBet.class);

    List<JMSParamBindingDescriptor> logMessageParamBindings = new ArrayList<JMSParamBindingDescriptor>();
    logMessageParamBindings.add(new JMSParamBindingDescriptor("logString", ParamSource.BODY));
    logMessageParamBindings.add(new JMSParamBindingDescriptor("logLevel", ParamSource.BODY));
    logMessageParamBindings.add(new JMSParamBindingDescriptor("timeStamp", ParamSource.BODY));
    logMessageEventDescriptor = new JMSEventBindingDescriptor("LogMessage", logMessageParamBindings, LogMessage.class);

    events = new JMSEventBindingDescriptor[] {
        timeTickEventDescriptor,
        matchedBetEventDescriptor,
View Full Code Here

  private final ServiceVersion serviceVersion = new ServiceVersion("v2.8");
  private final String serviceName = "Baseline";

  public BaselineJMSServiceBindingDescriptor() {
    List<JMSParamBindingDescriptor> timeTickParamBindings = new ArrayList<JMSParamBindingDescriptor>();
    timeTickParamBindings.add(new JMSParamBindingDescriptor("time", ParamSource.BODY));
    timeTickEventDescriptor = new JMSEventBindingDescriptor("TimeTick", timeTickParamBindings, TimeTick.class);

    List<JMSParamBindingDescriptor> matchedBetParamBindings = new ArrayList<JMSParamBindingDescriptor>();
    matchedBetParamBindings.add(new JMSParamBindingDescriptor("body", ParamSource.BODY));
    matchedBetEventDescriptor = new JMSEventBindingDescriptor("MatchedBet", matchedBetParamBindings, MatchedBet.class);

    List<JMSParamBindingDescriptor> logMessageParamBindings = new ArrayList<JMSParamBindingDescriptor>();
    logMessageParamBindings.add(new JMSParamBindingDescriptor("body", ParamSource.BODY));
    logMessageEventDescriptor = new JMSEventBindingDescriptor("LogMessage", logMessageParamBindings, LogMessage.class);

    List<JMSParamBindingDescriptor> listEventParamBindings = new ArrayList<JMSParamBindingDescriptor>();
    listEventParamBindings.add(new JMSParamBindingDescriptor("messageList", ParamSource.BODY));
    listEventEventDescriptor = new JMSEventBindingDescriptor("ListEvent", listEventParamBindings, ListEvent.class);

    List<JMSParamBindingDescriptor> setEventParamBindings = new ArrayList<JMSParamBindingDescriptor>();
    setEventParamBindings.add(new JMSParamBindingDescriptor("messageSet", ParamSource.BODY));
    setEventEventDescriptor = new JMSEventBindingDescriptor("SetEvent", setEventParamBindings, SetEvent.class);

    List<JMSParamBindingDescriptor> mapEventParamBindings = new ArrayList<JMSParamBindingDescriptor>();
    mapEventParamBindings.add(new JMSParamBindingDescriptor("messageMap", ParamSource.BODY));
    mapEventEventDescriptor = new JMSEventBindingDescriptor("MapEvent", mapEventParamBindings, MapEvent.class);

    List<JMSParamBindingDescriptor> longEventParamBindings = new ArrayList<JMSParamBindingDescriptor>();
    longEventParamBindings.add(new JMSParamBindingDescriptor("longArg", ParamSource.BODY));
    longEventEventDescriptor = new JMSEventBindingDescriptor("LongEvent", longEventParamBindings, LongEvent.class);

    events = new JMSEventBindingDescriptor[] {
        timeTickEventDescriptor,
        matchedBetEventDescriptor,
View Full Code Here

TOP

Related Classes of com.betfair.cougar.transport.api.protocol.events.jms.JMSParamBindingDescriptor

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.