com.pcbsys.nirvana.nAdminAPI.nRealmNode Class Reference

This class represents a Realm within the Nirvana namespace. More...

Inheritance diagram for com.pcbsys.nirvana.nAdminAPI.nRealmNode:
com.pcbsys.nirvana.nAdminAPI.nContainer com.pcbsys.nirvana.nAdminAPI.nRemovable com.pcbsys.nirvana.nAdminAPI.nNode com.pcbsys.nirvana.client.Observable

Public Member Functions

virtual void addAuditListener (nAuditListener listener)
 This will register the nAuditListener for all audit events from this realm. More...
 
virtual void addAuditListener (nAuditListener listener, bool replay)
 This will register the nAuditListener for all audit events from this realm. More...
 
virtual void addConnectionListener (nConnectionListener listener)
 Registers the listener object with the realm so that whenever a connection is made or lost with the realm the listener is notified of the change in state of the realm. More...
 
virtual void addConnectionListenerToAllLeafNodes (nConnectionListener listener)
 Registers a nConnectionListener to each nLeaNode of the nRealmNode. More...
 
virtual void addLogListener (nLogListener listener)
 This will register the nLogListener for all log events from this realm. More...
 
virtual void addPluginAccessListener (nLogListener listener)
 This will register the nLogListener for all Access events from the plugin manager. More...
 
virtual void addPluginErrorListener (nLogListener listener)
 This will register the nLogListener for all error events from the plugin manager. More...
 
virtual void addPluginLogListener (nLogListener listener)
 This will register the nLogListener for all events from the plugin manager. More...
 
void addRealmACLEntries (nACL entry)
 Adds list of acl entries to the realm acl More...
 
virtual void addRealmACLEntry (nACLEntry entry)
 Adds a specific acl entry to the realm acl More...
 
virtual void changeStatusChannel (int type, long age, int capacity)
 This will cause the realm server to close the current status file, delete it and recreate the file using the attributes specified. More...
 
virtual void changeTransactionChannel (int type, long age, int capacity)
 This will cause the realm server to close the current transaction file, delete it and recreate the file using the attributes specified. More...
 
virtual void close ()
 Closes the session with the remote Realm and all realms from this point in the namespace. More...
 
virtual void commitConfig (nConfigGroup changedGroup)
 Calling this function with causes all changes within the group to be committed on the realm and activated. More...
 
virtual nLeafNode createChannel (com.pcbsys.nirvana.client.nChannelAttributes attr)
 Creates a new channel on the realm this session is connected. More...
 
virtual nLeafNode createChannel (com.pcbsys.nirvana.client.nChannelAttributes attr, nLeafNode dead)
 Creates a new channel on the realm this session is connected. More...
 
virtual nLeafNode createChannel (com.pcbsys.nirvana.client.nChannelAttributes attr, long p_initialEID)
 Creates a new channel on the realm this session is connected. More...
 
virtual nLeafNode createChannel (com.pcbsys.nirvana.client.nChannelAttributes attr, long p_initialEID, nLeafNode dead)
 Creates a new channel on the realm this session is connected. More...
 
virtual nLeafNode createChannel (com.pcbsys.nirvana.client.nChannelAttributes attr, long p_initialEID, nACL initialACL)
 Creates a new channel on the realm this session is connected. More...
 
virtual nLeafNode createChannel (com.pcbsys.nirvana.client.nChannelAttributes attr, long p_initialEID, nACL initialACL, nLeafNode dead)
 Creates a new channel on the realm this session is connected. More...
 
virtual nLeafNode createQueue (com.pcbsys.nirvana.client.nChannelAttributes attr)
 Creates a new queue on the realm this session is connected. More...
 
virtual nLeafNode createQueue (com.pcbsys.nirvana.client.nChannelAttributes attr, nACL initialACL)
 Creates a new queue on the realm this session is connected. More...
 
virtual nLeafNode createQueue (com.pcbsys.nirvana.client.nChannelAttributes attr, nLeafNode dead)
 Creates a new queue on the realm this session is connected. More...
 
virtual nLeafNode createQueue (com.pcbsys.nirvana.client.nChannelAttributes attr, nACL initialACL, nLeafNode dead)
 Creates a new queue on the realm this session is connected. More...
 
virtual void delAuditListener (nAuditListener listener)
 This will remove the audit listener from receiving future audit events. More...
 
virtual void delConnectionListener (nConnectionListener listener)
 Removes the registered listener from the realm so no further callbacks are made to the listener. More...
 
virtual void delLeafNode (nLeafNode node)
 Removes the specified channel/queue from the server More...
 
virtual void delLogListener (nLogListener listener)
 This will remove the log listener from receiving future log events More...
 
virtual void delPluginAccessListener (nLogListener listener)
 This will remove the log listener from receiving future log events More...
 
virtual void delPluginErrorListener (nLogListener listener)
 This will remove the log listener from receiving future log events More...
 
virtual void delPluginLogListener (nLogListener listener)
 This will remove the log listener from receiving future log events More...
 
virtual nConfigGroup findConfigGroup (string groupName)
 Finds a configuration group by the name specified by the String argument More...
 
override nNode findNode (string name)
 Given a name of the form /container1/container2/name this function will try to locate the name object locally and return it, or null if that object can not be found. More...
 
nNode findNode (string name, bool flag)
 Given a name of the form /container/container/name this function will locate the name object and More...
 
virtual List< fAclGroup > getACLGroups ()
 * Retrieves the current realms ACL so that the user can add/remove/modify the entries within. More...
 
virtual nACL getACLs ()
 Removes the specified nScheduler node from the server More...
 
virtual long getBuffersCreated ()
 Number of data buffers created within the realms and for use within event fanout More...
 
virtual long getBuffersReused ()
 Number of data buffers reused by the event fanout More...
 
virtual nClusterNode getCluster ()
 Return the cluster node if one exists, i.e. More...
 
virtual nConfigGroup getConfigGroup (string name)
 Returns the nConfigGroup specified by the name More...
 
virtual IEnumerator getConfigGroups ()
 Returns an IEnumerator containing nConfigGroup objects More...
 
virtual int getConfigGroupsLength ()
 Returns the size of the nConfigGroup, i.e. More...
 
virtual int getCurrentConnections ()
 Returns the number of connections on this realm More...
 
nDataGroupListener getDataGroupListener ()
 summary>Get the default data group listener More...
 
nDataGroupsContainer getDataGroups ()
 Provides a collection of all datagroups created on this realm More...
 
nDataGroupNode getDefaultDataGroup ()
 summary>Get the default data group node More...
 
long getFanoutBacklog ()
 Returns the number of events waiting to be processed by the fanout engine More...
 
virtual long getFreeMemory ()
 Returns the amount of free memory the Realm Server has within the JVM. More...
 
virtual nInterfaceManager getInterfaceManager ()
 Returns the Realms Interface Manager More...
 
