Class DebugRemoteServiceAdminListener
java.lang.Object
org.eclipse.ecf.osgi.services.remoteserviceadmin.DebugRemoteServiceAdminListener
- All Implemented Interfaces:
RemoteServiceAdminListener
- Since:
- 4.3
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
protected EndpointDescriptionWriter
protected int
static final int
static final int
static final SimpleDateFormat
protected boolean
protected final PrintWriter
-
Constructor Summary
ConstructorDescriptionDebugRemoteServiceAdminListener
(int mask) DebugRemoteServiceAdminListener
(int mask, boolean writeEndpoint) DebugRemoteServiceAdminListener
(PrintWriter writer, int mask) DebugRemoteServiceAdminListener
(PrintWriter writer, int eventMask, boolean writeEndpoint) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
allow
(int type, int mask) protected String
eventTypeToString
(int type) int
protected void
void
Receive notification of any export or import registrations and unregistrations as well as errors and warnings.void
setEventMask
(int eventMask) protected void
writeEndpoint
(EndpointDescription endpointDescription) protected void
writeRemoteReference
(StringBuffer buf, ServiceReference<?> ref, ID containerID, long remoteServiceID)
-
Field Details
-
sdf
-
EXPORT_MASK
public static final int EXPORT_MASK- See Also:
-
IMPORT_MASK
public static final int IMPORT_MASK- See Also:
-
ALL_MASK
public static final int ALL_MASK- See Also:
-
writer
-
eventMask
protected int eventMask -
writeEndpoint
protected boolean writeEndpoint -
edWriter
-
-
Constructor Details
-
DebugRemoteServiceAdminListener
-
DebugRemoteServiceAdminListener
-
DebugRemoteServiceAdminListener
-
DebugRemoteServiceAdminListener
public DebugRemoteServiceAdminListener(int mask, boolean writeEndpoint) -
DebugRemoteServiceAdminListener
public DebugRemoteServiceAdminListener(int mask) -
DebugRemoteServiceAdminListener
public DebugRemoteServiceAdminListener()
-
-
Method Details
-
getEventMask
public int getEventMask() -
setEventMask
public void setEventMask(int eventMask) -
allow
protected boolean allow(int type, int mask) -
remoteAdminEvent
Description copied from interface:RemoteServiceAdminListener
Receive notification of any export or import registrations and unregistrations as well as errors and warnings.- Specified by:
remoteAdminEvent
in interfaceRemoteServiceAdminListener
- Parameters:
event
- TheRemoteServiceAdminEvent
object.
-
eventTypeToString
-
writeRemoteReference
protected void writeRemoteReference(StringBuffer buf, ServiceReference<?> ref, ID containerID, long remoteServiceID) -
printEvent
-
writeEndpoint
-