getActiveInstances

Hello

I am creating an application system based on FMIS, and my base model is to have multiple instances of a running application and the management of these cases with another application. I think I can implement my management with .asc configured appropriately and NetConnection objects files, but I want that the instances of the application to be named dynamically and retrieve these instances in real time on the server. My interpretation of the governing API reference, it seems that the getActiveInstances function should meet this need. However, I can't make it work. I tried to implement in this way:

var objResult = new Object();
objResult.onResult = function() {}
/ * trace ("result:" + this.toString ());
for (var obj in this) {}
trace (obj + "=" + this [obj]);
}*/
trace ("results:" + this.data);
}
objResult.onStatus = function() {}
/ * trace ("Status:" + this.toString ());
for (var obj in this) {}
trace (obj + "=" + this [obj]);
}*/
trace ("Status:" + this.data);
}
NC. Call ("getActiveInstances", objResult);

In the light of the foregoing, nc is a NetConnection object that will connect successfully to my server admin. The commented code in my onResult and onStatus handlers worked, but showed no names of instances of the application string table. The data property of the objResult object is undefined back.

I would like to find an example of successfully implementing this concept. I'm not married to the use of the getActiveInstances, although I'd like to be able to query the server and retrieve the running applications on dynamically FMIS. Thanks in advance for any help.

Hey,.

Too bad! I realized that I had to change my event handlers to include a parameter to represent the subject of the information returned by the method call, and that this object contains then the data I'm looking for in the property data. Thus, for example, the Manager onResult is now:

objResult.onResult = {function (infoObj)}
trace ("results:" + infoObj.data);
}

Thanks in advance for reading, I hope that my confusion will be useful to others!

Tags: Adobe Media Server

Similar Questions

  • FMS Admin API questions

    I implement a surveillance for FMS application using the FMS API administrator.

    I have two questions:
    1. - the getActiveInstances() method requires as a mandatory of the processID number FMSCore parameter

    Is it possible to get everything running FMSCore processes using the admin API?, I have not found any method to do this, but I know FMS knows the ID because they are listed in the core.log file when the process is created.

    2 - documentations of method getInstanceStats() says:
    "Starting with Flash Media Server 3.5, you can dynamically control the kernel to which a request is sent. Controlling the nuclei allows load balancing between cores based on their performance counters. »

    Is this mean I have to add performance counters to the OS level to find out what FMSCore uses the least resources?, if that's the case, how can I add a new application to a specific FMSCore, which is nowhere in the documentation.

    Any help is appreciated.

    Thank you.

    Hi Carlos,

    1. call the getAppStats() or getInstanceStats() to get the processID number. He came back here: result.data.cores.pid.

    2. you can use configuration files to assign applications to process in various ways. But to assign an application to a specific basic process, you must use the plug-in to access:
    34-7fed.html#WS47C96BDA-C00C-4205-BFA5-C7EDE9000D13 http://help.Adobe.com/en_US/FlashMediaServer/3.5_Plugin/WS5b3ccc516d4fbf351e63e3d11a0d6624
    The link above provides more information, but in fact, you use the API of Directors to monitor the quality of service, and then calling setValue() plugin access (in C++) to assign the application to a kernel.

    For more information about the config files to assign apps to cores, see:
    http://help.Adobe.com/en_US/FlashMediaServer/3.5_AdminGuide/WS5b3ccc516d4fbf351e63e3d119f2 925e64 - 7ff0.html #WS5b3ccc516d4fbf351e63e3d119f2926bcf-7dca

    Hope that helps,
    Jody

Maybe you are looking for