public class RealmImpl extends Object implements IRealm
| Modifier and Type | Field and Description |
|---|---|
protected LocalAction |
action |
protected IAgent |
agent |
protected IAgentConfiguration |
agentConfiguration |
protected ApplicationId |
appId |
protected boolean |
dynamic |
protected long |
expirationTime |
protected Collection<String> |
hosts |
protected String |
name |
| Constructor and Description |
|---|
RealmImpl(String name,
ApplicationId applicationId,
LocalAction localAction,
IAgent agent,
IAgentConfiguration agentConfiguration,
boolean dynamic,
long expirationTime,
String... hosts) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPeerName(String name)
Append new host (peer) to this realm
|
IAgent |
getAgent()
Get the processing agent for this realm
|
IAgentConfiguration |
getAgentConfiguration()
Get agent configuration values for this realm.
|
ApplicationId |
getApplicationId()
Return applicationId associated with this realm
|
long |
getExpirationTime()
Return expiration time for this realm in milisec
|
LocalAction |
getLocalAction()
Return realm local action for this realm
|
String |
getName()
Return name of this realm
|
String[] |
getPeerNames()
Return list of real peers
|
boolean |
hasPeerName(String name)
Checks if a peer name belongs to this realm
|
boolean |
isDynamic()
Return true if this realm is dynamic updated
|
boolean |
isLocal() |
void |
removePeerName(String s)
Remove peer from this realm
|
String |
toString() |
protected String name
protected ApplicationId appId
protected LocalAction action
protected boolean dynamic
protected long expirationTime
protected Collection<String> hosts
protected IAgent agent
protected IAgentConfiguration agentConfiguration
public RealmImpl(String name, ApplicationId applicationId, LocalAction localAction, IAgent agent, IAgentConfiguration agentConfiguration, boolean dynamic, long expirationTime, String... hosts)
public String getName()
public ApplicationId getApplicationId()
getApplicationId in interface Realmpublic LocalAction getLocalAction()
getLocalAction in interface Realmpublic String[] getPeerNames()
getPeerNames in interface IRealmpublic void addPeerName(String name)
addPeerName in interface IRealmhost - name of peer hostpublic void removePeerName(String s)
removePeerName in interface IRealmhost - name of peer hostpublic boolean isDynamic()
public long getExpirationTime()
getExpirationTime in interface Realmpublic boolean hasPeerName(String name)
IRealmhasPeerName in interface IRealmname - name of peer hostpublic IAgent getAgent()
IRealmpublic IAgentConfiguration getAgentConfiguration()
IRealmgetAgentConfiguration in interface IRealmCopyright © 2016. All Rights Reserved.