Skip to content

Commit

Permalink
Refactors the ips package to interactionpatterns
Browse files Browse the repository at this point in the history
  • Loading branch information
CesarCoelho committed Oct 13, 2023
1 parent 5d42e42 commit ed0bdfd
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
*/
package esa.mo.mal.impl;

import esa.mo.mal.impl.ips.IPConsumerHandler;
import esa.mo.mal.impl.ips.RequestIPConsumerHandler;
import esa.mo.mal.impl.ips.InvokeIPConsumerHandler;
import esa.mo.mal.impl.ips.OperationResponseHolder;
import esa.mo.mal.impl.ips.SubmitIPConsumerHandler;
import esa.mo.mal.impl.ips.PubSubIPConsumerHandler;
import esa.mo.mal.impl.ips.ProgressIPConsumerHandler;
import esa.mo.mal.impl.interactionpatterns.IPConsumerHandler;
import esa.mo.mal.impl.interactionpatterns.RequestIPConsumerHandler;
import esa.mo.mal.impl.interactionpatterns.InvokeIPConsumerHandler;
import esa.mo.mal.impl.interactionpatterns.OperationResponseHolder;
import esa.mo.mal.impl.interactionpatterns.SubmitIPConsumerHandler;
import esa.mo.mal.impl.interactionpatterns.PubSubIPConsumerHandler;
import esa.mo.mal.impl.interactionpatterns.ProgressIPConsumerHandler;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
Expand Down
11 changes: 4 additions & 7 deletions mal-impl/src/main/java/esa/mo/mal/impl/InteractionTimeout.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
package esa.mo.mal.impl;

import esa.mo.mal.impl.ips.IPConsumerHandler;
import esa.mo.mal.impl.interactionpatterns.IPConsumerHandler;
import java.util.AbstractMap.SimpleEntry;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.logging.Level;
Expand Down Expand Up @@ -135,12 +135,9 @@ private Thread createTimeoutCheckingThread() {
+ "set to: " + timeout + " ms";

try {
handler.handleError(
null,
new MOErrorException(
MALHelper.DELIVERY_TIMEDOUT_ERROR_NUMBER,
msg),
null);
MOErrorException error
= new MOErrorException(MALHelper.DELIVERY_TIMEDOUT_ERROR_NUMBER, msg);
handler.handleError(null, error, null);
} catch (Exception ex) {
// Do not allow to kill the thread
Logger.getLogger(InteractionTimeout.class.getName()).log(
Expand Down
12 changes: 6 additions & 6 deletions mal-impl/src/main/java/esa/mo/mal/impl/MALReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
package esa.mo.mal.impl;

import esa.mo.mal.impl.broker.MALBrokerBindingImpl;
import esa.mo.mal.impl.ips.InvokeIPProviderHandler;
import esa.mo.mal.impl.ips.ProgressIPProviderHandler;
import esa.mo.mal.impl.ips.PubSubIPProviderHandler;
import esa.mo.mal.impl.ips.RequestIPProviderHandler;
import esa.mo.mal.impl.ips.SendIPProviderHandler;
import esa.mo.mal.impl.ips.SubmitIPProviderHandler;
import esa.mo.mal.impl.interactionpatterns.InvokeIPProviderHandler;
import esa.mo.mal.impl.interactionpatterns.ProgressIPProviderHandler;
import esa.mo.mal.impl.interactionpatterns.PubSubIPProviderHandler;
import esa.mo.mal.impl.interactionpatterns.RequestIPProviderHandler;
import esa.mo.mal.impl.interactionpatterns.SendIPProviderHandler;
import esa.mo.mal.impl.interactionpatterns.SubmitIPProviderHandler;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import esa.mo.mal.impl.MALContextFactoryImpl;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import esa.mo.mal.impl.Address;
import esa.mo.mal.impl.MALSender;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import esa.mo.mal.impl.MALContextFactoryImpl;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import esa.mo.mal.impl.Address;
import esa.mo.mal.impl.MALSender;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import esa.mo.mal.impl.MALContextFactoryImpl;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import esa.mo.mal.impl.MALContextFactoryImpl;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import esa.mo.mal.impl.Address;
import esa.mo.mal.impl.MALSender;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import org.ccsds.moims.mo.mal.MALException;
import org.ccsds.moims.mo.mal.MALPubSubOperation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import esa.mo.mal.impl.Address;
import esa.mo.mal.impl.MALSender;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import org.ccsds.moims.mo.mal.MALException;
import org.ccsds.moims.mo.mal.MALRequestOperation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import esa.mo.mal.impl.Address;
import esa.mo.mal.impl.MALSender;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import esa.mo.mal.impl.MALSender;
import org.ccsds.moims.mo.mal.MALInteractionException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import esa.mo.mal.impl.MALContextFactoryImpl;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.ips;
package esa.mo.mal.impl.interactionpatterns;

import esa.mo.mal.impl.Address;
import esa.mo.mal.impl.MALSender;
Expand Down

0 comments on commit ed0bdfd

Please sign in to comment.