cz.cuni.amis.pogamut.base.utils
Class PogamutPlatformProxy

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.utils.PogamutPlatformProxy
All Implemented Interfaces:
PogamutPlatform

public abstract class PogamutPlatformProxy
extends java.lang.Object
implements PogamutPlatform

Used for programatical substitution of properties.


Constructor Summary
PogamutPlatformProxy(PogamutPlatform platform)
           
 
Method Summary
 void close()
          Used to shutdown the Pogamut platform - currently it only stops JMX.
 javax.management.MBeanServer getMBeanServer()
           
 javax.management.MBeanServerConnection getMBeanServerConnection()
           
 javax.management.remote.JMXServiceURL getMBeanServerURL()
           
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String getProperty(java.lang.String key, java.lang.String def)
           
 void setProperty(java.lang.String key, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.base.utils.PogamutPlatform
getBooleanProperty, getIntProperty
 

Constructor Detail

PogamutPlatformProxy

public PogamutPlatformProxy(PogamutPlatform platform)
Method Detail

getMBeanServerConnection

public javax.management.MBeanServerConnection getMBeanServerConnection()
                                                                throws PogamutException
Specified by:
getMBeanServerConnection in interface PogamutPlatform
Returns:
Connection to a remote MBeanServer
Throws:
PogamutException

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)

getProperty

public java.lang.String getProperty(java.lang.String key)
Specified by:
getProperty in interface PogamutPlatform

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String def)
Specified by:
getProperty in interface PogamutPlatform

close

public void close()
           throws PogamutException
Description copied from interface: PogamutPlatform
Used to shutdown the Pogamut platform - currently it only stops JMX.

Specified by:
close in interface PogamutPlatform
Throws:
PogamutException

getMBeanServer

public javax.management.MBeanServer getMBeanServer()
                                            throws PogamutException
Specified by:
getMBeanServer in interface PogamutPlatform
Throws:
PogamutException

getMBeanServerURL

public javax.management.remote.JMXServiceURL getMBeanServerURL()
                                                        throws PogamutException
Specified by:
getMBeanServerURL in interface PogamutPlatform
Throws:
PogamutException