|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.jini.AbstractServer
com.bigdata.service.jini.DataServer
public class DataServer
The bigdata data server.
The DataServer starts the DataService. The server and
service are configured using a Configuration file whose name is
passed to the DataServer#DataServer(String[]) constructor or
main(String[]).
for sample configurations.DataServer.| Nested Class Summary | |
|---|---|
static class |
DataServer.AdministrableDataService
Adds jini administration interfaces to the basic DataService. |
static interface |
DataServer.Options
Options for this server. |
| Nested classes/interfaces inherited from class com.bigdata.service.jini.AbstractServer |
|---|
AbstractServer.ConfigurationOptions, AbstractServer.MasterElectionTask |
| Field Summary |
|---|
| Fields inherited from class com.bigdata.service.jini.AbstractServer |
|---|
config, impl, log, logicalServiceZPath, physicalServiceZPath, proxy |
| Constructor Summary | |
|---|---|
DataServer(String[] args,
com.sun.jini.start.LifeCycle lifeCycle)
Creates a new DataServer. |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Starts a new DataServer. |
protected DataService |
newService(Properties properties)
This method is responsible for creating the remote service implementation object. |
| Methods inherited from class com.bigdata.service.jini.AbstractServer |
|---|
destroy, fatal, getClient, getFileFilter, getHostName, getJoinManager, getProxy, getServiceID, getServiceName, isPersistent, isShuttingDown, notify, notifyServiceUUID, readServiceId, run, runDestroy, serviceIDNotify, setSecurityManager, shutdownNow, terminate, toString, unexport |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataServer(String[] args,
com.sun.jini.start.LifeCycle lifeCycle)
DataServer.
args - Either the command line arguments or the arguments from the
ServiceDescriptor. Either way they identify the jini
Configuration (you may specify either a file or URL)
and optional overrides for that Configuration.lifeCycle - The life cycle object. This is used if the server is started
by the jini ServiceStarter. Otherwise specify a
FakeLifeCycle.| Method Detail |
|---|
public static void main(String[] args)
DataServer. This can be done programmatically
by executing
new DataServer(args, new FakeLifeCycle()).run();
within a Thread.
args - The name of the Configuration file for the service.protected DataService newService(Properties properties)
AbstractServerRemote interface. The server will use JERI to create a proxy for
the remote object and configure and manage the protocol for
communications between the client (service proxy) and the remote object
(the service implementation).
Note: You have to implement JoinAdmin in order to show up as an
administerable service (blue folder) in the jini Service Browser.
newService in class AbstractServerproperties - The contents of the Properties file whose name was
given by the propertyFile value in the
Configuration identified to main by its
command line arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||