org.globus.ogsa.impl.core.logging
Class OgsiLogging

java.lang.Object
  extended byorg.globus.ogsa.impl.core.service.ServicePropertiesImpl
      extended byorg.globus.ogsa.impl.ogsi.GridServiceImpl
          extended byorg.globus.ogsa.impl.core.logging.OgsiLogging
All Implemented Interfaces:
GridService, GridServiceBase, GridServiceCallback, java.rmi.Remote, ServiceDataValueCallback, ServiceProperties

public class OgsiLogging
extends GridServiceImpl

This is the GRID service primary touch point. Basically a brdige from the service skeleton of the OgsiLoggingPortType, to the OGSALogFactory

Author:
John Wiley, John Wiley, OGSA Development, IBM Poughkeepsie

Field Summary
static javax.xml.namespace.QName LOG_BUFFER_SIZE
           
static javax.xml.namespace.QName LOG_MESSAGES
           
static java.lang.String LOGGING_SERVICE_PORT_TYPE_NS
           
static javax.xml.namespace.QName PERSISTENT_ATTRIBUTES
           
static javax.xml.namespace.QName TRANSIENT_ATTRIBUTES
           
 
Fields inherited from class org.globus.ogsa.impl.ogsi.GridServiceImpl
queryEngine, serviceData
 
Fields inherited from interface org.globus.ogsa.ServiceProperties
ACTIVATE_ON_STARTUP, ACTIVATION, BASE_CLASS_NAME, BOOTSTRAP, CONFIG_PATH, CONTAINS_REFERENCE, CREATION_EXTENSIBILITY, CREATION_EXTENSIBILITY_OUTPUT, CUSTOM_EXTENSIBILITY_DESERIALIZER, CUSTOM_EXTENSIBILITY_SERIALIZER, CUSTOM_MAPPING_REGISTERED, DEACTIVATED_PERSISTENT, DEACTIVATED_STATE, DEACTIVATED_TRANSIENT, DEACTIVATION, DESTROY_LISTENER, DESTRUCTION_SKELETON, DISABLE_FACTORY_REGISTRY, ENDPOINT, ENTRY_INSTANCE_CREATION, FACTORY, FACTORY_CALLBACK, FACTORY_HANDLE, FACTORY_PROVIDER, FACTORY_REGISTRY, GSR_DESCRIPTION, HANDLE, HANDLE_PORT, HANDLE_PROTOCOL, INSTANCE_CLASS, INSTANCE_DEACTIVATION, INSTANCE_GSR_DESCRIPTION, INSTANCE_LIFECYCLE, INSTANCE_PORT_TYPE, INSTANCE_PORT_TYPE_NS, INSTANCE_PREFIX, INSTANCE_REGISTRY, INSTANCE_SCHEMA_PATH, INSTANCE_WSDL, INTERFACE_CLASS_NAME, INVOCATION_ID, LAZY_CREATION, LIFECYCLE, LIFECYCLE_MONITOR, LIFECYCLE_MONITOR_CLASS, NAME, NOTIFICATION_ENGINE, NOTIFICATION_FACTORY, NOTIFICATION_SOURCE, OPERATION_PROVIDERS, PERSISTENT, PERSISTENT_PROPERTIES, PORT, PORT_TYPE, PORT_TYPE_NS, PRIMARY_KEY, PROTOCOL, QUERY_ENGINE, REDIRECT_RESOLVER, REGISTRY, RESOLVER_CACHE, ROUTER_HEADER, ROUTER_VIA, SCHEMA_LOCATION, SCHEMA_PATH, SERVICE_ACTIVATOR, SERVICE_DATA, SERVICE_DEPLOYMENT, SERVICE_GROUP_ENTRY, SERVICE_GROUP_PROVIDER, SERVICE_LOADER, SERVICE_NODE, SERVICE_PATH, SINK_ID, STARTUP_STATE, SWEEP_SERVICE_DATA, TIMEOUT, TIMESTAMP, TRANSIENT, TYPE, USER, WEBSTART_PANEL_NAME, WEBSTART_URL, WSDL
 
Constructor Summary
OgsiLogging()
          Constructor
 
