net.larsan.norna
Class RegistryEvent

java.lang.Object
  |
  +--net.larsan.norna.RegistryEvent

public class RegistryEvent
extends java.lang.Object

Event fired by the ServiceRegistry when a service status changes.

Version:
Alpha-0.2 / 2002-10-06 21:37
Author:
Lars J. Nilsson
See Also:
ServiceRegistry

Field Summary
static int SERVICE_ADDED
          Event thrown when a service have been added to the registry.
static int SERVICE_READY
          Service ready event
static int SERVICE_REMOVED
          Service removed.
static int SERVICE_STARTING
          Service start event.
static int SERVICE_STOPPED
          Services stopped event.
 
Constructor Summary
RegistryEvent(int type, java.lang.String nuid)
          Create an event.
 
Method Summary
 java.lang.String getNamespaceID()
          Get the NUID of the service that triggered this event.
 int getType()
          Get event type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_ADDED

public static final int SERVICE_ADDED
Event thrown when a service have been added to the registry. Exactly when this happends is up to the implementation but usually it will happend when the service is created.

See Also:
Constant Field Values

SERVICE_STARTING

public static final int SERVICE_STARTING
Service start event.

See Also:
Constant Field Values

SERVICE_READY

public static final int SERVICE_READY
Service ready event

See Also:
Constant Field Values

SERVICE_STOPPED

public static final int SERVICE_STOPPED
Services stopped event.

See Also:
Constant Field Values

SERVICE_REMOVED

public static final int SERVICE_REMOVED
Service removed. From this point on the service is no longer available through the registry or through the service context.

See Also:
Constant Field Values
Constructor Detail

RegistryEvent

public RegistryEvent(int type,
                     java.lang.String nuid)
Create an event. The type must be one of the identifiers in this class and the namespace unique id must not be null.

Parameters:
type - Event type
nuid - Namespace unique ID of the service
Method Detail

getNamespaceID

public java.lang.String getNamespaceID()
Get the NUID of the service that triggered this event.

Returns:
The namespace unique id of the service

getType

public int getType()
Get event type.