com.isti.openorbhelper
Class RunNotifServer

java.lang.Object
  extended by com.isti.openorbhelper.RunNotifServer

public class RunNotifServer
extends java.lang.Object

Class RunNotifServer creates and starts an instance of the OpenORB Notification Service.


Field Summary
static java.lang.String PROGRAM_NAME
           
static java.lang.String PROGRAM_VERSION
           
static java.lang.String REVISION_STRING
           
static java.lang.String STATUSLOG_CONNCOUNT_STR
           
static java.lang.String STATUSLOG_HEADER_STR
           
static java.lang.String STATUSLOG_MEMORY_STR
           
static java.lang.String STATUSLOG_THREADCOUNT_STR
           
 
Constructor Summary
RunNotifServer(java.lang.String[] programArgs)
          Creates and starts an instance of the OpenORB Notification Service.
 
Method Summary
static java.lang.String getNotifSrcRevStr()
          Returns the revision string for the OpenORB Notification Service.
 java.lang.String[] getServerChannelsInfo(int intervalSecsVal)
          Returns an array of strings describing the active server channels.
static void main(java.lang.String[] programArgs)
          Program entry point.
static void setRoundtripTimeoutPolicy(org.omg.CORBA.ORB orbObj, int timeoutSecs)
          Sets the 'RelativeRoundtripTimeoutPolicy' value for the given ORB.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROGRAM_NAME

public static final java.lang.String PROGRAM_NAME
See Also:
Constant Field Values

PROGRAM_VERSION

public static final java.lang.String PROGRAM_VERSION
See Also:
Constant Field Values

REVISION_STRING

public static final java.lang.String REVISION_STRING
See Also:
Constant Field Values

STATUSLOG_HEADER_STR

public static final java.lang.String STATUSLOG_HEADER_STR
See Also:
Constant Field Values

STATUSLOG_CONNCOUNT_STR

public static final java.lang.String STATUSLOG_CONNCOUNT_STR
See Also:
Constant Field Values

STATUSLOG_THREADCOUNT_STR

public static final java.lang.String STATUSLOG_THREADCOUNT_STR
See Also:
Constant Field Values

STATUSLOG_MEMORY_STR

public static final java.lang.String STATUSLOG_MEMORY_STR
See Also:
Constant Field Values
Constructor Detail

RunNotifServer

public RunNotifServer(java.lang.String[] programArgs)
Creates and starts an instance of the OpenORB Notification Service.

Parameters:
programArgs - string array of command-line arguments.
Method Detail

getServerChannelsInfo

public java.lang.String[] getServerChannelsInfo(int intervalSecsVal)
Returns an array of strings describing the active server channels. If less than the amount of time specified by 'intervalSecVal' has elapsed since the previous call then the array from the previous call is returned. This reduces the amount of fetching from ther server manager when multiple threads are using this method.

Parameters:
intervalSecsVal - expected number of seconds between fetches.
Returns:
An array of strings describing the active server channels.

getNotifSrcRevStr

public static java.lang.String getNotifSrcRevStr()
Returns the revision string for the OpenORB Notification Service.

Returns:
The revision string for the OpenORB Notification Service.

main

public static void main(java.lang.String[] programArgs)
Program entry point.

Parameters:
programArgs - string array of command-line arguments.

setRoundtripTimeoutPolicy

public static void setRoundtripTimeoutPolicy(org.omg.CORBA.ORB orbObj,
                                             int timeoutSecs)
                                      throws org.omg.CORBA.ORBPackage.InvalidName,
                                             org.omg.CORBA.PolicyError,
                                             org.omg.CORBA.InvalidPolicies
Sets the 'RelativeRoundtripTimeoutPolicy' value for the given ORB. Note that for this to work the 'messaging.MessagingInitializer' class must be entered as an OpenORB "FeatureInitializer".

Parameters:
orbObj - the ORB object to use.
timeoutSecs - the timeout values to use, in seconds.
Throws:
org.omg.CORBA.ORBPackage.InvalidName - if the ORBPolicyManager cannot be found.
org.omg.CORBA.PolicyError - if a policy error occurs.
org.omg.CORBA.InvalidPolicies - if the policy is invalid.