Method Summary
 void activate(GridContext context)
          activate Activate state transition callback...
 void addToMessageBucket(LogMessageElement lm)
          addToMessageBucket - routine to maintain a push down sliding window stack of "last seen messages" from the logfactory
 void changeGroupPersistentAttribute(GroupLogAttribute gla)
          changeGroupPersistentAttribute - group set operation, against config store
 void changeGroupTransientAttribute(GroupLogAttribute gla)
          changeGroupTransientAttribute - group set operation, against runtime cache
 void deactivate(GridContext context)
          deactivate Deactivate state transition callback...
 java.util.Collection getServiceDataValues(javax.xml.namespace.QName qname)
          getServiceDataValues Gets the service data values for a given qname.
 void loadPersistentAttributes()
          loadPersistentAttributes() - will update runtime cache from the config file-asis, whole
 void postCreate(GridContext context)
          postCreate Post Create state transition callback...
 void postPersistentCreate(GridContext context)
          Initialize in postPersistentCreate
 void preDestroy(GridContext context)
          Called just before a service gets destroyed.
 void reflectPersistentAttributes()
          reflectPersistentAttribute - synchronize service data of Persistents
 void reflectTransientAttributes()
          reflectTransientAttribute - synchronize service data of Transients
 void removePersistentAttribute(java.lang.String name)
          removePersistentAttribute
 void removeTransientAttribute(java.lang.String name)
          removeTransientAttribute
 void saveTransientAttributes()
          saveTransientAttributes() - will reflect runtime cache back to the config file-asis, whole
 void setLogBufferSize(int size)
          getAttributeRuntime
 void setPersistentAttribute(LogAttributeElement aLogAttributeElement)
          setPersistentAttribute - impacts saved config file only
 void setTransientAttribute(LogAttributeElement aLogAttributeElement)
          setTransientAttribute - adds/alters a named logger attribute entry in the attrubute cache, maintained by the LogFactory for Ogsi
 
Methods inherited from class org.globus.ogsa.impl.ogsi.GridServiceImpl
addOperationProvider, destroy, findServiceData, getInstanceProperty, getOperationProvider, getQueryEngine, getServiceDataSet, getServiceInterface, getTerminationTime, populateInstanceProperties, preCreate, removeOperationProvider, requestTerminationAfter, requestTerminationBefore, setDefaultTermination, setQueryEngine, setServiceData, setServiceDataSet
 
Methods inherited from class org.globus.ogsa.impl.core.service.ServicePropertiesImpl
flush, flush, getPersistentProperty, getProperty, keySet, setPersistentProperty, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.globus.ogsa.ServiceProperties
flush, getPersistentProperty, getProperty, setPersistentProperty, setProperty
 

Field Detail

LOGGING_SERVICE_PORT_TYPE_NS

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

TRANSIENT_ATTRIBUTES

public static final javax.xml.namespace.QName TRANSIENT_ATTRIBUTES

PERSISTENT_ATTRIBUTES

public static final javax.xml.namespace.QName PERSISTENT_ATTRIBUTES

LOG_BUFFER_SIZE

public static final javax.xml.namespace.QName LOG_BUFFER_SIZE

LOG_MESSAGES

public static final javax.xml.namespace.QName LOG_MESSAGES
Constructor Detail

OgsiLogging

public OgsiLogging()
Constructor

Method Detail

postCreate

public void postCreate(GridContext context)
                throws GridServiceException
postCreate Post Create state transition callback...

Specified by:
postCreate in interface GridServiceCallback
Overrides:
postCreate in class GridServiceImpl
Parameters:
context - The GridContext that exists when this API is called.
Returns:
void
Throws:
GridServiceException

activate

public void activate(GridContext context)
              throws GridServiceException
activate Activate state transition callback...

Specified by:
activate in interface GridServiceCallback
Overrides:
activate in class GridServiceImpl
Parameters:
context - The GridContext that exists when this API is called.
Returns:
void
Throws:
GridServiceException

deactivate

public void deactivate(GridContext context)
                throws GridServiceException
deactivate Deactivate state transition callback...

Specified by:
deactivate in interface GridServiceCallback
Overrides:
deactivate in class GridServiceImpl
Parameters:
context - The GridContext that exists when this API is called.
Returns:
void
Throws:
GridServiceException

preDestroy

public void preDestroy(GridContext context)
                throws GridServiceException
Description copied from interface: GridServiceCallback
Called just before a service gets destroyed. After this call is made the framework removes all knowledge about the service, so it is a good place to clean up service resources. Note that this call can be triggered both by a client initiated destroy call, as well as a framework initiated softstate timeout.

Specified by:
preDestroy in interface GridServiceCallback
Overrides:
preDestroy in class GridServiceImpl
Throws:
GridServiceException

postPersistentCreate

public void postPersistentCreate(GridContext context)
                          throws GridServiceException
Initialize in postPersistentCreate

