Get status

@return status
@throws DevFailed
494252
public String getStatus() throws DevFailed {
        MDC.setContextMap(contextMap);
        xlogger.entry();

        if (initImpl.isInitInProgress()) {
            // set status while init is in progress
            final String tmp = statusImpl.updateStatus(DeviceState.getDeviceState(getState()));
            if (tmp.equals(Constants.INIT_IN_PROGRESS)) {
                status = tmp;
            } else {
                status = Constants.INIT_IN_PROGRESS + System.getProperty("line.separator") + tmp;
            }
        } else if (isCorrectlyInit.get() && initImpl.isInitDoneCorrectly()) {
            // init finished
            status = statusImpl.updateStatus(DeviceState.getDeviceState(getState()));
        } else {
            // init failed
            status = statusImpl.getStatus();
        }

        return status;
    }
755540
static String getTangoHost() throws DevFailed
	{
		//	Check if already done
		if (tango_host==null)
			if ((tango_host=System.getProperty("TANGO_HOST"))==null)	//	From JVM property
				if ((tango_host=System.getenv("TANGO_HOST"))==null)		//	From Environment property
					if ((tango_host=getFromEnvFile("TANGO_HOST"))==null)		//	From Environment file
						Except.throw_connection_failed("TangoApi_TANGO_HOST_NOT_SET",
									"Property \"TANGO_HOST\" not exported",
									"TangoEnv.getTangoHost()");
		//	else
		return tango_host;
	}
1298860
public int getTangoVersion() throws DevFailed {

        //  Get idl for administrative device
        int adminIdl = get_adm_dev().get_idl_version();

        //  Check with ZmqEventSubscriptionChange command
        //  since 9.1.0 this command returns Tango release in info mode
        int version = getTangoVersionFromZmqEventSubscriptionChange();
        if (version>900)    //  Found
            return version;

        //  Get the command list
        CommandInfo[] commandInfoList = get_adm_dev().command_list_query();

        //  Check between idl and commands
        switch (adminIdl) {
            case 1:
                return 100;
            case 2:
                return 200;
            case 3:
                //  IDL 3 is for Tango 5 and 6. Unfortunately,
                //  there is no way from the client side to determine if it is Tango 5 or 6.
                //  The best we can do is to get the info that it is Tango 5.2 (or above)
                for (CommandInfo commandInfo : commandInfoList) {
                    if (commandInfo.cmd_name.equals("QueryWizardClassProperty"))
                        return 520;
                }
                //  Not found
                return 500;
            case 4:
                //  try if tango 8.1 (Confirm for several events)
                for (CommandInfo commandInfo : commandInfoList) {
                    if (commandInfo.cmd_name.equals("EventConfirmSubscription"))
                        return 810;
                }
                //  try if tango 8.0 (ZMQ system)
                for (CommandInfo commandInfo : commandInfoList) {
                    if (commandInfo.cmd_name.equals("ZmqEventSubscriptionChange"))
                        return 800;
                }
                return 700;
             case 5:
			 	return 900;
       }

        //  Not found
        return 0;
    }
723226
public function getStatus()
    {
        $status = self::STATUS_OK;

        foreach ($this->getItems() as $item) {
            if ($item->getStatus() === self::STATUS_ERROR) {
                return self::STATUS_ERROR;
            }

            if ($item->getStatus() === self::STATUS_WARNING) {
                $status = self::STATUS_WARNING;
            }
        }

        return $status;
    }
1286622
public boolean isArray() throws DevFailed {
	boolean retval = true;

	try {
	    final TypeCode tc = attrval.value.type();
	    final TypeCode tc_alias = tc.content_type();
	    /* TypeCode tc_seq = */
	    tc_alias.content_type();
	} catch (final org.omg.CORBA.TypeCodePackage.BadKind e) {
	    // System.out.println(e);
	    retval = false;
	}
	return retval;
    }
1215662
public synchronized Database get_db_obj() throws DevFailed {
        if (ApiUtil.getOrb() == null) {
            create_orb();
        }

        // If first time, create vector
        // ---------------------------------------------------------------
        if (db_list == null) {
            db_list = new ArrayList<Database>();
        }
        // If first time, create Database object
        // -----------------------------------------------------------
        if (defaultDatabase == null) {
            defaultDatabase = new Database();
            db_list.add(defaultDatabase);
        }
        return db_list.get(0);
    }
941817
public function getStatus() : ?int 
    {
        if ( ! $this->hasStatus()) {
            $this->setStatus($this->getDefaultStatus());
        }
        return $this->status;
    }
