Examples of ScanState


Examples of fr.soleil.salsa.entity.ScanState

     * Called at regular intervals by PeriodicRefreshUpdater so that the controller updates the
     * state of the read / resume buttons.
     */
    @Override
    public void refresh() {
        ScanState newState = readScanState();
        if (newState != state) {
            state = newState;
            updateView();
        }
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.ScanState

     * @param scanServerName
     * @return
     * @throws SalsaDeviceException
     */
    public ScanState getScanState(String scanServerName) throws SalsaDeviceException {
        ScanState state = ScanState.STOPPED;
        if (TangoDeviceHelper.isDeviceRunning(scanServerName)) {
            try {
                DeviceProxy scanServerProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                if (scanServerProxy != null) {
                    DevState devstate = scanServerProxy.state();
View Full Code Here

Examples of fr.soleil.salsa.entity.ScanState

     * @param scanServerName
     * @return
     * @throws SalsaDeviceException
     */
    public ScanState getScanState(String scanServerName) throws SalsaDeviceException {
        ScanState state = ScanState.STOPPED;

        String stateString = DeviceConnectionManager.getDeviceState(scanServerName);
        if (StateUtilities.getNameForState(DevState.ON).equals(stateString)) {
            state = ScanState.STOPPED;
        }
View Full Code Here

Examples of fr.soleil.salsa.entity.ScanState

     * @return A {@link ScanState}. If there is a problem with the given Scan Server, the default
     *         value {@link ScanState#STOPPED} is returned
     * @throws SalsaDeviceException If <code>scanServerName</code> is <code>null</code>
     */
    public static ScanState getScanState(String scanServerName) throws SalsaDeviceException {
        ScanState state = ScanApi.getScanState(scanServerName);
        LOGGER.trace("{}.getScanState({})={}", SalsaAPI.class.getSimpleName(), scanServerName, state);
        return state;
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.ScanState

     * @param scanServerName
     * @return
     * @throws SalsaDeviceException
     */
    public ScanState getScanState(String scanServerName) throws SalsaDeviceException {
        ScanState state = ScanState.STOPPED;

        try {
            DeviceProxy scanServerProxy = ScanServerManager.getScanServerProxy(scanServerName);
            if (scanServerProxy != null) {
                DevState devstate = scanServerProxy.state();
View Full Code Here

Examples of fr.soleil.salsa.entity.ScanState

     * Reads the state of the server and returns true if a scan is running.
     *
     * @return
     */
    protected ScanState readScanState() {
        ScanState newState;
        String scanServerName = getScanServer();
        if (scanServerName != null && !"".equals(scanServerName.trim())) {
            try {
                newState = ScanApi.getScanState(scanServerName);
                inError = false;
View Full Code Here

Examples of fr.soleil.salsa.entity.ScanState

     * Called at regular intervals by PeriodicRefreshUpdater so that the controller updates the
     * state of the read / resume buttons.
     */
    @Override
    public void refresh() {
        ScanState newState = readScanState();
        if (newState != state) {
            state = newState;
            updateView();
        }
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.ScanState

     * Reads the state of the server and returns true if a scan is running.
     *
     * @return
     */
    protected ScanState readScanState() {
        ScanState newState;
        String scanServerName = getScanServer();
        if (scanServerName != null && !"".equals(scanServerName.trim())) {
            try {
                newState = ScanApi.getScanState(scanServerName);
                inError = false;
View Full Code Here

Examples of fr.soleil.salsa.entity.ScanState

     * Called at regular intervals by PeriodicRefreshUpdater so that the controller updates the
     * state of the read / resume buttons.
     */
    @Override
    public void refresh() {
        ScanState newState = readScanState();
        if (newState != state) {
            state = newState;
            updateView();
        }
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.ScanState

    }

    @Override
    public void refresh() {
        fireDAOChanged();
        ScanState newState = readScanState();

        if (newState != state) {
            state = newState;
            if (state == ScanState.STOPPED) {
                if (controller != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.