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

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

public abstract class PogamutPlatformProxy
extends Object
implements PogamutPlatform

Used for programatical substitution of properties.

Author:
ik

Constructor Summary
PogamutPlatformProxy(PogamutPlatform platform)
           
 
Method Summary
 void close()
          Used to shutdown the Pogamut platform - currently it only stops JMX.
 MBeanServer getMBeanServer()
           
 MBeanServerConnection getMBeanServerConnection()
           
 JMXServiceURL getMBeanServerURL()
           
 String getProperty(String key)
           
 String getProperty(String key, String def)
           
 void setProperty(String key, 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 MBeanServerConnection getMBeanServerConnection()
                                               throws cz.cuni.amis.utils.exception.PogamutException
Specified by:
getMBeanServerConnection in interface PogamutPlatform
Returns:
Connection to a remote MBeanServer
Throws:
cz.cuni.amis.utils.exception.PogamutException

setProperty

public void setProperty(String key,
                        String value)

getProperty

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

getProperty

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

close

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

Specified by:
close in interface PogamutPlatform
Throws:
cz.cuni.amis.utils.exception.PogamutException

getMBeanServer

public MBeanServer getMBeanServer()
                           throws cz.cuni.amis.utils.exception.PogamutException
Specified by:
getMBeanServer in interface PogamutPlatform
Throws:
cz.cuni.amis.utils.exception.PogamutException

getMBeanServerURL

public JMXServiceURL getMBeanServerURL()
                                throws cz.cuni.amis.utils.exception.PogamutException
Specified by:
getMBeanServerURL in interface PogamutPlatform
Throws:
cz.cuni.amis.utils.exception.PogamutException


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.