org.opennms.serviceregistration.strategies
Class NullStrategy

java.lang.Object
  extended by org.opennms.serviceregistration.strategies.NullStrategy
All Implemented Interfaces:
ServiceRegistrationStrategy

public class NullStrategy
extends java.lang.Object
implements ServiceRegistrationStrategy


Constructor Summary
NullStrategy()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullStrategy

public NullStrategy()
Method Detail

initialize

public void initialize(java.lang.String serviceType,
                       java.lang.String serviceName,
                       int port)
                throws java.lang.Exception
Description copied from interface: ServiceRegistrationStrategy
Initialize the service registration strategy.

Specified by:
initialize in interface ServiceRegistrationStrategy
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

public 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
Description copied from interface: ServiceRegistrationStrategy
Initialize the service registration strategy.

Specified by:
initialize in interface ServiceRegistrationStrategy
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

public void register()
              throws java.lang.Exception
Description copied from interface: ServiceRegistrationStrategy
Register the service.

Specified by:
register in interface ServiceRegistrationStrategy
Throws:
java.lang.Exception

unregister

public void unregister()
                throws java.lang.Exception
Description copied from interface: ServiceRegistrationStrategy
Unregister the service.

Specified by:
unregister in interface ServiceRegistrationStrategy
Throws:
java.lang.Exception


Copyright © 2007. All Rights Reserved.