public class BlackTieServer extends Object
| Constructor and Description |
|---|
BlackTieServer(String serverName)
Initialize the server
|
| Modifier and Type | Method and Description |
|---|---|
void |
block() |
void |
shutdown()
Shutdown the server
|
void |
tpadvertise(String serviceName,
String serviceClassName)
Advertise a blacktie service with the specified name
|
void |
tpunadvertise(String serviceName)
Unadvertise the service by name.
|
public BlackTieServer(String serverName) throws org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException, ConnectionException
serverName - The name of the serverorg.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException - If the server does not existConnectionException - If the server cannot connect to the infrastructure configuredpublic void tpadvertise(String serviceName, String serviceClassName) throws ConnectionException
serviceName - The name of the serviceConnectionException - If the service cannot be advertisedpublic void tpunadvertise(String serviceName) throws ConnectionException
serviceName - The name of the service to unadverise.ConnectionException - If the service cannot be unadvertised.public void shutdown()
throws ConnectionException
ConnectionException - If one of the services cannot disconnectpublic void block()
throws InterruptedException
InterruptedExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.