/** * Constructor. * @param key Entity key. */ public PublisherKey(final EntityKey key) { this.key1 = getIdValue(key.getFirstSubKey()); this.key2 = key.getSecondSubKey(); this.key3 = key.getThirdSubKey(); this.key4 = key.getFourthSubKey(); }
/** * Constructor. * @param lst Entity key. */ public JMSPublisherKey(final EntityKey lst) { super(); this.key1 = getIdValue(lst.getFirstSubKey()); this.key2 = lst.getSecondSubKey(); this.key3 = lst.getThirdSubKey(); this.key4 = lst.getFourthSubKey(); }
@Override public void monitorValueNotifyReceived(MALMessageHeader msgHeader, Identifier _Identifier0, UpdateHeaderList _UpdateHeaderList1, ObjectIdList paramValueObjectIds, ParameterValueList parameterValueList, Map qosProperties) { final Long paramIdentityId = _UpdateHeaderList1.get(0).getKey().getSecondSubKey(); Logger.getLogger(CheckProviderServiceImpl.class.getName()).log(Level.INFO, "monitorvalue-update for parameter with identity id: {0} received", new Object[]{paramIdentityId}); final ParameterValue newParamValue = parameterValueList.get(0); final ObjectId paramValObjId = new ObjectId(ParameterHelper.PARAMETERVALUEINSTANCE_OBJECT_TYPE, new ObjectKey(msgHeader.getDomain(), _UpdateHeaderList1.get(0).getKey().getFourthSubKey())); //set as the current parameterValue paramMonitorManager.setParameterValue(paramIdentityId, newParamValue, paramValObjId); super.monitorValueNotifyReceived(msgHeader, _Identifier0, _UpdateHeaderList1, paramValueObjectIds, parameterValueList, qosProperties); }
static public void getValuesFromEntityKey(EntityKey key, KeyParts keyParts) { // Get the area/service/version from the second sub key generateObjectTypeFromSubKey(keyParts.objectType, key.getSecondSubKey()); // Add object number from first subkey keyParts.objectType.setNumber( new UShort(Integer.parseInt(key.getFirstSubKey().toString()))); // Instance number is 3rd keyParts.objectInstance = key.getThirdSubKey(); // Source object is all from the 4th generateObjectTypeFromSubKey(keyParts.sourceObjectType, key.getFourthSubKey()); }
StringBuilder lbuf = new StringBuilder(); boolean valueSet = createRoutingKeyIdentifier(lbuf, JMSEndpoint.EID_PROPERTY, id.getFirstSubKey()); valueSet = createRoutingKeyLong(lbuf, JMSEndpoint.DID_PROPERTY, id.getSecondSubKey(), valueSet); valueSet = createRoutingKeyLong(lbuf, JMSEndpoint.OID_PROPERTY, id.getThirdSubKey(), valueSet); createRoutingKeyLong(lbuf, JMSEndpoint.SID_PROPERTY, id.getFourthSubKey(), valueSet);
/** * Returns true if this key matches supplied argument taking into account wildcards. * @param rhs Key to match against. * @return True if matches. */ public boolean matchesWithWildcard(final EntityKey rhs) { if (null != rhs) { boolean matched = matchedSubkeyWithWildcard(key1, getIdValue(rhs.getFirstSubKey())); if (matched) { matched = matchedSubkeyWithWildcard(key2, rhs.getSecondSubKey()); if (matched) { matched = matchedSubkeyWithWildcard(key3, rhs.getThirdSubKey()); if (matched) { matched = matchedSubkeyWithWildcard(key4, rhs.getFourthSubKey()); } } } return matched; } return false; }
/** * Returns true if this key matches supplied argument taking into account wildcards. * @param rhs Key to match against. * @return True if matches. */ public boolean matches(final EntityKey rhs) { if (null != rhs) { boolean matched = matchedSubkey(key1, getIdValue(rhs.getFirstSubKey())); if (matched) { matched = matchedSubkey(key2, rhs.getSecondSubKey()); if (matched) { matched = matchedSubkey(key3, rhs.getThirdSubKey()); if (matched) { matched = matchedSubkey(key4, rhs.getFourthSubKey()); } } } return matched; } return false; }
objMsg.setIntProperty(JMSEndpoint.OPN_PROPERTY, operation); objMsg.setStringProperty(JMSEndpoint.EID_PROPERTY, publishEntry.eKey.getFirstSubKey().getValue()); objMsg.setObjectProperty(JMSEndpoint.DID_PROPERTY, publishEntry.eKey.getSecondSubKey()); objMsg.setObjectProperty(JMSEndpoint.OID_PROPERTY, publishEntry.eKey.getThirdSubKey()); objMsg.setObjectProperty(JMSEndpoint.SID_PROPERTY, publishEntry.eKey.getFourthSubKey());