virtual long getInternalSchedulerSize ()
 Return the total number of scheduled tasks currently running within the realm More...
 
nMulticastManager getMulticastManager ()
 Returns the Realms Interface Manager More...
 
virtual int getNoOfChannels ()
 Return the number of channels in the Realm Server. More...
 
virtual int getNoOfQueues ()
 Return the number of queues in the Realm Server. More...
 
virtual long getNoOfThreads ()
 Return the number of thread the JVM has allocated for the Realm Server. More...
 
virtual int getQueuedThreads ()
 Number of threads currently queued ready to execute tasks More...
 
virtual
com.pcbsys.nirvana.client.nRealm 
getRealm ()
 Returns the nRealm object for this RealmNode More...
 
virtual ArrayList getRealmList ()
 Method to return an ArrayList of known realms More...
 
virtual nThreadEntry[] getRealmScheduledThreadList ()
 Sends a request to the Realm Server to produce a Thread dump. More...
 
nRemoteInterestManager getRemoteInterestManager ()
 The remote interest manager is an object that allows the user to control propagation of messages between realms. More...
 
virtual int getReUsedThreads ()
 Return the number of reused threads within the realm More...
 
virtual nSecurityGroupManager getSecurityGroupManager ()
 Return the securityGroupManager object for this realm More...
 
virtual DateTime getServerTime ()
 Returns the last status update date that the server sent More...
 
virtual nSession getSession ()
 Returns the nSession object for this RealmNode More...
 
virtual DateTime getStartTime ()
 Returns the Date that the realm server was started More...
 
virtual ArrayList getThreadPoolDetails ()
 Return an ArrayList of nThreadPool objects that represent the different thread pools deployed within the realm. More...
 
virtual long getTotalConnections ()
 Total number of connections served by this realm from the time it started More...
 
long getTotalGCCount ()
 Return the total number of GCs that the JVM has performed since the realm has started More...
 
long getTotalGCTime ()
 Returns the total time in milliseconds that the JVM jas spent doing GCs More...
 
virtual long getTotalMemory ()
 Returns the total number of bytes that the JVM has allocated from the unerlying OS. More...
 
virtual long getTotalPublished ()
 Returns the total number of events published on this realm from the time it has started More...
 
virtual long getTotalSubscribed ()
 Returns the total number of events that this realm has sent to clients from the time it started More...
 
virtual long getUpdateInterval ()
 Returns the update interval for status updates More...
 
virtual int getVendedThreads ()
 Get the total number of threads that have been allocated threads within the realm More...
 
virtual nZoneManager getZoneManager ()
 Return the Zone Manager object for this realm More...
 
virtual bool hasConnectionListener ()
 Checks if there is a connection listener object associated with the realm. More...
 
virtual bool isAnEmbeddedServer ()
 If the realm is running within an application then this will be set to true More...
 
virtual bool isAuthorised ()
 This function returns true if the user is authorised for admininstration functions on the remote realm. More...
 
bool isClustered ()
 Returns the current cluster membership state of this realm More...
 
virtual bool isConnected ()
 This method returns true if the connection to the remote realm is still valid More...
 
virtual bool isEntireNamespaceComplete ()
 This method returns true when the namespace discovery process is complete for the entire namespace from this node down. More...
 
virtual bool isNamespaceComplete ()
 This method returns true when the namespace discovery process is complete. More...
 
void modRealmACLEntries (nACL entry)
 modifies a list of acl entries permissions in the realm acl. More...
 
virtual void modRealmACLEntry (nACLEntry entry)
 modifies a specific acl entry's permissions in the realm acl. More...
 
 nRealmNode (nSessionAttributes sAttr)
 Constructs a link with the realm server and builds up the realm servers namespace which can be retrieved using the getNameSpace() function More...
 
 nRealmNode (nSessionAttributes sAttr, NetworkCredential creds)
 Constructs a link with the realm server and builds up the realm servers namespace which can be retrieved using the getNameSpace() function More...
 
 nRealmNode (nSessionAttributes sAttr, string username, SecureString password=null)
 Constructs a link with the realm server and builds up the realm servers namespace which can be retrieved using the getNameSpace() function More...
 
void onMessage (nConsumeEvent evt)
 This method is for internal use only More...
 
virtual void releaseCachedMemory ()
 Sends a request to the Realm Server to release cached memory. More...
 
virtual void remove (bool removeChildren)
 This method enables the removal of the object from the namespace, in this case a RealmNode from the namespace. More...
 
virtual void removeConnection (string connectionId)
 This method will cause the server to disconnect the connection described by the connection ID. More...
 
virtual void removeConnection (string connectionId, bool sendRedirection)
 This method will cause the server to disconnect the connection described by the connection ID. More...
 
void removeRealmACLEntries (nACL entry)
 removes a list of acl entries from the realm acl. More...
 
virtual void removeRealmACLEntry (nACLEntry entry)
 removes a specific acl entry from the realm acl. More...
 
virtual void requestThreadDump ()
 Sends a request to the Realm Server to produce a Thread dump. More...
 
virtual void rollAuditFile ()
 This will cause the realm server to close the current audit log, rename it to the current date and start a new audit log More...
 
void rollLogFile ()
 Rolls the servers log file More...
 
virtual void setACLs (nACL acl)
 Commits the ACL passed in with the Realm Server. More...
 
virtual void waitForEntireNameSpace (long timeout)
 This method will block the calling thread until all of the namespace has been resolved. More...
 
virtual void waitForEntireNameSpace ()
 This method will block the calling thread until all of the namespace has been resolved. More...
 
virtual void waitForNameSpace (long timeout)
 This method will block the calling thread until the namespace discovery is complete for this node or the supplied timeout, in milliseconds, is reached. More...
 
virtual void waitForNameSpace ()
 This method will block the calling thread until the namespace discovery is complete for this node. More...
 
- Public Member Functions inherited from com.pcbsys.nirvana.nAdminAPI.nContainer
void addACLEntries (nACL acl)
 Adds a list of acl entry to all known nodes within the nContainer node. More...
 
void addACLEntries (nACL acl, nNode[] nodes)
 Adds a list acl entry to all nodes contained with in the array of nNodes More...
 
virtual void addACLEntry (nACLEntry entry)
 Adds a specific acl entry to all known nodes within the nContainer node. More...
 
virtual void addACLEntry (nACLEntry entry, bool allChannels, bool allQueues, bool allServices)
 Adds a specific acl entry to all known nodes within the nContainer node. More...
 
virtual void closed (nRealmNode node)
 Called when the nRealmNode is closed, for internal use only. More...
 
virtual nNode findNode (nNode node)
 Given a name of the form /container/container/name this function will locate the nNode object and return it, or null if that can not be found. More...
 
virtual nNode findNode (nNode node, bool searchChildren)
 Given a name of the form /container/container/name this function will locate the name object and return it, or null if that can not be found. More...
 
nNode getNextSibling ()
 Method to return the next sibling from this node's parent More...
 
virtual nNode getNextSibling (int idx)
 Returns the sibling at position idx from this nodes parent. More...
 
virtual
System.Collections.IEnumerator 
getNodes ()
 Returns an IEnumerator of all the nodes under this container. More...
 
virtual nRealmNode getRealmAt (string name)
 Given a mount point this function will return a realm if one exists at the specified mount point More...
 
nRealmNode getRealmNode ()
 Get method for the realm node which acts as a container for this object More...
 
virtual int getSize ()
 Returns the number of nodes under this container. More...
 
virtual int getTotalNodes ()
 Returns the total number of nodes within this container and all subsequent children by traversing the entire structure beneath this container node More...
 
virtual bool hasRealmAt (string name)
 Given a mount point this function will determine if this container contains a mounted realm at the specified mount point More...
 
void modACLEntries (nACL acl)
 Modifies a list of acl entry to all known nodes within the nContainer node. More...
 
void modACLEntries (nACL acl, nNode[] nodes)
 Modifies a list of acl entry to all nodes contained with in the array of nNodes More...
 
virtual void modACLEntry (nACLEntry entry)
 modifies a specific acl entry's permissions for all known nodes within the nContainer node. More...
 
virtual void modACLEntry (nACLEntry entry, bool allChannels, bool allQueues, bool allServices)
 modifies a specific acl entry's permissions for all known nodes within the nContainer node. More...
 
void removeACLEntries (nACL acl)
 Removes a list of acl entries from all known nodes within the nContainer node. More...
 
void removeACLEntries (nACL acl, nNode[] nodes)
 Removes a list of acl entries from all nodes contained with in the array of nNodes More...
 
virtual void removeACLEntry (nACLEntry entry)
 removes a specific acl entry from all known nodes within the nContainer node. More...
 
virtual void removeACLEntry (nACLEntry entry, bool allChannels, bool allQueues, bool allServices)
 removes a specific acl entry from all known nodes within the nContainer node. More...
 
virtual void setACL (nACL acl)
 Replaces the existing ACL with the nACL supplied to all known nodes within the nContainer node. More...
 
virtual void setACL (nACL acl, bool allChannels, bool allQueues, bool allServices)
 Replaces the existing ACL with the nACL supplied to all known nodes within the nContainer node. More...
 
- Public Member Functions inherited from com.pcbsys.nirvana.nAdminAPI.nNode
bool Equals (long aLong)
 Needed as part of the SortedObject interface. More...
 
override bool Equals (object item)
 Compares this object with the passed object More...
 
virtual string getAbsolutePath ()
 This function walks the tree to the root to generate a fully qualified name for this node More...
 
virtual nNode getParent ()
 Returns this nodes parent node. More...
 
virtual string getRelativePath (nNode top)
 This method returns the relative path from this node to the nNode passed. More...
 
virtual bool lessThan (long aLong)
 Needed as part of the SortedObject interface. More...
 
virtual bool lessThan (object item)
 Compares this object with the passed object. More...
 
- Public Member Functions inherited from com.pcbsys.nirvana.client.Observable
void addObserver (IObserver o)
 Adds an observer to the set of observers for this object, provided that it is not the same as some observer already in the set. More...
 
int countObservers ()
 Returns the number of observers of this Observable object. More...
 
void deleteObserver (IObserver o)
 Deletes an observer from the set of observers of this object. More...
 
void deleteObservers ()
 Clears the observer list so that this object no longer has any observers. More...
 
bool hasChanged ()
 Tests if this object has changed. More...
 
void notifyObservers ()
 If this object has changed, as indicated by the hasChanged method, then notify all of its observers and then call the clearChanged method to indicate that this object has no longer changed. More...
 
void notifyObservers (Object arg)
 If this object has changed, as indicated by the More...
 
 Observable ()
 Construct an Observable with zero Observers. More...
 

Static Public Member Functions

static nACL createACL ()
 Return a new nACL object More...
 
static bool getAsyncUpdateFlag ()
 Return whether realm node will receive asynchronous updates from the server. More...
 
static void setAsyncUpdateFlag (bool flag)
 Flag indicating whether the realm node will receive asynchronous updates from the server. More...
 

Additional Inherited Members

- Protected Member Functions inherited from com.pcbsys.nirvana.client.Observable
void clearChanged ()
 Indicates that this object has no longer changed, or that it has already notified all of its observers of its most recent change, so that the hasChanged method will now return false. More...
 
void setChanged ()
 Marks this Observable object as having been changed; the hasChanged method will now return true. More...
 
- Properties inherited from com.pcbsys.nirvana.nAdminAPI.nNode
virtual string Name [get]
 Returns the generic name of this node within the namespace More...
 

Detailed Description

This class represents a Realm within the Nirvana namespace.

This object allows the user to access the current status of the RealmServer, the current configuration parameters, change the ACL entries for the realm and access to the nodes that this RealmServer manages. It extents nContainer which is a Observable via nNode, if any status parameters change then the observer is notified via the notofy method.

This class also allows you to monitor connections to the realm by implementing a nConnectionListener and calling addConnectionListener with the object. Then when connections are added or deleted the callbacks will be executed with the details of the connections.

nContainer nNode

Constructor & Destructor Documentation

com.pcbsys.nirvana.nAdminAPI.nRealmNode.nRealmNode ( nSessionAttributes  sAttr)

Constructs a link with the realm server and builds up the realm servers namespace which can be retrieved using the getNameSpace() function

Parameters
sAttrnSessionAttributes representing the realm you wish to communicate with
Exceptions
nBaseAdminExceptionIf the user is not authorised for admin functions
com.pcbsys.nirvana.nAdminAPI.nRealmNode.nRealmNode ( nSessionAttributes  sAttr,
NetworkCredential  creds 
)

Constructs a link with the realm server and builds up the realm servers namespace which can be retrieved using the getNameSpace() function

Parameters
sAttrnSessionAttributes representing the realm you wish to communicate with
credsCredentials to use to login to the server
Exceptions
nBaseAdminExceptionIf the user is not authorised for admin functions
com.pcbsys.nirvana.nAdminAPI.nRealmNode.nRealmNode ( nSessionAttributes  sAttr,
string  username,
SecureString  password = null 
)

Constructs a link with the realm server and builds up the realm servers namespace which can be retrieved using the getNameSpace() function

Parameters
sAttrnSessionAttributes representing the realm you wish to communicate with
usernameUsername to use to login to the server
passwordPassword to use to login to the server
Exceptions
nBaseAdminExceptionIf the user is not authorised for admin functions

Member Function Documentation

virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.addAuditListener ( nAuditListener  listener)
virtual

This will register the nAuditListener for all audit events from this realm.

Parameters
listenerThe listener object to call when new log events happen
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.addAuditListener ( nAuditListener  listener,
bool  replay 
)
virtual

This will register the nAuditListener for all audit events from this realm.

Parameters
listenerThe listener object to call when new log events happen
replayspecify true to replay the entire audit contents
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.addConnectionListener ( nConnectionListener  listener)
virtual

Registers the listener object with the realm so that whenever a connection is made or lost with the realm the listener is notified of the change in state of the realm.

Currently only one listener per session is supported.

Parameters
listenerThe instance of the nConnectionListener to be called when connections are made or disconnected
Exceptions
nBaseAdminExceptionif the user is not permitted to access these lists, check the message for further information

nConnectionListener

virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.addConnectionListenerToAllLeafNodes ( nConnectionListener  listener)
virtual

Registers a nConnectionListener to each nLeaNode of the nRealmNode.

Parameters
listenerThe instance of the nConnectionListener to be called when connections are made or disconnected
Exceptions
nBaseAdminExceptionif the user is not permitted to access these lists, check the message for further information

nConnectionListener

virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.addLogListener ( nLogListener  listener)
virtual

This will register the nLogListener for all log events from this realm.

This can become quiet busy if the log level on the realm is set for verbose.

Parameters
listenerThe listener object to call when new log events happen
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.addPluginAccessListener ( nLogListener  listener)
virtual

This will register the nLogListener for all Access events from the plugin manager.

Parameters
listenerThe listener object to call when new log events happen
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.addPluginErrorListener ( nLogListener  listener)
virtual

This will register the nLogListener for all error events from the plugin manager.

  • Parameters
    listenerThe listener object to call when new log events happen
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.addPluginLogListener ( nLogListener  listener)
virtual

This will register the nLogListener for all events from the plugin manager.

  • Parameters
    listenerThe listener object to call when new log events happen
void com.pcbsys.nirvana.nAdminAPI.nRealmNode.addRealmACLEntries ( nACL  entry)

Adds list of acl entries to the realm acl

Parameters
entryAn nACL object containing the subject and permissions to add to the realm acl
Exceptions
nInsufficientPrivilegesExceptionIf the user is not permissioned to perform this operation
nNodeExceptionif the ACLs being set are invalid
nBaseAdminExceptionif unable to perform the operation, check the message for further information
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.addRealmACLEntry ( nACLEntry  entry)
virtual

Adds a specific acl entry to the realm acl

Parameters
entryAn nACL entry containing the subject and permissions to add to the realm acl
Exceptions
nInsufficientPrivilegesExceptionIf the user is not permissioned to perform this operation
nNodeExceptionif the ACLs being set are invalid
nBaseAdminExceptionif unable to perform the operation, check the message for further information
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.changeStatusChannel ( int  type,
long  age,
int  capacity 
)
virtual

This will cause the realm server to close the current status file, delete it and recreate the file using the attributes specified.

Parameters
agethe ttl which will be assigned as default to each nirvana status event stored into the status channel file
capacityset the maximum number of status events to store within the channel
typechange the type of the status channel (default is mixed)
Exceptions
nBaseAdminExceptionIf the user is not authorized for this function, check the message for further information
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.changeTransactionChannel ( int  type,
long  age,
int  capacity 
)
virtual

This will cause the realm server to close the current transaction file, delete it and recreate the file using the attributes specified.

Parameters
agethe ttl which will be assigned as default to each nirvana transaction
capacityset the maximum number of transactions to store within the channel
typechange the type of the transaction channel (default is mixed)
Exceptions
nBaseAdminExceptionIf the user is not authorized for this function, check the message for further information
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.close ( )
virtual

Closes the session with the remote Realm and all realms from this point in the namespace.

virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.commitConfig ( nConfigGroup  changedGroup)
virtual

Calling this function with causes all changes within the group to be committed on the realm and activated.

All config changes are immediate and do not require the realm server to be restarted.

Parameters
changedGroupThe nConfigGroup containing the changed nConfigEntry
Exceptions
nConfigurationExceptionIf the user is not authorized for this function, Check the message for more information
static nACL com.pcbsys.nirvana.nAdminAPI.nRealmNode.createACL ( )
static

Return a new nACL object

Returns
a new nACL object
virtual nLeafNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.createChannel ( com.pcbsys.nirvana.client.nChannelAttributes  attr)
virtual

Creates a new channel on the realm this session is connected.

If the channel attributes specify a realm different than the one this session is connected to, a transparent redirection will occur and the channel will be created on that realm.

Parameters
attrThe channel attributes object containing the parameters for the new channel to be created
Returns
an nChannel object representing the newly created nirvana channel
Exceptions
com.pcbsys.nirvana.client.nUnknownRemoteRealmExceptionThe remote node responded with an unknown exception
nSecurityExceptionUser is not authorised for the function
com.pcbsys.nirvana.client.nChannelAlreadyExistsExceptionThe requested channel already exists
nSessionNotConnectedExceptionCurrent session is not connected
nUnexpectedResponseExceptionInternal Error has occured, since we received a response from the server out of sequence
nRequestTimedOutExceptionThe server has not responded to the request in the timeout period
nIllegalArgumentExceptionIllegal parameter, check the message for more information
nSessionPausedExceptionThe session is currently paused, please resume
virtual nLeafNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.createChannel ( com.pcbsys.nirvana.client.nChannelAttributes  attr,
nLeafNode  dead 
)
virtual

Creates a new channel on the realm this session is connected.

If the channel attributes specify a realm different than the one this session is connected to, a transparent redirection will occur and the channel will be created on that realm.

Parameters
attrThe channel attributes object containing the parameters for the new channel to be created
deadThe dead event store that will contain all purged, aged and dead events
Returns
an nChannel object representing the newly created nirvana channel
Exceptions
com.pcbsys.nirvana.client.nUnknownRemoteRealmExceptionThe remote node responded with an unknown exception
nSecurityExceptionUser is not authorised for the function
com.pcbsys.nirvana.client.nChannelAlreadyExistsExceptionThe requested channel already exists
nSessionNotConnectedExceptionCurrent session is not connected
nUnexpectedResponseExceptionInternal Error has occured, since we received a response from the server out of sequence
nRequestTimedOutExceptionThe server has not responded to the request in the timeout period
nIllegalArgumentExceptionIllegal parameter, check the message for more information
nSessionPausedExceptionThe session is currently paused, please resume
virtual nLeafNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.createChannel ( com.pcbsys.nirvana.client.nChannelAttributes  attr,
long  p_initialEID 
)
virtual

Creates a new channel on the realm this session is connected.

If the channel attributes specify a realm different than the one this session is connected to, a transparent redirection will occur and the channel will be created on that realm.

