use of aQute.remote.api.Event in project bnd by bndtools.
the class AgentServer method frameworkEvent.
@Override
public void frameworkEvent(FrameworkEvent event) {
try {
Event e = new Event();
e.type = Type.framework;
e.code = event.getType();
remote.event(e);
} catch (Exception e1) {
printStack(e1);
}
}
use of aQute.remote.api.Event in project bnd by bndtools.
the class AgentServer method sendEvent.
private void sendEvent(int code) {
Event e = new Event();
e.type = Event.Type.exit;
e.code = code;
try {
remote.event(e);
} catch (Exception e1) {
printStack(e1);
}
}
Aggregations