Skip to content

Commit

Permalink
Async Message Manager Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
AvocadoMoon committed Jan 17, 2025
1 parent b15c3c6 commit 28b3a60
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package cbit.vcell.client.server;

import cbit.rmi.event.*;
import org.vcell.util.DataAccessException;

public interface AsyncMessageManagerInterface extends SimStatusListener, DataAccessException.Listener,DataJobListenerHolder {
void addVCellMessageEventListener(VCellMessageEventListener listener);
void removeDataJobListener(DataJobListener listener);
void removeExportListener(ExportListener listener);
void removeSimStatusListener(SimStatusListener listener);
void removeSimulationJobStatusListener(SimulationJobStatusListener listener);
void removeVCellMessageEventListener(VCellMessageEventListener listener);
void simStatusChanged(SimStatusEvent simStatusEvent);
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* {@link AsynchMessageManager} also listens to {@link ClientJobManager} if user stops the simulation, then it will notify TopLevelWindowManager
* to update the status.
*/
public class AsynchMessageManager implements SimStatusListener, DataAccessException.Listener,DataJobListenerHolder {
public class AsynchMessageManager implements AsyncMessageManagerInterface {
private static final long BASE_POLL_SECONDS = 3;
private static final long ATTEMPT_POLL_SECONDS = 3;
private static Logger lg = LogManager.getLogger(AsynchMessageManager.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

package cbit.vcell.server;

import cbit.vcell.client.server.AsyncMessageManagerInterface;
import org.vcell.util.DataAccessException;
import org.vcell.util.document.User;

Expand Down Expand Up @@ -43,5 +44,5 @@ public interface SessionManager {
SimulationController getSimulationController() throws DataAccessException;


AsynchMessageManager getAsynchMessageManager();
AsyncMessageManagerInterface getAsynchMessageManager();
}

0 comments on commit 28b3a60

Please sign in to comment.