public int preventReboot (String whereFrom)
    {
        if (whereFrom == null) {
            throw new IllegalArgumentException("whereFrom must be descriptive.");
        }
        int lockId = _nextRebootLockId++;
        _rebootLocks.put(lockId, whereFrom);
        return lockId;
    }
public int preventReboot ( String whereFrom ) { if ( whereFrom == null ) { throw new IllegalArgumentException ( "whereFrom must be descriptive." ) ; } int lockId = _nextRebootLockId ++ ; _rebootLocks . put ( lockId , whereFrom ) ; return lockId ; }
Called by an entity that would like to prevent a reboot.