Code example for DeadEvent

Methods: getEvent

0
     * 
     * @param deadEvent dead event 
     */ 
    @Subscribe 
    public void handleDeadEvent(final DeadEvent deadEvent) {
        LOGGER.warn("Event not handled: {}", deadEvent.getEvent().toString());
    } 
 
    /** 
     * Create Holmes lock file. 
     * 
     * @throws RuntimeException if lock fails 
     */ 
    private boolean lockInstance() { 
        try { 
            if (fileLock == null) {
                // Create lock file 
                randomAccessFile = new RandomAccessFile(new File(localHolmesDataDir, LOCK_FILE_NAME), "rw");
                fileLock = randomAccessFile.getChannel().tryLock();
                if (fileLock == null) {
                    throw new HolmesRuntimeException("Holmes service is already running");