895811
public function getStatus()
    {
        /** @var $result CallResult */
        $result = $this->getSvn()->{'status'}($this->getRepositoryPath(), array(
            '--xml'
        ));
        $result->assertSuccess(
            sprintf('Cannot retrieve status from "%s"', $this->getRepositoryPath())
        );

        $xml    = simplexml_load_string($result->getStdOut());
        if (!$xml) {
            throw new \RuntimeException(sprintf('Cannot read status XML for "%s"', $this->getRepositoryPath()));
        }

        $status = array();
        foreach ($xml->xpath('/status/target/entry') as $entry) {
            $status[]   = array(
                'file'      => (string)$entry['path'],
                'status'    => (string)$entry->{'wc-status'}['item']
            );
        }
        return $status;
    }
744115
public String[] dev_inform(final DeviceProxy deviceProxy) throws DevFailed {
        checkIfTaco(deviceProxy, "dev_inform");
        if (deviceProxy.taco_device == null && deviceProxy.devname != null) {
            build_connection(deviceProxy);
        }
        return deviceProxy.taco_device.dev_inform();
    }
154706
public Any execute(DeviceImpl device,Any in_any) throws DevFailed
	{

		Util.out4.println("Status::execute(): arrived");
	
//
// return status string as CORBA_Any
//

		Any out_any = Util.instance().get_orb().create_any();
	
		String s = device.dev_status();
		out_any.insert_string(s);
	
		Util.out4.println("Leaving Status::execute()");
		return out_any;

	}
9747
public String updateStatus(final DeviceState state) throws DevFailed {
        xlogger.entry();
        if (getStatusMethod != null) {
            try {
                status = (String) getStatusMethod.invoke(businessObject);
            } catch (final IllegalArgumentException e) {
                throw DevFailedUtils.newDevFailed(e);
            } catch (final IllegalAccessException e) {
                throw DevFailedUtils.newDevFailed(e);
            } catch (final InvocationTargetException e) {
                if (e.getCause() instanceof DevFailed) {
                    throw (DevFailed) e.getCause();
                } else {
                    throw DevFailedUtils.newDevFailed("INVOCATION_ERROR", ExceptionUtils.getStackTrace(e.getCause())
                            + " InvocationTargetException");
                }
            }
        } else {
            if (status.isEmpty()) {
                status = "The device is in " + state + " state.";
            }
        }
        StringBuilder statusAlarm = new StringBuilder();
        for (final String string : attributeAlarm.values()) {
            statusAlarm = statusAlarm.append(string);
        }

        return status + statusAlarm;
    }
51064
public function getStatus()
    {
        /** @var $result CallResult */
        $result = $this->getGit()->{'status'}($this->getRepositoryPath(), array(
            '--short'
        ));
        $result->assertSuccess(
            sprintf('Cannot retrieve status from "%s"', $this->getRepositoryPath())
        );

        $output = rtrim($result->getStdOut());
        if (empty($output)) {
            return array();
        }

        $status = array_map(function($f) {
            $line   = rtrim($f);
            $parts  = array();
            preg_match('/^(?<x>.)(?<y>.)\s(?<f>.+?)(?:\s->\s(?<f2>.+))?$/', $line, $parts);

            $status = array(
                'file'      => $parts['f'],
                'x'         => trim($parts['x']),
                'y'         => trim($parts['y']),
                'renamed'   => (array_key_exists('f2', $parts)) ? $parts['f2'] : null
            );
            return $status;
        }, explode("\n", $output));
        return $status;
    }
758809
public Object[] readExtract() throws DevFailed {
        final DeviceAttribute[] da = read();
        final Object[] results = extract(da);
        return results;
    }
534775
public function getStatus()
    {
        if ($this->_getField(self::STORAGE_ID)) {
            return ( $this->_getField(self::$PAYMENT_INFORMATION) ) ? self::STATE_NOT_EMPTY : self::STATE_EXISTING;
        } else {
            return ( $this->_getField(self::$ERRORS) ) ? self::STATE_FAILURE : self::STATE_NOT_EXISTING;
        }
    }
1277215
public void stop() throws DevFailed {
        try {
            if (isStarted.get()) {
                tangoClasses.clear();
                if (tangoExporter != null) {
                    tangoExporter.clearClass();
                    tangoExporter.unexportAll();
                }
                TangoCacheManager.shutdown();
                EventManager.getInstance().close();
                if (monitoring != null) {
                    monitoring.stop();
                }
            }
        } finally {
            ORBManager.shutdown();
            logger.info("everything has been shutdown normally");
            isStarted.set(false);
        }
    }
295674
public function status()
	{
		if ($this->status === null) {
			$stdClass = $this->decoded();
			if ( ! $stdClass instanceof stdClass)
				return null;

			$this->status = $this->resolveStatusFromStdClass($stdClass);
		}

		return $this->status;
	}
742633
@Command(name = STATUS_NAME, outTypeDesc = "Device status")
    public String executeStatusCmd() throws DevFailed {
        MDC.setContextMap(contextMap);
        xlogger.entry();
        xlogger.exit();
        return getStatus();
    }