Java Doc for PSResource.java in  » Portal » Open-Portal » com » sun » portal » admin » server » mbeans » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.portal.admin.server.mbeans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.admin.server.mbeans.PSResource

All known Subclasses:   com.sun.portal.rewriter.admin.mbeans.Rewriter,  com.sun.portal.wsrp.producer.admin.mbeans.Producer,  com.sun.portal.fabric.mbeans.PortalServerInstance,  com.sun.portal.sra.admin.mbeans.SraServerImpl,  com.sun.portal.search.admin.mbeans.Autoclassify,  com.sun.portal.wsrp.producer.admin.mbeans.RegistryPublish,  com.sun.portal.ubt.admin.mbeans.UBTReport,  com.sun.portal.desktop.admin.mbeans.DesktopDynamic,  com.sun.portal.wsrp.consumer.admin.mbeans.RegistrySearch,  com.sun.portal.ubt.admin.mbeans.UBTSettingsHostBridge,  com.sun.portal.subscriptions.admin.mbeans.Profiler,  com.sun.portal.fabric.mbeans.PortalDomain,  com.sun.portal.search.admin.mbeans.SiteProbe,  com.sun.portal.ubt.admin.mbeans.UBTSettings,  com.sun.portal.search.admin.mbeans.Robot,  com.sun.portal.fabric.mbeans.PortalLogConfigurator,  com.sun.portal.community.admin.mbeans.CommunityManager,  com.sun.portal.desktop.admin.mbeans.DPAdminWrapper,  com.sun.portal.wsrp.consumer.admin.mbeans.ConfiguredProducer,  com.sun.portal.fabric.mbeans.Portal,  com.sun.portal.ubt.admin.mbeans.UBTReportAggregator,  com.sun.portal.monitoring.admin.mbeans.Monitoring,  com.sun.portal.fabric.mbeans.Scheduler,  com.sun.portal.portlet.admin.mbeans.PortletAdmin,  com.sun.portal.sra.admin.mbeans.SRA,  com.sun.portal.wsrp.producer.admin.mbeans.ProducerManager,  com.sun.portal.search.admin.mbeans.Category,  com.sun.portal.fabric.mbeans.PortalLogConfigHostBridge,  com.sun.portal.wsrp.consumer.admin.mbeans.Consumer,  com.sun.portal.fabric.mbeans.AMObjectSearch,  com.sun.portal.search.admin.mbeans.Database,  com.sun.portal.desktop.admin.mbeans.DisplayProfile,  com.sun.ssoadapter.mbeans.SSOAdapter,  com.sun.portal.sra.admin.mbeans.SRAMonitoring,  com.sun.portal.fabric.mbeans.UploadDownloadFileManager,  com.sun.portal.search.admin.mbeans.SearchServer,
PSResource
abstract public class PSResource implements PSMBean(Code)
This class represents a manageable/configurable Portal Server resource that can be instrumented as a Portal Server MBean maintained by the Portal Admin Server.

Portal Server resources are organized in a hierarchical fashion. At the top is the Portal Domain object. Each portal domain consists of one or more portal (site) objects and other portal server resources that are independent of portals. Each portal consists of one or more portal server instance objects and other portal server resources that are independent of portal server instances but are associated with a portal.

The information about the presence of a particular instance of a portal server resource is stored in the portal domain repository. Each such instance is uniquely identified in the portal domain repository by a path, similar to the full path of a file in a file system or the DN of a LDAP entry in a LDAP directory. For example, the path to identify a particular portal server instance object is {instanceID, portalID, domainID}, where the first element of the path is the ID of that resource instance within its parent resource instance, and the last element is (almost) always the ID of the portal domain where this resource instance belongs to.

Each portal server resource instance is represented by a MBean and its life cycle is managed by the Portal Admin Server. When a Portal Admin Server instance is started, it looks into the portal domain repository and registers a MBean for each portal server resource instance in that portal domain.



Field Summary
protected  PSConfigContextcc
    
final protected static  Stringfs
    
protected  Stringm_sPsDomainID
    
protected  Stringm_sPsID
    
protected  Listpath
    
protected  PortalDomainContextpdc
    


Method Summary
public  StringgetAttributeValue(String type, String name)
     Returns the value of the resource attribute with the given name.
public  SetgetAttributeValues(String type, String name)
     Returns the set of values of the resource attribute with the given name.
public  StringgetDomainID()
     Returns the ID of the portal domain this portal server resource instance belongs to.
public  StringgetID()
     Returns the ID of this portal server resource instance.
public  MapgetMultipleAttributeValues(String type, Set names)
     Returns the sets of values of the resource attributes with the given names.
public  PSConfigContextgetPSConfigContext()
     Returns the Portal Server configuration context.
public  ListgetPath()
     Returns the path to identify this portal server resource instance in the portal domain context.
public  PortalDomainContextgetPortalDomainContext()
     Returns the context of the portal domain this portal server resource instance belongs to.
public  StringgetStackTrace(Throwable t)
     Returns a string representation of the stack trace.
public  voidinit(PSConfigContext cc, PortalDomainContext pdc, List path)
     Initializes this portal server resource with the given Portal Server configuration context, portal domain context, and path.
public  ObjectinvokeRemoteOperation(String host, ObjectName mBeanName, String operationName, Object[] params, String[] signature)
     Invokes a method on a remote host be connecting to the Cacao MBean server on the host sepecified in the params.
protected  booleanisResourceAvailable(String type, String id)
    
