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 Summary
Fields Modifier and Type Field Description static intALL_MASKprotected EndpointDescriptionWriteredWriterprotected inteventMaskstatic intEXPORT_MASKstatic intIMPORT_MASKstatic SimpleDateFormatsdfprotected booleanwriteEndpointprotected PrintWriterwriter
-
Constructor Summary
Constructors 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 Summary
All 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
-
sdf
public static final SimpleDateFormat sdf
-
EXPORT_MASK
public static final int EXPORT_MASK
- See Also:
- Constant Field Values
-
IMPORT_MASK
public static final int IMPORT_MASK
- See Also:
- Constant Field Values
-
ALL_MASK
public static final int ALL_MASK
- See Also:
- Constant Field Values
-
writer
protected final PrintWriter writer
-
eventMask
protected int eventMask
-
writeEndpoint
protected boolean writeEndpoint
-
edWriter
protected EndpointDescriptionWriter edWriter
-
-
Constructor Detail
-
DebugRemoteServiceAdminListener
public DebugRemoteServiceAdminListener(PrintWriter writer, int eventMask, boolean writeEndpoint)
-
DebugRemoteServiceAdminListener
public DebugRemoteServiceAdminListener(PrintWriter writer, int mask)
-
DebugRemoteServiceAdminListener
public DebugRemoteServiceAdminListener(PrintWriter writer)
-
DebugRemoteServiceAdminListener
public DebugRemoteServiceAdminListener(int mask, boolean writeEndpoint)
-
DebugRemoteServiceAdminListener
public DebugRemoteServiceAdminListener(int mask)
-
DebugRemoteServiceAdminListener
public DebugRemoteServiceAdminListener()
-
-
Method Detail
-
getEventMask
public int getEventMask()
-
setEventMask
public void setEventMask(int eventMask)
-
allow
protected boolean allow(int type, int mask)
-
remoteAdminEvent
public 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 interfaceRemoteServiceAdminListener- Parameters:
event- TheRemoteServiceAdminEventobject.
-
eventTypeToString
protected String eventTypeToString(int type)
-
writeRemoteReference
protected void writeRemoteReference(StringBuffer buf, ServiceReference<?> ref, ID containerID, long remoteServiceID)
-
printEvent
protected void printEvent(RemoteServiceAdmin.RemoteServiceAdminEvent event)
-
writeEndpoint
protected void writeEndpoint(EndpointDescription endpointDescription)
-
-