Parameters
attrThe channel attributes object containing the parameters for the new channel to be created @ param initialEID The channel will be created with the first eid being set to this value by default it is set to 0 but the user can set it to any positive value
p_initialEIDThe value to start the event id at
Returns
an nChannel object representing the newly created nirvana channel
Exceptions
nUnknownRemoteRealmExceptionThe remote realm responded with an unknown exception
nSecurityExceptionUser is not authorised for the function
nChannelAlreadyExistsExceptionThe channel already exists
nSessionNotConnectedExceptionCurrent session is not connected
nUnexpectedResponseExceptionInternal Error has occured, since we received a response from the server out of sequence
nRequestTimedOutExceptionThe server has not responded to the request in the timeout period
nIllegalArgumentExceptionIllegal parameter, check the message for more information
nSessionPausedExceptionThe session is currently paused, please resume
virtual nLeafNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.createChannel ( com.pcbsys.nirvana.client.nChannelAttributes  attr,
long  p_initialEID,
nLeafNode  dead 
)
virtual

Creates a new channel on the realm this session is connected.

If the channel attributes specify a realm different than the one this session is connected to, a transparent redirection will occur and the channel will be created on that realm.

Parameters
attrThe channel attributes object containing the parameters for the new channel to be created @ param initialEID The channel will be created with the first eid being set to this value by default it is set to 0 but the user can set it to any positive value
p_initialEIDThe value to start the event id at
deadThe dead event store that will contain all purged, aged and dead events
Returns
an nChannel object representing the newly created nirvana channel
Exceptions
nUnknownRemoteRealmExceptionThe remote realm responded with an unknown exception
nSecurityExceptionUser is not authorised for the function
nChannelAlreadyExistsExceptionThe channel already exists
nSessionNotConnectedExceptionCurrent session is not connected
nUnexpectedResponseExceptionInternal Error has occured, since we received a response from the server out of sequence
nRequestTimedOutExceptionThe server has not responded to the request in the timeout period
nIllegalArgumentExceptionIllegal parameter, check the message for more information
nSessionPausedExceptionThe session is currently paused, please resume
virtual nLeafNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.createChannel ( com.pcbsys.nirvana.client.nChannelAttributes  attr,
long  p_initialEID,
nACL  initialACL 
)
virtual

Creates a new channel on the realm this session is connected.

If the channel attributes specify a realm different than the one this session is connected to, a transparent redirection will occur and the channel will be created on that realm.

Parameters
attrThe channel attributes object containing the parameters for the new channel to be created @ param initialEID The channel will be created with the first eid being set to this value by default it is set to 0 but the user can set it to any positive value
p_initialEIDThe value to start the event id at
initialACLThe initial ACLs to apply to the channel at creation time
Returns
an nChannel object representing the newly created nirvana channel
Exceptions
nUnknownRemoteRealmExceptionThe remote realm responded with an unknown exception
nSecurityExceptionUser is not authorised for the function
nChannelAlreadyExistsExceptionThe channel already exists
nSessionNotConnectedExceptionCurrent session is not connected
nUnexpectedResponseExceptionInternal Error has occured, since we received a response from the server out of sequence
nRequestTimedOutExceptionThe server has not responded to the request in the timeout period
nIllegalArgumentExceptionIllegal parameter, check the message for more information
nSessionPausedExceptionThe session is currently paused, please resume
virtual nLeafNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.createChannel ( com.pcbsys.nirvana.client.nChannelAttributes  attr,
long  p_initialEID,
nACL  initialACL,
nLeafNode  dead 
)
virtual

Creates a new channel on the realm this session is connected.

If the channel attributes specify a realm different than the one this session is connected to, a transparent redirection will occur and the channel will be created on that realm.

Parameters
attrThe channel attributes object containing the parameters for the new channel to be created @ param initialEID The channel will be created with the first eid being set to this value by default it is set to 0 but the user can set it to any positive value
p_initialEIDThe value to start the event id at
initialACLThe initial ACLs to apply to the channel at creation time
deadThe dead event store that will contain all purged, aged and dead events
Returns
an nChannel object representing the newly created nirvana channel
Exceptions
nUnknownRemoteRealmExceptionThe remote realm responded with an unknown exception
nSecurityExceptionUser is not authorised for the function
nChannelAlreadyExistsExceptionThe channel already exists
nSessionNotConnectedExceptionCurrent session is not connected
nUnexpectedResponseExceptionInternal Error has occured, since we received a response from the server out of sequence
nRequestTimedOutExceptionThe server has not responded to the request in the timeout period
nIllegalArgumentExceptionIllegal parameter, check the message for more information
nSessionPausedExceptionThe session is currently paused, please resume
virtual nLeafNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.createQueue ( com.pcbsys.nirvana.client.nChannelAttributes  attr)
virtual

Creates a new queue on the realm this session is connected.

If the queue attributes specify a realm different than the one this session is connected to, a transparent redirection will occur and the queue will be created on that realm.

Parameters
attrThe queue attributes object containing the parameters for the new queue to be created
Returns
an nLeafNode object representing the newly created nirvana queue
Exceptions
nUnknownRemoteRealmExceptionThe remote realm responded with an unknown exception
nSecurityExceptionUser is not authorised for the function
nChannelAlreadyExistsExceptionThe channel already exists
nSessionNotConnectedExceptionCurrent session is not connected
nUnexpectedResponseExceptionInternal Error has occured, since we received a response from the server out of sequence
nRequestTimedOutExceptionThe server has not responded to the request in the timeout period
nIllegalArgumentExceptionIllegal parameter, check the message for more information
nSessionPausedExceptionThe session is currently paused, please resume
virtual nLeafNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.createQueue ( com.pcbsys.nirvana.client.nChannelAttributes  attr,
nACL  initialACL 
)
virtual

Creates a new queue on the realm this session is connected.

If the queue attributes specify a realm different than the one this session is connected to, a transparent redirection will occur and the queue will be created on that realm.

Parameters
attrThe queue attributes object containing the parameters for the new queue to be created
initialACLThe initial ACLs to apply to the queue at creation time
Returns
an nLeafNode object representing the newly created nirvana queue
Exceptions
nUnknownRemoteRealmExceptionThe remote realm responded with an unknown exception
nSecurityExceptionUser is not authorised for the function
nChannelAlreadyExistsExceptionThe channel already exists
nSessionNotConnectedExceptionCurrent session is not connected
nUnexpectedResponseExceptionInternal Error has occured, since we received a response from the server out of sequence
nRequestTimedOutExceptionThe server has not responded to the request in the timeout period
nIllegalArgumentExceptionIllegal parameter, check the message for more information
nSessionPausedExceptionThe session is currently paused, please resume
virtual nLeafNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.createQueue ( com.pcbsys.nirvana.client.nChannelAttributes  attr,
nLeafNode  dead 
)
virtual

Creates a new queue on the realm this session is connected.

If the queue attributes specify a realm different than the one this session is connected to, a transparent redirection will occur and the queue will be created on that realm.