Throws:
GridServiceException

setTransientAttribute

public void setTransientAttribute(LogAttributeElement aLogAttributeElement)
                           throws java.rmi.RemoteException,
                                  InvalidDestinationFaultElement,
                                  InvalidLevelFaultElement
setTransientAttribute - adds/alters a named logger attribute entry in the attrubute cache, maintained by the LogFactory for Ogsi

Throws:
InvalidDestinationFaultElement - - future base pathname check
InvalidLevelFaultElement - - a unsupported level mask value was detected
java.rmi.RemoteException

removeTransientAttribute

public void removeTransientAttribute(java.lang.String name)
                              throws java.rmi.RemoteException,
                                     UnknownNameFaultElement
removeTransientAttribute

Throws:
java.rmi.RemoteException
UnknownNameFaultElement

setPersistentAttribute

public void setPersistentAttribute(LogAttributeElement aLogAttributeElement)
                            throws java.rmi.RemoteException,
                                   InvalidDestinationFaultElement,
                                   InvalidLevelFaultElement,
                                   UnableToPersistFaultElement
setPersistentAttribute - impacts saved config file only

Throws:
java.rmi.RemoteException
InvalidDestinationFaultElement
InvalidLevelFaultElement
UnableToPersistFaultElement

removePersistentAttribute

public void removePersistentAttribute(java.lang.String name)
                               throws java.rmi.RemoteException,
                                      UnableToPersistFaultElement,
                                      UnknownNameFaultElement
removePersistentAttribute

Throws:
java.rmi.RemoteException
UnableToPersistFaultElement
UnknownNameFaultElement

changeGroupTransientAttribute

public void changeGroupTransientAttribute(GroupLogAttribute gla)
                                   throws java.rmi.RemoteException,
                                          InvalidDestinationFaultElement,
                                          InvalidLevelFaultElement,
                                          UnknownGroupNameFaultElement,
                                          UnGroupedFaultElement
changeGroupTransientAttribute - group set operation, against runtime cache

Throws:
java.rmi.RemoteException
InvalidDestinationFaultElement
InvalidLevelFaultElement
UnknownGroupNameFaultElement
UnGroupedFaultElement

changeGroupPersistentAttribute

public void changeGroupPersistentAttribute(GroupLogAttribute gla)
                                    throws java.rmi.RemoteException,
                                           InvalidDestinationFaultElement,
                                           InvalidLevelFaultElement,
                                           UnableToPersistFaultElement,
                                           UnknownGroupNameFaultElement,
                                           UnGroupedFaultElement
changeGroupPersistentAttribute - group set operation, against config store

Throws:
java.rmi.RemoteException
InvalidDestinationFaultElement
InvalidLevelFaultElement
UnableToPersistFaultElement
UnknownGroupNameFaultElement
UnGroupedFaultElement

saveTransientAttributes

public void saveTransientAttributes()
                             throws java.rmi.RemoteException,
                                    UnableToPersistFaultElement
saveTransientAttributes() - will reflect runtime cache back to the config file-asis, whole

Throws:
java.rmi.RemoteException
UnableToPersistFaultElement

loadPersistentAttributes

public void loadPersistentAttributes()
                              throws java.rmi.RemoteException,
                                     UnableToPersistFaultElement
loadPersistentAttributes() - will update runtime cache from the config file-asis, whole

Throws:
java.rmi.RemoteException
UnableToPersistFaultElement

setLogBufferSize

public void setLogBufferSize(int size)
                      throws java.rmi.RemoteException,
                             InvalidLogBuffSizeFaultElement
getAttributeRuntime

Returns:
String attribute - [mode,level[tag]]
Throws:
java.rmi.RemoteException
InvalidLogBuffSizeFaultElement

reflectTransientAttributes

public void reflectTransientAttributes()
reflectTransientAttribute - synchronize service data of Transients


reflectPersistentAttributes

public void reflectPersistentAttributes()
reflectPersistentAttribute - synchronize service data of Persistents


getServiceDataValues

public java.util.Collection getServiceDataValues(javax.xml.namespace.QName qname)
getServiceDataValues Gets the service data values for a given qname.

Specified by:
getServiceDataValues in interface ServiceDataValueCallback
Overrides:
getServiceDataValues in class GridServiceImpl
Parameters:
qname - The name of the SDE to get
Returns:
Object[] The array of SDE objects

addToMessageBucket

public void addToMessageBucket(LogMessageElement lm)
addToMessageBucket - routine to maintain a push down sliding window stack of "last seen messages" from the logfactory



Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.