App without head: how to check the status

1. I read this on the BB site:

Criticism

Process that must be running at all times (for example, system processes)

In the foreground

Processes that are running in the foreground

Background

Processes that run in the background

Stop

Process involved in RAM without running

The question is can we write the code to check the States of the app to trigger certain activities?

I also want to know the other possible States of the life cycle such as: "application started", "closed app"...

A problem critical of the app without head is memory management, and we can only until BB have a better explanation on the life cycle of the app without a head.

2. for an application in the short-term, event after 20 years, the app is still listed on memory and CPU usage. That seems abnormal, because I guess that after 20 years, the application will be stopped and not be able to use the memory and CPU more.

Can someone explain?

Thank you very much!

Would you like to take a look at this app, I wrote that has a component without head and uses QLocalSocket to communicate between the headless and the (https://github.com/blackberry/Cascades-Community-Samples/tree/master/wakemebybeacon) user interface process. There is also a blog explaining how it works here: http://devblog.blackberry.com/2014/07/wake-my-beacon/.

You can detect changes in status of process on the part without head like this (https://github.com/blackberry/Cascades-Community-Samples/blob/master/wakemebybeacon/WakeMeByBeaconSe...) and manipulate them like this (https://github.com/blackberry/Cascades-Community-Samples/blob/master/wakemebybeacon/WakeMeByBeaconSe...).

When a component without a head (process) is distributed will be passable for 20 seconds, after which it is moved to a queue where it receives no processor, but can be awakened (marked as executable) of certain classes of events. While stopped the headless process always retains a memory footprint, but is not available.

Tags: BlackBerry Developers

Similar Questions

  • How to check the status of the statistics on a table?

    Hello
    I started the statistics collection on a few large tables in my database.
    How to check the status of statistics about a table? Are there views of data dictionary or tables to monitor the progress of the collection of statistics.


    Regds,
    Malika

    Hi all

    You can check with this little script.
    It lists details of sid for long as running session
    When he started
    What last update
    How long still to the left
    "ACTIVE/INACTIVE" session state etc.

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    -Author: James Syed_
    -Script_name: sid_long_ops.sql
    -Description: list details of sid for long running the session as when it began when the last update how long still to the left.

    fixed lines 200
    Neck LESS to a25

    Select
    a.SID,
    a.Serial #.
    b.Status,
    a.opname,
    TO_CHAR (a.START_TIME,' DD-me-AAAA HH24:mi:ss) START_TIME,
    TO_CHAR (a.LAST_UPDATE_TIME,' DD-me-AAAA HH24:mi:ss) LAST_UPDATE_TIME,.
    a.time_remaining as 'time remaining dry. "
    a.time_remaining/60 as "Min remaining time."
    a.time_remaining/60/60 as 'remaining time in HR.
    V $ session_longops a, v$ session b
    where = select a.sid
    a.sid = & sid
    And time_remaining > 0;

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------

    The sample output:
    --------------------

    SQL > @sid_long_ops
    Enter the SID value: 474
    13 old: a.sid = & sid
    13 News: and a.sid = 474

    SID, SERIAL # STATUS START_TIME LAST_UPDATE_TIME remaining time LESS dry time remaining minutes remaining HR time
    --------------------------------
    474 2033 ACTIVE collection schema statistics June 6, 2012 20:10:49 June 7, 2012 01:35:24 572 9.53333333.158888889

    Thank you & best regards

    Syed James.
    Oracle Apps DBA
    Mobile: + 91 9966270072
    E-mail: [email protected]

  • How to check the status of the import in Windows?

    Hello

    Import runs in my box of Wndows. The log file is not updated since long. How to check the status of the import job? FYI its oracle 10g.

    And I checked the database which.

    FYI
    ===
    Select * from DBA_DATAPUMP_SESSIONS;

    no selected line.

    Select * from DBA_JOBS_RUNNING;

    no selected line


    Select the username, machine, module, sid, State, event, seq #, session seconds_in_wait $ v where type <>'IMPORT' and username = "AUTOTIME";

    no selected line



    Please let me know.

    You actually look at the session of $ v and check the status of the session that is created by the import job.

    Sometimes the underlying tablespace is full, so import session just hangs, it must increase the size of the storage space.

    You should also look at alert.log file and see if there is any error message like "cannot extend table space '.

  • How to check the status of battery for Cyber-shot?

    How to check the status of battery for Cyber-shot?

    Depends on what Cyber-shot you have - in General, there should be a DISP button, or menu on site that display. The State of the battery is usually at the top right.

    The DISP button is usually the UP button.

    In addition, depending on the type of use of the Cyber-shot battery, it can never just to display the bars, or it can show a percentage.

  • How to check the status of FNDSM

    Hello

    How to check the TM FNDSMListenerStatus, I know that we can use the APPS_sid is the MT listener, y at - it another way to check the status of the FNDSM listener,.

    Thank you

    Hello

    OS, you can use tnsping to check the status of auditor of th.

    Of the database, run the following query and make sure that it returns something:

    SQL> select CONCURRENT_QUEUE_NAME
    from FND_CONCURRENT_QUEUES
    where CONCURRENT_QUEUE_NAME like 'FNDSM%';
    

    You can also check:

    Note: 735148.1 - Troubleshooting problem competitor Manager Start Up associated with Service Manager
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=735148.1

    Kind regards
    Hussein

  • How to check the status of Oracle DB Windows batch file

    Hello

    I need a script that can be used to check the status of orders of windows batch file Oracle database.

    Thank you

    Kishore

    REM - beginning of batch file
    off @echo
    Set ORACLE_SID = %1
    (
    echo connect user/password@%1
    ECHO has put cmdsep on
    ' set cmdsep echo ' ' '; --"
    echo term on
    echo select status from v$ instance;
    ) | sqlplus/nolog
    REM - end batch file

    Please read [Forums label / Reward Points | http://forums.oracle.com/forums/ann.jspa?annID=718]

    Kind regards.

  • PowerCLI 5.5 R2 and SRM - how to check the status of a Recovery Plan?

    I need to write a script that will examine the current status (apparently called a "RunMode") of a Recovery Plan, is the appropriate status (1 = Test, 3 = cleaning), then get a list of all virtual machines in a suitable specific folder and they will light up (wait 15 seconds between move them on to the next). There are reasons why the Recovery Plan cannot be responsible to do, so why do I need to write a script (the reasons have nothing to do with PowerCLI). And I have problems with the first part, determination of status.

    I have this (I won pretty well most of this pure and simple of the blog of Ken Werneburg. Thank you, Ken!) :

    $DR_vCenter = "xxxxxx".

    $SRM = connect-SrmServer-Server $DR_vCenter

    $SRM_API = $SRM. ExtensionData

    $PlanMoRef = $SRM_API. . Moref Recovery.ListPlans () [2]

    (My plan is #2, others their test plans. I checked this by looking at the name of each plan. And all the good things I want is in this 'moref,"apparently...)

    $HistoryMoRef = $SRM_API. Recovery.GetHistory ($PlanMoRef)

    (it's the history of the races of this plan. Here it is the story of the last race)

    $HistoryMoRef.GetRecoveryResult (1)


    Key: 68835

    Plan: VMware.VimAutomation.Srm.Views.SrmRecoveryPlan

    Name: Recovery_Plan_PHA

    Description:

    StartTime: 15/07/2014 11:03:15

    StopTime: 15/07/2014 11:09:29

    ExecutionTimeInSeconds: 374

    TotalPausedTimeInSeconds: 0

    ResultState: success

    RunMode: CleanupTest

    WarningCount: 0

    ErrorCount: 0

    SO: I understand how to get the history of the plan that I want, and it's more progress. The problem I have is that if the RunMode is a specific value (either "Test" or "Failover", then I need to launch other actions (power of virtual machines.) And I can't seem to do. «$HistoryMoRef.GetRecoveryResult (1).» RunMode"is empty return. I don't know how it is that the value of "CleanupTest".

    How can I query the RunMode, to see if it is a value which I am interested in?

    $HistoryMoRef.GetRecoveryResult (1) | GM


    TypeName: VMware.VimAutomation.Srm.Views.SrmRecoveryResult


    Name MemberType definition

    ----                     ---------- ----------

    Equals method Boolean Equals (System.Object, obj)

    GetHashCode method int GetHashCode()

    Type of the method GetType GetType()

    String the ToString ToString() method

    Description property System.String Description {get; set ;}}

    ErrorCount property System.Int32 ErrorCount {get; set ;}}

    ExecutionTimeInSeconds property System.Int64 ExecutionTimeInSeconds {get; set ;}}

    Key key of System.Int32 property {get; set ;}}

    Property System.String name {get; set ;}}

    Plan of property VMware.VimAutomation.Srm.Views.SrmRecoveryPlan {get; set ;}}

    ResultState property VMware.VimAutomation.Srm.Views.SrmRecoveryResultResultState ResultState {get; set ;}}

    RunMode property VMware.VimAutomation.Srm.Views.SrmRecoveryPlanRecoveryMode RunMode {get; set ;}}

    StartTime property System.DateTime StartTime {get; set ;}}

    StopTime property System.DateTime StopTime {get; set ;}}

    TotalPausedTimeInSeconds property System.Int64 TotalPausedTimeInSeconds {get; set ;}}

    WarningCount property System.Int32 WarningCount {get; set ;}}

    Thank you

    Well, I managed to reproduce the problem and to understand what might happen.

    First the error "you can not call a method on an expression evaluated to null." seems to be linked to the "Write-Output"PG ="$pg" line. When I remove the error to go away (I'm not a person of PowerShell so don't know why this is the case).

    The second error (not not being filled seems to be linked to how they make the connection virtual computers SRM.) Specifically, you will need to establish the connection of VC and then do SRM login without specifying the SRM server, let that be determined by searching the SRM recorded with the VC you are connected to.

    The following code worked in my environment when it is connected to the protected so site full of hope that it will work for you as well:

    SE connect-VIServer-Server $protectedSiteVC - user $user-password $pass

    Connect-SrmServer-user $user-password $pass

    Write-Host "implementation details on Protection groups.

    Get-ProtectionGroup | {ForEach-Object

    $pg = $_

    Get-ProtectedVM - ProtectionGroup $pg} | {ForEach-Object

    #Write - Output 'do for each virtual computer.

    $output = "" | Select VmName, PgName

    $_. Vm.UpdateViewData)

    $output. VmName = $_. Vm.Name

    $output. PgName = $pg. GetInfo(). Name

    $output

    } | Format-Table @{Label = 'Name of the virtual computer'; Expression = {$_.} VmName}}, @{Label = 'Protection Group name'; Expression = {$_.} PgName}

    }

  • Extreme pro sandisk ssd on SCSI: how to check the status?

    Hello

    I have a SSD Pro Extreme Sandisk 240 GB on my system.

    I've seen it can be detected and status verified by the dashboard of sandisk.

    A big company like Sandisk, which looks very bad for me, because it's a very long time (YEARS) the dashboard does not support scsi controller detection and management.

    So, please let me know how to check and manage my SSD Sansidk in absence of decision-making in charge of your dashboard.

    I don't want to find problems after the harshness.

    Thank you

    ALberto

    Hi albedo.

    Unfortunately, these drives are designed for the SATA interface and some orders may not go through interaction SCSI-SATA, dashboard controls may be among them.

    In this case, you can check your statues in car with software or third-party tools and share the result with us if you have any concerns. Dashboard is an add-on software that comes with the player, but not mandatory to use, and it won't affect your use if you do not dash

  • How to check the status of the server added to the vMA

    Hello

    I added 3 servers in vMA. vifp mailing lists list all servers added to the vMA. I turned off one of the servers that has been added to the vMA. But still the mailing lists vifp shows all servers, including the one that is turned off. Is it possible to find out the status of the server added at the VMAs?

    Thank you...

    When you add add a target to vMA to management, it is adds two local accounts (user-vi and vi-admin) and maintains an internal list of targets that can be displayed by using the option of mailing lists . There is no concept of status since it fails just a command when you try to run a command to a host that is not available, you can run a script very generic that loop you through all targets and based on this that take you into account all the targets that are not online.

    A good would be /usr/lib/vmware-vcli/apps/general/viversion.pl

    You would also do a simple ping test before execution of your orders, so it really depends on what you want to check, but there is nothing special with the vifp which gives a current state of your targets.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • How to check the status of the Module?

    Hi all

    I want to check my cod using CodeModuleMananger module status, however, is not what said API.

    Here is my code:

    int handle=CodeModuleManager.getModuleHandle("Test");
            if(handle!=0)
                CodeModuleManager.deleteModuleEx(handle,true);
    int handle=CodeModuleManager.getModuleHandle("HorizontalField");
            System.out.println("DELETE =: " + CodeModuleManager.MODULE_FLAG_DELETE);
            System.out.println("Installed =: " + CodeModuleManager.MODULE_FLAG_INSTALLED);
            System.out.println("OTA =: " + CodeModuleManager.MODULE_FLAG_OTA);
            System.out.println("In USE =: " + CodeModuleManager.CMM_MODULE_IN_USE);
            if(handle!=0){
                 System.out.println("Real Status =: " + CodeModuleManager.getModuleFlags(handle));
                 if(CodeModuleManager.getModuleFlags(handle)==CodeModuleManager.MODULE_FLAG_DELETE)
                    System.out.println("Marked as Deleted.");
    }
    

    The results are:

    DELETE =: 1
    Installed =: 4
    OTA =: 2
    In USE =: 7
    Real status =: 5

    He was supposed to return 1 for me...

    Bitwise operations (for example, bitwise AND operator) allows to check the flags. For example, "if ((flag & FLAG_CONSTANT)! = 0)... »

  • How to check the status of deployment signature in IDS_MC?

    Does anyone know if there is a log file or report that will allow you to know the status of a signature update deployment?

    I want to determine the status of the IDS_MC when he pushes the updates for sensors or be able to determine where it failed.

    Thank you

    There is a log file that can be used.

    Connect to the administration server

    Click VPN/Security management Center

    > Managenment Center

    > IDS sensors

    Selection reports tab

    > Generate

    > Select the Audit log

    > Select "last".

    > adjust the period of time

    > Column "gravity of the event" select all button

    > Click Next

    Report Appendix

    > Click finish

    Select report

    > Refresh your browser

    > select your new report and opinion

  • How to check the status of the guarantee to my Tecra A9?

    Hi I really don't know where to ask something else.

    Hope someone could help me pls.

    I have this laptop Tecra A9 for about two months and I have the paper with that said the FREE GUARANTEE EXTENSION up to 3 years I recorded on the Toshiba site and filled out the standard warranty and then to the extended warranty contract number field is necessary, never looked in my laptop papers no such thing, so I finished without filled. Know that I don't know if I have my warranty standard and extension.

    I checked in the search for the record and no results were found, when I tried to re - register standard warranty the message (your serial number is already registered).
    Please HELP with any idea?

    Thanks for your time.

    Hello

    Please try to check on http://gedb.toshiba.com/
    I hope this will help you.

  • How to check the status of the extended warranty?

    Hello everyone!

    Register just my Qosmio F50 and I want to know if my warranty extension is enabled or not... and how to do?
    Thank you for all!

    Hello

    Please visit http://www.toshiba-tro.de/unitdetails and you will find all the info you need about the warranty status.

  • How to check the status of utl_smtp. Quit smoking

    Hello

    I tried searching the forums and google but I still have not found anything useful.

    I declared the variable as below

    status: = utl_smtp.reply;


    and use the following by e-mail and close the connection

    status: = utl_smtp.quit (vconn);


    I'm doing this to get the result of the operation.
    now how do I print the state variable or see what value it a. using dbms_output.put_line will give the error.

    Please let me know.

    Thank you and best regards.

    UTL_SMTP. QUIT to return to type is:
    {TYPE response () IS MADE
    code PLS_INTEGER, - code response of 3 digits
    text VARCHAR2 (508) - text message);
    /
    {code}

    You cannot use ANSWER directly with DBMS_OUTPUT but rather must manage return. CODE and RETURN. TEXT as separate entities.

  • How to check the status of diskgroup

    Hi all
    I'm using oracle 11g. I asm disk group mounted by alter diskgroup SQL command more. I see the staus of diskgroup v$ asm_diskgroup table sqlplus.

    I just wanted to know, is there any other command (no sqlplus) to check if diskgroup is mounted or not.

    Thank you.

    You can use the asmcmd and lsdg of command. For more details, see [documentation | http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asm_util.htm#OSTMG01610]

    Bjoern

Maybe you are looking for