MCPcopy Create free account
hub / github.com/akeranen/the-one / addApplication

Method addApplication

routing/MessageRouter.java:610–616  ·  view source on GitHub ↗

Adds an application to the attached applications list. @param app The application to attach to this router.

(Application app)

Source from the content-addressed store, hash-verified

608 * @param app The application to attach to this router.
609 */
610 public void addApplication(Application app) {
611 if (!this.applications.containsKey(app.getAppID())) {
612 this.applications.put(app.getAppID(),
613 new LinkedList<Application>());
614 }
615 this.applications.get(app.getAppID()).add(app);
616 }
617
618 /**
619 * Returns all the applications that want to receive messages for the given

Callers 2

createHostsMethod · 0.95
MessageRouterMethod · 0.95

Calls 4

addMethod · 0.80
getAppIDMethod · 0.45
putMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected