|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ZeroConfServerMBean
MBean interface for ZeroConfServer
.
Nested Class Summary | |
---|---|
static class |
ZeroConfServerMBean.LauncherInfo
|
Method Summary | |
---|---|
ZeroConfServerMBean.LauncherInfo[] |
getLauncherInfos()
Returns the information about all the registered launchers. |
java.lang.String |
getProperty(java.lang.String name)
Returns the value of property name ,
or null if there is no property named name . |
boolean |
hangup(int port)
Stops listening on port on local machine. |
boolean |
hangup(java.lang.String hostname,
int port)
Stops listening on hostname:port . |
void |
hangupAll()
Stops listening for requests on any sockets. |
void |
listen()
Starts listening for configuration requests on local machine and the default port. |
void |
listen(int port)
Starts listening for configuration requests on local machine and given port. |
void |
listen(java.lang.String hostname,
int port)
Starts listening for configuration requests on the given local host and port. |
java.lang.String[] |
listeningAddresses()
Returns a list of socket addresses on which the server is listening to requests. |
java.lang.String[] |
listProperties()
Returns an array of all set properties in property=value
format with special characters escaped as in
java.util.Properties stored in a file. |
java.lang.String[] |
listPropertyNames()
Returns an array of names of all set properties |
void |
registerLauncher(java.lang.String url,
java.lang.String objectName)
Registers the launcher in the zeroconf server. |
java.lang.String |
setProperty(java.lang.String name,
java.lang.String value)
Sets the value of property name to value . |
void |
stop()
Stops listening for requests on any sockets and closes the JMX interface. |
Method Detail |
---|
java.lang.String getProperty(java.lang.String name)
name
,
or null
if there is no property named name
.
java.lang.String setProperty(java.lang.String name, java.lang.String value)
name
to value
.
name
,
or null
if none was set.java.lang.String[] listPropertyNames()
java.lang.String[] listProperties()
property=value
format with special characters escaped as in
java.util.Properties
stored in a file.
void listen() throws java.net.SocketException
java.net.SocketException
- if binding to the default port on local
machine fails.void listen(int port) throws java.net.SocketException
port
- port to listen on
java.net.SocketException
- if binding to port
on local
machine fails.void listen(java.lang.String hostname, int port) throws java.net.SocketException
hostname
- local host name to listen onport
- port to listen on
java.net.SocketException
- if binding to port
on the given
host machine fails.java.lang.String[] listeningAddresses()
boolean hangup(int port)
port
on local machine.
false
if the server was not listening on
port
on local machine, true
otherwise.boolean hangup(java.lang.String hostname, int port)
hostname:port
.
false
if the server was not listening on
hostname:port
, true
otherwise.void hangupAll()
void stop()
void registerLauncher(java.lang.String url, java.lang.String objectName)
url
- The jmx service url of the launcher.objectName
- The objectname of the launcher.ZeroConfServerMBean.LauncherInfo[] getLauncherInfos()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |