Java Doc for ProxyBindingLifeCycle.java in  » ESB » open-esb » com » sun » jbi » binding » proxy » 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 » ESB » open esb » com.sun.jbi.binding.proxy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jbi.management.binding.ModelBindingComponent
      com.sun.jbi.binding.proxy.ProxyBindingLifeCycle

ProxyBindingLifeCycle
public class ProxyBindingLifeCycle extends com.sun.jbi.management.binding.ModelBindingComponent implements javax.jbi.component.ComponentLifeCycle,javax.jbi.component.Component(Code)
This is the Lifecycle class of the Proxy Binding. The init and the start() methods of this class are invoked by the framework when the component is started
author:
   Sun Microsystems, Inc.


Field Summary
final public static  StringESB_MEMBER_JOIN
    
final public static  StringESB_MEMBER_LEAVE
    
 StringmInstanceName
     Our JbiInstanceName.
 JbiNameInfomJbiNameInfo
    
 MBeanServermMBeanServer
    
 intmNotificationSequence
    


Method Summary
public  voiddumpState()
     Displays ProxyBinding state on the server.log.
public  ComponentContextgetComponentContext()
    
public  javax.management.ObjectNamegetExtensionMBeanName()
     Get the ObjectName for any MBean that is provided for managing this binding.
public  javax.jbi.component.ComponentLifeCyclegetLifeCycle()
     Get the Lifecycle for this entity.
public  MBeanNotificationInfo[]getNotificationInfo()
    

Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type.

It is not illegal for the MBean to send notifications not described in this array.

public  ProxyBindingStatisticsgetProxyBindingStatistics()
     Returns a handle to the ProxyBindingStatistics instance. ProxyBindingStatistics handle to local stats reference.
public  DocumentgetServiceDescription(ServiceEndpoint endpoint)
     Retrieves a DOM representation containing metadata which describes the service provided by this component, through the given endpoint.
public  javax.jbi.component.ServiceUnitManagergetServiceUnitManager()
     Get the ServiceUnitManager.
public  voidinit(javax.jbi.component.ComponentContext jbiContext)
     Initialize the Proxy BC.
public  booleanisExchangeWithConsumerOkay(ServiceEndpoint endpoint, MessageExchange exchange)
     This method is called by JBI to check if this component, in the role of provider of the service indicated by the given exchange, can actually perform the operation desired.
public  booleanisExchangeWithProviderOkay(ServiceEndpoint endpoint, MessageExchange exchange)
     This method is called by JBI to check if this component, in the role of consumer of the service indicated by the given exchange, can actually interact with the provider properly.
public  voidpostNotification(String type, String value)
    
public  ServiceEndpointresolveEndpointReference(DocumentFragment epr)
     Resolve the given endpoint reference.
public  voidshutDown()
     Shutdown the BC.
public  voidstart()
     Start the Proxy BC.
public  voidstop()
     Stop the BC.

Field Detail
ESB_MEMBER_JOIN
final public static String ESB_MEMBER_JOIN(Code)



ESB_MEMBER_LEAVE
final public static String ESB_MEMBER_LEAVE(Code)



mInstanceName
String mInstanceName(Code)
Our JbiInstanceName.



mJbiNameInfo
JbiNameInfo mJbiNameInfo(Code)
Our immutable name



mMBeanServer
MBeanServer mMBeanServer(Code)
handle to the MBean server



mNotificationSequence
int mNotificationSequence(Code)





Method Detail
dumpState
public void dumpState()(Code)
Displays ProxyBinding state on the server.log.



getComponentContext
public ComponentContext getComponentContext()(Code)



getExtensionMBeanName
public javax.management.ObjectName getExtensionMBeanName()(Code)
Get the ObjectName for any MBean that is provided for managing this binding. In this case, there is none, so a null is returned. ObjectName is always null.



getLifeCycle
public javax.jbi.component.ComponentLifeCycle getLifeCycle()(Code)
Get the Lifecycle for this entity. the LifeCycle.



getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()(Code)

Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type.

It is not illegal for the MBean to send notifications not described in this array. However, some clients of the MBean server may depend on the array being complete for their correct functioning.

