/** * 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(); }
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()); }
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); if (lbuf.length() > 0)
/** * 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; }
archiveDetails.setDetails(new ObjectDetails(updateHeaderList.get(i).getKey().getThirdSubKey(), null)); // Event objId archiveDetails.setNetwork(msgHeader.getNetworkZone()); archiveDetails.setTimestamp(HelperTime.getTimestamp()); this.publishConfigurationStoredSuccess(objId, updateHeaderList.get(i).getKey().getThirdSubKey()); } catch (MALException ex) { this.publishConfigurationStoredFailure(updateHeaderList.get(i).getKey().getThirdSubKey()); // Event objId } catch (MALInteractionException ex) { this.publishConfigurationStoredFailure(updateHeaderList.get(i).getKey().getThirdSubKey()); // Event objId
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()); objMsg.setBooleanProperty(JMSEndpoint.MOD_PROPERTY, publishEntry.isModification);