/** * Deploy the currently configured project. This method returns at once with an id. The deploy process is conducted * asynchronously. The result can be retrieved using the events raised by this domain where the processId-field * contains the supplied processId */ @Raises({ DeployStartEvent.class, DeployFailEvent.class, DeploySuccessEvent.class }) void deploy(long processId); }
/** * Returns the {@link OsgiUtilsService} from the OSGi registry. This service helps to retrieve services from the * OSGi registry directly from the code. */ public static OsgiUtilsService getServiceUtilsService() throws OsgiServiceNotAvailableException { return serviceUtils.getOsgiServiceProxy(OsgiUtilsService.class); }
@Override public boolean isConnectorCurrentlyPresent(Class<? extends Domain> domainType) { Domain service; try { service = utilsService.getService(domainType, DEFAULT_TIMEOUT); } catch (OsgiServiceNotAvailableException e) { return false; } return service != null; }
@Override public <T extends Domain> T getDomainEndpoint(Class<T> domainType, String location, String context) { Filter filter = utilsService.getFilterForLocation(domainType, location, context); return utilsService.getOsgiServiceProxy(filter, domainType); }
@Override public Long getProcessId(Event e) { if (e == null) { return null; } return e.getProcessId(); }
@Override public ArrayList<String> generateReleaseReport(String arg0) { // Not available in ghapi // TODO: OPENENGSB-1542 throw new DomainMethodNotImplementedException("method not yet implemented"); }
/** * Connectors may implement this interface to be notified about events. */ @MixinDomain("event") public interface EventSupport { void onEvent(Event event); }
/** * build the currently configured project. This method returns at once with an id. The build is conducted * asynchronously. The result can be retrieved using the events raised by this domain, which also contain the id. */ @Raises({ BuildStartEvent.class, BuildSuccessEvent.class }) String build();
@Override public <T extends Domain> T getDomainEndpoint(Class<T> domainType, String location) { Filter filter = utilsService.getFilterForLocation(domainType, location); return utilsService.getOsgiServiceProxy(filter, domainType); }
/** * Sets the internal osgiServiceUtils class. This class does not have to be that one exported via * {@link #getServiceUtilsService()} since a user can export an implementation of this service with a higher * priority (for any reason). */ public static void setOsgiServiceUtils(OsgiUtilsService serviceUtils) throws OsgiServiceNotAvailableException { OpenEngSBCoreServices.serviceUtils = serviceUtils.getOsgiServiceProxy(OsgiUtilsService.class); }
@Override public void closeRelease(String arg0) { // Not available in ghapi // TODO: OPENENGSB-1542 throw new DomainMethodNotImplementedException("method not yet implemented"); }
/** * build the currently configured project. This method returns at once with an id. The build is conducted * asynchronously. As soon as the build is finished an event is raised. The processId-field of the event must be * populated with the supplied processId. */ @Raises({ BuildStartEvent.class, BuildSuccessEvent.class }) void build(long processId);
/** * Wiring is one of the core concepts in the OpenEngSB. The service retrieved by this method is used to get the * endpoints which can be reached within the OpenEngSB. */ public static WiringService getWiringService() throws OsgiServiceNotAvailableException { return serviceUtils.getOsgiServiceProxy(WiringService.class); }
@Override public void moveIssuesFromReleaseToRelease(String arg0, String arg1) { // Not available in ghapi // TODO: OPENENGSB-1541 throw new DomainMethodNotImplementedException("method not yet implemented"); }
/** * build the currently configured project. This method returns at once with an id. The build is conducted * asynchronously. As soon as the build is finished an event is raised. The processId-field of the event must be * populated with the supplied processId. */ @Raises({ BuildStartEvent.class, BuildSuccessEvent.class }) void build(long processId);
/** * run all tests for the currently configured project. This method returns at once with an id. The tests are run * asynchronously. The result can be retrieved using the events raised by this domain, which also contain the id. */ @Raises({ TestStartEvent.class, TestSuccessEvent.class, TestFailEvent.class }) String runTests();
/** * run all tests for the currently configured project. This method returns at once with an id. The tests are run * asynchronously. The result can be retrieved using the events raised by this domain, with the processId set to the * supplied processId */ @Raises({ TestStartEvent.class, TestSuccessEvent.class, TestFailEvent.class }) void runTests(long processId); }
/** * run all tests for the currently configured project. This method returns at once with an id. The tests are run * asynchronously. The result can be retrieved using the events raised by this domain, with the processId set to the * supplied processId */ @Raises({ TestStartEvent.class, TestSuccessEvent.class, TestFailEvent.class }) void runTests(long processId); }
/** * run all tests for the currently configured project. This method returns at once with an id. The tests are run * asynchronously. The result can be retrieved using the events raised by this domain, which also contain the id. */ @Raises({ TestStartEvent.class, TestSuccessEvent.class, TestFailEvent.class }) String runTests();
/** * build the currently configured project. This method returns at once with an id. The build is conducted * asynchronously. The result can be retrieved using the events raised by this domain, which also contain the id. */ @Raises({ BuildStartEvent.class, BuildSuccessEvent.class }) String build();