|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerRemoteInterface
An interface to define the remotely accessable methods for manipulating the server. This interface is implemented by the Server class in order to permit the specified methods to be callable by an RMI-based client application.
Method Summary | |
---|---|
void |
acceptAllIncomingRequests()
Causes the server to accept all incoming requests in all services. |
void |
acceptIncomingRequests(java.net.SocketAddress address)
A method to accept incoming requests to the specified service. |
void |
acceptIncomingRequests(java.lang.String serviceName)
A method to accept incoming requests to the specified service. |
void |
acceptIncomingRequests(java.lang.String address,
int port)
A method to accept incoming requests to the specified service. |
void |
createService(java.lang.String name,
java.net.SocketAddress address,
java.lang.String adapterName)
Creates the specified service. |
void |
createService(java.lang.String name,
java.lang.String address,
int port,
java.lang.String adapterName)
Creates the specified service. |
void |
denyAllIncomingRequests()
Causes the server to deny all incoming requests in all services. |
void |
denyIncomingRequests(java.net.SocketAddress address)
A method to deny incoming requests to the specified service. |
void |
denyIncomingRequests(java.lang.String serviceName)
A method to deny incoming requests to the specified service. |
void |
denyIncomingRequests(java.lang.String address,
int port)
A method to deny incoming requests to the specified service. |
java.lang.String |
describeAllServices()
Describes all the services running on this server. |
java.lang.String |
describeAllServicesWithParameter(java.lang.String param)
Describes all the services with the specified parameter running on this server. |
java.lang.String |
describeService(java.net.SocketAddress address)
A method to describe the specified service. |
java.lang.String |
describeService(java.lang.String serviceName)
A method to describe the specified service. |
java.lang.String |
describeService(java.lang.String address,
int port)
A method to describe the specified service. |
java.lang.String |
describeServiceParameter(java.net.SocketAddress address,
java.lang.String param)
A method to describe the specified service parameter. |
java.lang.String |
describeServiceParameter(java.lang.String address,
int port,
java.lang.String param)
A method to describe the specified service parameter. |
java.lang.String |
describeServiceParameter(java.lang.String serviceName,
java.lang.String param)
A method to describe the specified service parameter. |
java.lang.String |
getAllStatus()
Retrieves the status for all services running on this server. |
java.lang.String |
getStatus(java.net.SocketAddress address)
A method to query the status of the specified service. |
java.lang.String |
getStatus(java.lang.String serviceName)
A method to query the status of the specified service. |
java.lang.String |
getStatus(java.lang.String address,
int port)
A method to query the status of the specified service. |
void |
removeAllServices()
Removes all services from the server. |
void |
removeParameterInAllServices(java.lang.String param)
A method to remove the specified parameter from all services. |
void |
removeService(java.net.SocketAddress address)
A method to remove the specified service. |
void |
removeService(java.lang.String serviceName)
A method to remove the specified service. |
void |
removeService(java.lang.String address,
int port)
A method to remove the specified service. |
void |
removeServiceParameter(java.net.SocketAddress address,
java.lang.String param)
A method to remove the specified service. |
void |
removeServiceParameter(java.lang.String address,
int port,
java.lang.String param)
A method to remove the specified service parameter. |
void |
removeServiceParameter(java.lang.String serviceName,
java.lang.String param)
A method to remove the specified service parameter. |
void |
setParameterInAllServices(java.lang.String param,
java.lang.String value)
Sets the specified parameter to the specified value in all services running on this system. |
void |
setServiceParameter(java.net.SocketAddress address,
java.lang.String param,
java.lang.String value)
A method to set the specified service parameter. |
void |
setServiceParameter(java.lang.String address,
int port,
java.lang.String param,
java.lang.String value)
A method to set the specified service parameter. |
void |
setServiceParameter(java.lang.String serviceName,
java.lang.String param,
java.lang.String value)
A method to set the specified service parameter. |
void |
shutdownNicely()
A method to shutdown the entire Internet Service Server as soon as all existing connections have ended. |
void |
shutdownNow()
A method to shutdown the entire Internet Service Server immediately. |
Method Detail |
---|
java.lang.String describeService(java.lang.String address, int port) throws java.rmi.RemoteException, java.net.UnknownHostException, ConnectionManagerNotFoundException
address
- the host name or IP address the service to describe is
bound to.port
- the port the service to describe is bound to.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
java.net.UnknownHostException
- if the specified hostname is unknown.
ConnectionManagerNotFoundException
- if the requested service
can't be found.java.lang.String describeService(java.lang.String serviceName) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
serviceName
- the service to be described.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.java.lang.String describeService(java.net.SocketAddress address) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
address
- the SocketAddress of the service to be described.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.java.lang.String describeServiceParameter(java.lang.String address, int port, java.lang.String param) throws java.rmi.RemoteException, java.net.UnknownHostException, ConnectionManagerNotFoundException
address
- the host name or IP address the service to describe is
bound to.port
- the port the service to describe is bound to.param
- the name of the parameter to query.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
java.net.UnknownHostException
- if the specified hostname is unknown.
ConnectionManagerNotFoundException
- if the requested service
can't be found.java.lang.String describeServiceParameter(java.lang.String serviceName, java.lang.String param) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
serviceName
- the name of the service to query.param
- the name of the parameter to query.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.java.lang.String describeServiceParameter(java.net.SocketAddress address, java.lang.String param) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
address
- the SocketAddress the service to query is bound to.param
- the name of the parameter to query.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void denyIncomingRequests(java.net.SocketAddress address) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
address
- the SocketAddress the service to query is bound to.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void denyIncomingRequests(java.lang.String serviceName) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
serviceName
- the name of the service to query.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void denyIncomingRequests(java.lang.String address, int port) throws java.rmi.RemoteException, java.net.UnknownHostException, ConnectionManagerNotFoundException
address
- the hostname or IP address of the service to process.port
- the port the service to describe is bound to.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
java.net.UnknownHostException
- if the specified hostname is unknown.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void acceptIncomingRequests(java.net.SocketAddress address) throws java.rmi.RemoteException, ConnectionManagerNotFoundException, ServiceAlreadyRunningException
address
- the hostname or IP address of the service to process.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.
ServiceAlreadyRunningException
- if the specified service is
already running.void acceptIncomingRequests(java.lang.String serviceName) throws java.rmi.RemoteException, ConnectionManagerNotFoundException, ServiceAlreadyRunningException
serviceName
- the name of the service to process.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.
ServiceAlreadyRunningException
- if the specified service is
already running.void acceptIncomingRequests(java.lang.String address, int port) throws java.rmi.RemoteException, java.net.UnknownHostException, ConnectionManagerNotFoundException, ServiceAlreadyRunningException
address
- the hostname or IP address of the service to process.port
- the port the service to describe is bound to.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
java.net.UnknownHostException
- if the specified hostname is unknown.
ConnectionManagerNotFoundException
- if the requested service
can't be found.
ServiceAlreadyRunningException
- if the specified service is
already running.java.lang.String getStatus(java.net.SocketAddress address) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
address
- the hostname or IP address of the service to process.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.java.lang.String getStatus(java.lang.String serviceName) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
serviceName
- the name of the service to process.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.java.lang.String getStatus(java.lang.String address, int port) throws java.rmi.RemoteException, java.net.UnknownHostException, ConnectionManagerNotFoundException
address
- the binding address of the service to process.port
- the port the service to describe is bound to.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
java.net.UnknownHostException
- if the specified hostname is unknown.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void shutdownNow() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an RMI communication problem is
encountered.void shutdownNicely() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an RMI communication problem is
encountered.void setServiceParameter(java.lang.String address, int port, java.lang.String param, java.lang.String value) throws java.rmi.RemoteException, java.net.UnknownHostException, ConnectionManagerNotFoundException
address
- the host name or IP address the service to describe is
bound to.port
- the port the service to describe is bound to.param
- the name of the parameter to query.value
- the value to set the parameter to.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
java.net.UnknownHostException
- if the specified hostname is unknown.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void setServiceParameter(java.lang.String serviceName, java.lang.String param, java.lang.String value) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
serviceName
- the name of the service to query.param
- the name of the parameter to query.value
- the value to set the parameter to.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void setServiceParameter(java.net.SocketAddress address, java.lang.String param, java.lang.String value) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
address
- the SocketAddress the service to query is bound to.param
- the name of the parameter to query.value
- the value to set the parameter to.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void createService(java.lang.String name, java.lang.String address, int port, java.lang.String adapterName) throws java.rmi.RemoteException, java.lang.ClassNotFoundException, java.net.UnknownHostException
name
- the name to assign to the service.address
- the IP address to bind to.port
- the port to listen to.adapterName
- the classname of the adapter to use.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
java.lang.ClassNotFoundException
- if the specified adapter cannot be
found.
java.net.UnknownHostException
- if the specified hostname is unknown.void createService(java.lang.String name, java.net.SocketAddress address, java.lang.String adapterName) throws java.rmi.RemoteException, java.lang.ClassNotFoundException
name
- the name to assign to the service.address
- the SocketAddress object to bind to.adapterName
- the classname of the adapter to use.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
java.lang.ClassNotFoundException
- if the specified adapter cannot be
found.java.lang.String describeAllServices() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an RMI communication problem is
encountered.java.lang.String getAllStatus() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an RMI communication problem is
encountered.java.lang.String describeAllServicesWithParameter(java.lang.String param) throws java.rmi.RemoteException
param
- the name of the parameter to describe.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.void setParameterInAllServices(java.lang.String param, java.lang.String value) throws java.rmi.RemoteException
param
- the name of the parameter to be set.value
- the value to set the parameter to.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.void denyAllIncomingRequests() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an RMI communication problem is
encountered.void acceptAllIncomingRequests() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an RMI communication problem is
encountered.void removeService(java.lang.String address, int port) throws java.rmi.RemoteException, java.net.UnknownHostException, ConnectionManagerNotFoundException
address
- the host name or IP address the service to remove is bound
to.port
- the port the service to remove is bound to.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
java.net.UnknownHostException
- if the specified hostname is unknown.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void removeService(java.lang.String serviceName) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
serviceName
- the service to be removed.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void removeService(java.net.SocketAddress address) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
address
- the SocketAddress of the service to be removed.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void removeServiceParameter(java.lang.String address, int port, java.lang.String param) throws java.rmi.RemoteException, java.net.UnknownHostException, ConnectionManagerNotFoundException
address
- the host name or IP address the service to remove the
parameter from is bound to.port
- the port the service to remove is bound to.param
- parameter value
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
java.net.UnknownHostException
- if the specified hostname is unknown.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void removeServiceParameter(java.lang.String serviceName, java.lang.String param) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
serviceName
- the service to remove the parameter from.param
- parameter value
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void removeServiceParameter(java.net.SocketAddress address, java.lang.String param) throws java.rmi.RemoteException, ConnectionManagerNotFoundException
address
- the SocketAddress of the service to remove the parameter
from.param
- parameter value
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
ConnectionManagerNotFoundException
- if the requested service
can't be found.void removeAllServices() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an RMI communication problem is
encountered.void removeParameterInAllServices(java.lang.String param) throws java.rmi.RemoteException
param
- the parameter to be removed from all services.
java.rmi.RemoteException
- if an RMI communication problem is
encountered.
|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |