Examples of ViewProcessor


Examples of com.opengamma.engine.view.ViewProcessor

  public static void main(String[] args) {

    // set up the connection to the server that will run the simulation ------------------------------------------------

    try (RemoteServer server = RemoteServer.create("http://localhost:8080")) {
      ViewProcessor viewProcessor = server.getViewProcessor();
      ConfigSource configSource = server.getConfigSource();
      String viewDefinitionName = "AUD Swaps (3m / 6m basis) (1)";
      UniqueId viewDefId = SimulationUtils.latestViewDefinitionId(viewDefinitionName, configSource);
      List<MarketDataSpecification> marketDataSpecs =
          ImmutableList.<MarketDataSpecification>of(new LiveMarketDataSpecification("Simulated live market data"));
View Full Code Here

Examples of com.uens.query.ViewProcessor

    initRootMarker();
  }

  private void initRootMarker() throws JRScriptletException {
    try {
      ViewProcessor vp = (ViewProcessor) getParameterValue(AnalysisProcessorImpl.REPORT_VIEWPROCESSOR_PARAM);
      if (vp != null) {
        Marker m = vp.getMarker(7);
        rootMarker = m.getName();
      }
    } catch (RemoteException e) {
      throw new JRScriptletException(e.getMessage(), e);
    }
View Full Code Here

Examples of com.uens.query.ViewProcessor

  public String getRPMarker() throws JRScriptletException {
    if (rootMarker == null) {
      return null;
    }
    ViewProcessor vp = (ViewProcessor) getParameterValue(AnalysisProcessorImpl.REPORT_VIEWPROCESSOR_PARAM);
    if (vp == null) {
      return null;
    }
    try {
      Integer rpCode = (Integer) getFieldValue("RPCODE");
      MarkerExt[] ams = vp.getAssignedMarkers("EPRECORDPOINT", rpCode);
      String result = null;
      for (int i = 0; i < ams.length; i++) {
        MarkerExt m = ams[i];
        if (m.getName().startsWith(rootMarker)) {
          String[] parts = m.getName().split(" => ");
View Full Code Here

Examples of org.nutz.mvc.impl.processor.ViewProcessor

public class ViewProcessorTest extends AbstractMvcTest {

  @Test
  public void test_error_processor() throws Throwable {
    ViewProcessor p = new EViewProcessor();
    ActionContext ac = new ActionContext();
    ac.setRequest(request).setResponse(response).setServletContext(servletContext);
    Throwable t = new Throwable();
    ac.setError(t);
    p.process(ac);
    Object obj = request.getAttribute(ViewProcessor.DEFAULT_ATTRIBUTE);
    assertNotNull(obj);
    assertTrue(obj instanceof Throwable);
    assertEquals(t, obj);
  }
View Full Code Here

Examples of org.nutz.mvc.impl.processor.ViewProcessor

public class ViewProcessorTest extends AbstractMvcTest {

    @Test
    public void test_error_processor() throws Throwable {
        ViewProcessor p = new EViewProcessor();
        ActionContext ac = new ActionContext();
        ac.setRequest(request).setResponse(response).setServletContext(servletContext);
        Throwable t = new Throwable();
        ac.setError(t);
        p.process(ac);
        Object obj = request.getAttribute(ViewProcessor.DEFAULT_ATTRIBUTE);
        assertNotNull(obj);
        assertTrue(obj instanceof Throwable);
        assertEquals(t, obj);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.