Class DebugRemoteServiceAdminListener
- java.lang.Object
- 
- org.eclipse.ecf.osgi.services.remoteserviceadmin.DebugRemoteServiceAdminListener
 
- 
- All Implemented Interfaces:
- RemoteServiceAdminListener
 
 public class DebugRemoteServiceAdminListener extends Object implements RemoteServiceAdminListener - Since:
- 4.3
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intALL_MASKprotected EndpointDescriptionWriteredWriterprotected inteventMaskstatic intEXPORT_MASKstatic intIMPORT_MASKstatic SimpleDateFormatsdfprotected booleanwriteEndpointprotected PrintWriterwriter
 - 
Constructor SummaryConstructors Constructor Description DebugRemoteServiceAdminListener()DebugRemoteServiceAdminListener(int mask)DebugRemoteServiceAdminListener(int mask, boolean writeEndpoint)DebugRemoteServiceAdminListener(PrintWriter writer)DebugRemoteServiceAdminListener(PrintWriter writer, int mask)DebugRemoteServiceAdminListener(PrintWriter writer, int eventMask, boolean writeEndpoint)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanallow(int type, int mask)protected StringeventTypeToString(int type)intgetEventMask()protected voidprintEvent(RemoteServiceAdmin.RemoteServiceAdminEvent event)voidremoteAdminEvent(RemoteServiceAdminEvent event)Receive notification of any export or import registrations and unregistrations as well as errors and warnings.voidsetEventMask(int eventMask)protected voidwriteEndpoint(EndpointDescription endpointDescription)protected voidwriteRemoteReference(StringBuffer buf, ServiceReference<?> ref, ID containerID, long remoteServiceID)
 
- 
- 
- 
Field Detail- 
sdfpublic static final SimpleDateFormat sdf 
 - 
EXPORT_MASKpublic static final int EXPORT_MASK - See Also:
- Constant Field Values
 
 - 
IMPORT_MASKpublic static final int IMPORT_MASK - See Also:
- Constant Field Values
 
 - 
ALL_MASKpublic static final int ALL_MASK - See Also:
- Constant Field Values
 
 - 
writerprotected final PrintWriter writer 
 - 
eventMaskprotected int eventMask 
 - 
writeEndpointprotected boolean writeEndpoint 
 - 
edWriterprotected EndpointDescriptionWriter edWriter 
 
- 
 - 
Constructor Detail- 
DebugRemoteServiceAdminListenerpublic DebugRemoteServiceAdminListener(PrintWriter writer, int eventMask, boolean writeEndpoint) 
 - 
DebugRemoteServiceAdminListenerpublic DebugRemoteServiceAdminListener(PrintWriter writer, int mask) 
 - 
DebugRemoteServiceAdminListenerpublic DebugRemoteServiceAdminListener(PrintWriter writer) 
 - 
DebugRemoteServiceAdminListenerpublic DebugRemoteServiceAdminListener(int mask, boolean writeEndpoint)
 - 
DebugRemoteServiceAdminListenerpublic DebugRemoteServiceAdminListener(int mask) 
 - 
DebugRemoteServiceAdminListenerpublic DebugRemoteServiceAdminListener() 
 
- 
 - 
Method Detail- 
getEventMaskpublic int getEventMask() 
 - 
setEventMaskpublic void setEventMask(int eventMask) 
 - 
allowprotected boolean allow(int type, int mask)
 - 
remoteAdminEventpublic void remoteAdminEvent(RemoteServiceAdminEvent event) Description copied from interface:RemoteServiceAdminListenerReceive notification of any export or import registrations and unregistrations as well as errors and warnings.- Specified by:
- remoteAdminEventin interface- RemoteServiceAdminListener
- Parameters:
- event- The- RemoteServiceAdminEventobject.
 
 - 
eventTypeToStringprotected String eventTypeToString(int type) 
 - 
writeRemoteReferenceprotected void writeRemoteReference(StringBuffer buf, ServiceReference<?> ref, ID containerID, long remoteServiceID) 
 - 
printEventprotected void printEvent(RemoteServiceAdmin.RemoteServiceAdminEvent event) 
 - 
writeEndpointprotected void writeEndpoint(EndpointDescription endpointDescription) 
 
- 
 
-