|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
| Class Summary | |
|---|---|
| BSDClient | Class allowing to send a BSD message to a BSD server
example of use BSDClient client = new BSDClient("127.0.0.1:515"); AuditMessage auditMessage ; try { Prototype : new QueryMessage( int eventOutcomeIndicator , The eventOutcomeIndicator should be : 0 : Success 4 : Minor failure 8 : Serious failure 12: Major failure; action made unavailable String userIDActiveParticipantConsumer , String userIDActiveParticipantRegistry , String auditSourceId , String participantObjectId , String participantObjectQuery ) auditMessage = new QueryMessage( 0 , "Inpriva", "Registry", "localhost", "the patient", "select eo.id FROM..."); BSDMessage bsdMessage = new BSDMessage(InetAddress.getByName("lswin10.dfw.ibm.com"), "H_Simpson", auditMessage.toXml());   Prototype : BSDMessage( InetAddress toIP , String tag , String message ) client.sendMessage(bsdMessage); } catch (Exception e) { e.printStackTrace(); } |
| BSDMessage | Class building a BSD Syslog message See RFC 3164 A BSD message is formated as : <PRI>TimeStamp IPAddress Tag : message |
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||