Search in sources :

Example 1 with StreamCreationException

use of org.codice.alliance.video.stream.mpegts.plugins.StreamCreationException in project alliance by codice.

the class UdpStreamProcessor method init.

/**
 * Initializes the processor. Users should call {@link #isReady()} first to make sure the
 * processor is ready to run.
 */
public void init() {
    Security security = Security.getInstance();
    security.runAsAdmin(() -> {
        if (streamCreationSubject == null) {
            streamCreationSubject = security.getSystemSubject();
        }
        streamCreationSubject.execute(() -> {
            try {
                streamCreationPlugin.onCreate(context);
            } catch (StreamCreationException e) {
                LOGGER.debug("unable to run stream creation plugin", e);
            }
            return null;
        });
        return null;
    });
}
Also used : StreamCreationException(org.codice.alliance.video.stream.mpegts.plugins.StreamCreationException) Security(org.codice.ddf.security.common.Security)

Aggregations

StreamCreationException (org.codice.alliance.video.stream.mpegts.plugins.StreamCreationException)1 Security (org.codice.ddf.security.common.Security)1