org.wso2.carbon.databridge.core.exception.StreamDefinitionStoreException Java Examples
The following examples show how to use
org.wso2.carbon.databridge.core.exception.StreamDefinitionStoreException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestWso2EventServer.java From product-cep with Apache License 2.0 | 6 votes |
public static void main(String[] args) throws DataBridgeException, StreamDefinitionStoreException { Runtime.getRuntime().addShutdownHook(new Thread() { @Override public void run() { try { log.info("Final event count: " + testServer.counter.get()); } catch (Throwable t) { log.error("Unexpected error when running shutdown hook:" + t.getMessage(), t); } } }); log.info("Shutdown hook added."); testServer.start(args[0], Integer.parseInt(args[1]), args[2], Integer.parseInt(args[3]), args[4]); synchronized (testServer) { try { testServer.wait(); } catch (InterruptedException ignored) { //ignore } } }
Example #2
Source File: TestWso2EventServer.java From product-cep with Apache License 2.0 | 5 votes |
public static void main(String[] args) throws DataBridgeException, StreamDefinitionStoreException { testServer.start(args[0], Integer.parseInt(args[1]), args[2], args[3]); synchronized (testServer) { try { testServer.wait(); } catch (InterruptedException ignored) { } } }
Example #3
Source File: ThriftServer.java From micro-integrator with Apache License 2.0 | 4 votes |
public void startServer() throws DataBridgeException, StreamDefinitionStoreException { msgCount.set(0); start(listeningPort); }
Example #4
Source File: ThriftServer.java From product-ei with Apache License 2.0 | 4 votes |
public void startServer() throws DataBridgeException, StreamDefinitionStoreException { msgCount.set(0); start(listeningPort); }
Example #5
Source File: Wso2EventServer.java From product-cep with Apache License 2.0 | 4 votes |
public void startServer() throws DataBridgeException, StreamDefinitionStoreException { msgCount.set(0); start(listeningPort); }
Example #6
Source File: ThriftTestServer.java From attic-stratos with Apache License 2.0 | 4 votes |
public void addStreamDefinition(StreamDefinition streamDefinition, int tenantId) throws StreamDefinitionStoreException { streamDefinitionStore.saveStreamDefinitionToStore(streamDefinition, tenantId); }
Example #7
Source File: ThriftTestServer.java From attic-stratos with Apache License 2.0 | 4 votes |
public void addStreamDefinition(String streamDefinitionStr, int tenantId) throws StreamDefinitionStoreException, MalformedStreamDefinitionException { StreamDefinition streamDefinition = EventDefinitionConverterUtils.convertFromJson(streamDefinitionStr); getStreamDefinitionStore().saveStreamDefinitionToStore(streamDefinition, tenantId); }
Example #8
Source File: ThriftTestServer.java From attic-stratos with Apache License 2.0 | 4 votes |
public void addStreamDefinition(StreamDefinition streamDefinition, int tenantId) throws StreamDefinitionStoreException { streamDefinitionStore.saveStreamDefinitionToStore(streamDefinition, tenantId); }
Example #9
Source File: ThriftTestServer.java From attic-stratos with Apache License 2.0 | 4 votes |
public void addStreamDefinition(String streamDefinitionStr, int tenantId) throws StreamDefinitionStoreException, MalformedStreamDefinitionException { StreamDefinition streamDefinition = EventDefinitionConverterUtils.convertFromJson(streamDefinitionStr); getStreamDefinitionStore().saveStreamDefinitionToStore(streamDefinition, tenantId); }
Example #10
Source File: ThriftTestServer.java From product-private-paas with Apache License 2.0 | 4 votes |
public void addStreamDefinition(StreamDefinition streamDefinition, int tenantId) throws StreamDefinitionStoreException { streamDefinitionStore.saveStreamDefinitionToStore(streamDefinition, tenantId); }
Example #11
Source File: ThriftTestServer.java From product-private-paas with Apache License 2.0 | 4 votes |
public void addStreamDefinition(String streamDefinitionStr, int tenantId) throws StreamDefinitionStoreException, MalformedStreamDefinitionException { StreamDefinition streamDefinition = EventDefinitionConverterUtils.convertFromJson(streamDefinitionStr); getStreamDefinitionStore().saveStreamDefinitionToStore(streamDefinition, tenantId); }