Examples of IScanStatus


Examples of fr.soleil.salsa.entity.IScanStatus

    /**
     * Refresh the screen based on the datas.
     */
    private void refresh() {
        IScanStatus ss = dao.getData();

        if (ss != null) {

            String status = ss.getStatus();
            this.status = status;
            if (status != null && status.length() > 25) {
                status = status.substring(0, 24);
                status = status + "...";
            }
            lblStatus.setText(status);
            lblRunStartDate.setText(ss.getRunStartDate());
            lblRunRemainingTime.setText(ss.getRunRemainingTime());
            lblScanStartDate.setText(ss.getScanStartDate());
            pbProgress.setValue((int) Math.abs(ss.getScanCompletion()));
            pbProgress.setString("" + Math.round(ss.getScanCompletion() * 100) / 100.0);

            // lblDeadTime.setText("" + ss.getDeadTime() + "ms ( " + ss.getDeadTimePercentage()+
            // " %)");
            lblDeadTime.setText(String.format("%6.3f ms ( %6.3f ", ss.getDeadTime(), ss
                    .getDeadTimePercentage())
                    + " %)");

            lblScanRemaining.setText(ss.getScanRemainingTime());
            lblScanServer.setText(ModelPreferences.getInstance().getScanServer());
            mainPanel.setBackground(getColor(ss.getState()));

        }
        else {
            clear();
        }
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanStatus

    /**
     * Refresh the screen based on the datas.
     */
    private void refresh() {
        IScanStatus ss = dao.getData();

        if (ss != null) {

            String status = ss.getStatus();
            this.status = status;
            if (status != null && status.length() > 25) {
                status = status.substring(0, 24);
                status = status + "...";
            }
            lblStatus.setText(status);
            lblRunStartDate.setText(ss.getRunStartDate());
            lblRunRemainingTime.setText(ss.getRunRemainingTime());
            lblScanStartDate.setText(ss.getScanStartDate());
            pbProgress.setValue((int) Math.abs(ss.getScanCompletion()));
            pbProgress.setString("" + Math.round(ss.getScanCompletion() * 100) / 100.0);

            // lblDeadTime.setText("" + ss.getDeadTime() + "ms ( " + ss.getDeadTimePercentage()+
            // " %)");
            lblDeadTime.setText(String.format("%6.3f ms ( %6.3f ", ss.getDeadTime(), ss
                    .getDeadTimePercentage())
                    + " %)");

            lblScanRemaining.setText(ss.getScanRemainingTime());
            lblScanServer.setText(ModelPreferences.getInstance().getScanServer());
            mainPanel.setBackground(getColor(ss.getState()));

        }
        else {
            clear();
        }
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanStatus

     * @return The corresponding {@link IScanStatus}
     * @throws SalsaDeviceException If a problem occurred while trying to get the status, or if
     *             there was no way to get such a status (bad parameter).
     */
    public static IScanStatus getStatus(String scanServerName) throws SalsaDeviceException {
        IScanStatus reasStatus = ScanStatusApi.getStatus(scanServerName);
        LOGGER.info("{}.getStatus({})={}", SalsaAPI.class.getSimpleName(), scanServerName, reasStatus);
        return reasStatus;
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanStatus

     * @throws SalsaDeviceException
     */
    public IScanStatus getScanStatus(String scanServerName) throws SalsaDeviceException {
        try {

            IScanStatus result = new ScanStatusImpl();
            DeviceProxy scanServerProxy = getScanServerProxy(scanServerName);
            DevState state = scanServerProxy.read_attribute("State").extractState();
            result.setState("" + state.value());

            result.setStatus(scanServerProxy.read_attribute("Status").extractString());
            result.setRunStartDate(scanServerProxy.read_attribute("runStartDate").extractString());
            result
                    .setScanStartDate(scanServerProxy.read_attribute("scanStartDate")
                            .extractString());
            result.setScanEndDate(scanServerProxy.read_attribute("scanEndDate").extractString());
            result.setRunEndDate(scanServerProxy.read_attribute("runEndDate").extractString());
            result.setScanDuration(scanServerProxy.read_attribute("scanDuration").extractString());
            result.setRunDuration(scanServerProxy.read_attribute("runDuration").extractString());
            result.setScanRemainingTime(scanServerProxy.read_attribute("scanRemainingTime")
                    .extractString());
            result.setRunRemainingTime(scanServerProxy.read_attribute("runRemainingTime")
                    .extractString());
            result.setScanElapsed(scanServerProxy.read_attribute("scanElapsed").extractString());
            result.setRunElapsed(scanServerProxy.read_attribute("runElapsed").extractString());
            result
                    .setRunCompletion(scanServerProxy.read_attribute("runCompletion")
                            .extractDouble());
            result.setScanCompletion(scanServerProxy.read_attribute("scanCompletion")
                    .extractDouble());
            result.setDeadTime(scanServerProxy.read_attribute("deadTime").extractDouble());
            result.setDeadTimePercentage(scanServerProxy.read_attribute("deadTimePercent")
                    .extractDouble());
            result.setDeadTimePerPoint(scanServerProxy.read_attribute("deadTimePerPoint")
                    .extractDouble());
            return result;
        }
        catch (DevFailed e) {
            invalidateScanServerProxy(scanServerName);
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanStatus

    @Override
    public IScanStatus getData() {
        try {
            String scanServer = ModelPreferences.getInstance().getScanServer();
            if (scanServer != null && (!"".equals(scanServer.trim()))) {
                IScanStatus ss = ScanStatusApi.getStatus(scanServer);
                return ss;
            }
            else {
                return null;
            }
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanStatus

     * Refresh the screen based on the datas.
     */
    private void refresh() {
        SalsaDAOFactory factory = (SalsaDAOFactory) DAOFactoryManager
                .registerFactory(SalsaDAOFactory.class.getName());
        IScanStatus ss = factory.getScanStatusDAO().getData();

        if (ss != null) {

            String status = ss.getStatus();
            this.status = status;
            if (status != null && status.length() > 25) {
                status = status.substring(0, 24);
                status = status + "...";
            }
            lblStatus.setText(status);
            lblRunStartDate.setText(ss.getRunStartDate());
            lblRunRemainingTime.setText(ss.getRunRemainingTime());
            lblScanStartDate.setText(ss.getScanStartDate());
            pbProgress.setValue((int) Math.abs(ss.getScanCompletion()));
            pbProgress.setString("" + Math.round(ss.getScanCompletion() * 100) / 100.0);

            // lblDeadTime.setText("" + ss.getDeadTime() + "ms ( " + ss.getDeadTimePercentage()+
            // " %)");
            lblDeadTime.setText(String.format("%6.3f ms ( %6.3f ", ss.getDeadTime(),
                    ss.getDeadTimePercentage())
                    + " %)");

            lblScanRemaining.setText(ss.getScanRemainingTime());
            lblScanServer.setText(getController() == null
                    || getController().getDevicePreferences() == null ? null : getController()
                    .getDevicePreferences().getScanServer());
            mainPanel.setBackground(getColor(ss.getState()));

        }
        else {
            clear();
        }
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanStatus

     * @return The corresponding {@link IScanStatus}
     * @throws SalsaDeviceException If a problem occurred while trying to get the status, or if
     *             there was no way to get such a status (bad parameter).
     */
    public static IScanStatus getStatus(String scanServerName) throws SalsaDeviceException {
        IScanStatus reasStatus = ScanStatusApi.getStatus(scanServerName);
        LOGGER.info("{}.getStatus({})={}", SalsaAPI.class.getSimpleName(), scanServerName, reasStatus);
        return reasStatus;
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanStatus

     * Refresh the screen based on the datas.
     */
    private void refresh() {
        SalsaDAOFactory factory = (SalsaDAOFactory) DAOFactoryManager
                .registerFactory(SalsaDAOFactory.class.getName());
        IScanStatus ss = factory.getScanStatusDAO().getData();

        if (ss != null) {

            String status = ss.getStatus();
            this.status = status;
            if (status != null && status.length() > 25) {
                status = status.substring(0, 24);
                status = status + "...";
            }
            lblStatus.setText(status);
            lblRunStartDate.setText(ss.getRunStartDate());
            lblRunRemainingTime.setText(ss.getRunRemainingTime());
            lblScanStartDate.setText(ss.getScanStartDate());
            pbProgress.setValue((int) Math.abs(ss.getScanCompletion()));
            pbProgress.setString("" + Math.round(ss.getScanCompletion() * 100) / 100.0);

            // lblDeadTime.setText("" + ss.getDeadTime() + "ms ( " + ss.getDeadTimePercentage()+
            // " %)");
            lblDeadTime.setText(String.format("%6.3f ms ( %6.3f ", ss.getDeadTime(), ss
                    .getDeadTimePercentage())
                    + " %)");

            lblScanRemaining.setText(ss.getScanRemainingTime());
            lblScanServer.setText(ModelPreferences.getInstance().getScanServer());
            mainPanel.setBackground(getColor(ss.getState()));

        }
        else {
            clear();
        }
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanStatus

    @Override
    public IScanStatus getData() {
        try {
            String scanServer = ModelPreferences.getInstance().getScanServer();
            if (scanServer != null && (!"".equals(scanServer.trim()))) {
                IScanStatus ss = ScanStatusApi.getStatus(scanServer);
                return ss;
            }
            else {
                return null;
            }
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanStatus

    @Override
    public IScanStatus getData() {
        try {
            String scanServer = ModelPreferences.getInstance().getScanServer();
            if (scanServer != null && (!"".equals(scanServer.trim()))) {
                IScanStatus ss = ScanStatusApi.getStatus(scanServer);
                return ss;
            }
            else {
                return 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.