Parameters
attrThe queue attributes object containing the parameters for the new queue to be created
deadThe dead event store that will contain all purged, aged and dead events
Returns
an nLeafNode object representing the newly created nirvana queue
Exceptions
nUnknownRemoteRealmExceptionThe remote realm responded with an unknown exception
nSecurityExceptionUser is not authorised for the function
nChannelAlreadyExistsExceptionThe channel already exists
nSessionNotConnectedExceptionCurrent session is not connected
nUnexpectedResponseExceptionInternal Error has occured, since we received a response from the server out of sequence
nRequestTimedOutExceptionThe server has not responded to the request in the timeout period
nIllegalArgumentExceptionIllegal parameter, check the message for more information
nSessionPausedExceptionThe session is currently paused, please resume
virtual nLeafNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.createQueue ( com.pcbsys.nirvana.client.nChannelAttributes  attr,
nACL  initialACL,
nLeafNode  dead 
)
virtual

Creates a new queue on the realm this session is connected.

If the queue attributes specify a realm different than the one this session is connected to, a transparent redirection will occur and the queue will be created on that realm.

Parameters
attrThe queue attributes object containing the parameters for the new queue to be created
initialACLThe initial ACLs to apply to the queue at creation time
deadThe dead event store that will contain all purged, aged and dead events
Returns
an nLeafNode object representing the newly created nirvana queue
Exceptions
nUnknownRemoteRealmExceptionThe remote realm responded with an unknown exception
nSecurityExceptionUser is not authorised for the function
nChannelAlreadyExistsExceptionThe channel already exists
nSessionNotConnectedExceptionCurrent session is not connected
nUnexpectedResponseExceptionInternal Error has occured, since we received a response from the server out of sequence
nRequestTimedOutExceptionThe server has not responded to the request in the timeout period
nIllegalArgumentExceptionIllegal parameter, check the message for more information
nSessionPausedExceptionThe session is currently paused, please resume
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.delAuditListener ( nAuditListener  listener)
virtual

This will remove the audit listener from receiving future audit events.

Parameters
listenerThe listener object to remove
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.delConnectionListener ( nConnectionListener  listener)
virtual

Removes the registered listener from the realm so no further callbacks are made to the listener.

Parameters
listenerThe listener object to remove
Exceptions
nBaseAdminExceptionif the user is not permitted to access these lists

nConnectionListener

virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.delLeafNode ( nLeafNode  node)
virtual

Removes the specified channel/queue from the server

Parameters
nodeLeafNode to delete
Exceptions
nUnknownRemoteRealmExceptionif the path to the realm has been lost
nSecurityExceptionIf the current user has no authority to delete the resource
nChannelNotFoundExceptionThe channel/queue has already been deleted
nSessionNotConnectedExceptionThe current session is not currently connected
nUnexpectedResponseExceptionThe request resulted in an unknown response from the server
nRequestTimedOutExceptionThe request exceeded the specified time out period
nIllegalArgumentExceptionThe argument supplied is invalid
nSessionPausedExceptionThe session is currently paused, please resume
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.delLogListener ( nLogListener  listener)
virtual

This will remove the log listener from receiving future log events

Parameters
listenerThe listener object to remove
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.delPluginAccessListener ( nLogListener  listener)
virtual

This will remove the log listener from receiving future log events

Parameters
listenerThe listener object to remove
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.delPluginErrorListener ( nLogListener  listener)
virtual

This will remove the log listener from receiving future log events

Parameters
listenerThe listener object to remove
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.delPluginLogListener ( nLogListener  listener)
virtual

This will remove the log listener from receiving future log events

Parameters
listenerThe listener object to remove
virtual nConfigGroup com.pcbsys.nirvana.nAdminAPI.nRealmNode.findConfigGroup ( string  groupName)
virtual

Finds a configuration group by the name specified by the String argument

Parameters
groupNameName of the config group to find
Returns
nConfigGroup object corresponding to the name or null if not found
override nNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.findNode ( string  name)
virtual

Given a name of the form /container1/container2/name this function will try to locate the name object locally and return it, or null if that object can not be found.

This method will not wait for the server to update our local state so if a node is created in one session and this method is called immediately after in another session, the local state may not be up to date and therefore the node may not be found. Optionally you can call findNode(name,true) to force the method to wait for a maximum of 5 seconds for the local state to update.

Reimplemented from com.pcbsys.nirvana.nAdminAPI.nContainer.

nNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.findNode ( string  name,
bool  flag 
)

Given a name of the form /container/container/name this function will locate the name object and

  • return it, or null if that object can not be found.
virtual List<fAclGroup> com.pcbsys.nirvana.nAdminAPI.nRealmNode.getACLGroups ( )
virtual

* Retrieves the current realms ACL so that the user can add/remove/modify the entries within.

virtual nACL com.pcbsys.nirvana.nAdminAPI.nRealmNode.getACLs ( )
virtual

Removes the specified nScheduler node from the server

Parameters
nodeScheduler to delete
Exceptions
nBaseClientExceptionThe command was not successful

Retrieves the current realms ACL so that the user can add/remove/modify the entries within. This nACL contains nRealmACLEntry objects.

Returns
nACL containing nRealmACLEntry obejcts
Exceptions
nBaseAdminExceptionif the user is not permitted to access these lists, check the message for more information

nRealmACLEntry

static bool com.pcbsys.nirvana.nAdminAPI.nRealmNode.getAsyncUpdateFlag ( )
static

Return whether realm node will receive asynchronous updates from the server.

Returns
whether asynchronous updates will be received
virtual long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getBuffersCreated ( )
virtual

Number of data buffers created within the realms and for use within event fanout

Returns
the number of buffers created
virtual long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getBuffersReused ( )
virtual

Number of data buffers reused by the event fanout

Returns
number of reused buffers
virtual nClusterNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.getCluster ( )
virtual

Return the cluster node if one exists, i.e.

if this realm is part of a cluster

Returns
the cluster node for thsi realm, otherwise null
virtual nConfigGroup com.pcbsys.nirvana.nAdminAPI.nRealmNode.getConfigGroup ( string  name)
virtual

Returns the nConfigGroup specified by the name

Parameters
namethe name of the config group to locate
Returns
nConfigGroup of the specified name
virtual IEnumerator com.pcbsys.nirvana.nAdminAPI.nRealmNode.getConfigGroups ( )
virtual

Returns an IEnumerator containing nConfigGroup objects

Returns
IEnumerator of nConfigGroup
virtual int com.pcbsys.nirvana.nAdminAPI.nRealmNode.getConfigGroupsLength ( )
virtual

Returns the size of the nConfigGroup, i.e.

how many nConfigEntry objects

Returns
Count of nConfigEntry objects
virtual int com.pcbsys.nirvana.nAdminAPI.nRealmNode.getCurrentConnections ( )
virtual

Returns the number of connections on this realm

