Raymond,
I dont have a very clear understanding of your question. But if you are looking to invoke an ems event from the Java API, then the API to be used would be ems-invoke.
Sample Code, taken from ZEDI (which can help automatically generate code) :
public static void main(String[] args) {
try {
NaServer s = new NaServer("<IP>", 1 , 15);
s.setServerType(NaServer.SERVER_TYPE_FILER);
s.setTransportType(NaServer.TRANSPORT_TYPE_HTTPS);
s.setPort(443);
s.setStyle(NaServer.STYLE_LOGIN_PASSWORD);
s.setAdminUser("user", "<password>");
NaElement api = new NaElement("ems-invoke");
api.addNewChild("event-id","<event-id>");
api.addNewChild("event-version","<event-version>");
NaElement xi = new NaElement("params");
api.addNewChild(xi);
xi.addNewChild("param","<param>");
api.addNewChild("severity","<severity>");
api.addNewChild("snmp","<snmp>");
api.addNewChild("syslog","<syslog>");
NaElement xo = s.invokeElem(api);
System.out.println(xo.toPrettyString(""));
} catch (NaException e) {
handleException(e);
} catch (UnknownHostException e) {
handleException(e);
} catch (IOException e) {
handleException(e);
}
Let me know your query more descriptively incase I'm off track.
-Aashray