public class BaseUnicastRemoteService extends UnicastRemoteObject implements Service
UnicastRemoteObject
as a Turbine Service
.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.configuration2.Configuration |
configuration |
ref
SERVICE_NAME
Constructor and Description |
---|
BaseUnicastRemoteService()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
org.apache.commons.configuration2.Configuration |
getConfiguration()
Returns the configuration of this service.
|
boolean |
getInit()
Returns initialization status of an Initable.
|
InitableBroker |
getInitableBroker()
Get the
InitableBroker instance |
String |
getName()
Returns the name of this Service.
|
Properties |
getProperties()
Returns the Properties of this Service.
|
ServiceBroker |
getServiceBroker()
Get the
ServiceBroker instance |
void |
init()
Performs late initialization of an Initable.
|
void |
init(Object data)
Performs early initialization of an Initable
During the startup of the system, different objects may be
passed to your class using this method.
|
protected void |
setInit(boolean value) |
void |
setInitableBroker(InitableBroker broker)
Provides an Initable with a reference to the InitableBroker
that instantiated this object, so that it can access other
Initables.
|
void |
setName(String name)
ServiceBroker uses this method to pass a Service its name.
|
void |
setServiceBroker(ServiceBroker broker)
Provides a Service with a reference to the ServiceBroker that
instantiated this object, so that it can ask for its properties
and access other Services.
|
void |
shutdown()
Shuts down this service.
|
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
protected org.apache.commons.configuration2.Configuration configuration
public BaseUnicastRemoteService() throws RemoteException
RemoteException
- if the remote object cannot be createdpublic org.apache.commons.configuration2.Configuration getConfiguration()
getConfiguration
in interface Service
public void setInitableBroker(InitableBroker broker)
Initable
setInitableBroker
in interface Initable
broker
- The InitableBroker that instantiated this object.public InitableBroker getInitableBroker()
InitableBroker
instancepublic void init(Object data) throws InitializationException
Initable
init
in interface Initable
data
- An Object to use for initialization activities.InitializationException
- if initialization of this
class was not successful.public void init() throws InitializationException
Initable
init
in interface Initable
InitializationException
- if initialization of this
class was not successful.protected void setInit(boolean value)
public boolean getInit()
Initable
public void shutdown()
public Properties getProperties()
Service
getProperties
in interface Service
public void setName(String name)
Service
public String getName()
Service
public ServiceBroker getServiceBroker()
ServiceBroker
instancepublic void setServiceBroker(ServiceBroker broker)
Service
setServiceBroker
in interface Service
broker
- The ServiceBroker that instantiated this object.Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.