mx4j.tools.naming

Class CosNamingService

public class CosNamingService extends Object implements CosNamingServiceMBean

An MBean that wraps tnameserv.

Calling CosNamingService will start tnameserv in a separate process via java.lang.Runtime#exec(String) Runtime.exec(String command).

Version: $Revision: 1.12 $

Constructor Summary
CosNamingService()
Creates a new instance of CosNamingService with the default port (900).
CosNamingService(int port)
Creates a new instance of CosNamingService with the specified port.
Method Summary
intgetPort()
Returns the port on which tnameserv listens for incoming connections
booleanisRunning()
Returns whether this MBean has been started and not yet stopped.
voidsetPort(int port)
Sets the port on which tnameserv listens for incoming connections.
voidstart()
Starts this MBean: tnameserv can now accept incoming calls
voidstop()
Stops this MBean: tnameserv cannot accept anymore incoming calls

Constructor Detail

CosNamingService

public CosNamingService()
Creates a new instance of CosNamingService with the default port (900).

CosNamingService

public CosNamingService(int port)
Creates a new instance of CosNamingService with the specified port.

Method Detail

getPort

public int getPort()
Returns the port on which tnameserv listens for incoming connections

See Also: CosNamingService

isRunning

public boolean isRunning()
Returns whether this MBean has been started and not yet stopped.

See Also: CosNamingService

setPort

public void setPort(int port)
Sets the port on which tnameserv listens for incoming connections.

See Also: CosNamingService

start

public void start()
Starts this MBean: tnameserv can now accept incoming calls

See Also: CosNamingService CosNamingService

stop

public void stop()
Stops this MBean: tnameserv cannot accept anymore incoming calls

See Also: CosNamingService

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.