public  voidsetAttributeValue(String type, String name, String value)
     Sets the value of the resource attribute with the given name to the given value, replacing the old values if there were any.
public  voidsetAttributeValues(String type, String name, Set values)
     Sets the values of the resource attribute with the given name to the given values, replacing the old values if there were any.
public  voidsetMultipleAttributeValues(String type, Map attributes)
     Sets the resource attributes with the given names to the given values, replacing the old values if there were any.

Field Detail
cc
protected PSConfigContext cc(Code)



fs
final protected static String fs(Code)



m_sPsDomainID
protected String m_sPsDomainID(Code)



m_sPsID
protected String m_sPsID(Code)



path
protected List path(Code)



pdc
protected PortalDomainContext pdc(Code)





Method Detail
getAttributeValue
public String getAttributeValue(String type, String name) throws PSMBeanException(Code)
Returns the value of the resource attribute with the given name. If the attribute has more than one values, the first one is returned. If the attribute has no value, null is returned.
Parameters:
  type - the type of the Portal Server resource.
Parameters:
  name - name of the attribute. the first value if more than one; null if no value.
exception:
  PSMBeanException - if an error occurs when getting theattribute value.



getAttributeValues
public Set getAttributeValues(String type, String name) throws PSMBeanException(Code)
Returns the set of values of the resource attribute with the given name. If the attribute has no value, an empty Set is returned.
Parameters:
  type - the type of the Portal Server resource.
Parameters:
  name - name of the attribute. a Set of Strings.
exception:
  PSMBeanException - if an error occurs when getting theattribute values.



getDomainID
public String getDomainID()(Code)
Returns the ID of the portal domain this portal server resource instance belongs to. the portal domain ID.



getID
public String getID()(Code)
Returns the ID of this portal server resource instance. the ID of this portal server resource instance.



getMultipleAttributeValues
public Map getMultipleAttributeValues(String type, Set names) throws PSMBeanException(Code)
Returns the sets of values of the resource attributes with the given names. The returned value is a map whose keySet is the set of attribute names given and each value of the map is a set of values of the corresponding attribute name as key. If any attribute has no value, the corresponding map value is an empty Set.
Parameters:
  type - the type of the Portal Server resource.
Parameters:
  names - the set of attribute names. a Map whose keySet is the Set of attribute names givenand whose values are the Sets of attribute values.
exception:
  PSMBeanException - if an error occurs when getting thesets of attribute values.



getPSConfigContext
public PSConfigContext getPSConfigContext()(Code)
Returns the Portal Server configuration context. the Portal Server configuration context.



getPath
public List getPath()(Code)
Returns the path to identify this portal server resource instance in the portal domain context. the path of this portal server resource instance.



getPortalDomainContext
public PortalDomainContext getPortalDomainContext()(Code)
Returns the context of the portal domain this portal server resource instance belongs to. the portal domain context.



getStackTrace
public String getStackTrace(Throwable t)(Code)
Returns a string representation of the stack trace. Puts the exception message in the first line and the rest of the stack trace below it, each terminated by a newline char.



init
public void init(PSConfigContext cc, PortalDomainContext pdc, List path)(Code)
Initializes this portal server resource with the given Portal Server configuration context, portal domain context, and path.
Parameters:
  cc - the Portal Server configuration context.
Parameters:
  pdc - the portal domain context.
Parameters:
  path - the path to identify this portal resource instance.
exception:
  NullPointerException - if cc, pdc, or path is null.
exception:
  IllegalArgumentException - if path is empty.



invokeRemoteOperation
public Object invokeRemoteOperation(String host, ObjectName mBeanName, String operationName, Object[] params, String[] signature) throws PSMBeanException(Code)
Invokes a method on a remote host be connecting to the Cacao MBean server on the host sepecified in the params.
Parameters:
  host - FQDN hostname of the target host
Parameters:
  on - MBean Object Name
Parameters:
  operationName - The method name to be invoked
Parameters:
  params - method params as an Object array
Parameters:
  signature - method signature definined in a String array
throws:
  com.sun.portal.admin.common.PSMBeanException - exceptions an Object resulting in the method invocation



isResourceAvailable
protected boolean isResourceAvailable(String type, String id) throws PSMBeanException(Code)



setAttributeValue
public void setAttributeValue(String type, String name, String value) throws PSMBeanException(Code)
Sets the value of the resource attribute with the given name to the given value, replacing the old values if there were any.
Parameters:
  type - the type of the Portal Server resource.
Parameters:
  name - name of the attribute.
Parameters:
  value - value of the attribute to be set to.
exception:
  PSMBeanException - if an error occurs when setting theattribute value.



setAttributeValues
public void setAttributeValues(String type, String name, Set values) throws PSMBeanException(Code)
Sets the values of the resource attribute with the given name to the given values, replacing the old values if there were any.
Parameters:
  type - the type of the Portal Server resource.
Parameters:
  name - name of the attribute.
Parameters:
  values - values of the attribute to be set to.
exception:
  PSMBeanException - if an error occurs when setting theattribute values.



setMultipleAttributeValues
public void setMultipleAttributeValues(String type, Map attributes) throws PSMBeanException(Code)
Sets the resource attributes with the given names to the given values, replacing the old values if there were any. The keys of the given attributes map are the attribute names and the values are Sets of String values.
Parameters:
  type - the type of the Portal Server resource.
Parameters:
  attributes - a map of name-values pairs where each keyis an attribute name and the correspondingvalue is a Set of String values.
exception:
  PSMBeanException - if an error occurs when setting theattribute values.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.