Author Topic: GIS: like interacting with the statserver  (Read 6729 times)

gibbo

  • Guest
GIS: like interacting with the statserver
« on: March 30, 2007, 03:31:15 PM »
Hi!
I am a GIS developer. I have a problem: when send the statistic write as:

Statistic statistic=new Statistic();
statistic.setStatisticId("agentState");

ObjectIdType objectid=new ObjectIdType();
objectid.setId(this.getEmployeeID(agentName));
objectid.setTenantName("Resources");
statistic.setObjectId(objectid);

Metric metric=new Metric();
metric.setTypeName("CurrentAgentState");

StatisticType statisticType = new StatisticType();
statisticType.setSubject("AgentState");
ObjectType[] objectType = new ObjectType[]{ObjectType.Agent};
statisticType.setCategory("CurrentState");
statisticType.setObjectType(objectType);       
metric.setStatisticType(statisticType);

TimeInterval timeInterval = new TimeInterval();
timeInterval.setIntervalType(TimeIntervalType.GrowingWindow);
metric.setInterval(timeInterval);
       
statistic.setMetric(metric);

Schedule schedule=new Schedule();
schedule.setNotificationMode(ScheduleMode.TimeBased);
schedule.setInsensitivity(new Integer(1));
schedule.setTimeout(new Integer(2));
statistic.setSchedule(schedule);

RetrieveStatisticResponse retStat = this.statPort.retrieveStatistic(statistic,statServer);
StatisticValue stat = retStat.getStatisticValue();

in stat.getEventValues()[0].getAgentStatus() there are the property of the agent
but stat.getEventValues()[0].getAgentStatus().getDns() is = null...
I think this an error because the agent has a place with a right DN...
There is someone that can tell me how obtain the info of the dn?

thanks!

Ben

  • Guest
Re: GIS: like interacting with the statserver
« Reply #1 on: April 17, 2007, 10:23:51 AM »
If you're after the current agent status then I don't think you can get it through GIS.

Marked as best answer by on Today at 08:29:45 AM

Offline Ali

  • Jr. Member
  • **
  • Posts: 72
  • Karma: 0
  • Haunted by Genesys
    • My Web Site
Re: GIS: like interacting with the statserver
« Reply #2 on: May 02, 2007, 01:08:50 PM »
  • Undo Best Answer
  • Please check out WSDL of request message, where you find the answer.