summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.messaging.event.skynet/src')
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/Sample.java2
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java11
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventServicePlatformRunnable.java10
3 files changed, 7 insertions, 16 deletions
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/Sample.java b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/Sample.java
index df320dc3af..38ac0e8bc6 100644
--- a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/Sample.java
+++ b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/Sample.java
@@ -90,7 +90,7 @@ public class Sample implements IServiceLookupListener, Serializable {
private static final long serialVersionUID = 2251382843127874925L;
@Override
- public void onEvent(ISkynetEvent[] events) throws RemoteException {
+ public void onEvent(ISkynetEvent[] events) {
System.out.println("Events received at " + new Date());
for (ISkynetEvent event : events) {
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java
index cc084b84a7..a9fa56198d 100644
--- a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java
+++ b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.osee.framework.messaging.event.skynet.service;
-import java.rmi.RemoteException;
import java.util.Collections;
import java.util.Dictionary;
import java.util.HashSet;
@@ -100,12 +99,12 @@ public class SkynetEventService extends JiniService implements ISkynetEventServi
}
@Override
- public void register(ISkynetEventListener listener, IEventFilter... filters) throws RemoteException {
+ public void register(ISkynetEventListener listener, IEventFilter... filters) {
addListeners(listener, filters);
}
@Override
- public void deregister(ISkynetEventListener listener, IEventFilter... filters) throws RemoteException {
+ public void deregister(ISkynetEventListener listener, IEventFilter... filters) {
removeListeners(listener, filters);
}
@@ -163,7 +162,7 @@ public class SkynetEventService extends JiniService implements ISkynetEventServi
}
@Override
- public void kick(final ISkynetEvent[] events, final ISkynetEventListener... except) throws RemoteException {
+ public void kick(final ISkynetEvent[] events, final ISkynetEventListener... except) {
if (events != null && events.length > 0) {
executorService.submit(new EventDispatchRunnable(this, getEventAndListenersToSendTo(events,
toFilteredSet(except))));
@@ -179,7 +178,7 @@ public class SkynetEventService extends JiniService implements ISkynetEventServi
}
@Override
- public void kill() throws RemoteException {
+ public void kill() {
try {
this.deregisterService();
this.commitSuicide();
@@ -189,7 +188,7 @@ public class SkynetEventService extends JiniService implements ISkynetEventServi
}
@Override
- public boolean isAlive() throws RemoteException {
+ public boolean isAlive() {
return true;
}
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventServicePlatformRunnable.java b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventServicePlatformRunnable.java
index 19f7f93a84..6da68422c6 100644
--- a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventServicePlatformRunnable.java
+++ b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventServicePlatformRunnable.java
@@ -10,14 +10,10 @@
*******************************************************************************/
package org.eclipse.osee.framework.messaging.event.skynet.service;
-import java.rmi.RemoteException;
-import java.util.logging.Level;
import org.eclipse.core.runtime.Platform;
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.osee.framework.jdk.core.util.CmdLineArgs;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.messaging.event.skynet.SkynetEventPlugin;
/**
* @author Robert A. Fisher
@@ -41,10 +37,6 @@ public class SkynetEventServicePlatformRunnable implements IApplication {
@Override
public void stop() {
- try {
- skynetEventService.kill();
- } catch (RemoteException ex) {
- OseeLog.log(SkynetEventPlugin.class, Level.SEVERE, ex);
- }
+ skynetEventService.kill();
}
}