Returns
int number of clients connected
nDataGroupListener com.pcbsys.nirvana.nAdminAPI.nRealmNode.getDataGroupListener ( )

summary>Get the default data group listener

returns> return the data group listener

nDataGroupsContainer com.pcbsys.nirvana.nAdminAPI.nRealmNode.getDataGroups ( )

Provides a collection of all datagroups created on this realm

Returns
A nDataGroupsContainer object containing the datagroups on this realm
nDataGroupNode com.pcbsys.nirvana.nAdminAPI.nRealmNode.getDefaultDataGroup ( )

summary>Get the default data group node

returns> the default data group node

long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getFanoutBacklog ( )

Returns the number of events waiting to be processed by the fanout engine

Returns
number of events
virtual long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getFreeMemory ( )
virtual

Returns the amount of free memory the Realm Server has within the JVM.

This indicates the difference between what the JVM has currently allocated and what the Realm Server has used. The JVM may increase its memory usage if the free memory falls below a set threshold depending on the JVM parameters passed during the realm server startup script.

Returns
Long value of bytes
virtual nInterfaceManager com.pcbsys.nirvana.nAdminAPI.nRealmNode.getInterfaceManager ( )
virtual
virtual long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getInternalSchedulerSize ( )
virtual

Return the total number of scheduled tasks currently running within the realm

Returns
the number of tasks within the realm
nMulticastManager com.pcbsys.nirvana.nAdminAPI.nRealmNode.getMulticastManager ( )
virtual int com.pcbsys.nirvana.nAdminAPI.nRealmNode.getNoOfChannels ( )
virtual

Return the number of channels in the Realm Server.

Returns
Number of channels
virtual int com.pcbsys.nirvana.nAdminAPI.nRealmNode.getNoOfQueues ( )
virtual

Return the number of queues in the Realm Server.

Returns
Number of queues
virtual long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getNoOfThreads ( )
virtual

Return the number of thread the JVM has allocated for the Realm Server.

This includes all the threads used by the JVM as well.

Returns
Number of threads
virtual int com.pcbsys.nirvana.nAdminAPI.nRealmNode.getQueuedThreads ( )
virtual

Number of threads currently queued ready to execute tasks

Returns
number of queued threads
virtual com.pcbsys.nirvana.client.nRealm com.pcbsys.nirvana.nAdminAPI.nRealmNode.getRealm ( )
virtual

Returns the nRealm object for this RealmNode

Returns
The com.pcbsys.nirvana.client.nRealm object

com.pcbsys.nirvana.client.nRealm

virtual ArrayList com.pcbsys.nirvana.nAdminAPI.nRealmNode.getRealmList ( )
virtual

Method to return an ArrayList of known realms

Returns
ArrayList of all realms known by this realm
virtual nThreadEntry [] com.pcbsys.nirvana.nAdminAPI.nRealmNode.getRealmScheduledThreadList ( )
virtual

Sends a request to the Realm Server to produce a Thread dump.

Returns
list of Thread Entries that the server will execute at the specified time
nRemoteInterestManager com.pcbsys.nirvana.nAdminAPI.nRealmNode.getRemoteInterestManager ( )

The remote interest manager is an object that allows the user to control propagation of messages between realms.

Returns
returns the remote interest manager for the given realm node
virtual int com.pcbsys.nirvana.nAdminAPI.nRealmNode.getReUsedThreads ( )
virtual

Return the number of reused threads within the realm

Returns
the number of reused threads within the realm
virtual nSecurityGroupManager com.pcbsys.nirvana.nAdminAPI.nRealmNode.getSecurityGroupManager ( )
virtual

Return the securityGroupManager object for this realm

Returns
The security group manager object for this realm, which can be used to introspect, add, remove, and modify security groups.
virtual DateTime com.pcbsys.nirvana.nAdminAPI.nRealmNode.getServerTime ( )
virtual

Returns the last status update date that the server sent

Returns
Server Date
virtual nSession com.pcbsys.nirvana.nAdminAPI.nRealmNode.getSession ( )
virtual

Returns the nSession object for this RealmNode

Returns
The com.pcbsys.nirvana.client.nSession object

com.pcbsys.nirvana.client.nSession

virtual DateTime com.pcbsys.nirvana.nAdminAPI.nRealmNode.getStartTime ( )
virtual

Returns the Date that the realm server was started

Returns
Date of realm start
virtual ArrayList com.pcbsys.nirvana.nAdminAPI.nRealmNode.getThreadPoolDetails ( )
virtual

Return an ArrayList of nThreadPool objects that represent the different thread pools deployed within the realm.

Returns
ArrayList of nThreadPool objects
virtual long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getTotalConnections ( )
virtual

Total number of connections served by this realm from the time it started

Returns
long count
long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getTotalGCCount ( )

Return the total number of GCs that the JVM has performed since the realm has started

Returns
GC count
long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getTotalGCTime ( )

Returns the total time in milliseconds that the JVM jas spent doing GCs

Returns
time in ms used by the GC
virtual long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getTotalMemory ( )
virtual

Returns the total number of bytes that the JVM has allocated from the unerlying OS.

This number may move depending on the Realm Server startup parameters.

Returns
long byte count
virtual long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getTotalPublished ( )
virtual

Returns the total number of events published on this realm from the time it has started

Returns
lone event count
virtual long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getTotalSubscribed ( )
virtual

Returns the total number of events that this realm has sent to clients from the time it started

Returns
Number if events sent to clients
virtual long com.pcbsys.nirvana.nAdminAPI.nRealmNode.getUpdateInterval ( )
virtual

Returns the update interval for status updates

Returns
a long representing the number of milliseconds between each update
virtual int com.pcbsys.nirvana.nAdminAPI.nRealmNode.getVendedThreads ( )
virtual

Get the total number of threads that have been allocated threads within the realm

Returns
the total number of threads allocated
virtual nZoneManager com.pcbsys.nirvana.nAdminAPI.nRealmNode.getZoneManager ( )
virtual

Return the Zone Manager object for this realm

Returns
The Zone Manager object for this realm, which can be used to interact with and modify the realm's zones.
virtual bool com.pcbsys.nirvana.nAdminAPI.nRealmNode.hasConnectionListener ( )
virtual

Checks if there is a connection listener object associated with the realm.

Returns
true if connection listener has been set

nConnectionListener

virtual bool com.pcbsys.nirvana.nAdminAPI.nRealmNode.isAnEmbeddedServer ( )
virtual

If the realm is running within an application then this will be set to true

Returns
true if the realm is running as an embedded server
virtual bool com.pcbsys.nirvana.nAdminAPI.nRealmNode.isAuthorised ( )
virtual

This function returns true if the user is authorised for admininstration functions on the remote realm.

If the user is not authorised then this will return false and any functions performed against the realm will result in a nSecurityException

Returns
boolean True if the user is authorised
bool com.pcbsys.nirvana.nAdminAPI.nRealmNode.isClustered ( )

