org.pf.bif.execution
Interface IServiceStateChangeListener


public interface IServiceStateChangeListener

A listener that gets informed about any state changes of a service.

Version:
1.0
Author:
M.Duchrow

Field Summary
static int FIRST_CUSTOM_STATE
          Any custom state value should be defined as addition of this constant plus any integer value
static int SERVICE_RESUMED
          Indicates that the service has been resumed
static int SERVICE_STARTED
          Indicates that the service has been started
static int SERVICE_STOPPED
          Indicates that the service has been stopped
static int SERVICE_SUSPENDED
          Indicates that the service has been suspended
 
Method Summary
 void serviceStateChanged(IService service, int event)
          Will be called to signal a state change of the given service.
 

Field Detail

SERVICE_STARTED

static final int SERVICE_STARTED
Indicates that the service has been started

See Also:
Constant Field Values

SERVICE_STOPPED

static final int SERVICE_STOPPED
Indicates that the service has been stopped

See Also:
Constant Field Values

SERVICE_SUSPENDED

static final int SERVICE_SUSPENDED
Indicates that the service has been suspended

See Also:
Constant Field Values

SERVICE_RESUMED

static final int SERVICE_RESUMED
Indicates that the service has been resumed

See Also:
Constant Field Values

FIRST_CUSTOM_STATE

static final int FIRST_CUSTOM_STATE
Any custom state value should be defined as addition of this constant plus any integer value

See Also:
Constant Field Values
Method Detail

serviceStateChanged

void serviceStateChanged(IService service,
                         int event)
Will be called to signal a state change of the given service.

Parameters:
service - The service that has been changed
event - One of the SERVICE_XXX constants defined by this interface


Copyright © 2012 Manfred Duchrow Consulting & Software. All Rights Reserved.