public class ActivatableServer extends Server
config, serverProxy
Constructor and Description |
---|
ActivatableServer(ActivationID aid,
MarshalledObject data)
Creates the server
|
Modifier and Type | Method and Description |
---|---|
protected net.jini.export.Exporter |
getExporter()
Returns the exporter for exporting the server.
|
protected net.jini.core.lookup.ServiceID |
getServiceID()
Returns the service ID for this server.
|
static void |
main(String[] args)
Starts and registers an activatable server that implements the Hello
interface.
|
createServiceID, getProxy, getProxyVerifier, init, initAsSubject, sayHello
public ActivatableServer(ActivationID aid, MarshalledObject data) throws Exception
aid
- the activation ID for the serverdata
- the data for the activatable server, which should be the
options to use when getting the ConfigurationException
- if a problem occurspublic static void main(String[] args) throws Exception
Exception
protected net.jini.export.Exporter getExporter() throws net.jini.config.ConfigurationException, RemoteException
getExporter
in class Server
net.jini.config.ConfigurationException
- if a problem occurs getting the exporter
from the configurationRemoteException
- if a remote communication problem occursprotected net.jini.core.lookup.ServiceID getServiceID()
getServiceID
in class Server
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.