Search in sources :

Example 1 with ManagementProcessor

use of com.swiftmq.impl.streams.processor.ManagementProcessor in project swiftmq-ce by iitsoftware.

the class ManagementInput method start.

@Override
public void start() throws Exception {
    if (started)
        return;
    try {
        EntityList inputList = (EntityList) ctx.usage.getEntity("inputs");
        usage = inputList.createEntity();
        usage.setName(name.replace('/', '_'));
        usage.createCommands();
        inputList.addEntity(usage);
        usage.getProperty("atype").setValue("Management");
    } catch (Exception e) {
        e.printStackTrace();
    }
    managementProcessor = new ManagementProcessor(ctx, this);
    managementProcessor.register();
    started = true;
}
Also used : ManagementProcessor(com.swiftmq.impl.streams.processor.ManagementProcessor) EntityList(com.swiftmq.mgmt.EntityList) EntityRemoveException(com.swiftmq.mgmt.EntityRemoveException)

Aggregations

ManagementProcessor (com.swiftmq.impl.streams.processor.ManagementProcessor)1 EntityList (com.swiftmq.mgmt.EntityList)1 EntityRemoveException (com.swiftmq.mgmt.EntityRemoveException)1