|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Referable
org.norther.tammi.core.relation.Relation
org.norther.tammi.core.rt.VariableTree
org.norther.tammi.root.rt.VariableRoot
public class VariableRoot
A default implementation of VariableRootMBean.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.norther.tammi.core.rt.VariableTree |
|---|
VariableTree.VariableTreeType |
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.rt.VariableTree |
|---|
VARIABLE_TREE_NOTIF_DESCRIPTION, VARIABLE_TREE_NOTIFICATONS, VARIABLE_TREE_TYPE |
| Fields inherited from class org.norther.tammi.core.relation.Relation |
|---|
RELATION_NOTIF_DESCRIPTION, RELATION_NOTIFICATIONS, roleUpdate |
| Fields inherited from class org.norther.tammi.core.base.Referable |
|---|
ID_LENGTH, REFERABLE_ATTRIBUTES, REFERABLE_NOTIF_DESCRIPTION, REFERABLE_NOTIFICATIONS |
| Fields inherited from interface org.norther.tammi.core.rt.VariableTreeMBean |
|---|
BEAN_TREE_RELATION, ROLE_BASE, ROLE_BRANCH, ROLE_LEAF |
| Fields inherited from interface org.norther.tammi.core.base.ReferableMBean |
|---|
DEFAULT_ID, ID, MBEAN, MBEAN_DESCRIPTION, TYPE |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| Constructor Summary | |
|---|---|
VariableRoot()
Constructs a new root. |
|
VariableRoot(RoleList roles)
Constructs a new repository with initial roles. |
|
| Method Summary | |
|---|---|
Persister |
acquirePersister()
Acquires a persister through the default connection. |
Persister |
acquirePersister(Principal principal)
Acquires an authenticated persister through the default connection. |
Persister |
acquirePersister(String user,
String pswd)
Acquires an authenticated persister through the default connection. |
void |
clearSubBranches()
Clears the tree by removing leaves from the root itself and both branches and leaves from its branches. |
String |
dump(String path)
Dumps the contents of this tree to a dump file. |
String |
getAuthenticatedPasswordKey()
Gets the authenticated password key. |
String |
getAuthenticatedUsernameKey()
Gets the authenticated username key. |
String |
getAuthenticationConnectionKey()
Gets the authentication connection key. |
String |
getConnectionKey()
Gets the default connection key of the repository this client uses. |
String |
getConnectionUsername()
Gets the user's login name for the default connection. |
String |
getPersisterClassName()
Gets the class name of the persister implemention for the default connection. |
boolean |
isConnectionAuthenticated()
Checks whether authentication is configured for the default connection. |
boolean |
isStarted()
Checks whether the root is started. |
void |
load(String path)
Loads the contents of a dump file to this tree. |
void |
postRegister(Boolean done)
Allows the MBean to perform any operations needed after having been registered in the MBean server or after the registration has failed. |
void |
preDeregister()
Allows the MBean to perform any operations it needs before being de-registered by the MBean server. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Allows the MBean to perform any operations it needs before being registered in the MBean server. |
void |
setAuthenticationConnection(String alias,
String userKey,
String pswdKey)
Sets authentication connection. |
void |
setConnectionAuthenticated(boolean authenticated)
Sets whether authentication is configured for the default connection. |
void |
setConnectionKey(String key)
Sets the default connection key of the repository this client uses. |
void |
setConnectionPassword(String password)
Sets the user's credentials for the default connection. |
void |
setConnectionUsername(String username)
Sets the user's login name for the default connection. |
void |
setPersisterClassName(String className)
Sets the class name of the persister implementation for the default connection. |
void |
setRelationServiceManagementFlag(Boolean theFlg)
Activates/deactivates the listener. |
void |
start()
Starts the root and loads the current record file. |
void |
stop()
Stops the root. |
| Methods inherited from class org.norther.tammi.core.base.Referable |
|---|
addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNamePattern, getObjectName, getQueryPattern, getRegistrationTime, getSequenceNumber, getUniqueName, isUnregistered, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, setCanonicalName, setMBeanServer, setNamePattern, setObjectName, setQueryPattern, unregister, unregistered |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.norther.tammi.core.rt.VariableTreeMBean |
|---|
addBranchName, addBranchNames, addLeafName, addLeafNames, clearBranchNames, clearLeafNames, containsBranchName, containsLeafName, getBase, getBaseName, getBranch, getBranches, getBranchNames, getLeaf, getLeafNames, getLeaves, isUnregisterRemovedActors, notifyVariableTree, removeBranchName, removeBranchNames, removeLeafName, removeLeafNames, setBaseName, setUnregisterRemovedActors |
| Methods inherited from interface org.norther.tammi.core.relation.RelationMBean |
|---|
addActorName, addActorName, addActorNames, addToService, clearRole, getActor, getActor, getActor, getActorName, getActorName, getRelationService, getRoleActors, isNamedActorInRole, removeActorName, removeActorName, removeActorNames, removeFromService, retrieveRole, setActorName, setActorName |
| Methods inherited from interface javax.management.relation.RelationSupportMBean |
|---|
isInRelationService |
| Methods inherited from interface javax.management.relation.Relation |
|---|
getAllRoles, getReferencedMBeans, getRelationId, getRelationServiceName, getRelationTypeName, getRole, getRoleCardinality, getRoles, handleMBeanUnregistration, retrieveAllRoles, setRole, setRoles |
| Methods inherited from interface org.norther.tammi.core.base.ReferableMBean |
|---|
getMBean |
| Constructor Detail |
|---|
public VariableRoot()
public VariableRoot(RoleList roles)
roles - an optional list of initial roles.| Method Detail |
|---|
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
Referable
preRegister in interface MBeanRegistrationpreRegister in class Relationserver - the MBean server in which the MBean will be registered.name - the object name of the MBean (may be null).
Exception - for errors.public void postRegister(Boolean done)
Referable
postRegister in interface MBeanRegistrationpostRegister in class VariableTreedone - indicates whether or not the MBean has been registered.
public void preDeregister()
throws Exception
Referable
preDeregister in interface MBeanRegistrationpreDeregister in class RelationException - on errors.public String getConnectionKey()
RepositoryClient
getConnectionKey in interface RepositoryClientpublic void setConnectionKey(String key)
RepositoryClient
setConnectionKey in interface RepositoryClientkey - the connection key.public String getPersisterClassName()
RepositoryClient
getPersisterClassName in interface RepositoryClientpublic void setPersisterClassName(String className)
RepositoryClient
setPersisterClassName in interface RepositoryClientclassName - the persister class name.public String getConnectionUsername()
RepositoryClient
getConnectionUsername in interface RepositoryClientpublic void setConnectionUsername(String username)
RepositoryClient
setConnectionUsername in interface RepositoryClientusername - the user's repository connection login name.public void setConnectionPassword(String password)
RepositoryClient
setConnectionPassword in interface RepositoryClientpassword - the user's repository connection credentials.public boolean isConnectionAuthenticated()
RepositoryClient
isConnectionAuthenticated in interface RepositoryClientpublic void setConnectionAuthenticated(boolean authenticated)
RepositoryClient
setConnectionAuthenticated in interface RepositoryClientauthenticated - true for an authenticated connection, false otherwise.public String getAuthenticationConnectionKey()
RepositoryClient
getAuthenticationConnectionKey in interface RepositoryClientpublic String getAuthenticatedUsernameKey()
RepositoryClient
getAuthenticatedUsernameKey in interface RepositoryClientpublic String getAuthenticatedPasswordKey()
RepositoryClient
getAuthenticatedPasswordKey in interface RepositoryClient
public void setAuthenticationConnection(String alias,
String userKey,
String pswdKey)
RepositoryClient
setAuthenticationConnection in interface RepositoryClientalias - the authentication key.userKey - the username key.pswdKey - the password key.
public Persister acquirePersister()
throws ConstructionException
RepositoryClient
acquirePersister in interface RepositoryClientConstructionException - if construction fails.
public Persister acquirePersister(String user,
String pswd)
throws ConstructionException
RepositoryClient
acquirePersister in interface RepositoryClientuser - the username of the connection.pswd - the password of the connection.
ConstructionException - if construction fails.
public Persister acquirePersister(Principal principal)
throws ConstructionException
RepositoryClient
acquirePersister in interface RepositoryClientprincipal - an authenticated principal.
ConstructionException - if construction fails.public void clearSubBranches()
VariableRootMBeanNote that the record file is also cleared.
clearSubBranches in interface VariableRootMBean
public void load(String path)
throws LogException
VariableRootMBean
load in interface VariableRootMBeanpath - the pathname of the file.
LogException - on errors.
public String dump(String path)
throws LogException
VariableRootMBean
dump in interface VariableRootMBeanpath - the pathname of the file.
LogException - on errors.public void setRelationServiceManagementFlag(Boolean theFlg)
setRelationServiceManagementFlag in interface RelationSupportMBeansetRelationServiceManagementFlag in class VariableTreetheFlg - the flag.public boolean isStarted()
isStarted in interface Startable
public void start()
throws LogException
start in interface StartableLogException - if start fails.public void stop()
stop in interface Startable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||