public interface ProtobufMetadataManagerMBean extends ProtobufMetadataManagerConstants
JMX.newMBeanProxy(javax.management.MBeanServerConnection, javax.management.ObjectName, java.lang.Class<T>)
methods.ERRORS_KEY_SUFFIX, OBJECT_NAME, PROTO_KEY_SUFFIX, PROTOBUF_METADATA_CACHE_NAME
Modifier and Type | Method and Description |
---|---|
String |
getFileErrors(String fileName)
Gets the error messages (caused by parsing, linking, etc) associated to a *.proto schema file.
|
String[] |
getFilesWithErrors()
Get the full names of all registered schema files.
|
String |
getProtofile(String fileName)
Gets the contents of a registered *.proto schema file.
|
String[] |
getProtofileNames()
Get the full names of all registered schema files.
|
void |
registerProtofile(String fileName,
String contents)
Register a *.proto schema file.
|
void |
registerProtofiles(String[] fileNames,
String[] contents)
Registers multiple *.proto schema files.
|
void |
unregisterProtofile(String fileName)
Unregister a *.proto schema file.
|
void |
unregisterProtofiles(String[] fileNames)
Unregisters multiple *.proto schema files.
|
void registerProtofile(String fileName, String contents) throws Exception
getFileErrors(String fileName)
method. The list of offending files can be retrieved using getFilesWithErrors()
method.fileName
- the full name of the file (name can contain '/'); must end with ".proto" suffixcontents
- the file contentsException
- in case of failurevoid registerProtofiles(String[] fileNames, String[] contents) throws Exception
getFileErrors(String fileName)
method. The list of offending
files can be retrieved using getFilesWithErrors()
method.fileNames
- the full names of the files (name can contain '/'); names must end with ".proto" suffixcontents
- the contents of each file; this array must have the same length as fileNames
Exception
- in case of failurevoid unregisterProtofile(String fileName) throws Exception
fileName
- the full name of the file (name can contain '/'); must end with ".proto" suffixException
- in case of failurevoid unregisterProtofiles(String[] fileNames) throws Exception
fileNames
- the full names of the files (name can contain '/'); names must end with ".proto" suffixException
- in case of failureString[] getProtofileNames()
String getProtofile(String fileName)
fileName
- the name of the file; must end with ".proto" suffixnull
if the file does not existString[] getFilesWithErrors()
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.