Returns the current cluster membership state of this realm

Returns
true if the node is a member of a cluster
virtual bool com.pcbsys.nirvana.nAdminAPI.nRealmNode.isConnected ( )
virtual

This method returns true if the connection to the remote realm is still valid

Returns
boolean current state
virtual bool com.pcbsys.nirvana.nAdminAPI.nRealmNode.isEntireNamespaceComplete ( )
virtual

This method returns true when the namespace discovery process is complete for the entire namespace from this node down.

Please refer to the isNamespaceComplete() function

Returns
boolean
virtual bool com.pcbsys.nirvana.nAdminAPI.nRealmNode.isNamespaceComplete ( )
virtual

This method returns true when the namespace discovery process is complete.

Since the process of walking the entire namespace is asynchronous this method is useful to find out it the namespace is complete for this Realm. If this Realm contains other Realms then you need to call this function on subsequent Realms to see if the namespace is complete for them.

Alternative, you could add a listener to this object and you will be notified when new nRealmNodes are added to this object.

Returns
boolean if the name space has been completed
void com.pcbsys.nirvana.nAdminAPI.nRealmNode.modRealmACLEntries ( nACL  entry)

modifies a list of acl entries permissions in the realm acl.

Parameters
entryAn nACL object containting the subject and permissions to modify in the realm node
Exceptions
nInsufficientPrivilegesExceptionIf the user is not permissioned to perform this operation
nNodeExceptionif the ACLs being set are invalid
nBaseAdminExceptionif unable to perform the operation, check the message for further information
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.modRealmACLEntry ( nACLEntry  entry)
virtual

modifies a specific acl entry's permissions in the realm acl.

Parameters
entryAn nACL entry containing the subject and permissions to modify in the realm node
Exceptions
nInsufficientPrivilegesExceptionIf the user is not permissioned to perform this operation
nNodeExceptionif the ACLs being set are invalid
nBaseAdminExceptionif unable to perform the operation, check the message for further information
void com.pcbsys.nirvana.nAdminAPI.nRealmNode.onMessage ( nConsumeEvent  evt)

This method is for internal use only

Parameters
evt
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.releaseCachedMemory ( )
virtual

Sends a request to the Realm Server to release cached memory.

virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.remove ( bool  removeChildren)
virtual

This method enables the removal of the object from the namespace, in this case a RealmNode from the namespace.

If you specify true, all child nodes, including channels, queues and services will also be removed from the realm before removing it from its parent

Parameters
removeChildrena boolean specifying whether siblings should be removed too
Exceptions
nUnsupportedRemoveExceptionthrown if remove is not supported (e.g. on the namespace root Realm)
nNodeExceptionis thrown if an error occurs in the remove operation

nLeafNode nLinkNode

Implements com.pcbsys.nirvana.nAdminAPI.nRemovable.

virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.removeConnection ( string  connectionId)
virtual

This method will cause the server to disconnect the connection described by the connection ID.

The default behaviour of the client is to reconnect so calling this alone will basically bounce the client. If your intent is to disable the remote user, you must first disable the user from the realm and then call this function.

Parameters
connectionIdThe connectionId to disconnect
Exceptions
nBaseAdminExceptionIf the user is not authorized for this function, check the message for further information
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.removeConnection ( string  connectionId,
bool  sendRedirection 
)
virtual

This method will cause the server to disconnect the connection described by the connection ID.

The default behaviour of the client is to reconnect so calling this alone will basically bounce the client. If your intent is to disable the remote user, you must first disable the user from the realm and then call this function.

Parameters
connectionIdThe connectionId to disconnect
sendRedirectionTells the server to send a Server Redirection event to this client
Exceptions
nBaseAdminExceptionIf the user is not authorized for this function, check the message for further information
void com.pcbsys.nirvana.nAdminAPI.nRealmNode.removeRealmACLEntries ( nACL  entry)

removes a list of acl entries from the realm acl.

Parameters
entryAn nACL object containing the subject and permissions to remove from the realm acl
Exceptions
nInsufficientPrivilegesExceptionIf the user is not permissioned to perform this operation
nNodeExceptionif the ACLs being set are invalid
nBaseAdminExceptionif unable to perform the operation, check the message for further information
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.removeRealmACLEntry ( nACLEntry  entry)
virtual

removes a specific acl entry from the realm acl.

Parameters
entryAn nACL entry containing the subject and permissions to remove from the realm acl
Exceptions
nInsufficientPrivilegesExceptionIf the user is not permissioned to perform this operation
nNodeExceptionif the ACLs being set are invalid
nBaseAdminExceptionif unable to perform the operation, check the message for further information
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.requestThreadDump ( )
virtual

Sends a request to the Realm Server to produce a Thread dump.

virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.rollAuditFile ( )
virtual

This will cause the realm server to close the current audit log, rename it to the current date and start a new audit log

Exceptions
nBaseAdminExceptionIf the user is not authorized for this function, check the message for further information
void com.pcbsys.nirvana.nAdminAPI.nRealmNode.rollLogFile ( )

Rolls the servers log file

virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.setACLs ( nACL  acl)
virtual

Commits the ACL passed in with the Realm Server.

This causes these ACLs to be active once the function returns. The nACL object can be retrieved by calling the getACLs() function which returns the realms current list.

Parameters
aclA nACL containing nRealmACLEntry
Exceptions
nInsufficientPrivilegesExceptionIf the user is not permissioned to perform this operation
nNodeExceptionIf the acls being set are invalid
nBaseAdminExceptionIf unable to successfully perform this operation, check the message for more information
static void com.pcbsys.nirvana.nAdminAPI.nRealmNode.setAsyncUpdateFlag ( bool  flag)
static

Flag indicating whether the realm node will receive asynchronous updates from the server.

Parameters
flaginidcating whether asynchronous updates will be received
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.waitForEntireNameSpace ( long  timeout)
virtual

This method will block the calling thread until all of the namespace has been resolved.

This could take some time depending on the number of realms within the namespace.

Parameters
timeoutmilliseconds to wait for the namespace to be discovered
Exceptions
Exceptionif unable to complete the namespace within the time specified
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.waitForEntireNameSpace ( )
virtual

This method will block the calling thread until all of the namespace has been resolved.

This could take some time depending on the number of realms within the namespace.

virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.waitForNameSpace ( long  timeout)
virtual

This method will block the calling thread until the namespace discovery is complete for this node or the supplied timeout, in milliseconds, is reached.

If the discovery is already complete the method will return immediately.

Parameters
timeoutmilliseconds to wait for the namespace to be discovered
Exceptions
ExceptionIf the name space is not completed with in the time specified
virtual void com.pcbsys.nirvana.nAdminAPI.nRealmNode.waitForNameSpace ( )
virtual

This method will block the calling thread until the namespace discovery is complete for this node.

If the discovery is already complete the method will return immediatly.