@Override public void setScopedInstancePath( String scopedInstancePath ) { this.scopedInstancePath = scopedInstancePath; // Propagate the information to the internal client. getMessagingClient().setOwnerProperties( getOwnerKind(), this.domain, this.applicationName, scopedInstancePath ); }
@Override public void setApplicationName( String applicationName ) { this.applicationName = applicationName; // Propagate the information to the internal client. getMessagingClient().setOwnerProperties( getOwnerKind(), this.domain, applicationName, this.scopedInstancePath ); }
@Override public void setScopedInstancePath( String scopedInstancePath ) { this.scopedInstancePath = scopedInstancePath; // Propagate the information to the internal client. getMessagingClient().setOwnerProperties( getOwnerKind(), this.domain, this.applicationName, scopedInstancePath ); }
@Override public void setApplicationName( String applicationName ) { this.applicationName = applicationName; // Propagate the information to the internal client. getMessagingClient().setOwnerProperties( getOwnerKind(), this.domain, applicationName, this.scopedInstancePath ); }
@Override protected void openConnection( IMessagingClient newMessagingClient ) throws IOException { newMessagingClient.setOwnerProperties( getOwnerKind(), this.domain, this.applicationName, this.scopedInstancePath ); newMessagingClient.openConnection(); listenToTheDm( newMessagingClient, ListenerCommand.START ); MsgNotifHeartbeat msg = new MsgNotifHeartbeat( this.applicationName, this.scopedInstancePath, this.ipAddress ); msg.setModelRequired( this.needsModel ); MessagingContext ctx = new MessagingContext( RecipientKind.DM, this.domain, this.applicationName ); newMessagingClient.publish( ctx, msg ); }
@Override protected void openConnection( IMessagingClient newMessagingClient ) throws IOException { newMessagingClient.setOwnerProperties( getOwnerKind(), this.domain, this.applicationName, this.scopedInstancePath ); newMessagingClient.openConnection(); listenToTheDm( newMessagingClient, ListenerCommand.START ); MsgNotifHeartbeat msg = new MsgNotifHeartbeat( this.applicationName, this.scopedInstancePath, this.ipAddress ); msg.setModelRequired( this.needsModel ); MessagingContext ctx = new MessagingContext( RecipientKind.DM, this.domain, this.applicationName ); newMessagingClient.publish( ctx, msg ); }