com.dynalivery.saffron.client
Class ConsoleLogReceiver

java.lang.Object
  extended byorg.omg.PortableServer.Servant
      extended bycom.dynalivery.server.log.LogReceiverPOA
          extended bycom.dynalivery.saffron.client.ConsoleLogReceiver
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, com.dynalivery.server.log.LogReceiverOperations, com.dynalivery.server.ServiceProviderOperations

public class ConsoleLogReceiver
extends com.dynalivery.server.log.LogReceiverPOA

This class implements a LogReceiver service that writes to the console


Constructor Summary
ConsoleLogReceiver()
          This Constructor creates a new ConsoleLogReceiver with serverID - "Unknown" clientConnectionID - "CorbaClient"
ConsoleLogReceiver(java.lang.String serverID, java.lang.String clientID)
          This Constructor creates a new ConsoleLogReceiver with the provided ServerID and the ClientConnectionID.
 
Method Summary
 java.lang.String getClientConnectionID()
          This returns the ClientID used by this LogReceiver.
 java.lang.String getServerID()
          This returns the ServerID used by this LogReceiver.
 void release()
          This method releases the resources of this CORBA Log Receiver.
 void writeLog(java.lang.String message)
          This method uses the System.out for logging the, log messages coming from the server for this Client.
 
Methods inherited from class com.dynalivery.server.log.LogReceiverPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleLogReceiver

public ConsoleLogReceiver()
This Constructor creates a new ConsoleLogReceiver with serverID - "Unknown" clientConnectionID - "CorbaClient"


ConsoleLogReceiver

public ConsoleLogReceiver(java.lang.String serverID,
                          java.lang.String clientID)
This Constructor creates a new ConsoleLogReceiver with the provided ServerID and the ClientConnectionID. These variables are used for identifing the logs on the Saffron server.

Parameters:
serverID - identifies the server
clientID - identifies the client on the Server.
Method Detail

getClientConnectionID

public java.lang.String getClientConnectionID()
This returns the ClientID used by this LogReceiver. This ClientID gets appended to the log messages to identify the logs.

Returns:
the ClientID of this LogReceiver

getServerID

public java.lang.String getServerID()
This returns the ServerID used by this LogReceiver. This ServerID gets appended to the log messages to identify the logs.

Returns:
the ServerID of this LogReceiver

writeLog

public void writeLog(java.lang.String message)
This method uses the System.out for logging the, log messages coming from the server for this Client.

Parameters:
message - message to be logged.

release

public void release()
This method releases the resources of this CORBA Log Receiver. This method is invoked by the Server once the Job is done.