public class BasicService extends NFMethodPropertyProvider implements IInternalService
EMPTY_SERVICES| Constructor and Description |
|---|
BasicService(IComponentIdentifier providerid,
Class<?> type,
Class<?> impltype,
Map<String,Object> properties)
Create a new service.
|
BasicService(IComponentIdentifier providerid,
Class<?> type,
Map<String,Object> properties)
Create a new service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNFProperties(NFProperties nfprops,
Map<String,INFProperty<?,?>> nfps,
IService ser,
MethodInfo mi)
Add nf properties from a type.
|
static IServiceIdentifier |
createServiceIdentifier(IComponentIdentifier providerid,
String servicename,
Class<?> servicetype,
Class<?> serviceimpl,
IResourceIdentifier rid)
Create a new service identifier.
|
void |
createServiceIdentifier(String name,
Class<?> implclazz,
IResourceIdentifier rid,
Class<?> type)
Set the service identifier.
|
boolean |
equals(Object obj)
Check if the service is equal.
|
static String |
generateServiceName(Class<?> service)
Generate a unique name.
|
IInternalAccess |
getInternalAccess()
Get the internal access.
|
static long |
getLocalDefaultTimeout()
Get the local default timeout.
|
Map<String,Object> |
getPropertyMap()
Get a service property.
|
IComponentIdentifier |
getProviderId()
Get the providerid.
|
static long |
getRemoteDefaultTimeout()
Get the remote default timeout.
|
IServiceIdentifier |
getServiceIdentifier()
Get the service id.
|
int |
hashCode()
Get the hashcode.
|
void |
initNFProperties() |
IFuture<Boolean> |
isValid()
Test if the service is valid.
|
IFuture<Void> |
setComponentAccess(IInternalAccess access)
Sets the access for the component.
|
static void |
setLocalDefaultTimeout(long timeout)
Set the local default timeout.
|
void |
setPropertyMap(Map<String,Object> properties)
Set the properties.
|
static void |
setRemoteDefaultTimeout(long timeout)
Set the remote default timeout.
|
IFuture<Void> |
shutdownService()
Shutdown the service.
|
IFuture<Void> |
startService()
Start the service.
|
addMethodNFProperty, getMethodNFAllPropertyNames, getMethodNFPropertyMetaInfo, getMethodNFPropertyMetaInfos, getMethodNFPropertyMetaInfos, getMethodNFPropertyNames, getMethodNFPropertyValue, getMethodNFPropertyValue, removeMethodNFProperty, shutdownNFPropertyProvideraddNFProperty, getNFAllPropertyNames, getNFPropertyMetaInfo, getNFPropertyMetaInfos, getNFPropertyNames, getNFPropertyValue, getNFPropertyValue, getParent, removeNFProperty, setParentgetClass, notify, notifyAll, toString, wait, wait, waitaddNFProperty, getNFAllPropertyNames, getNFPropertyMetaInfo, getNFPropertyMetaInfos, getNFPropertyNames, getNFPropertyValue, getNFPropertyValue, removeNFProperty, shutdownNFPropertyProvideraddMethodNFProperty, getMethodNFAllPropertyNames, getMethodNFPropertyMetaInfo, getMethodNFPropertyMetaInfos, getMethodNFPropertyMetaInfos, getMethodNFPropertyNames, getMethodNFPropertyValue, getMethodNFPropertyValue, removeMethodNFProperty, shutdownNFPropertyProviderpublic BasicService(IComponentIdentifier providerid, Class<?> type, Map<String,Object> properties)
public static long getRemoteDefaultTimeout()
public static long getLocalDefaultTimeout()
public static void setRemoteDefaultTimeout(long timeout)
public static void setLocalDefaultTimeout(long timeout)
public void initNFProperties()
public void addNFProperties(NFProperties nfprops, Map<String,INFProperty<?,?>> nfps, IService ser, MethodInfo mi)
public void createServiceIdentifier(String name, Class<?> implclazz, IResourceIdentifier rid, Class<?> type)
createServiceIdentifier in interface IInternalServicepublic IServiceIdentifier getServiceIdentifier()
getServiceIdentifier in interface IServicepublic IComponentIdentifier getProviderId()
public IFuture<Void> setComponentAccess(IInternalAccess access)
setComponentAccess in interface IInternalServiceaccess - Component access.public Map<String,Object> getPropertyMap()
getPropertyMap in interface IServicepublic void setPropertyMap(Map<String,Object> properties)
properties - The properties to set.public IFuture<Void> startService()
startService in interface IInternalServicepublic IFuture<Void> shutdownService()
shutdownService in interface IInternalServicepublic static String generateServiceName(Class<?> service)
The - calling service class.public static IServiceIdentifier createServiceIdentifier(IComponentIdentifier providerid, String servicename, Class<?> servicetype, Class<?> serviceimpl, IResourceIdentifier rid)
providerid - The provider id.servicename - The service name.public IInternalAccess getInternalAccess()
getInternalAccess in class NFPropertyProviderpublic boolean equals(Object obj)
Copyright © 2013. All Rights Reserved.