public class MxDelegate extends java.lang.Object implements MxInterface
Modifier | Constructor and Description |
---|---|
protected |
MxDelegate() |
Modifier and Type | Method and Description |
---|---|
static MxDelegate |
getInstance() |
void |
init()
Initialize, or reinitialize, the JMX instrumentation support in JetS3t.
|
boolean |
isJmxDelegationActive() |
void |
registerS3ServiceExceptionEvent() |
void |
registerS3ServiceExceptionEvent(java.lang.String s3ErrorCode) |
void |
registerS3ServiceExceptionMBean() |
void |
registerS3ServiceMBean() |
void |
registerStorageBucketListEvent(java.lang.String bucketName) |
void |
registerStorageBucketMBeans(StorageBucket[] buckets) |
void |
registerStorageObjectCopyEvent(java.lang.String bucketName,
java.lang.String key) |
void |
registerStorageObjectDeleteEvent(java.lang.String bucketName,
java.lang.String key) |
void |
registerStorageObjectGetEvent(java.lang.String bucketName,
java.lang.String key) |
void |
registerStorageObjectHeadEvent(java.lang.String bucketName,
java.lang.String key) |
void |
registerStorageObjectMBean(java.lang.String bucketName,
StorageObject[] objects) |
void |
registerStorageObjectPutEvent(java.lang.String bucketName,
java.lang.String key) |
public static MxDelegate getInstance()
public void init()
This method checks the given properties for the following System properties:
Property | Effect |
---|---|
com.sun.management.jmxremote | If present, enable JMX instrumentation for JetS3t for Java 1.5. On Java 1.5 this System setting is required to enable JMX in general, and if it is present then we automatically enable instrumentation for JetS3t as well. |
jets3t.mx | If present, enable JMX instrumentation for JetS3t for Java 1.6+. Because Java 1.6+ no longer requires the "com.sun.management.jmxremote" System setting for JMX to be enabled in general, this property can be used as a substitute that allows users to decide whether JetS3t's JMX instrumentation should be turned on or off. |
public boolean isJmxDelegationActive()
public void registerS3ServiceMBean()
registerS3ServiceMBean
in interface MxInterface
public void registerS3ServiceExceptionMBean()
registerS3ServiceExceptionMBean
in interface MxInterface
public void registerS3ServiceExceptionEvent()
registerS3ServiceExceptionEvent
in interface MxInterface
public void registerS3ServiceExceptionEvent(java.lang.String s3ErrorCode)
registerS3ServiceExceptionEvent
in interface MxInterface
public void registerStorageBucketMBeans(StorageBucket[] buckets)
registerStorageBucketMBeans
in interface MxInterface
public void registerStorageBucketListEvent(java.lang.String bucketName)
registerStorageBucketListEvent
in interface MxInterface
public void registerStorageObjectMBean(java.lang.String bucketName, StorageObject[] objects)
registerStorageObjectMBean
in interface MxInterface
public void registerStorageObjectPutEvent(java.lang.String bucketName, java.lang.String key)
registerStorageObjectPutEvent
in interface MxInterface
public void registerStorageObjectGetEvent(java.lang.String bucketName, java.lang.String key)
registerStorageObjectGetEvent
in interface MxInterface
public void registerStorageObjectHeadEvent(java.lang.String bucketName, java.lang.String key)
registerStorageObjectHeadEvent
in interface MxInterface
public void registerStorageObjectDeleteEvent(java.lang.String bucketName, java.lang.String key)
registerStorageObjectDeleteEvent
in interface MxInterface
public void registerStorageObjectCopyEvent(java.lang.String bucketName, java.lang.String key)
registerStorageObjectCopyEvent
in interface MxInterface