org.opennms.serviceregistration
Interface ServiceRegistrationStrategy

All Known Implementing Classes:
AppleStrategy, JMDNSStrategy, NullStrategy

public interface ServiceRegistrationStrategy


Method Summary
 void initialize(java.lang.String serviceType, java.lang.String serviceName, int port)
          Initialize the service registration strategy.
 void initialize(java.lang.String serviceType, java.lang.String serviceName, int port, java.util.Hashtable<java.lang.String,java.lang.String> properties)
          Initialize the service registration strategy.
 void register()
          Register the service.
 void unregister()
          Unregister the service.
 

Method Detail

initialize

void initialize(java.lang.String serviceType,
                java.lang.String serviceName,
                int port)
                throws java.lang.Exception
Initialize the service registration strategy.

Parameters:
serviceType - the service type string (eg, "http")
serviceName - the name of the service (eg, "My Service")
port - the port the service is listening on
Throws:
java.lang.Exception

initialize

void initialize(java.lang.String serviceType,
                java.lang.String serviceName,
                int port,
                java.util.Hashtable<java.lang.String,java.lang.String> properties)
                throws java.lang.Exception
Initialize the service registration strategy.

Parameters:
serviceType - the service type string (eg, "http")
serviceName - the name of the service (eg, "My Service")
port - the port the service is listening on
properties - other properties (eg, path = "/opennms")
Throws:
java.lang.Exception

register

void register()
              throws java.lang.Exception
Register the service.

Throws:
java.lang.Exception

unregister

void unregister()
                throws java.lang.Exception
Unregister the service.

Throws:
java.lang.Exception


Copyright © 2007. All Rights Reserved.