org.smallmind.constellation.component
Class SmallMindComponent

java.lang.Object
  extended by org.smallmind.constellation.component.SmallMindComponent
Direct Known Subclasses:
SmallMindContainer

public abstract class SmallMindComponent
extends Object


Constructor Summary
SmallMindComponent(ConnectionPool contextPool)
           
 
Method Summary
abstract  String getComponentType()
           
 Attributes getGlobalAttributes(String storageSubpath, String[] returnAttributeArray)
           
 Object getGlobalData(String storageSubpath)
           
 Map<String,Object> getGlobalDataMap(String storageSubpath)
           
 NamingEnumeration<NameClassPair> getGlobalList(String storageSubpath)
           
abstract  String getGlobalNamespacePath()
           
 InetAddress getHostAddress()
           
 String getHostName()
           
 Attributes getLocalAttributes(String storageSubpath, String[] returnAttributeArray)
           
 Object getLocalData(String storageSubpath)
           
 Map<String,Object> getLocalDataMap(String storageSubpath)
           
 NamingEnumeration<NameClassPair> getLocalList(String storageSubpath)
           
abstract  String getLocalNamespacePath()
           
abstract  Logger getLogger()
           
 void logError(String message, Object... args)
           
 void logError(Throwable throwable)
           
 void logError(Throwable throwable, String message, Object... args)
           
 void logInfo(String message, Object... args)
           
 void logWarning(Throwable throwable, String message, Object... args)
           
 void modifyGlobalAttributes(String storageSubpath, ModificationItem[] modItems)
           
 void modifyLocalAttributes(String storageSubpath, ModificationItem[] modItems)
           
 void removeGlobalData(String storageSubpath)
           
 void removeGlobalNamespaceContext(String storageSubpath)
           
 void removeLocalData(String storageSubpath)
           
 void removeLocalNamespaceContext(String storageSubpath)
           
 List<Attributes> searchGlobalAttributes(String storageSubpath, Attributes searchAttributes, String[] returnAttributeArray)
           
 List<Attributes> searchLocalAttributes(String storageSubpath, Attributes searchAttributes, String[] returnAttributeArray)
           
 void setGlobalData(String storageSubpath, Object data)
           
 void setLocalData(String storageSubpath, Object data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmallMindComponent

public SmallMindComponent(ConnectionPool contextPool)
                   throws UnknownHostException
Throws:
UnknownHostException
Method Detail

getComponentType

public abstract String getComponentType()

getLogger

public abstract Logger getLogger()

getGlobalNamespacePath

public abstract String getGlobalNamespacePath()

getLocalNamespacePath

public abstract String getLocalNamespacePath()

getHostAddress

public InetAddress getHostAddress()

getHostName

public String getHostName()

removeGlobalNamespaceContext

public void removeGlobalNamespaceContext(String storageSubpath)
                                  throws ConnectionPoolException,
                                         NamingException
Throws:
ConnectionPoolException
NamingException

removeLocalNamespaceContext

public void removeLocalNamespaceContext(String storageSubpath)
                                 throws ConnectionPoolException,
                                        NamingException
Throws:
ConnectionPoolException
NamingException

setGlobalData

public void setGlobalData(String storageSubpath,
                          Object data)
                   throws ConnectionPoolException,
                          NamingException
Throws:
ConnectionPoolException
NamingException

setLocalData

public void setLocalData(String storageSubpath,
                         Object data)
                  throws ConnectionPoolException,
                         NamingException
Throws:
ConnectionPoolException
NamingException

getGlobalData

public Object getGlobalData(String storageSubpath)
                     throws ConnectionPoolException,
                            NamingException
Throws:
ConnectionPoolException
NamingException

getLocalData

public Object getLocalData(String storageSubpath)
                    throws ConnectionPoolException,
                           NamingException
Throws:
ConnectionPoolException
NamingException

getGlobalList

public NamingEnumeration<NameClassPair> getGlobalList(String storageSubpath)
                                               throws ConnectionPoolException,
                                                      NamingException
Throws:
ConnectionPoolException
NamingException

getLocalList

public NamingEnumeration<NameClassPair> getLocalList(String storageSubpath)
                                              throws ConnectionPoolException,
                                                     NamingException
Throws:
ConnectionPoolException
NamingException

removeGlobalData

public void removeGlobalData(String storageSubpath)
                      throws ConnectionPoolException,
                             NamingException
Throws:
ConnectionPoolException
NamingException

removeLocalData

public void removeLocalData(String storageSubpath)
                     throws ConnectionPoolException,
                            NamingException
Throws:
ConnectionPoolException
NamingException

getGlobalDataMap

public Map<String,Object> getGlobalDataMap(String storageSubpath)
                                    throws ConnectionPoolException,
                                           NamingException
Throws:
ConnectionPoolException
NamingException

getLocalDataMap

public Map<String,Object> getLocalDataMap(String storageSubpath)
                                   throws ConnectionPoolException,
                                          NamingException
Throws:
ConnectionPoolException
NamingException

getGlobalAttributes

public Attributes getGlobalAttributes(String storageSubpath,
                                      String[] returnAttributeArray)
                               throws ConnectionPoolException,
                                      NamingException
Throws:
ConnectionPoolException
NamingException

getLocalAttributes

public Attributes getLocalAttributes(String storageSubpath,
                                     String[] returnAttributeArray)
                              throws ConnectionPoolException,
                                     NamingException
Throws:
ConnectionPoolException
NamingException

modifyGlobalAttributes

public void modifyGlobalAttributes(String storageSubpath,
                                   ModificationItem[] modItems)
                            throws ConnectionPoolException,
                                   NamingException
Throws:
ConnectionPoolException
NamingException

modifyLocalAttributes

public void modifyLocalAttributes(String storageSubpath,
                                  ModificationItem[] modItems)
                           throws ConnectionPoolException,
                                  NamingException
Throws:
ConnectionPoolException
NamingException

searchGlobalAttributes

public List<Attributes> searchGlobalAttributes(String storageSubpath,
                                               Attributes searchAttributes,
                                               String[] returnAttributeArray)
                                        throws ConnectionPoolException,
                                               NamingException
Throws:
ConnectionPoolException
NamingException

searchLocalAttributes

public List<Attributes> searchLocalAttributes(String storageSubpath,
                                              Attributes searchAttributes,
                                              String[] returnAttributeArray)
                                       throws ConnectionPoolException,
                                              NamingException
Throws:
ConnectionPoolException
NamingException

logInfo

public void logInfo(String message,
                    Object... args)

logWarning

public void logWarning(Throwable throwable,
                       String message,
                       Object... args)

logError

public void logError(String message,
                     Object... args)

logError

public void logError(Throwable throwable,
                     String message,
                     Object... args)

logError

public void logError(Throwable throwable)


Copyright © 2012. All Rights Reserved.