|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.embedded.EmbeddedServiceBase
public class EmbeddedServiceBase
Enables an Anzo client to run a embedded Model Service as a library within the client's JVM.
| Constructor Summary | |
|---|---|
EmbeddedServiceBase(ModelServiceApi modelServiceApi,
java.util.Properties properties)
Create a new EmbeddedServiceBase with given configuration properties |
|
EmbeddedServiceBase(java.util.Properties properties)
Create a new EmbeddedServiceBase with given configuration properties |
|
| Method Summary | |
|---|---|
void |
close()
Close this service, if it is the last reference, then unregister the reset listener |
int |
decrementUsage()
Decrement the usage count |
static EmbeddedServiceBase |
getInstance(java.lang.Object parent,
java.util.Properties props)
Get an instance of the base service. |
java.lang.String |
getServicePassword()
Get the user's password for the current thread which this service will use to authenticate |
java.lang.String |
getServiceUser()
Get the userId for the current thread which this service will use to authenticate |
int |
incrementUsage()
Increment the usage count |
boolean |
isClosed()
Get if this service is closed |
void |
setServicePassword(java.lang.String password)
Set the user's password for the current thread which this service will use to authenticate |
void |
setServiceUser(java.lang.String user)
Set the userId for the current thread which this service will use to authenticate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedServiceBase(java.util.Properties properties)
throws AnzoException
properties - Configuration properties
AnzoException
public EmbeddedServiceBase(ModelServiceApi modelServiceApi,
java.util.Properties properties)
throws AnzoException
modelServiceApi - the api which this service usesproperties - Configuration properties
AnzoException| Method Detail |
|---|
public static EmbeddedServiceBase getInstance(java.lang.Object parent,
java.util.Properties props)
parent - The object creating this serviceprops - The configuration properties for this service
public void close()
public void setServiceUser(java.lang.String user)
user - userId for the current thread which this service will use to authenticatepublic java.lang.String getServiceUser()
public java.lang.String getServicePassword()
public void setServicePassword(java.lang.String password)
password - user's password for the current thread which this service will use to authenticatepublic boolean isClosed()
public int incrementUsage()
public int decrementUsage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||