the array of possible notifications.



getProxyBindingStatistics
public ProxyBindingStatistics getProxyBindingStatistics()(Code)
Returns a handle to the ProxyBindingStatistics instance. ProxyBindingStatistics handle to local stats reference.



getServiceDescription
public Document getServiceDescription(ServiceEndpoint endpoint)(Code)
Retrieves a DOM representation containing metadata which describes the service provided by this component, through the given endpoint. The result can use WSDL 1.1 or WSDL 2.0.
Parameters:
  endpoint - the service endpoint. the description for the specified service endpoint.



getServiceUnitManager
public javax.jbi.component.ServiceUnitManager getServiceUnitManager()(Code)
Get the ServiceUnitManager. None is this instance. the ServiceUnitManager.



init
public void init(javax.jbi.component.ComponentContext jbiContext) throws javax.jbi.JBIException(Code)
Initialize the Proxy BC. This performs initialization required by the Proxy BC but does not make it ready to process messages. This method is called immediately after installation of the Proxy BC. It is also called when the JBI framework is starting up, and any time the BC is being restarted after previously being shut down through a call to shutdown().
Parameters:
  jbiContext - the JBI environment context
throws:
  javax.jbi.JBIException - if the BC is unable to initialize.



isExchangeWithConsumerOkay
public boolean isExchangeWithConsumerOkay(ServiceEndpoint endpoint, MessageExchange exchange)(Code)
This method is called by JBI to check if this component, in the role of provider of the service indicated by the given exchange, can actually perform the operation desired.
Parameters:
  endpoint - the endpoint to be used by the consumer; must benon-null.
Parameters:
  exchange - the proposed message exchange to be performed; must benon-null. true if this provider component can perform thegiven exchange with the described consumer.



isExchangeWithProviderOkay
public boolean isExchangeWithProviderOkay(ServiceEndpoint endpoint, MessageExchange exchange)(Code)
This method is called by JBI to check if this component, in the role of consumer of the service indicated by the given exchange, can actually interact with the provider properly. The provider is described by the given endpoint and the service description supplied by that endpoint.
Parameters:
  endpoint - the endpoint to be used by the provider; must benon-null.
Parameters:
  exchange - the proposed message exchange to be performed; must benon-null. true if this consumer component can interact withthe described provider to perform the given exchange.



postNotification
public void postNotification(String type, String value)(Code)



resolveEndpointReference
public ServiceEndpoint resolveEndpointReference(DocumentFragment epr)(Code)
Resolve the given endpoint reference. This is called by JBI when it is attempting to resolve the given EPR on behalf of a component.

If this component returns a non-null result, it must conform to the following:

  • This component implements the ServiceEndpoint returned.
  • The result must not be registered or activated with the JBI implementation.
Dynamically resolved endpoints are distinct from static ones; they must not be activated (see ComponentContext.activateEndpoint(QNameString) ), nor registered (see ComponentContext ) by components. They can only be used to address message exchanges; the JBI implementation must deliver such exchanges to the component that resolved the endpoint reference (see ComponentContext.resolveEndpointReference(DocumentFragment) ).
Parameters:
  epr - the endpoint reference, in some XML dialect understood bythe appropriate component (usually a binding); must be non-null. the service endpoint for the EPR; null if theEPR cannot be resolved by this component.



shutDown
public void shutDown() throws javax.jbi.JBIException(Code)
Shutdown the BC. This performs cleanup before the BC is terminated. Once this has been called, init() must be called before the BC can be started again with a call to start().
throws:
  javax.jbi.JBIException - if the BC is unable to shut down.



start
public void start() throws javax.jbi.JBIException(Code)
Start the Proxy BC. This makes the Proxy BC ready to process messages. This method is called after init() completes when the JBI framework is starting up, and when the BC is being restarted after a previous call to shutdown(). If stop() was called previously but shutdown() was not, start() can be called without a call to init().
throws:
  javax.jbi.JBIException - if the BC is unable to start.



stop
public void stop() throws javax.jbi.JBIException(Code)
Stop the BC. This makes the BC stop accepting messages for processing. After a call to this method, start() can be called again without first calling init().
throws:
  javax.jbi.JBIException - if the BC is unable to stop.



Fields inherited from com.sun.jbi.management.binding.ModelBindingComponent
protected ObjectName mConfigMBeanName(Code)(Java Doc)
protected ObjectName mControllerMBeanName(Code)(Java Doc)
protected ObjectName mDeployerMBeanName(Code)(Java Doc)
protected String mDisplayName(Code)(Java Doc)
protected com.sun.jbi.component.ComponentContext mEnv(Code)(Java Doc)
protected MBeanSet mInitialMBeansmStartMBeans(Code)(Java Doc)
protected JbiNameInfo mJbiNameInfo(Code)(Java Doc)
protected ObjectName mLifeCycleMBeanName(Code)(Java Doc)
protected Logger mLogger(Code)(Java Doc)
protected ObjectName mLoggerMBeanName(Code)(Java Doc)
protected com.sun.jbi.management.MBeanNames mMBeanNames(Code)(Java Doc)
protected MBeanServer mMBeanServer(Code)(Java Doc)
final protected String mModelName(Code)(Java Doc)
protected StringTranslator mTranslator(Code)(Java Doc)

Methods inherited from com.sun.jbi.management.binding.ModelBindingComponent
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws java.lang.IllegalArgumentException(Code)(Java Doc)
protected void bootstrap()(Code)(Java Doc)
public String deploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException(Code)(Java Doc)
public String getComponentInfo()(Code)(Java Doc)
public ObjectName getConfigurationMBean()(Code)(Java Doc)
public ObjectName getDefaultLoggerMBean()(Code)(Java Doc)
public ObjectName getDeployerMBean()(Code)(Java Doc)
public ObjectName getExtensionMBeanName()(Code)(Java Doc)
public String getHelp()(Code)(Java Doc)
public ComponentLifeCycle getLifeCycle()(Code)(Java Doc)
public ObjectName getLifeCycleMBean()(Code)(Java Doc)
public ObjectName getLoggerMBeanByName(String aLoggerName)(Code)(Java Doc)
public ObjectName[] getLoggerMBeans()(Code)(Java Doc)
public NotificationBroadcasterSupport getNotificationBroadcaster()(Code)(Java Doc)
public MBeanNotificationInfo[] getNotificationInfo()(Code)(Java Doc)
public Document getServiceDescription(ServiceEndpoint endpoint)(Code)(Java Doc)
public ServiceUnitManager getServiceUnitManager()(Code)(Java Doc)
public String getcomponentName()(Code)(Java Doc)
public void init(ComponentContext context) throws JBIException(Code)(Java Doc)
public void init(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException(Code)(Java Doc)
protected void initModelBindingComponent(javax.jbi.component.ComponentContext anEnv, JbiNameInfo aJbiName)(Code)(Java Doc)
protected void initModelBindingComponent(javax.jbi.component.ComponentContext anEnv, Logger aLogger, JbiNameInfo aJbiName)(Code)(Java Doc)
public boolean isExchangeWithConsumerOkay(ServiceEndpoint endpoint, MessageExchange exchange)(Code)(Java Doc)
public boolean isExchangeWithProviderOkay(ServiceEndpoint endpoint, MessageExchange exchange)(Code)(Java Doc)
public String messageDeployOkay()(Code)(Java Doc)
public String messageUnDeployOkay()(Code)(Java Doc)
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException(Code)(Java Doc)
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(Code)(Java Doc)
public ServiceEndpoint resolveEndpointReference(DocumentFragment epr)(Code)(Java Doc)
public void shutDown() throws JBIException(Code)(Java Doc)
public void shutDown(String serviceUnitName) throws DeploymentException(Code)(Java Doc)
public void start() throws JBIException(Code)(Java Doc)
public void start(String serviceUnitName) throws DeploymentException(Code)(Java Doc)
public void stop() throws JBIException(Code)(Java Doc)
public void stop(String serviceUnitName) throws DeploymentException(Code)(Java Doc)
public String undeploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException(Code)(Java Doc)

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.