|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.radman.gateway.internal.jpa.HostGroupServiceImpl
public final class HostGroupServiceImpl
| Constructor Summary | |
|---|---|
HostGroupServiceImpl(org.osgi.framework.BundleContext aContext,
RadmanServiceManager aManager)
|
|
| Method Summary | |
|---|---|
void |
dispose()
|
Host |
getHost(java.lang.String aHostIP,
boolean createWhenNotExists)
Returns the host given its host IP. |
HostGroup |
getHostGroup(java.lang.String aHostGroupName,
boolean createWhenNotExists)
Returns the host group given its host group name. |
java.util.List<HostGroup> |
getHostGroups()
Returns all the host groups assocated to this service. |
java.util.List<Host> |
getHosts()
Returns all the host associated to this host group service. |
java.util.List<Host> |
getOrphanHosts()
Returns all hosts that are associated to this host group service but does not have any HostGroups. |
boolean |
removeHost(java.lang.String anId)
Remove host given the host id. |
boolean |
removeHostGroup(java.lang.String anId)
Removes host group given the host group id. |
void |
start()
|
void |
updated(java.util.Dictionary properties)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HostGroupServiceImpl(org.osgi.framework.BundleContext aContext,
RadmanServiceManager aManager)
| Method Detail |
|---|
public final void start()
public final void dispose()
public final HostGroup getHostGroup(java.lang.String aHostGroupName,
boolean createWhenNotExists)
throws java.lang.IllegalArgumentException
getHostGroup in interface HostGroupServiceaHostGroupName - The host group name. This argument must not be null.createWhenNotExists - Set to true to create host group when not found.
HostGroup given the specified aHostGroupName.
java.lang.IllegalArgumentException - Thrown if the specified aHostGroupName argument is null.
public final Host getHost(java.lang.String aHostIP,
boolean createWhenNotExists)
throws java.lang.IllegalArgumentException
Host if not found.
getHost in interface HostGroupServiceaHostIP - The host group name. This argument must not be null.createWhenNotExists - A boolean indicator to create the specified host if it does not exists.
hostGroupName.
java.lang.IllegalArgumentException - Thrown if the specified hostGroupName argument is null.public final java.util.List<HostGroup> getHostGroups()
getHostGroups in interface HostGroupServicepublic java.util.List<Host> getHosts()
getHosts in interface HostGroupServicepublic java.util.List<Host> getOrphanHosts()
getOrphanHosts in interface HostGroupService
public boolean removeHostGroup(java.lang.String anId)
throws java.lang.IllegalArgumentException
removeHostGroup in interface HostGroupServiceanId - The host group id. This argument must not be null.
true if the object is removed.
java.lang.IllegalArgumentException - Thrown if the anId argument is null.
public boolean removeHost(java.lang.String anId)
throws java.lang.IllegalArgumentException
removeHost in interface HostGroupServiceanId - The host id. This argument must not be null.
true if the host is removed.
java.lang.IllegalArgumentException - Thrown if the specified anId argument is null.
public void updated(java.util.Dictionary properties)
throws org.osgi.service.cm.ConfigurationException
updated in interface org.osgi.service.cm.ManagedServiceorg.osgi.service.cm.ConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||