/** * INTERNAL: * Link to the dms State api update(). */ public void update(String operationName, Object value) { Sensor state = getSensorByName(operationName); if (state != null) { ((State)state).update(value); } }
/** * INTERNAL: * Build dms NORMAL weight sensors for TopLink dms metrics. */ protected void initializeNormalWeightSensors() { createRootNoun(); Noun sessionNoun = Noun.create(root, "Session" + getSessionName(), SessionNounType); //SessionName State.create(sessionNoun, SessionProfiler.SessionName, "", DMSLocalization.buildMessage("session_name"), (this.getSession().getName() == "") ? "session name not specified" : getSession().getName()); //LoginTime State sessionLoginTime = State.create(sessionNoun, SessionProfiler.LoginTime, "", DMSLocalization.buildMessage("session_login_time"), "not available"); this.getNormalWeightSensors().put(SessionProfiler.LoginTime, sessionLoginTime); this.getNormalWeightNouns().put(SessionNounType, sessionNoun); }
/** * INTERNAL: * Build dms NORMAL weight sensors for TopLink dms metrics. */ protected void initializeNormalWeightSensors() { createRootNoun(); Noun sessionNoun = Noun.create(root, "Session" + getSessionName(), SessionNounType); //SessionName State.create(sessionNoun, SessionProfiler.SessionName, "", DMSLocalization.buildMessage("session_name"), (this.getSession().getName() == "") ? "session name not specified" : getSession().getName()); //LoginTime State sessionLoginTime = State.create(sessionNoun, SessionProfiler.LoginTime, "", DMSLocalization.buildMessage("session_login_time"), "not available"); this.getNormalWeightSensors().put(SessionProfiler.LoginTime, sessionLoginTime); this.getNormalWeightNouns().put(SessionNounType, sessionNoun); }
State rcmStatus = State.create(rcmNoun, SessionProfiler.RcmStatus, "", DMSLocalization.buildMessage("rcm_status"), "not available"); getHeavyWeightSensors().put(SessionProfiler.RcmStatus, rcmStatus); while (enumtr.hasNext()) { String poolName = (String)enumtr.next(); State connectionInUse = State.create(connectionsNoun, ConnectionInUse + "(" + poolName + ")", "", DMSLocalization.buildMessage("connection_in_used"), "not available"); getHeavyWeightSensors().put(poolName, connectionInUse);
/** * INTERNAL: * Link to the dms State api update(). */ public void update(String operationName, Object value) { Sensor state = getSensorByName(operationName); if (state != null) { ((State)state).update(value); } }
State rcmStatus = State.create(rcmNoun, SessionProfiler.RcmStatus, "", DMSLocalization.buildMessage("rcm_status"), "not available"); getHeavyWeightSensors().put(SessionProfiler.RcmStatus, rcmStatus); while (enumtr.hasNext()) { String poolName = (String)enumtr.next(); State connectionInUse = State.create(connectionsNoun, ConnectionInUse + "(" + poolName + ")", "", DMSLocalization.buildMessage("connection_in_used"), "not available"); getHeavyWeightSensors().put(poolName, connectionInUse);